comparison client/src/components/fairway/AvailableFairwayDepthLNWL.vue @ 3471:48d09fb1d6c7

legend
author Thomas Junk <thomas.junk@intevation.de>
date Mon, 27 May 2019 12:03:07 +0200
parents dfa97aad1134
children a39795393c7c
comparison
equal deleted inserted replaced
3470:104c4f683c74 3471:48d09fb1d6c7
165 "selectedFairwayAvailabilityFeature", 165 "selectedFairwayAvailabilityFeature",
166 "fwLNWLData", 166 "fwLNWLData",
167 "from", 167 "from",
168 "to", 168 "to",
169 "frequency", 169 "frequency",
170 "legendLNWL", 170 "csv",
171 "csv" 171 "depthlimit1",
172 "depthlimit2",
173 "widthlimit1",
174 "widthlimit2"
172 ]), 175 ]),
176 legendLNWL() {
177 const d = [this.depthlimit1, this.depthlimit2].sort();
178 const w = [this.widthlimit1, this.widthlimit2].sort();
179 const lowerBound = [d[0], w[0]].filter(x => x).join(", ");
180 const upperBound = [d[1], w[1]].filter(x => x).join(", ");
181 return [
182 `> LDC`,
183 `< ${lowerBound}`,
184 `< ${upperBound}`,
185 `>= ${upperBound}`
186 ];
187 },
173 dataLink() { 188 dataLink() {
174 return `data:text/csv;charset=utf-8, ${encodeURIComponent(this.csv)}`; 189 return `data:text/csv;charset=utf-8, ${encodeURIComponent(this.csv)}`;
175 }, 190 },
176 csvFileName() { 191 csvFileName() {
177 return `${this.$gettext("fairwayavailabilityLNWL")}-${ 192 return `${this.$gettext("fairwayavailabilityLNWL")}-${