Skip to content

Commit

Permalink
fix: minor config fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
lubojr committed Sep 17, 2024
1 parent 8265bf7 commit 96da407
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/src/components/IndicatorTimeSelection.vue
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ export default {
return this.compareActive;
},
showTimeSlider() {
return this.appConfig.id === 'gtif';
return this.appConfig.id === 'gtif' || this.indicator?.showTimeSlider;
},
},
created() {
Expand Down
13 changes: 9 additions & 4 deletions app/src/config/ideas_config.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ const IDEASConfigs = [
time: ['2020', '2040', '2060', '2080', '2100', '2120', '2150'],
yAxis: 'flooding',
display: {
...defaultLayersDisplayIdeasSh,
enableCustomAreaStatistics: true,
overlayLayers: [
overlayLayers.powerOpenInfrastructure,
Expand Down Expand Up @@ -511,10 +512,10 @@ const IDEASConfigs = [
display: true,
label: 'Road Pressure Indicator; 0 is high, 5 is low',
id: 'road_pressure_indicator',
min: 0,
min: -1,
max: 5,
step: 0.25,
range: [0, 5],
range: [-1, 5],
},
species_count_quintile: {
display: true,
Expand All @@ -537,6 +538,7 @@ const IDEASConfigs = [
},
},
display: {
...defaultLayersDisplayIdeasSh,
protocol: 'cog',
id: 'IND2_1',
sources: [
Expand Down Expand Up @@ -658,6 +660,7 @@ const IDEASConfigs = [
indicatorObject: {
indicator: 'IND2_1_minesweeper',
display: [{
...defaultLayersDisplayIdeasSh,
minesweeperOptions: {
// Board dimensions in number of hex cells
enableSpeciesDisplay: true,
Expand Down Expand Up @@ -689,6 +692,7 @@ const IDEASConfigs = [
...baseLayers.CORINE_LAND_COVER,
opacity: 0.7,
}, {
...defaultLayersDisplayIdeasSh,
...baseLayers.ESA_WORLD_COVER,
visible: true,
opacity: 0.7,
Expand Down Expand Up @@ -771,8 +775,9 @@ const IDEASConfigs = [
indicatorObject: {
indicator: 'IND3_1',
// - 1 day to ensure that data is already there
time: getDailyDates('2024-04-15', DateTime.utc().minus({ days: 1 }).toFormat('yyyy-MM-dd')),
time: getDailyDates('2024-04-15', (DateTime.utc().minus({ days: 1 })).toFormat('yyyy-MM-dd')),
display: {
...defaultLayersDisplayIdeasSh,
showTimeSlider: true,
overlayLayers: [
{
Expand Down Expand Up @@ -818,7 +823,7 @@ const IDEASConfigs = [
],
],
},
name: 'Locusts',
name: 'Suitable ecosystem for locust breeding',
customAreaFeatures: true,
features: {
legendUrl: 'https://raw.githubusercontent.com/eurodatacube/eodash-assets/main/collections/IDEAS3_locust/osm_legend.png',
Expand Down

0 comments on commit 96da407

Please sign in to comment.