remove marker fix - thanks to Hannes Antero Junnila for pointing this
out!
This commit is contained in:
parent
3898b28f8a
commit
162aad202e
@ -37,7 +37,7 @@ L.Marker = L.Class.extend({
|
|||||||
if (this._icon) {
|
if (this._icon) {
|
||||||
map._panes.markerPane.removeChild(this._icon);
|
map._panes.markerPane.removeChild(this._icon);
|
||||||
}
|
}
|
||||||
if (!this._shadow) {
|
if (this._shadow) {
|
||||||
map._panes.shadowPane.removeChild(this._shadow);
|
map._panes.shadowPane.removeChild(this._shadow);
|
||||||
}
|
}
|
||||||
map.off('viewreset', this._reset, this);
|
map.off('viewreset', this._reset, this);
|
||||||
|
Loading…
Reference in New Issue
Block a user