From a7d74ed5ee6f90ca7e47e72cc946f3c279cde050 Mon Sep 17 00:00:00 2001 From: Andrzej Hunt Date: Thu, 12 Nov 2015 12:23:33 +0100 Subject: [PATCH] loleaflet: don't delete non-existing marker Previously there were spurious warnings when trying to delete a non-existing marker. --- loleaflet/src/layer/tile/TileLayer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/loleaflet/src/layer/tile/TileLayer.js b/loleaflet/src/layer/tile/TileLayer.js index eddb2bb87..88f775257 100644 --- a/loleaflet/src/layer/tile/TileLayer.js +++ b/loleaflet/src/layer/tile/TileLayer.js @@ -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); } },