changeset 4347:81577c995161

legend: removal of layers adjusted
author Thomas Junk <thomas.junk@intevation.de>
date Mon, 09 Sep 2019 12:12:21 +0200
parents 827157bbc2a8
children dc5a10542e16
files client/src/components/layers/LegendElement.vue
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/client/src/components/layers/LegendElement.vue	Mon Sep 09 11:51:34 2019 +0200
+++ b/client/src/components/layers/LegendElement.vue	Mon Sep 09 12:12:21 2019 +0200
@@ -137,7 +137,7 @@
     recreateLayers() {
       let vector = this.createVectorLayer();
 
-      this.myMap.removeLayer(this.myMap.getLayers()[0]);
+      this.myMap.removeLayer(this.myMap.getLayers().getArray()[0]);
 
       this.myMap.addLayer(vector);
     },