diff client/src/components/map/Map.vue @ 3548:f3102fa16a69

client: data availability/accuracy: inject mapId into layer/styles factory to fix display issue with two maps This layer displays features based on which other layers are visible. To detect those other layers visibility realiably, the layer needs to be aware about the map it belongs to.
author Markus Kottlaender <markus@intevation.de>
date Fri, 31 May 2019 12:45:30 +0200
parents 80037790032d
children 8775bea8042a
line wrap: on
line diff
--- a/client/src/components/map/Map.vue	Fri May 31 12:20:08 2019 +0200
+++ b/client/src/components/map/Map.vue	Fri May 31 12:45:30 2019 +0200
@@ -63,7 +63,7 @@
     ...mapState("application", ["paneSetup", "paneRotate"]),
     ...mapState("imports", ["selectedStretchId", "selectedSectionId"]),
     layers() {
-      return layers();
+      return layers(this.paneId);
     },
     hasActiveInteractions() {
       return (