add isPopupOpen method to layer

This commit is contained in:
vingiarrusso 2015-05-27 16:34:06 -07:00
parent 45034155bd
commit fd1b295b95

View File

@ -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;