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) {