From e02a91476b0372eab6f7fe8bef262c1583bb0f39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=B2=20Maria=20Mezzopera?= Date: Sun, 9 Feb 2020 13:03:56 +0100 Subject: [PATCH] fix: restore visible prop functionality --- src/components/LMap.vue | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/components/LMap.vue b/src/components/LMap.vue index 7de8e4bd..44f47aad 100644 --- a/src/components/LMap.vue +++ b/src/components/LMap.vue @@ -203,9 +203,7 @@ export default { } }, hideLayer(layer) { - if (layer.layerType !== undefined) { - this.mapObject.removeLayer(layer.mapObject); - } + this.mapObject.removeLayer(layer.mapObject); }, removeLayer(layer, alreadyRemoved) { if (layer.layerType !== undefined) {