fixed panBy

This commit is contained in:
javi 2014-03-31 11:42:49 +02:00
parent 0f2bf17a51
commit afcc3183a9

View File

@ -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