fixed panBy
This commit is contained in:
parent
0f2bf17a51
commit
afcc3183a9
@ -90,7 +90,8 @@ L.CanvasLayer = L.Class.extend({
|
|||||||
if (this.options.zoomAnimation) {
|
if (this.options.zoomAnimation) {
|
||||||
map.on({
|
map.on({
|
||||||
'zoomanim': this._animateZoom,
|
'zoomanim': this._animateZoom,
|
||||||
'zoomend': this._endZoomAnim
|
'zoomend': this._endZoomAnim,
|
||||||
|
'moveend': this._reset
|
||||||
}, this);
|
}, this);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -160,6 +161,7 @@ L.CanvasLayer = L.Class.extend({
|
|||||||
map.off({
|
map.off({
|
||||||
'viewreset': this._reset,
|
'viewreset': this._reset,
|
||||||
'move': this._render,
|
'move': this._render,
|
||||||
|
'moveend': this._reset,
|
||||||
'resize': this._reset,
|
'resize': this._reset,
|
||||||
'zoomanim': this._animateZoom,
|
'zoomanim': this._animateZoom,
|
||||||
'zoomend': this._endZoomAnim
|
'zoomend': this._endZoomAnim
|
||||||
|
Loading…
Reference in New Issue
Block a user