add Popup openOn(map)

This commit is contained in:
Vladimir Agafonkin 2012-07-12 15:46:52 +03:00
parent e9b47e9811
commit 4f8dc06097

View File

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