add Popup openOn(map)
This commit is contained in:
parent
e9b47e9811
commit
4f8dc06097
@ -54,6 +54,11 @@ L.Popup = L.Class.extend({
|
||||
return this;
|
||||
},
|
||||
|
||||
openOn: function (map) {
|
||||
map.openPopup(this);
|
||||
return this;
|
||||
},
|
||||
|
||||
onRemove: function (map) {
|
||||
map._panes.popupPane.removeChild(this._container);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user