diff client/src/components/toolbar/Polygontool.vue @ 3044:c71373594719

client: map: prepared store to hold multiple map objects This will be necessary to sync maps, toggle layers per map, etc. Therefore the methods to move the map (moveToExtent, etc.) became actions instead of mutations.
author Markus Kottlaender <markus@intevation.de>
date Sat, 13 Apr 2019 16:02:06 +0200
parents 44493664d40e
children 87e0422cffa7
line wrap: on
line diff
--- a/client/src/components/toolbar/Polygontool.vue	Sat Apr 13 15:28:48 2019 +0200
+++ b/client/src/components/toolbar/Polygontool.vue	Sat Apr 13 16:02:06 2019 +0200
@@ -25,12 +25,13 @@
  * Author(s):
  * Markus Kottländer <markus.kottlaender@intevation.de>
  */
-import { mapState } from "vuex";
+import { mapState, mapGetters } from "vuex";
 
 export default {
   name: "polygontool",
   computed: {
-    ...mapState("map", ["openLayersMap", "lineTool", "polygonTool", "cutTool"]),
+    ...mapState("map", ["lineTool", "polygonTool", "cutTool"]),
+    ...mapGetters("map", ["openLayersMap"]),
     label() {
       return this.$gettext("Measure Area");
     }