-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
76 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
src/components/earthEngine/layers/legacy/nighttime_DMSP-OLS .js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
import i18n from '@dhis2/d2-i18n' | ||
import { EARTH_ENGINE_LAYER } from '../../../../constants/layers.js' | ||
|
||
export default { | ||
// legacy: true, // Kept for backward compability | ||
layer: EARTH_ENGINE_LAYER, | ||
format: 'ImageCollection', | ||
layerId: 'NOAA/DMSP-OLS/NIGHTTIME_LIGHTS', | ||
datasetId: 'NOAA/DMSP-OLS/NIGHTTIME_LIGHTS', | ||
name: i18n.t('Nighttime lights'), | ||
unit: i18n.t('light intensity'), | ||
description: i18n.t( | ||
'Light intensity from cities, towns, and other sites with persistent lighting, including gas flares.' | ||
), | ||
source: 'NOAA / Google Earth Engine', | ||
sourceUrl: | ||
'https://explorer.earthengine.google.com/#detail/NOAA%2FDMSP-OLS%2FNIGHTTIME_LIGHTS', | ||
periodType: 'yearly', | ||
filters: [ | ||
{ | ||
type: 'eq', | ||
arguments: ['system:index', '$1'], | ||
}, | ||
], | ||
band: 'stable_lights', | ||
mask: true, | ||
img: 'images/nighttime.png', | ||
style: { | ||
min: 0, | ||
max: 63, | ||
palette: [ | ||
'#ffffd4', | ||
'#fee391', | ||
'#fec44f', | ||
'#fe9929', | ||
'#ec7014', | ||
'#cc4c02', | ||
'#8c2d04', | ||
], // YlOrBr (ColorBrewer) | ||
}, | ||
opacity: 0.9, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,7 +37,7 @@ export default { | |
'#6baed6', | ||
'#3182bd', | ||
'#08519c', | ||
], // Blues | ||
], // Blues (ColorBrewer) | ||
}, | ||
opacity: 0.9, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,7 +54,7 @@ export default { | |
'#cb181d', | ||
'#a50f15', | ||
'#67000d', | ||
], // Reds | ||
], // Reds (ColorBrewer) | ||
}, | ||
opacity: 0.9, | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import i18n from '@dhis2/d2-i18n' | ||
import { EARTH_ENGINE_LAYER } from '../../../constants/layers.js' | ||
|
||
export default { | ||
layerType: EARTH_ENGINE_LAYER, | ||
layerId: 'WWF/HydroSHEDS/v1/FreeFlowingRivers_FeatureView', | ||
datasetId: 'WWF/HydroSHEDS/v1/FreeFlowingRivers', | ||
format: 'FeatureView', | ||
name: i18n.t('Rivers'), | ||
description: '', | ||
source: 'WWF / Google Earth Engine', | ||
style: { | ||
lineWidth: 2, | ||
color: { | ||
property: 'RIV_ORD', | ||
mode: 'linear', | ||
palette: ['08519c', '3182bd', '6baed6', 'bdd7e7', 'eff3ff'], | ||
min: 1, | ||
max: 10, | ||
}, | ||
}, | ||
opacity: 0.9, | ||
} |