Merge pull request #1373 from snkashis/marker_popups

Allow popups that are bound to markers to have new content set
This commit is contained in:
Vladimir Agafonkin 2013-02-13 13:29:28 -08:00
commit b8b8d7b351

View File

@ -43,6 +43,13 @@ L.Marker.include({
return this;
},
setPopupContent: function (content) {
if (this._popup) {
this._popup.setContent(content);
}
return this;
},
unbindPopup: function () {
if (this._popup) {
this._popup = null;