- 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>
480 B
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
MapViewandRouteLayerfrom@trails-cool/map - AND no map code is duplicated between planner and journal