Skip to content

Commit

Permalink
Reference GL Map resize function in place of undefined reference
Browse files Browse the repository at this point in the history
  • Loading branch information
sheeley820 committed Nov 15, 2023
1 parent 4fae9f2 commit b99b6d5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/MaplibreGLLayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,11 @@ 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 <canvas>
zoomanim: this._animateZoom, // applies the zoom animation to the <canvas>
zoom: this._pinchZoom, // animate every zoom event for smoother pinch-zooming
zoomstart: this._zoomStart, // flag starting a zoom to disable panning
zoomend: this._zoomEnd,
resize: this._resize
resize: this._glMap.resize
};
},

Expand Down Expand Up @@ -198,7 +198,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) {
Expand Down

0 comments on commit b99b6d5

Please sign in to comment.