Allow popups that are bound to markers to have new content set
This commit is contained in:
parent
52f61bf55a
commit
dbd57c0b7b
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user