diff --git a/src/layer/vector/canvas/Path.Canvas.js b/src/layer/vector/canvas/Path.Canvas.js index 7d6b90db..6df1fe9e 100644 --- a/src/layer/vector/canvas/Path.Canvas.js +++ b/src/layer/vector/canvas/Path.Canvas.js @@ -136,7 +136,7 @@ L.Path = (L.Path.SVG && !window.L_PREFER_CANVAS) || !L.Browser.canvas ? L.Path : }, _onMouseMove: function (e) { - if (this._map._animatingZoom) { return; } + if (!this._map || this._map._animatingZoom) { return; } // TODO don't do on each move if (this._containsPoint(e.layerPoint)) {