comparison client/src/components/layers/Layers.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 44493664d40e
children b3c24c47931c
comparison
equal deleted inserted replaced
3043:de75404cb5fc 3044:c71373594719
46 * 46 *
47 * Author(s): 47 * Author(s):
48 * Thomas Junk <thomas.junk@intevation.de> 48 * Thomas Junk <thomas.junk@intevation.de>
49 * Markus Kottländer <markus.kottlaender@intevation.de> 49 * Markus Kottländer <markus.kottlaender@intevation.de>
50 */ 50 */
51 import { mapState } from "vuex"; 51 import { mapState, mapGetters } from "vuex";
52 52
53 export default { 53 export default {
54 components: { 54 components: {
55 Layerselect: () => import("./Layerselect") 55 Layerselect: () => import("./Layerselect")
56 }, 56 },
57 computed: { 57 computed: {
58 ...mapState("map", ["openLayersMap"]), 58 ...mapGetters("map", ["openLayersMap"]),
59 ...mapState("application", ["showLayers"]), 59 ...mapState("application", ["showLayers"]),
60 layersLabel() { 60 layersLabel() {
61 return this.$gettext("Layers"); 61 return this.$gettext("Layers");
62 } 62 }
63 }, 63 },