diff --git a/src/layer/Popup.js b/src/layer/Popup.js index 94e486cc..f991d9f1 100644 --- a/src/layer/Popup.js +++ b/src/layer/Popup.js @@ -131,6 +131,10 @@ L.Popup = L.Layer.extend({ } return events; }, + + isOpen: function () { + return !!this._map && this._map.hasLayer(this); + }, _close: function () { if (this._map) {