comparison client/src/components/importoverview/StretchDetails.vue @ 3127:0374197c384f

client: fix openLayersMap getter calls
author Markus Kottlaender <markus@intevation.de>
date Mon, 29 Apr 2019 16:05:14 +0200
parents 1ef2f4179d30
children 37c024dd435e
comparison
equal deleted inserted replaced
3126:f6fb8803032f 3127:0374197c384f
34 ...mapGetters("map", ["openLayersMap"]) 34 ...mapGetters("map", ["openLayersMap"])
35 }, 35 },
36 methods: { 36 methods: {
37 zoomToStretch() { 37 zoomToStretch() {
38 const name = this.details.summary.stretch; 38 const name = this.details.summary.stretch;
39 this.openLayersMap.getLayer("STRETCHES").setVisible(true); 39 this.openLayersMap()
40 .getLayer("STRETCHES")
41 .setVisible(true);
40 this.$store 42 this.$store
41 .dispatch("imports/loadStretch", name) 43 .dispatch("imports/loadStretch", name)
42 .then(response => { 44 .then(response => {
43 if (response.data.features.length < 1) 45 if (response.data.features.length < 1)
44 throw new Error("no feaures found for: " + name); 46 throw new Error("no feaures found for: " + name);