project-nomad/admin/inertia/components/maps
Chris Sherwood da60c6ce9c
feat(maps): persist map view across refresh
The maps page reset to the default US-wide view on every refresh because
initialViewState was hardcoded. Save the position and zoom to localStorage
on each move-end (key nomad:map-view, matching the existing scale-unit
pattern) and restore it at mount: saved view → default. The restore is
bounds-checked so a corrupt value falls through to the default.

Replaces #815, whose branch had drifted far out of scope (56 files of
stale-base/merged-commit noise plus unrelated map-feature WIP). This is
just the persist-view improvement, ported cleanly onto current dev. The
null-island and coordinate-search parts of #815 targeted URL-param code
that never landed on dev, so they don't apply here.
2026-06-23 04:46:58 +00:00
..
CoordinateOverlay.tsx feat(maps): show map coordinates on mouse move (#786) 2026-05-20 10:16:00 -07:00
MapComponent.tsx feat(maps): persist map view across refresh 2026-06-23 04:46:58 +00:00
MarkerPanel.tsx feat(maps): add scale bar and location markers (#636) 2026-04-03 14:26:50 -07:00
MarkerPin.tsx feat(maps): add scale bar and location markers (#636) 2026-04-03 14:26:50 -07:00
ScaleUnitToggle.tsx feat(maps): show map coordinates on mouse move (#786) 2026-05-20 10:16:00 -07:00