Skip to content

feat: new worldpop global2 layer sources [DHIS2-20774]#3608

Open
BRaimbault wants to merge 21 commits intomasterfrom
feat/worldpop-global2
Open

feat: new worldpop global2 layer sources [DHIS2-20774]#3608
BRaimbault wants to merge 21 commits intomasterfrom
feat/worldpop-global2

Conversation

@BRaimbault
Copy link
Collaborator

@BRaimbault BRaimbault commented Jan 20, 2026

Implements DHIS2-20774

Description

References: https://github.com/wpgp/g2onGEE and https://docs.google.com/document/d/1vX0Pf6OnLwu9cD51lNUIo7If-A0daRwmRKC2lGMDcX4/edit?usp=sharing.

  • Update list of available layers: src/constants/earthEngineLayers/index.js

  • Update population layer sources:

    • Now legacy: src/constants/earthEngineLayers/legacy/population_age_sex_Worldpop.js
    • Now legacy: src/constants/earthEngineLayers/legacy/population_total_Worldpop.js
    • New default: src/constants/earthEngineLayers/population_age_sex_Worldpop-Global2.js
    • New default: src/constants/earthEngineLayers/population_total_Worldpop-Global2.js
  • Update layerSourcesVisibility list in datastore if it contains population datasets: src/components/app/useLoadDataStore.js

  • Select current year (if available) by default instead of most recent: src/components/edit/earthEngine/PeriodSelect.jsx
    Note: The two new layers have years stored as String in one Number in the other, which caused problems with switching and carrying the year over to the new config.

  • Update tests to use new WorldPop dataset: src/util/__tests__/layerSources.spec.js

Minor unrelated fixes:

  • Update WebGL URL so it still displays properly when uri encoded: src/components/map/MapApi.js
  • Fix issue with year parsing for some daily GEE datasets: src/util/earthEngine.js
  • Get latest maps-gl version.

Screenshots

image

Data tab below ↓
image

Period tab below ↓
image


Quality checklist

Add N/A to items that are not applicable.

  • Dashboard tested
  • Cypress and/or Jest tests added/updated
  • Docs added
  • d2-ci dependencies replaced (maps-gl)
  • Tester approved (name)

Testing

@dhis2-bot
Copy link
Contributor

dhis2-bot commented Jan 20, 2026

🚀 Deployed on https://pr-3608.maps.netlify.dhis2.org

@dhis2-bot dhis2-bot temporarily deployed to netlify January 20, 2026 15:42 Inactive
@BRaimbault BRaimbault changed the title feat: new worldpop global2 layer sources feat: new worldpop global2 layer sources [DHIS2-20774] Jan 20, 2026
@dhis2-bot dhis2-bot temporarily deployed to netlify January 23, 2026 18:14 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify January 28, 2026 08:27 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify January 30, 2026 10:05 Inactive
@BRaimbault BRaimbault changed the base branch from master to fix/DHIS2-20425 January 30, 2026 11:57
@dhis2-bot dhis2-bot temporarily deployed to netlify January 30, 2026 11:59 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify January 30, 2026 12:41 Inactive
Base automatically changed from fix/DHIS2-20425 to master February 3, 2026 10:04
@dhis2-bot dhis2-bot temporarily deployed to netlify February 3, 2026 13:06 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify February 5, 2026 09:57 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify February 5, 2026 10:54 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify February 5, 2026 11:14 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify February 5, 2026 15:12 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify February 6, 2026 11:16 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify February 6, 2026 14:11 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify February 6, 2026 14:13 Inactive
Copy link
Collaborator Author

@BRaimbault BRaimbault left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ready for review.

@BRaimbault BRaimbault marked this pull request as ready for review February 6, 2026 14:18
@dhis2-bot dhis2-bot temporarily deployed to netlify February 6, 2026 14:33 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify February 6, 2026 15:31 Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants