Trail view: map + stats first, Komoot-style route info (surface, way types) #51

Closed
opened 2026-11-05 16:18:53 +00:00 by maximus · 1 comment
Member

In the trail view (e.g. /trail/view/@jmz/00378da39b159f8), the map and the trail stats should be the most prominent elements. The description matters less, especially since it is usually empty: collapse or hide it when empty, and move it below the map and stats otherwise.

More route information, Komoot-style

Show a richer breakdown of the route, similar to Komoot's tour page:

  • Surface breakdown (asphalt, gravel, unpaved, path, …) as a stacked bar, with distance per type and highlighting on the map.
  • Way types (road, track, path, alpine path; SAC scale / trail visibility where available).
  • Hover sync: hovering a segment highlights it on the map and the profile.
  • Possibly: highest/lowest point, steepest section, an elevation profile coloured by surface or gradient (shares the work with the profile-colouring item in the trail-creation ticket).

Data source to be decided: the router's per-segment way tags (BRouter/Valhalla, see #5) for routed trails, or an OSM map-match for uploaded GPX.

🤖 Generated with Claude Code

In the trail view (e.g. `/trail/view/@jmz/00378da39b159f8`), the **map and the trail stats** should be the most prominent elements. The description matters less, especially since it is usually empty: collapse or hide it when empty, and move it below the map and stats otherwise. ## More route information, Komoot-style Show a richer breakdown of the route, similar to Komoot's tour page: - [ ] **Surface breakdown** (asphalt, gravel, unpaved, path, …) as a stacked bar, with distance per type and highlighting on the map. - [ ] **Way types** (road, track, path, alpine path; SAC scale / trail visibility where available). - [ ] **Hover sync:** hovering a segment highlights it on the map and the profile. - [ ] Possibly: highest/lowest point, steepest section, an elevation profile coloured by surface or gradient (shares the work with the profile-colouring item in the trail-creation ticket). Data source to be decided: the router's per-segment way tags (BRouter/Valhalla, see #5) for routed trails, or an OSM map-match for uploaded GPX. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Author
Member

Done and live since 2026-11-05 20:28 CET:

  • Layout with map and stats first, plus route facts (highest/lowest point, steepest climb and descent, smoothed over 200 m): #56 and round 2 (#65).
  • Gradient breakdown with the signed scale (#61), and hover sync between the profile and the map.
  • Surface, way-type and SAC breakdown from server-side Valhalla trace_attributes map-matching: #62, plus the db image switch in homelab-flux #837 (wanderer-db:deploy-676a7c62). The Mercantour test trail matched 12.5 of 14.8 km: 51 % unpaved, 41 % hiking trail, 41 % T2.

Follow-ups:

  • Subcategory suggestions from SAC/surface data are in progress (#49).
  • Coverage is limited to PACA, because that is the extent of the Valhalla tiles.

🤖 Generated with Claude Code

Done and live since 2026-11-05 20:28 CET: - Layout with map and stats first, plus route facts (highest/lowest point, steepest climb and descent, smoothed over 200 m): #56 and round 2 (#65). - Gradient breakdown with the signed scale (#61), and hover sync between the profile and the map. - Surface, way-type and SAC breakdown from server-side Valhalla `trace_attributes` map-matching: #62, plus the db image switch in homelab-flux #837 (`wanderer-db:deploy-676a7c62`). The Mercantour test trail matched 12.5 of 14.8 km: 51 % unpaved, 41 % hiking trail, 41 % T2. Follow-ups: - Subcategory suggestions from SAC/surface data are in progress (#49). - Coverage is limited to PACA, because that is the extent of the Valhalla tiles. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
public/wanderer#51
No description provided.