Skip to content

feat: maps for health boards, Wales and UK councils, plus WIMD 2025 - #3

Merged
CodeWithBehnam merged 3 commits into
mainfrom
feat/national-maps
Nov 10, 2026
Merged

CodeWithBehnam merged 3 commits into
mainfrom
feat/national-maps

Conversation

@CodeWithBehnam

Copy link
Copy Markdown
Owner

What changed

  • New maps. 174 map files, up from 84:
    • LSOA and MSOA for each of the 7 Welsh health board areas, and for all of Wales (2021).
    • Councils for Wales, England and Wales, Scotland (2011, 2021, 2026) and Northern Ireland (2021, 2026).
    • Welsh health boards (2023) and primary care clusters (2019, 2024).
    • Every new file comes as geographic, hexmap and geogrid.
  • WIMD 2025. data/wimd/wimd-2025-lsoa.csv holds the real Welsh Index of Multiple Deprivation 2025 for all 1,917 LSOAs, from DataMapWales. The dashboard can show it on any 2021 LSOA map.
  • Build. scripts/sources.ts now describes map sets (sources, areas, map types), and scripts/download.ts handles both ONS and DataMapWales.
  • Dashboard. Slicers are built from the configuration: 14 areas, 6 levels, and a data switch between the synthetic sample and WIMD 2025.
  • Docs. docs/map-files.md is a generated catalogue of every file. The README and guides cover the new maps and WIMD.

How it was checked

  • bun run typecheck
  • bun run check: all 174 map files, their images and the data files are in step, and WIMD matches the all-Wales LSOA map code for code
  • bun run site:build, and the dashboard looked right in headless Chrome (all-Wales WIMD, health board WIMD as hexmap, councils hexmap, clusters in dark mode)
  • A contact sheet of 20 new preview images, viewed in Chrome
  • 288 relative links across the README and guides resolve

Notes for the reviewer

  • ONS withdrew public access to its 20 m census boundary services on 10/11/2026. The existing Swansea and Neath Port Talbot files are unchanged, but can only be rebuilt from a local cache until ONS restores access. The new health board and all-Wales maps use the public ONS 200 m layers.
  • The all-Wales LSOA file has 1,917 shapes, above Power BI's 1,500. It is kept for the dashboard and other tools, and the docs point Power BI users to the health board files.
  • Preview images were regenerated with a three-colour palette, so every existing image changed.
  • Nothing was tested in Power BI itself.

Behnam added 3 commits November 10, 2026 16:49
…D 2025

The build is now driven by map sets: each source layer is cut to each area in each map type. New files cover LSOA and MSOA for every Welsh health board area and for all of Wales, councils for Wales, England and Wales, Scotland and Northern Ireland (2011, 2021, 2026), Welsh health boards (2023) and primary care clusters (2019, 2024). 174 map files, up from 84.

Adds the real Welsh Index of Multiple Deprivation 2025 from DataMapWales, sample data for every level and year, and a generated catalogue of all files.

ONS withdrew public access to its 20 m census boundary services on 10/11/2026, so the health board and all-Wales maps use the public 200 m layers. Preview images now use three colours assigned so neighbouring groups differ.
…D 2025

The area, level, version, map type, data and measure slicers now come from the map sets, and any requested view resolves to one that exists. LSOA 2021 maps can switch from the synthetic sample to the real WIMD 2025 ranks.
@CodeWithBehnam
CodeWithBehnam merged commit c61fc66 into main Nov 10, 2026
1 check passed
@CodeWithBehnam
CodeWithBehnam deleted the feat/national-maps branch November 10, 2026 16:56
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.

1 participant