Marker.js: this._reset() after set new icon, because the icon element has no set position

This commit is contained in:
Marcin Sikon 2011-07-29 11:18:19 +02:00
parent aa5849a2dc
commit a29e22c3d2

View File

@ -54,6 +54,7 @@ L.Marker = L.Class.extend({
this.options.icon = icon;
this._initIcon();
this._reset();
},
_initIcon: function() {