comparison 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
comparison
equal deleted inserted replaced
3043:de75404cb5fc 3044:c71373594719
32 ...mapState("imports", ["showAdditional", "details"]) 32 ...mapState("imports", ["showAdditional", "details"])
33 }, 33 },
34 methods: { 34 methods: {
35 zoomTo() { 35 zoomTo() {
36 const { lat, lon, bottleneck, date } = this.details.summary; 36 const { lat, lon, bottleneck, date } = this.details.summary;
37 this.$store.commit("map/moveMap", { 37 this.$store.dispatch("map/moveMap", {
38 coordinates: [lat, lon], 38 coordinates: [lat, lon],
39 zoom: 17, 39 zoom: 17,
40 preventZoomOut: true 40 preventZoomOut: true
41 }); 41 });
42 this.$store 42 this.$store