Commit d2b2db85 authored by Matija Obreza's avatar Matija Obreza

Merge branch 'future-maps' into 'master'

Map layers for future (2050) climate

See merge request genesys-pgr/genesys-ui!229
parents 63ce0ac2 940a1641
......@@ -468,6 +468,24 @@
"tmean": "Mean temperature [°C]",
"tmax": "Maximum temperature [°C]"
},
"rcp26": {
"diff1": "2050 RCP26 Change in temperature [°C]",
"bio1": "2050 RCP26 Annual mean temperature [°C]",
"bio5": "2050 RCP26 Max temperature of warmest month [°C]",
"bio6": "2050 RCP26 Min temperature of coldest month [°C]",
"bio12": "2050 RCP26 Annual precipitation [mm]",
"bio13": "2050 RCP26 Precipitation of wettest month [mm]",
"bio14": "2050 RCP26 Precipitation of driest month [mm]"
},
"rcp85": {
"diff1": "2050 RCP85 Change in temperature [°C]",
"bio1": "2050 RCP85 Annual mean temperature [°C]",
"bio5": "2050 RCP85 Max temperature of warmest month [°C]",
"bio6": "2050 RCP85 Min temperature of coldest month [°C]",
"bio12": "2050 RCP85 Annual precipitation [mm]",
"bio13": "2050 RCP85 Precipitation of wettest month [mm]",
"bio14": "2050 RCP85 Precipitation of driest month [mm]"
},
"month": {
"1": "Jan",
"2": "Feb",
......
......@@ -119,6 +119,24 @@
"tmean": "Mean temperature [°C]",
"tmax": "Maximum temperature [°C]"
},
"rcp26": {
"diff1": "2050 RCP26 Change in temperature [°C]",
"bio1": "2050 RCP26 Annual mean temperature [°C]",
"bio5": "2050 RCP26 Max temperature of warmest month [°C]",
"bio6": "2050 RCP26 Min temperature of coldest month [°C]",
"bio12": "2050 RCP26 Annual precipitation [mm]",
"bio13": "2050 RCP26 Precipitation of wettest month [mm]",
"bio14": "2050 RCP26 Precipitation of driest month [mm]"
},
"rcp85": {
"diff1": "2050 RCP85 Change in temperature [°C]",
"bio1": "2050 RCP85 Annual mean temperature [°C]",
"bio5": "2050 RCP85 Max temperature of warmest month [°C]",
"bio6": "2050 RCP85 Min temperature of coldest month [°C]",
"bio12": "2050 RCP85 Annual precipitation [mm]",
"bio13": "2050 RCP85 Precipitation of wettest month [mm]",
"bio14": "2050 RCP85 Precipitation of driest month [mm]"
},
"month": {
"1": "Jan",
"2": "Feb",
......
......@@ -19,13 +19,26 @@ class MapLayer {
}
const layerNames = ['bio1', 'bio5', 'bio6', 'bio12', 'bio13', 'bio14'];
const futureLayers = ['bio1', 'diff1', 'bio12' ]; // 'bio5', 'bio6', 'bio13', 'bio14'
export const AVAILABLE_LAYERS = layerNames.map((layerName) => ({
export const AVAILABLE_LAYERS = [ ...layerNames.map((layerName) => ({
...new MapLayer(),
name: layerName,
title: `accessions.climate.${ layerName }`,
legendUrl: `https://a.static.genesys-pgr.org/worldclim1.4/${ layerName }/legend.png`,
url: `https://{s}.static.genesys-pgr.org/worldclim1.4/${ layerName }/{z}/{x}/{y}.png`,
}));
})), ...futureLayers.map((layerName) => ({
...new MapLayer(),
name: `rcp26.${layerName}`,
title: `accessions.climate.rcp26.${ layerName }`,
legendUrl: `https://a.static.genesys-pgr.org/worldclim1.4/future/rcp26/${ layerName }/legend.png`,
url: `https://{s}.static.genesys-pgr.org/worldclim1.4/future/rcp26/${ layerName }/{z}/{x}/{y}.png`,
})), ...futureLayers.map((layerName) => ({
...new MapLayer(),
name: `rcp85.${layerName}`,
title: `accessions.climate.rcp85.${ layerName }`,
legendUrl: `https://a.static.genesys-pgr.org/worldclim1.4/future/rcp85/${ layerName }/legend.png`,
url: `https://{s}.static.genesys-pgr.org/worldclim1.4/future/rcp85/${ layerName }/{z}/{x}/{y}.png`,
}))];
export default MapLayer;
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