Merge pull request #3527 from RLRR/fix-moveend-after-layer-removal
Add map presence check to onMoveEnd handler, fixes #3522
This commit is contained in:
commit
cc04a82be1
@ -407,6 +407,8 @@ L.GridLayer = L.Layer.extend({
|
||||
},
|
||||
|
||||
_onMoveEnd: function () {
|
||||
if (!this._map) { return; }
|
||||
|
||||
this._update();
|
||||
this._pruneTiles();
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user