Mercurial > gemma
diff client/src/components/map/Map.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 | 2e2a271c1026 |
children | 051a3f446ac2 |
line wrap: on
line diff
--- a/client/src/components/map/Map.vue Sat Apr 13 15:28:48 2019 +0200 +++ b/client/src/components/map/Map.vue Sat Apr 13 16:02:06 2019 +0200 @@ -61,7 +61,6 @@ ...mapState("map", [ "initialLoad", "extent", - "openLayersMap", "lineTool", "polygonTool", "cutTool" @@ -175,7 +174,7 @@ } }) .then(response => { - this.$store.commit("map/moveToBoundingBox", { + this.$store.dispatch("map/moveToBoundingBox", { boundingBox: [ response.data.extent.x1, response.data.extent.y1,