From 9b42d4b6fb203c091eb9ed5ff5fc6a159350e800 Mon Sep 17 00:00:00 2001 From: Ron Snyder Date: Thu, 21 Mar 2024 09:10:56 -0400 Subject: [PATCH] Fix for map layer removal exception --- components/Map.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/Map.vue b/components/Map.vue index e1a8ce09..01df64c3 100644 --- a/components/Map.vue +++ b/components/Map.vue @@ -304,12 +304,12 @@ module.exports = { if (mapDefs[layer.id]) { next.push(layer) } else { - this.map.removeLayer(layer.layer) + this.map.removeLayer(layer) } }) } else { this.tileLayers.forEach(layer => { - this.map.removeLayer(layer.layer) + this.map.removeLayer(layer) }) const baseLayer = L.tileLayer(...baseLayers[this.basemap]) this.map.addLayer(baseLayer)