Mercurial > gemma
diff client/src/components/ImportStretches.vue @ 2140:55bedb39295a
feat: clicking on stretches activates according layer
author | Thomas Junk <thomas.junk@intevation.de> |
---|---|
date | Thu, 07 Feb 2019 10:30:44 +0100 |
parents | 3138d60dd1a6 |
children | a08e0f532304 |
line wrap: on
line diff
--- a/client/src/components/ImportStretches.vue Thu Feb 07 09:15:39 2019 +0100 +++ b/client/src/components/ImportStretches.vue Thu Feb 07 10:30:44 2019 +0100 @@ -263,6 +263,7 @@ import { mapState, mapGetters } from "vuex"; import { displayError, displayInfo } from "@/lib/errors.js"; import { formatSurveyDate } from "@/lib/date.js"; +import { LAYERS } from "@/store/map.js"; export default { name: "importstretches", @@ -356,6 +357,7 @@ }); }, moveMapToStretch(index) { + this.$store.commit("map/setLayerVisible", LAYERS.STRETCHES); this.$store.commit("map/moveToExtent", { feature: this.stretches[index], zoom: 17, @@ -406,6 +408,7 @@ this.edit = true; }, togglePipette(t) { + this.$store.commit("map/setLayerVisible", LAYERS.DISTANCEMARKSAXIS); if (t === "start") { this.pipetteStart = !this.pipetteStart; this.pipetteEnd = false;