Merge pull request #2547 from shortspider/popup.isOpen

Added method to indicate if the popup is open or closed.
This commit is contained in:
Vladimir Agafonkin 2014-03-19 16:25:29 -07:00
commit 2af906fc9b

View File

@ -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) {