Merge pull request #1891 from snkashis/seticon_and_popups

Rebind popup when using setIcon to ensure proper anchor placement
This commit is contained in:
Vladimir Agafonkin 2013-07-28 23:58:50 -07:00
commit ba7a7f58cb

View File

@ -87,6 +87,10 @@ L.Marker = L.Class.extend({
this.update();
}
if (this._popup) {
this.bindPopup(this._popup);
}
return this;
},