diff client/src/store/map.js @ 2596:8774054959a7

client: added Gauges dialog/tool to show waterlevel diagrams
author Markus Kottlaender <markus@intevation.de>
date Tue, 12 Mar 2019 12:07:02 +0100
parents 1686ec185155
children 85f9bf4a6eba
line wrap: on
line diff
--- a/client/src/store/map.js	Tue Mar 12 11:44:29 2019 +0100
+++ b/client/src/store/map.js	Tue Mar 12 12:07:02 2019 +0100
@@ -793,8 +793,10 @@
 
                 // get selected gauge
                 if (/^gauges/.test(id)) {
-                  if (rootState.gauges.selectedGauge !== feature) {
-                    dispatch("gauges/selectedGauge", feature, {
+                  if (
+                    rootState.gauges.selectedGauge !== feature.get("objname")
+                  ) {
+                    dispatch("gauges/selectedGauge", feature.get("objname"), {
                       root: true
                     });
                     commit("moveMap", {
@@ -808,7 +810,6 @@
                       zoom: 17,
                       preventZoomOut: true
                     });
-                    commit("application/showSplitscreen", true, { root: true });
                   }
                 }
               }