Allow popups that are bound to markers to have new content set

This commit is contained in:
snkashis 2013-02-13 14:06:48 -05:00
parent 52f61bf55a
commit dbd57c0b7b

View File

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