diff --git a/src/plugin/leaflet.canvas-markers.js b/src/plugin/leaflet.canvas-markers.js index 9da4211..51937a8 100644 --- a/src/plugin/leaflet.canvas-markers.js +++ b/src/plugin/leaflet.canvas-markers.js @@ -298,7 +298,7 @@ function layerFactory(L) { } }, _onMouseMove: function (e) { - if (!this._map || this._map.dragging.moving() || this._map._animatingZoom) { return; } + if (!this._map || !this._markers || this._map.dragging.moving() || this._map._animatingZoom) { return; } var point = e.containerPoint; this._handleMouseHover(e, point);