Merge pull request #1891 from snkashis/seticon_and_popups
Rebind popup when using setIcon to ensure proper anchor placement
This commit is contained in:
commit
ba7a7f58cb
@ -87,6 +87,10 @@ L.Marker = L.Class.extend({
|
||||
this.update();
|
||||
}
|
||||
|
||||
if (this._popup) {
|
||||
this.bindPopup(this._popup);
|
||||
}
|
||||
|
||||
return this;
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user