Repository navigation
Map: interactive Leaflet map with satellite and street tiles - #93
Merged
Merged
Conversation
- 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>
Merged
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
InteractiveMapcomponent (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 SVGMooreaMapshows until Leaflet loads, so the page still works without JS.img-srcallowsserver.arcgisonline.comandtile.openstreetmap.orgonly. Playwright stubs tile requests so the tests don't depend on those hosts.MooreaMapnow 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