openstreetmap-tools/web
Edward Betts f6dd68ed75 Avoid map zoom-out when navigating between routes
Route links (route_master list, other directions) now intercept clicks
and call loadRoute() + history.pushState() instead of doing a full page
reload, so the map stays at its current position and zooms smoothly into
the new route. Ctrl/cmd/middle-click still opens in a new tab via href.

Introduce currentRelationId (mutable) to track the loaded relation so
loadSegment() uses the correct ID after in-page navigation.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-27 19:18:05 +00:00
..
static Avoid map zoom-out when navigating between routes 2026-02-27 19:18:05 +00:00
templates Add API docs page and update README/AGENTS 2026-02-27 19:03:37 +00:00
app.py Add API docs page and update README/AGENTS 2026-02-27 19:03:37 +00:00