- 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>
13 lines
649 B
Markdown
13 lines
649 B
Markdown
## MODIFIED Requirements
|
|
|
|
### Requirement: Route data includes geometry for rendering
|
|
Route and activity loaders SHALL return GeoJSON geometry when available.
|
|
|
|
#### Scenario: Route list returns simplified geometry
|
|
- **WHEN** the routes list loader runs
|
|
- **THEN** each route includes a `geojson` field containing the geometry as a GeoJSON string
|
|
- **AND** the geometry is simplified server-side via `ST_Simplify()` for list page performance
|
|
|
|
#### Scenario: Route detail returns full geometry
|
|
- **WHEN** the route detail loader runs and the route has geometry
|
|
- **THEN** the route includes a `geojson` field with the full-resolution GeoJSON geometry
|