fix GridLayer move event handler, fixes #3522
This commit is contained in:
parent
79105f78a7
commit
b31a1e8be6
@ -104,7 +104,11 @@ L.GridLayer = L.Layer.extend({
|
|||||||
|
|
||||||
if (!this.options.updateWhenIdle) {
|
if (!this.options.updateWhenIdle) {
|
||||||
// update tiles on move, but not more often than once per given interval
|
// update tiles on move, but not more often than once per given interval
|
||||||
events.move = L.Util.throttle(this._onMoveEnd, this.options.updateInterval, this);
|
if (!this._onMove) {
|
||||||
|
this._onMove = L.Util.throttle(this._onMoveEnd, this.options.updateInterval, this);
|
||||||
|
}
|
||||||
|
|
||||||
|
events.move = this._onMove;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this._zoomAnimated) {
|
if (this._zoomAnimated) {
|
||||||
|
Loading…
Reference in New Issue
Block a user