From afcc3183a919e258917098ff42461b2bf4c71dd8 Mon Sep 17 00:00:00 2001 From: javi Date: Mon, 31 Mar 2014 11:42:49 +0200 Subject: [PATCH] fixed panBy --- lib/torque/leaflet/canvas_layer.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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