remove marker fix - thanks to Hannes Antero Junnila for pointing this

out!
This commit is contained in:
mourner 2011-03-30 00:13:19 +03:00
parent 3898b28f8a
commit 162aad202e

View File

@ -37,7 +37,7 @@ L.Marker = L.Class.extend({
if (this._icon) {
map._panes.markerPane.removeChild(this._icon);
}
if (!this._shadow) {
if (this._shadow) {
map._panes.shadowPane.removeChild(this._shadow);
}
map.off('viewreset', this._reset, this);