Marker.js: this._reset() after set new icon, because the icon element has no set position
This commit is contained in:
parent
aa5849a2dc
commit
a29e22c3d2
@ -54,6 +54,7 @@ L.Marker = L.Class.extend({
|
||||
this.options.icon = icon;
|
||||
|
||||
this._initIcon();
|
||||
this._reset();
|
||||
},
|
||||
|
||||
_initIcon: function() {
|
||||
|
Loading…
Reference in New Issue
Block a user