changeset 3471:48d09fb1d6c7

legend
author Thomas Junk <thomas.junk@intevation.de>
date Mon, 27 May 2019 12:03:07 +0200
parents 104c4f683c74
children 71022e6bd98e
files client/src/components/fairway/AvailableFairwayDepthLNWL.vue
diffstat 1 files changed, 17 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/client/src/components/fairway/AvailableFairwayDepthLNWL.vue	Mon May 27 11:42:14 2019 +0200
+++ b/client/src/components/fairway/AvailableFairwayDepthLNWL.vue	Mon May 27 12:03:07 2019 +0200
@@ -167,9 +167,24 @@
       "from",
       "to",
       "frequency",
-      "legendLNWL",
-      "csv"
+      "csv",
+      "depthlimit1",
+      "depthlimit2",
+      "widthlimit1",
+      "widthlimit2"
     ]),
+    legendLNWL() {
+      const d = [this.depthlimit1, this.depthlimit2].sort();
+      const w = [this.widthlimit1, this.widthlimit2].sort();
+      const lowerBound = [d[0], w[0]].filter(x => x).join(", ");
+      const upperBound = [d[1], w[1]].filter(x => x).join(", ");
+      return [
+        `>  LDC`,
+        `< ${lowerBound}`,
+        `< ${upperBound}`,
+        `>= ${upperBound}`
+      ];
+    },
     dataLink() {
       return `data:text/csv;charset=utf-8, ${encodeURIComponent(this.csv)}`;
     },