diff client/src/components/Maplayer.vue @ 2870:35f6e4383161

layer structure overhaul
author Thomas Junk <thomas.junk@intevation.de>
date Fri, 29 Mar 2019 13:37:17 +0100
parents 9bf6b767a56a
children 5105f6ad0176
line wrap: on
line diff
--- a/client/src/components/Maplayer.vue	Fri Mar 29 13:20:58 2019 +0100
+++ b/client/src/components/Maplayer.vue	Fri Mar 29 13:37:17 2019 +0100
@@ -167,8 +167,9 @@
     }
   },
   mounted() {
+    const Layers = Object.keys(this.layers).map(x => this.layers[x].data);
     let map = new Map({
-      layers: [...this.layers.map(x => x.data)],
+      layers: [...Layers],
       target: "map",
       controls: [],
       view: new View({