diff client/src/components/identify/Identify.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 81c2e561fe03
children 5487abeb380c
line wrap: on
line diff
--- a/client/src/components/identify/Identify.vue	Sat Apr 13 15:28:48 2019 +0200
+++ b/client/src/components/identify/Identify.vue	Sat Apr 13 16:02:06 2019 +0200
@@ -147,7 +147,7 @@
   },
   methods: {
     zoomTo(feature) {
-      this.$store.commit("map/moveMap", {
+      this.$store.dispatch("map/moveMap", {
         coordinates: getCenter(
           feature
             .getGeometry()