Merge pull request #2547 from shortspider/popup.isOpen
Added method to indicate if the popup is open or closed.
This commit is contained in:
commit
2af906fc9b
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user