diff --git a/src/layer/Layer.js b/src/layer/Layer.js index 579d30b5..55843063 100644 --- a/src/layer/Layer.js +++ b/src/layer/Layer.js @@ -35,6 +35,10 @@ L.Layer = L.Evented.extend({ return this; }, + isPopupOpen: function() { + return !!(this._map._popup && this._map._popup.isOpen); + }, + _layerAdd: function (e) { var map = e.target;