Skip to content

Restore 2018 tract map layer for SDOH and internet variables - #407

Merged
ywkim312 merged 1 commit into
mainfrom
403-data-missing-in-explorer-new-issue
Jul 30, 2026
Merged

ywkim312 merged 1 commit into
mainfrom
403-data-missing-in-explorer-new-issue

Conversation

@ywkim312

Copy link
Copy Markdown
Collaborator

Summary

  • Re-enable US Tracts (2018) Mapbox tiles in the explorer alongside US Tracts (2020)
  • Update build_map_config so table CSVs attach to the matching tract vintage (not a single shared tract layer)
  • Rebuild explorer/config/sources.json (S3 map CSVs uploaded)

Fixes #403

Why this broke

In May 2025 the explorer switched its only “US Tracts” layer from 2018 tiles to 2020 tiles (use new 2020 tilesets for explorer).

SDOH / Limited Mobility (LimMobInd, etc.) and internet access (NoIntP) still use 2018-keyed HEROP_IDs (tract-sdoh-2014, tract-2019 → geo-2018-tract). Those CSVs were then joined onto 2020 tract geometry, so roughly ~24% of tracts had no match and looked blank / “missing,” even though the data files were fine.

build_map_config only kept one explorer geodata source per summary level, so 2018 tract geography could not appear on the map at all.

What this PR does

  • Adds explorer_config back on geo-2018-tract (tiles herop-lab.0eeozlm3) as US Tracts (2018)
  • Renames the 2020 layer to US Tracts (2020) (same tiles as before)
  • Allows multiple tract vintages in sources.json and routes each table to the correct layer

Selecting Limited Mobility / related SDOH should use Tracts (2018); 2020/2025 variables stay on Tracts (2020).

Test plan

  • Local or production map: Limited Mobility Index fills tracts (not mostly blank)
  • Internet access % at tract level looks complete on Tracts (2018)
  • A 2025 tract variable (e.g. MoudTyp / MetTmDr2) still works on Tracts (2020)
  • Geography pills show both Tracts (2018) and Tracts (2020) when relevant

@ywkim312 ywkim312 linked an issue Jul 27, 2026 that may be closed by this pull request
@netlify

netlify Bot commented Jul 27, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for oeps ready!

Name Link
🔨 Latest commit b45552b
🔍 Latest deploy log https://app.netlify.com/projects/oeps/deploys/6a67c0c7a07413000912cb8e
😎 Deploy Preview https://deploy-preview-407--oeps.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@ywkim312
ywkim312 requested a review from Makosak July 27, 2026 20:34
@ywkim312 ywkim312 self-assigned this Jul 27, 2026

@Makosak Makosak left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Elegant fix!

@ywkim312
ywkim312 merged commit 0049c58 into main Jul 30, 2026
6 checks passed
@ywkim312
ywkim312 deleted the 403-data-missing-in-explorer-new-issue branch July 30, 2026 19:45
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.

Data missing in explorer; new issue

2 participants