New renderer-agnostic package with zero dependencies: - Tile configs (base layers, overlay layers) - Color palettes (surface, highway, smoothness, tracktype, cycleway, bikeroute, elevation, maxspeed) — 8 color maps + 3 color functions - POI category definitions (9 categories with Overpass queries, icons, colors, profile mappings) - Z-index layering constants - Snap distance constant Updated 15 consuming files to import from @trails-cool/map-core. Deleted poi-categories.ts and z-index.ts from the Planner (fully moved). packages/map re-exports tile configs from map-core for backwards compat. All 117 tests pass, no user-facing changes. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
13 lines
455 B
TypeScript
13 lines
455 B
TypeScript
/**
|
|
* Leaflet marker z-index offsets for consistent layering.
|
|
* Higher values render on top of lower values.
|
|
*
|
|
* Rendering order (bottom to top):
|
|
* POI markers -> cursor markers -> ghost waypoint -> waypoint markers -> highlight dot
|
|
*/
|
|
export const Z_CURSOR = -1000;
|
|
export const Z_GHOST_WAYPOINT = -100;
|
|
export const Z_WAYPOINT = 1000;
|
|
export const Z_POI_MARKER = 900;
|
|
export const Z_WAYPOINT_HIGHLIGHTED = 1600;
|
|
export const Z_HIGHLIGHT = 2000;
|