diff client/src/map/store.js @ 816:cd79f62794dd

client: prepare survey selection * Add a new component Morphtool that will show an icon, if a bottleneck was identified. A click on the icon removes the selectedFeatures again.
author Bernhard Reiter <bernhard@intevation.de>
date Thu, 27 Sep 2018 17:38:28 +0200
parents 21609ba97357
children 90a601884ff2
line wrap: on
line diff
--- a/client/src/map/store.js	Thu Sep 27 17:32:48 2018 +0200
+++ b/client/src/map/store.js	Thu Sep 27 17:38:28 2018 +0200
@@ -170,7 +170,8 @@
       }
     ],
     identifiedFeatures: [],
-    currentMeasurement: null
+    currentMeasurement: null,
+    selectedMorph: null
   },
   getters: {
     layers: state => {
@@ -193,6 +194,9 @@
     },
     setCurrentMeasurement: (state, measurement) => {
       state.currentMeasurement = measurement;
+    },
+    setSelectedMorpth: (state, selectedMorph) => {
+      state.selectedMorph = selectedMorph;
     }
   }
 };