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>
23 lines
795 B
TypeScript
23 lines
795 B
TypeScript
export type { TileLayerConfig, OverlayLayerConfig } from "./tiles.ts";
|
|
export { baseLayers, overlayLayers } from "./tiles.ts";
|
|
|
|
export {
|
|
SURFACE_COLORS, DEFAULT_SURFACE_COLOR,
|
|
HIGHWAY_COLORS, DEFAULT_HIGHWAY_COLOR,
|
|
SMOOTHNESS_COLORS, DEFAULT_SMOOTHNESS_COLOR,
|
|
TRACKTYPE_COLORS, DEFAULT_TRACKTYPE_COLOR,
|
|
CYCLEWAY_COLORS, DEFAULT_CYCLEWAY_COLOR,
|
|
BIKEROUTE_COLORS, DEFAULT_BIKEROUTE_COLOR,
|
|
elevationColor, routeGradeColor,
|
|
maxspeedColor,
|
|
} from "./colors/index.ts";
|
|
|
|
export type { PoiCategory } from "./poi.ts";
|
|
export { poiCategories, getCategoriesForProfile, profileOverlayDefaults } from "./poi.ts";
|
|
|
|
export {
|
|
Z_CURSOR, Z_GHOST_WAYPOINT, Z_WAYPOINT,
|
|
Z_POI_MARKER, Z_WAYPOINT_HIGHLIGHTED, Z_HIGHLIGHT,
|
|
} from "./z-index.ts";
|
|
|
|
export { SNAP_DISTANCE_METERS } from "./snap.ts";
|