Commit 5d3bb2ec authored by alain's avatar alain 🐙
Browse files

handle no calibrated data case better

parent 44beba7a
Pipeline #245 canceled with stages
......@@ -7,7 +7,7 @@ export const textsNL = {
status: [
"offline",
"geen recente data",
"online, maar nog geen gekalibreerde data"
"online, maar (nog) geen gekalibreerde data"
],
nodata: "geen data...",
lastMean: "laatste uurgemiddelde",
......
......@@ -83,7 +83,7 @@ class StationLayer extends CompositeLayer {
getPosition: d => this.getCoordinates(d, count, radius),
getFillColor: d => {
if(d.status === 2) { // online, but no value
let color = getColorArray(getColor(range[0], legend, (scale === 'log')))
let color = getColorArray("#2fb5bb")
color[3] = color[3] * 0.5
return color
} else if(d.mean === null || d.mean > range[1]*cuckooThreshold) { // no value or above cuckoo range
......
......@@ -6,7 +6,7 @@ class MapAttributions extends React.Component {
<div className="mapboxgl-ctrl-bottom-right">
<div className="mapboxgl-ctrl mapboxgl-ctrl-attrib">
<div className="mapboxgl-ctrl-attrib-inner">
<span>v. 14/02/2020</span>
<span>v. 28/02/2020</span>
<span><a href="https://waag.org" target="_blank" rel="noopener noreferrer">waag</a></span>
<span>© <a href="http://www.openstreetmap.org/about/" target="_blank" rel="noopener noreferrer">OpenStreetMap</a></span>
</div>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment