comparison 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
comparison
equal deleted inserted replaced
3043:de75404cb5fc 3044:c71373594719
145 return this.$gettext("Identified"); 145 return this.$gettext("Identified");
146 } 146 }
147 }, 147 },
148 methods: { 148 methods: {
149 zoomTo(feature) { 149 zoomTo(feature) {
150 this.$store.commit("map/moveMap", { 150 this.$store.dispatch("map/moveMap", {
151 coordinates: getCenter( 151 coordinates: getCenter(
152 feature 152 feature
153 .getGeometry() 153 .getGeometry()
154 .clone() 154 .clone()
155 .transform("EPSG:3857", "EPSG:4326") 155 .transform("EPSG:3857", "EPSG:4326")