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:
Andrzej Hunt 2015-11-12 12:23:33 +01:00
parent eaf5a65e8b
commit a7d74ed5ee

View file

@ -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);
}
},