diff --git a/lib/torque/leaflet/canvas_layer.js b/lib/torque/leaflet/canvas_layer.js index 376bf3e..c6bd094 100644 --- a/lib/torque/leaflet/canvas_layer.js +++ b/lib/torque/leaflet/canvas_layer.js @@ -90,7 +90,8 @@ L.CanvasLayer = L.Class.extend({ if (this.options.zoomAnimation) { map.on({ 'zoomanim': this._animateZoom, - 'zoomend': this._endZoomAnim + 'zoomend': this._endZoomAnim, + 'moveend': this._reset }, this); } @@ -160,6 +161,7 @@ L.CanvasLayer = L.Class.extend({ map.off({ 'viewreset': this._reset, 'move': this._render, + 'moveend': this._reset, 'resize': this._reset, 'zoomanim': this._animateZoom, 'zoomend': this._endZoomAnim