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:
Iván Sánchez Ortega 2015-06-10 10:12:40 +02:00
commit cc04a82be1

View File

@ -407,6 +407,8 @@ L.GridLayer = L.Layer.extend({
}, },
_onMoveEnd: function () { _onMoveEnd: function () {
if (!this._map) { return; }
this._update(); this._update();
this._pruneTiles(); this._pruneTiles();
}, },