Main specs (7): Converted from delta format (## ADDED/MODIFIED) to proper main spec format (## Purpose + ## Requirements) Changes (3): Added missing spec files for e2e-test-reorganization, journal-poi-details, and mobile-nearby-sync Mobile testing: Added missing scenario for "No Vitest" requirement Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1.2 KiB
1.2 KiB
Purpose
Renderer-agnostic map configuration data (tile sources, route color palettes, POI categories) usable by any rendering engine without DOM or library dependencies.
Requirements
Requirement: Renderer-agnostic map definitions
The @trails-cool/map-core package SHALL provide map configuration data usable by any rendering engine.
Scenario: Tile source definitions
- WHEN a renderer needs tile layer URLs
- THEN
map-coreprovides base layer and overlay layer configs with URL templates, attribution, and zoom limits
Scenario: Route color palettes
- WHEN a renderer needs to color a route by surface, highway, grade, or other mode
- THEN
map-coreprovides the color mapping and color functions for all supported modes
Scenario: POI category definitions
- WHEN a renderer needs POI icons, colors, and Overpass queries
- THEN
map-coreprovides the full category configuration
Requirement: No rendering dependencies
The package SHALL have zero dependencies on any rendering library (Leaflet, MapLibre, React, DOM).
Scenario: Import in any environment
- WHEN
map-coreis imported in Node.js, a browser, or React Native - THEN it works without errors — no DOM APIs, no rendering side effects