Skip to content

Commit

Permalink
Adding support for Cambodia
Browse files Browse the repository at this point in the history
  • Loading branch information
gislawill committed Oct 7, 2024
1 parent b0780fa commit 7f401bb
Show file tree
Hide file tree
Showing 2 changed files with 72 additions and 0 deletions.
69 changes: 69 additions & 0 deletions frontend/src/config/cambodia/layers.json
Original file line number Diff line number Diff line change
Expand Up @@ -1988,5 +1988,74 @@
}
],
"legend_text": "Index meausring a household’s social and economic capacities and resilience to cope with, adapt to and recover from the floods and droughts. Aggregated at Commune level"
},
"google_flood_status_at_gauges": {
"title": "Current Flood Status (Google AI)",
"type": "point_data",
"hex_display": false,
"data": "https://prism-api.ovio.org/google-floods/gauges/?region_codes=KH",
"data_field": "severity",
"data_field_type": "text",
"opacity": 0.9,
"legend_text": "Current flood status at verified gauges. Visit [Google Research](https://sites.research.google/floodforecasting/) about Google's AI Forecasting models.",
"legend": [
{ "label": "Extreme", "value": "EXTREME", "color": "#a70606" },
{ "label": "Danger", "value": "SEVERE", "color": "#ea250a" },
{ "label": "Warning", "value": "ABOVE_NORMAL", "color": "#fba705" },
{ "label": "Normal", "value": "NO_FLOODING", "color": "#089180" },
{ "label": "Unknown", "value": "UNKNOWN", "color": "#858585" }
],
"feature_info_title": {
"siteName": {
"type": "text",
"template": "Site: {{siteName}}",
"visibility": "if-defined"
},
"riverName": {
"type": "text",
"template": "River: {{riverName}}",
"visibility": "if-defined"
},
"gaugeId": {
"type": "text",
"template": "Gauge ID: {{gaugeId}}",
"visibility": "if-defined"
}
},
"feature_info_props": {
"siteName": {
"type": "text",
"dataTitle": "Site",
"visibility": "if-defined"
},
"river": {
"type": "text",
"dataTitle": "River",
"visibility": "if-defined"
},
"severity": {
"type": "labelMapping",
"dataTitle": "Flood Status",
"labelMap": {
"EXTREME": "Extreme",
"SEVERE": "Danger",
"ABOVE_NORMAL": "Warning",
"NO_FLOODING": "Normal",
"UNKNOWN": "Unknown"
}
},
"gaugeId": {
"type": "text",
"dataTitle": "Gauge ID"
},
"source": {
"type": "text",
"dataTitle": "Data source"
},
"issuedTime": {
"type": "date",
"dataTitle": "Status issued"
}
}
}
}
3 changes: 3 additions & 0 deletions frontend/src/config/cambodia/prism.json
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,9 @@
},
"field_reports": {
"field_reports": ["flood_report", "drought_report", "kh_incident_report"]
},
"flooding": {
"flood_status": ["google_flood_status_at_gauges"]
}
}
}

0 comments on commit 7f401bb

Please sign in to comment.