Mercurial > gemma
diff client/src/components/map/Maplayer.vue @ 1394:b350b0b5cb6c
refactored fairwayprofile cross cuts
moved all profile relevant data into Fairwayprofile.vue
fixed width calculation of diagram
fix bug when switching between sounding data
fixed display/styling issue
code cleanup
author | Markus Kottlaender <markus@intevation.de> |
---|---|
date | Wed, 28 Nov 2018 11:48:45 +0100 |
parents | 553aadd97087 |
children | 4afbc615cfc2 |
line wrap: on
line diff
--- a/client/src/components/map/Maplayer.vue Wed Nov 28 11:35:14 2018 +0100 +++ b/client/src/components/map/Maplayer.vue Wed Nov 28 11:48:45 2018 +0100 @@ -49,7 +49,6 @@ /* eslint-disable no-console */ export default { name: "maplayer", - props: ["split"], data() { return { projection: "EPSG:3857" @@ -66,10 +65,11 @@ "cutTool" ]), ...mapState("bottlenecks", ["selectedSurvey"]), + ...mapState("application", ["showSplitscreen"]), mapStyle() { return { - mapfull: !this.split, - mapsplit: this.split, + mapfull: !this.showSplitscreen, + mapsplit: this.showSplitscreen, nocursor: this.hasActiveInteractions }; }, @@ -238,7 +238,7 @@ } }, watch: { - split() { + showSplitscreen() { const map = this.openLayersMap; this.$nextTick(() => { map && map.updateSize();