Mercurial > gemma
comparison client/src/components/map/styles.js @ 4279:30f26bf7ff24
Reordering of elements
In order to improve user experience the configuration of avail, forceast vs. real and accuracy was
changed in such a way, that it now mirrors the optics of the displayed triangle.
The order in the identify tool was changed accordingly 1) avail 2) forcast vs. real 3) accuracy
"Currency" was cleaned up to "recency"
author | Thomas Junk <thomas.junk@intevation.de> |
---|---|
date | Thu, 29 Aug 2019 15:04:02 +0200 |
parents | 1d4e588a61df |
children | be7c23af783c |
comparison
equal
deleted
inserted
replaced
4278:1d4e588a61df | 4279:30f26bf7ff24 |
---|---|
306 if ( | 306 if ( |
307 map.getLayer("BOTTLENECKS").getVisible() && | 307 map.getLayer("BOTTLENECKS").getVisible() && |
308 feature.getId().indexOf("bottlenecks") > -1 | 308 feature.getId().indexOf("bottlenecks") > -1 |
309 ) { | 309 ) { |
310 let colorUniformTriangle = | 310 let colorUniformTriangle = |
311 recencyColorCodes[classifications.surveyCurrency(feature)]; | 311 recencyColorCodes[classifications.surveyRecency(feature)]; |
312 let frame = `<polyline points='16,0 32,28 0,28 16,0' stroke='grey' stroke-width='1' fill='${colorUniformTriangle}'/>`; | 312 let frame = `<polyline points='16,0 32,28 0,28 16,0' stroke='grey' stroke-width='1' fill='${colorUniformTriangle}'/>`; |
313 let svg = `data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='28'><g>${frame}</g></svg>`; | 313 let svg = `data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='28'><g>${frame}</g></svg>`; |
314 s.push( | 314 s.push( |
315 new Style({ | 315 new Style({ |
316 geometry: geom, | 316 geometry: geom, |