diff client/src/components/importoverview/SoundingResultDetail.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 9a408a8b74b8
children 8c0f2377ff47
line wrap: on
line diff
--- a/client/src/components/importoverview/SoundingResultDetail.vue	Sat Apr 13 15:28:48 2019 +0200
+++ b/client/src/components/importoverview/SoundingResultDetail.vue	Sat Apr 13 16:02:06 2019 +0200
@@ -34,7 +34,7 @@
   methods: {
     zoomTo() {
       const { lat, lon, bottleneck, date } = this.details.summary;
-      this.$store.commit("map/moveMap", {
+      this.$store.dispatch("map/moveMap", {
         coordinates: [lat, lon],
         zoom: 17,
         preventZoomOut: true