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:
commit
b8b8d7b351
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user