diff --git a/src/MaplibreGLLayer.js b/src/MaplibreGLLayer.js index 4184187..096ccf0 100644 --- a/src/MaplibreGLLayer.js +++ b/src/MaplibreGLLayer.js @@ -82,7 +82,7 @@ export var MaplibreGLJSLayer = Layer.extend({ getEvents: function () { return { move: this._throttledUpdate, // sensibly throttle updating while panning - zoomanim: this._animateZoom, // applys the zoom animation to the + zoomanim: this._animateZoom, // applies the zoom animation to the zoom: this._pinchZoom, // animate every zoom event for smoother pinch-zooming zoomstart: this._zoomStart, // flag starting a zoom to disable panning zoomend: this._zoomEnd, @@ -131,6 +131,10 @@ export var MaplibreGLJSLayer = Layer.extend({ : 'tilePane'; }, + _resize: function () { + return this._glMap._resize; + }, + _initContainer: function () { if (this._container) { return; @@ -198,7 +202,7 @@ export var MaplibreGLJSLayer = Layer.extend({ }, _update: function (e) { - // update the offset so we can correct for it later when we zoom + // update the offset, so we can correct for it later when we zoom this._offset = this._map.containerPointToLayerPoint([0, 0]); if (this._zooming) {