Mercurial > gemma
comparison client/src/components/map/styles.js @ 3457:870812d8f247
client: spuc05: implemented new data format (csv) for diagrams on map
author | Markus Kottlaender <markus@intevation.de> |
---|---|
date | Fri, 24 May 2019 15:32:47 +0200 |
parents | d0278e7399fb |
children | 71022e6bd98e |
comparison
equal
deleted
inserted
replaced
3456:ca395be62023 | 3457:870812d8f247 |
---|---|
192 feature.get("fa_critical") && | 192 feature.get("fa_critical") && |
193 feature.get("fa_data") && | 193 feature.get("fa_data") && |
194 resolution > 15 | 194 resolution > 15 |
195 ) { | 195 ) { |
196 let data = feature.get("fa_data"); | 196 let data = feature.get("fa_data"); |
197 let lnwlHeight = | 197 let lnwlHeight = (80 / 100) * data.ldc; |
198 (80 / 100) * data.ldc.find(d => d.hasOwnProperty("from")).percent; | 198 let belowThresholdHeight = (80 / 100) * data.below; |
199 let belowThresholdHeight = | 199 let betweenThresholdHeight = (80 / 100) * data.between; |
200 (80 / 100) * | 200 let aboveThresholdHeight = (80 / 100) * data.above; |
201 data.afd.find(d => d.hasOwnProperty("to") && !d.hasOwnProperty("from")) | |
202 .percent; | |
203 let betweenThresholdHeight = | |
204 (80 / 100) * | |
205 data.afd.find(d => d.hasOwnProperty("to") && d.hasOwnProperty("from")) | |
206 .percent; | |
207 let aboveThresholdHeight = | |
208 (80 / 100) * | |
209 data.afd.find(d => !d.hasOwnProperty("to") && d.hasOwnProperty("from")) | |
210 .percent; | |
211 | 201 |
212 let frame = `<rect x='0' y='0' width='32' height='84' stroke-width='0' fill='white'/>`; | 202 let frame = `<rect x='0' y='0' width='32' height='84' stroke-width='0' fill='white'/>`; |
213 let lnwl = `<rect x='2' y='${80 - | 203 let lnwl = `<rect x='2' y='${80 - |
214 lnwlHeight + | 204 lnwlHeight + |
215 2}' width='10' height='${lnwlHeight}' stroke-width='0' fill='aqua'/>`; | 205 2}' width='10' height='${lnwlHeight}' stroke-width='0' fill='aqua'/>`; |