comparison client/src/components/identify/formatter.js @ 3636:89a39783c20a

Add forecast and measurement quality parameters to sections and stretches
author Tom Gottfried <tom@intevation.de>
date Tue, 11 Jun 2019 20:32:25 +0200
parents 6d6577a87963
children bb66e144dece
comparison
equal deleted inserted replaced
3635:6d6577a87963 3636:89a39783c20a
56 }, 56 },
57 waterway_profiles: { 57 waterway_profiles: {
58 label: "Waterway Profile" 58 label: "Waterway Profile"
59 }, 59 },
60 stretches_geoserver: { 60 stretches_geoserver: {
61 label: "Stretch" 61 label: "Stretch",
62 props: p => {
63 if (p.key === "gm_measuredate") p.key = "Min. Gauge Waterlevel Date";
64 if (p.key === "gm_n_14d") p.key = "Min. G.W. Count in Last 14 Days";
65
66 return p;
67 }
62 }, 68 },
63 sections_geoserver: { 69 sections_geoserver: {
64 label: "Section" 70 label: "Section",
71 props: p => {
72 if (p.key === "gm_measuredate") p.key = "Min. Gauge Waterlevel Date";
73 if (p.key === "gm_n_14d") p.key = "Min. G.W. Count in Last 14 Days";
74
75 return p;
76 }
65 }, 77 },
66 gauges_geoserver: { 78 gauges_geoserver: {
67 label: "Gauge", 79 label: "Gauge",
68 props: p => { 80 props: p => {
69 if (p.key === "gm_measuredate") p.key = "Latest Waterlevel Date"; 81 if (p.key === "gm_measuredate") p.key = "Latest Waterlevel Date";