openstreetmap-tools/web/static
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
..
app.js Avoid map zoom-out when navigating between routes 2026-02-27 19:18:05 +00:00
favicon.svg Add web frontend and refactor core to use OsmError 2026-02-27 18:59:21 +00:00
style.css Add web frontend and refactor core to use OsmError 2026-02-27 18:59:21 +00:00