diff --git a/src/layer/marker/Marker.Popup.js b/src/layer/marker/Marker.Popup.js index 9597c297..3d4768d4 100644 --- a/src/layer/marker/Marker.Popup.js +++ b/src/layer/marker/Marker.Popup.js @@ -5,7 +5,9 @@ L.Marker.include({ openPopup: function () { this._popup.setLatLng(this._latlng); - this._map.openPopup(this._popup); + if (this._map) { + this._map.openPopup(this._popup); + } return this; },