Skip to content

Map: interactive Leaflet map with satellite and street tiles - #93

Merged
Luen merged 1 commit into
mainfrom
interactive-map
Nov 3, 2026
Merged

Luen merged 1 commit into
mainfrom
interactive-map

Conversation

@Luen

@Luen Luen commented Nov 2, 2026

Copy link
Copy Markdown
Collaborator

What

  • New InteractiveMap component (Leaflet, loaded lazily on the client). Base maps: Esri satellite imagery and OpenStreetMap streets. Point layers can be toggled; popups link to nursery profiles. The server-rendered SVG MooreaMap shows until Leaflet loads, so the page still works without JS.
  • /nurseries: full-width map with circles sized by catch rate (CPUE), plus an optional layer of adult blacktip capture spots from the adult datasheet.
  • /nurseries/[site]: map zoomed in on the site, with the other nurseries for context.
  • CSP img-src allows server.arcgisonline.com and tile.openstreetmap.org only. Playwright stubs tile requests so the tests don't depend on those hosts.
  • MooreaMap now registers its points for Download CSV. Tile attribution added to the README, About page and AGENTS.md.

Checks

pnpm lint, pnpm check, pnpm test (48 passed), pnpm build, pnpm test:e2e (29 passed, including axe in light and dark). Also checked both maps by hand against the real data.

Closes #29

🤖 Generated with Claude Code

- InteractiveMap component: lazy-loads Leaflet, satellite (Esri) and
  OpenStreetMap base layers, toggleable point layers, popups linking to
  nursery profiles; the SSR SVG MooreaMap stays as the pre-hydration fallback.
- Nurseries page: full-width map with CPUE-sized nursery circles and an
  optional layer of adult blacktip capture spots.
- Nursery profile: map zoomed on the site, other nurseries as context.
- CSP img-src allows the two tile hosts; e2e stubs tile requests.
- MooreaMap registers its points as CSV; attribution in README/About/AGENTS.

Closes #29

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Luen
Luen merged commit 3e3d49c into main Nov 3, 2026
5 checks passed
@Luen
Luen deleted the interactive-map branch November 3, 2026 00:42
@Luen Luen mentioned this pull request Nov 3, 2026
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.

Map: interactive tiled map (Leaflet/MapLibre)

1 participant