loleaflet: don't delete non-existing marker
Previously there were spurious warnings when trying to delete a non-existing marker.
This commit is contained in:
parent
eaf5a65e8b
commit
a7d74ed5ee
1 changed files with 1 additions and 1 deletions
|
@ -798,7 +798,7 @@ L.TileLayer = L.GridLayer.extend({
|
|||
}
|
||||
this._map.addLayer(this._cellCursorMarker);
|
||||
}
|
||||
else if (this._cellCursor) {
|
||||
else if (this._cellCursorMarker) {
|
||||
this._map.removeLayer(this._cellCursorMarker);
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue