diff --git a/src/layer/tile/GridLayer.js b/src/layer/tile/GridLayer.js index 7fa06dcb..d98994f3 100644 --- a/src/layer/tile/GridLayer.js +++ b/src/layer/tile/GridLayer.js @@ -552,6 +552,8 @@ L.GridLayer = L.Layer.extend({ }, _tileReady: function (coords, err, tile) { + if (!this._map) { return; } + if (err) { this.fire('tileerror', { error: err,