trails/openspec/changes/journal-route-previews/specs/map-display/spec.md
Ullrich Schäfer 6aac8bd885
Add map previews to journal route and activity pages
- Route/activity list pages: map thumbnails with route drawn on OSM tiles
- Route/activity detail pages: interactive Leaflet map with zoom controls
- Server: expose GeoJSON from PostGIS via ST_AsGeoJSON (simplified for lists)
- RouteMapThumbnail component: shared, supports thumbnail and interactive modes
- Placeholder shown for routes/activities without geometry
- Archive journal-route-previews change, sync specs

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-04 09:42:07 +01:00

480 B

MODIFIED Requirements

Requirement: Map components used in journal app

The @trails-cool/map package's MapView and RouteLayer components SHALL be used in the journal app for route previews, in addition to the planner.

Scenario: Journal uses shared map components

  • WHEN the journal renders a route map preview or detail map
  • THEN it uses MapView and RouteLayer from @trails-cool/map
  • AND no map code is duplicated between planner and journal