changeset 810:68a39aea942a

Fairwayprofile
author Thomas Junk <thomas.junk@intevation.de>
date Thu, 27 Sep 2018 17:01:22 +0200
parents 13f80b9033c8
children 9b982e50e938
files client/src/application/stores/application.js client/src/fairway/Fairwayprofile.vue client/src/map/Maplayer.vue
diffstat 3 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/client/src/application/stores/application.js	Thu Sep 27 16:51:00 2018 +0200
+++ b/client/src/application/stores/application.js	Thu Sep 27 17:01:22 2018 +0200
@@ -62,6 +62,12 @@
     toggleSplitScreen: state => {
       state.splitsceen.active = !state.splitsceen.active;
     },
+    openSplitScreen: state => {
+      state.splitsceen.active = true;
+    },
+    closeSplitScreen: state => {
+      state.splitsceen.active = false;
+    },
     resetSidebar: state => {
       state.sidebar.iscollapsed = defaultCollapseState;
     },
--- a/client/src/fairway/Fairwayprofile.vue	Thu Sep 27 16:51:00 2018 +0200
+++ b/client/src/fairway/Fairwayprofile.vue	Thu Sep 27 17:01:22 2018 +0200
@@ -149,6 +149,8 @@
             { x: endPoint, y: -depth + this.selectedWaterLevel }
           ])
           .attr("fill", "#002AFF")
+          .attr("stroke-opacity", 0.65)
+          .attr("fill-opacity", 0.65)
           .attr("stroke", "#FFD20D")
           .attr("d", fairwayArea);
       }
--- a/client/src/map/Maplayer.vue	Thu Sep 27 16:51:00 2018 +0200
+++ b/client/src/map/Maplayer.vue	Thu Sep 27 17:01:22 2018 +0200
@@ -143,6 +143,7 @@
               );
             }
           );
+          this.$store.commit("application/openSplitScreen");
         })
         .catch(error => {
           const { status, data } = error.response;