Mercurial > gemma
comparison client/src/components/map/Map.vue @ 3685:8775bea8042a
client: layers: unset layer config on logout
author | Markus Kottlaender <markus@intevation.de> |
---|---|
date | Tue, 18 Jun 2019 14:39:36 +0200 |
parents | f3102fa16a69 |
children | 8acabf1f176f |
comparison
equal
deleted
inserted
replaced
3684:2babdaa32709 | 3685:8775bea8042a |
---|---|
39 import { mapState } from "vuex"; | 39 import { mapState } from "vuex"; |
40 import { Map, View } from "ol"; | 40 import { Map, View } from "ol"; |
41 import { Stroke, Style, Fill } from "ol/style"; | 41 import { Stroke, Style, Fill } from "ol/style"; |
42 import { displayError } from "@/lib/errors"; | 42 import { displayError } from "@/lib/errors"; |
43 import { pane } from "@/lib/mixins"; | 43 import { pane } from "@/lib/mixins"; |
44 import layers from "@/components/map/layers"; | 44 import { layerFactory } from "@/components/map/layers"; |
45 import "ol/ol.css"; | 45 import "ol/ol.css"; |
46 | 46 |
47 /* for the sake of debugging */ | 47 /* for the sake of debugging */ |
48 /* eslint-disable no-console */ | 48 /* eslint-disable no-console */ |
49 export default { | 49 export default { |
61 ...mapState("bottlenecks", ["selectedSurvey"]), | 61 ...mapState("bottlenecks", ["selectedSurvey"]), |
62 ...mapState("fairwayprofile", ["additionalSurvey"]), | 62 ...mapState("fairwayprofile", ["additionalSurvey"]), |
63 ...mapState("application", ["paneSetup", "paneRotate"]), | 63 ...mapState("application", ["paneSetup", "paneRotate"]), |
64 ...mapState("imports", ["selectedStretchId", "selectedSectionId"]), | 64 ...mapState("imports", ["selectedStretchId", "selectedSectionId"]), |
65 layers() { | 65 layers() { |
66 return layers(this.paneId); | 66 return layerFactory(this.paneId); |
67 }, | 67 }, |
68 hasActiveInteractions() { | 68 hasActiveInteractions() { |
69 return ( | 69 return ( |
70 this.map && | 70 this.map && |
71 this.map | 71 this.map |