@classic-homes/maps-core 0.7.3 → 0.7.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,10 +1,10 @@
1
- import { lightBasicStyle, darkBasicStyle } from './chunk-6WMCIBJJ.js';
2
- export { darkBasicStyle, generateBasicStyle, generateVectorStyle, getBasicStyle, lightBasicStyle } from './chunk-6WMCIBJJ.js';
3
- import { createCategoricalColorExpression } from './chunk-OVHVN7QO.js';
4
- export { DEFAULT_SIMPLIFICATION_THRESHOLDS, KEYBOARD_CONTROLS, MARKER_PROTECTION_CLASS, applyMarkerChildProtection, applyMarkerProtection, boundsToPolygon, buildRTreeIndex, buildSpatialIndex, calculateBounds, calculateCentroid, calculateZoomThresholds, clampLatitude, combineBounds, countFeaturesByType, createCategoricalColorExpression, createCircleStyle, createClusterCirclePaint, createClusterStyles, createClusterTextLayout, createContinuousColorExpression, createDynamicLODManager, createExtrusionHeightExpression, createExtrusionStyle, createFillStyle, createGeoJSONFingerprint, createHeatmapStyle, createHoverExpression, createIdleViewportManager, createInteractiveExpression, createInteractiveStatusColorExpression, createLineStyle, createLotFillStyle, createLotOutlineStyle, createPredictiveViewportManager, createRTreeViewportManager, createSelectionExpression, createStatusColorExpression, createViewportManager, createViewportQuery, createZoomExpression, decimalToDMS, deepEqual, ensureValidCoordinates, expandCluster, expandClusterToBounds, extendBounds, filterByGeometryType, filterEqual, fingerprintEqual, formatArea, formatBearing, formatBounds, formatCoordinates, formatDistance, formatFeatureProperties, formatLabel, formatPitch, formatPropertyValue, formatScale, formatZoom, generateBoundingPolygon, generateConvexHull, generateFeatureCollectionDescription, generateFeatureTable, generateKeyboardControlsDescription, generateLODData, generateLODDataWithSimplification, generateMapDescription, generateMarkerList, generateMarkersDescription, generateMoveAnnouncement, geoJSONEqual, getChangedPaintProps, getClusterBounds, getClusterChildren, getClusterExpansionZoom, getClusterLeaves, getGridNavigationIndex, getHighlightStyle, getSelectionStyle, getSimplificationToleranceForZoom, getSimplifiedFeaturesForZoom, groupFeaturesByProperty, isClusterFeature, isValidBounds, isValidLatitude, isValidLongitude, loadGeoJSON, normalizeLongitude, paintPropsEqual, queryByBounds, queryByBoundsWithStats, queryRTreeByBounds, queryRTreeByBoundsWithStats, removeMarkerProtection, resetWorkerUrlWarning, serializeFilter, simplifyFeature, simplifyFeatureCollection, simplifyFeatureCollectionWithStats, simplifyPolygon, validateBoundsArray, validateCoordinates, validateGeoJSON, warnIfWorkerUrlMissing, zoomToScale } from './chunk-OVHVN7QO.js';
5
- export { THEME_DARK, THEME_LIGHT, darkTheme, generateDarkColors, generateDarkDataColors, generateDarkTheme, generateLightColors, generateLightDataColors, generateLightTheme, getTheme, getTypography, lightTheme } from './chunk-ZGUACUEF.js';
1
+ import { lightBasicStyle, darkBasicStyle } from './chunk-Q4ISJ6FV.js';
2
+ export { darkBasicStyle, generateBasicStyle, generateVectorStyle, getBasicStyle, lightBasicStyle } from './chunk-Q4ISJ6FV.js';
3
+ import { createCategoricalColorExpression, clusterColors, nonMatchedColor } from './chunk-ZAGAADA3.js';
4
+ export { DEFAULT_SIMPLIFICATION_THRESHOLDS, KEYBOARD_CONTROLS, MARKER_PROTECTION_CLASS, applyMarkerChildProtection, applyMarkerProtection, boundaryColors, boundsToPolygon, buildRTreeIndex, buildSpatialIndex, calculateBounds, calculateCentroid, calculateZoomThresholds, clampLatitude, clusterColors, combineBounds, countFeaturesByType, createCategoricalColorExpression, createCircleStyle, createClusterCirclePaint, createClusterStyles, createClusterTextLayout, createContinuousColorExpression, createDynamicLODManager, createExtrusionHeightExpression, createExtrusionStyle, createFillStyle, createGeoJSONFingerprint, createHeatmapStyle, createHoverExpression, createIdleViewportManager, createInteractiveExpression, createInteractiveStatusColorExpression, createLineStyle, createLotFillStyle, createLotOutlineStyle, createPredictiveViewportManager, createRTreeViewportManager, createSelectionExpression, createStatusColorExpression, createViewportManager, createViewportQuery, createZoomExpression, decimalToDMS, deepEqual, ensureValidCoordinates, expandCluster, expandClusterToBounds, extendBounds, filterByGeometryType, filterEqual, fingerprintEqual, formatArea, formatBearing, formatBounds, formatCoordinates, formatDistance, formatFeatureProperties, formatLabel, formatPitch, formatPropertyValue, formatScale, formatZoom, generateBoundingPolygon, generateConvexHull, generateFeatureCollectionDescription, generateFeatureTable, generateKeyboardControlsDescription, generateLODData, generateLODDataWithSimplification, generateMapDescription, generateMarkerList, generateMarkersDescription, generateMoveAnnouncement, geoJSONEqual, getChangedPaintProps, getClusterBounds, getClusterChildren, getClusterExpansionZoom, getClusterLeaves, getGridNavigationIndex, getHighlightStyle, getSelectionStyle, getSimplificationToleranceForZoom, getSimplifiedFeaturesForZoom, groupFeaturesByProperty, isClusterFeature, isValidBounds, isValidLatitude, isValidLongitude, loadGeoJSON, markerColor, nonMatchedColor, normalizeLongitude, paintPropsEqual, queryByBounds, queryByBoundsWithStats, queryRTreeByBounds, queryRTreeByBoundsWithStats, removeMarkerProtection, resetWorkerUrlWarning, resolveDeckInterleaved, salesOfficeColor, serializeFilter, simplifyFeature, simplifyFeatureCollection, simplifyFeatureCollectionWithStats, simplifyPolygon, supportsDeckInterleaving, validateBoundsArray, validateCoordinates, validateGeoJSON, warnIfWorkerUrlMissing, zoomToScale } from './chunk-ZAGAADA3.js';
5
+ export { THEME_DARK, THEME_LIGHT, darkTheme, generateDarkColors, generateDarkDataColors, generateDarkTheme, generateLightColors, generateLightDataColors, generateLightTheme, getTheme, getTypography, lightTheme } from './chunk-KEBZDTH3.js';
6
+ import { ch } from '@classic-homes/theme-tokens';
6
7
  import { getContrastTextColor as getContrastTextColor$1 } from '@classic-homes/theme-tokens/contrast';
7
- import { colors } from '@classic-homes/theme-tokens';
8
8
 
9
9
  // src/basemaps/registry.ts
10
10
  var DEFAULT_BASEMAP = {
@@ -199,8 +199,6 @@ function resolveBasemapThumbnail(basemap, apiKeys) {
199
199
  }
200
200
  return thumbnail;
201
201
  }
202
-
203
- // src/layers/registry.ts
204
202
  var CATEGORY_META = {
205
203
  boundaries: {
206
204
  label: "Boundaries",
@@ -228,6 +226,43 @@ var CATEGORY_META = {
228
226
  order: 5
229
227
  }
230
228
  };
229
+ var ZONING_COLORS = [
230
+ "match",
231
+ ["get", "zone_type"],
232
+ "residential",
233
+ ch.collection.preamble,
234
+ "commercial",
235
+ ch.collection.fourSquare,
236
+ "industrial",
237
+ ch.sage700,
238
+ "mixed",
239
+ ch.collection.portrait,
240
+ ch.grey02
241
+ ];
242
+ var FLOOD_COLORS = [
243
+ "match",
244
+ ["get", "flood_zone"],
245
+ "A",
246
+ ch.accentTeal,
247
+ "AE",
248
+ ch.heritageTeal,
249
+ "AH",
250
+ ch.collection.classic,
251
+ "X",
252
+ ch.accentTeal100,
253
+ ch.lichen
254
+ ];
255
+ var FLOOD_OUTLINE_COLORS = [
256
+ "match",
257
+ ["get", "flood_zone"],
258
+ "A",
259
+ ch.accentTeal,
260
+ "AE",
261
+ ch.heritageTeal,
262
+ "AH",
263
+ ch.collection.classic,
264
+ ch.grey02
265
+ ];
231
266
  var SCHOOL_DISTRICTS = {
232
267
  id: "school-districts",
233
268
  name: "School Districts",
@@ -241,14 +276,18 @@ var SCHOOL_DISTRICTS = {
241
276
  style: {
242
277
  renderType: "fill",
243
278
  light: {
244
- "fill-color": "hsl(210, 80%, 60%)",
245
- "fill-opacity": 0.2,
246
- "fill-outline-color": "hsl(210, 80%, 40%)"
279
+ "fill-color": ch.collection.classic,
280
+ "fill-opacity": 0.2
247
281
  },
248
282
  dark: {
249
283
  "fill-color": "hsl(210, 70%, 50%)",
250
284
  "fill-opacity": 0.25,
251
285
  "fill-outline-color": "hsl(210, 70%, 60%)"
286
+ },
287
+ // A fill's own outline is drawn at fill-opacity (0.2: 1.39:1 on Paper),
288
+ // so the district edge is a separate full-strength Steel Navy line (8.71:1)
289
+ outline: {
290
+ light: { "line-color": ch.collection.classic, "line-width": 1 }
252
291
  }
253
292
  },
254
293
  interactive: true,
@@ -267,7 +306,7 @@ var CITY_LIMITS = {
267
306
  style: {
268
307
  renderType: "line",
269
308
  light: {
270
- "line-color": "hsl(0, 0%, 40%)",
309
+ "line-color": ch.grey01,
271
310
  "line-width": 2,
272
311
  "line-dasharray": [4, 2]
273
312
  },
@@ -293,19 +332,7 @@ var ZONING_DISTRICTS = {
293
332
  style: {
294
333
  renderType: "fill",
295
334
  light: {
296
- "fill-color": [
297
- "match",
298
- ["get", "zone_type"],
299
- "residential",
300
- "hsl(120, 50%, 70%)",
301
- "commercial",
302
- "hsl(30, 80%, 70%)",
303
- "industrial",
304
- "hsl(0, 50%, 70%)",
305
- "mixed",
306
- "hsl(270, 50%, 70%)",
307
- "hsl(0, 0%, 70%)"
308
- ],
335
+ "fill-color": ZONING_COLORS,
309
336
  "fill-opacity": 0.3
310
337
  },
311
338
  dark: {
@@ -323,15 +350,22 @@ var ZONING_DISTRICTS = {
323
350
  "hsl(0, 0%, 50%)"
324
351
  ],
325
352
  "fill-opacity": 0.35
353
+ },
354
+ // A fill's own outline is drawn at fill-opacity (0.3: 1.40 to 1.55:1 on
355
+ // Paper), so the edge is a separate full-strength line in the zone's
356
+ // colour, matching the legend swatch: Warm Jade 3.63, Tobacco 5.71,
357
+ // Moss 4.56, Aubergine 5.98, Grey 02 fallback 4.10
358
+ outline: {
359
+ light: { "line-color": ZONING_COLORS, "line-width": 1 }
326
360
  }
327
361
  },
328
362
  legend: {
329
363
  type: "categorical",
330
364
  items: [
331
- { label: "Residential", color: "hsl(120, 50%, 70%)" },
332
- { label: "Commercial", color: "hsl(30, 80%, 70%)" },
333
- { label: "Industrial", color: "hsl(0, 50%, 70%)" },
334
- { label: "Mixed Use", color: "hsl(270, 50%, 70%)" }
365
+ { label: "Residential", color: ch.collection.preamble },
366
+ { label: "Commercial", color: ch.collection.fourSquare },
367
+ { label: "Industrial", color: ch.sage700 },
368
+ { label: "Mixed Use", color: ch.collection.portrait }
335
369
  ]
336
370
  },
337
371
  interactive: true,
@@ -350,14 +384,18 @@ var PARKS = {
350
384
  style: {
351
385
  renderType: "fill",
352
386
  light: {
353
- "fill-color": "hsl(120, 60%, 50%)",
354
- "fill-opacity": 0.4,
355
- "fill-outline-color": "hsl(120, 60%, 30%)"
387
+ "fill-color": ch.collection.cadence,
388
+ "fill-opacity": 0.4
356
389
  },
357
390
  dark: {
358
391
  "fill-color": "hsl(120, 50%, 40%)",
359
392
  "fill-opacity": 0.5,
360
393
  "fill-outline-color": "hsl(120, 50%, 50%)"
394
+ },
395
+ // A fill's own outline is drawn at fill-opacity (0.4: 1.91:1 on Paper),
396
+ // so the park edge is a separate full-strength Spruce line (6.99:1)
397
+ outline: {
398
+ light: { "line-color": ch.collection.cadence, "line-width": 1 }
361
399
  }
362
400
  },
363
401
  interactive: true,
@@ -376,7 +414,7 @@ var TRAILS = {
376
414
  style: {
377
415
  renderType: "line",
378
416
  light: {
379
- "line-color": "hsl(30, 70%, 45%)",
417
+ "line-color": ch.collection.fourSquare,
380
418
  "line-width": 2,
381
419
  "line-dasharray": [2, 1]
382
420
  },
@@ -402,10 +440,10 @@ var SPORTS_FACILITIES = {
402
440
  style: {
403
441
  renderType: "circle",
404
442
  light: {
405
- "circle-color": "hsl(200, 70%, 50%)",
443
+ "circle-color": ch.collection.classic,
406
444
  "circle-radius": 6,
407
445
  "circle-stroke-width": 2,
408
- "circle-stroke-color": "hsl(200, 70%, 30%)"
446
+ "circle-stroke-color": ch.white
409
447
  },
410
448
  dark: {
411
449
  "circle-color": "hsl(200, 60%, 55%)",
@@ -430,7 +468,7 @@ var TRANSIT_ROUTES = {
430
468
  style: {
431
469
  renderType: "line",
432
470
  light: {
433
- "line-color": "hsl(270, 70%, 50%)",
471
+ "line-color": ch.collection.portrait,
434
472
  "line-width": 3
435
473
  },
436
474
  dark: {
@@ -454,7 +492,7 @@ var BIKE_LANES = {
454
492
  style: {
455
493
  renderType: "line",
456
494
  light: {
457
- "line-color": "hsl(150, 70%, 45%)",
495
+ "line-color": ch.collection.preamble,
458
496
  "line-width": 2
459
497
  },
460
498
  dark: {
@@ -478,19 +516,7 @@ var FLOOD_ZONES = {
478
516
  style: {
479
517
  renderType: "fill",
480
518
  light: {
481
- "fill-color": [
482
- "match",
483
- ["get", "flood_zone"],
484
- "A",
485
- "hsl(200, 80%, 60%)",
486
- "AE",
487
- "hsl(200, 80%, 50%)",
488
- "AH",
489
- "hsl(200, 80%, 45%)",
490
- "X",
491
- "hsl(200, 40%, 70%)",
492
- "hsl(200, 60%, 60%)"
493
- ],
519
+ "fill-color": FLOOD_COLORS,
494
520
  "fill-opacity": 0.4
495
521
  },
496
522
  dark: {
@@ -508,15 +534,20 @@ var FLOOD_ZONES = {
508
534
  "hsl(200, 50%, 45%)"
509
535
  ],
510
536
  "fill-opacity": 0.45
537
+ },
538
+ // A fill's own outline is drawn at fill-opacity (0.4), too faint to
539
+ // bound a zone, so the edge is a separate full-strength line
540
+ outline: {
541
+ light: { "line-color": FLOOD_OUTLINE_COLORS, "line-width": 1 }
511
542
  }
512
543
  },
513
544
  legend: {
514
545
  type: "categorical",
515
546
  items: [
516
- { label: "Zone A (High Risk)", color: "hsl(200, 80%, 60%)" },
517
- { label: "Zone AE (High Risk)", color: "hsl(200, 80%, 50%)" },
518
- { label: "Zone AH (High Risk)", color: "hsl(200, 80%, 45%)" },
519
- { label: "Zone X (Minimal Risk)", color: "hsl(200, 40%, 70%)" }
547
+ { label: "Zone A (High Risk)", color: ch.accentTeal },
548
+ { label: "Zone AE (High Risk)", color: ch.heritageTeal },
549
+ { label: "Zone AH (High Risk)", color: ch.collection.classic },
550
+ { label: "Zone X (Minimal Risk)", color: ch.accentTeal100 }
520
551
  ]
521
552
  },
522
553
  interactive: true,
@@ -535,7 +566,7 @@ var WATERSHEDS = {
535
566
  style: {
536
567
  renderType: "line",
537
568
  light: {
538
- "line-color": "hsl(190, 70%, 45%)",
569
+ "line-color": ch.accentTeal,
539
570
  "line-width": 2
540
571
  },
541
572
  dark: {
@@ -583,6 +614,11 @@ function resolveLayerSourceUrl(layer, apiKeys) {
583
614
  function getLayerStyleForTheme(layer, theme) {
584
615
  return theme === "dark" ? layer.style.dark : layer.style.light;
585
616
  }
617
+ var OUTLINE_LAYER_SUFFIX = "-outline";
618
+ function getOutlineStyleForTheme(layer, theme) {
619
+ if (layer.style.renderType !== "fill") return void 0;
620
+ return layer.style.outline?.[theme];
621
+ }
586
622
  function searchLayers(layers, query) {
587
623
  if (!query.trim()) {
588
624
  return layers;
@@ -1117,42 +1153,42 @@ function createPositioningCoordinator() {
1117
1153
  return new PositioningCoordinator();
1118
1154
  }
1119
1155
  var lotAvailabilityColors = {
1120
- Available: "#4caf50",
1121
- // Green - ready for sale
1122
- Future: "#795548",
1123
- // Brown - coming soon
1124
- Spec: "#FFEB3B",
1125
- // Yellow - spec home
1126
- Model: "#CE93D8",
1127
- // Lavender - model home
1128
- "Under Contract": "#81D4FA",
1129
- // Light Blue - pending sale
1130
- Sold: "#f44336",
1131
- // Red - sold
1132
- Unavailable: "#757575",
1133
- // Gray - not available
1134
- Unknown: "#757575"
1135
- // Gray - default fallback
1156
+ Available: ch.heritageTeal,
1157
+ // ready for sale (11.30)
1158
+ Future: ch.collection.fourSquare,
1159
+ // Tobacco - coming soon (5.71)
1160
+ Spec: ch.collection.preamble,
1161
+ // Warm Jade - spec home (3.63)
1162
+ Model: ch.collection.portrait,
1163
+ // Aubergine - model home (5.98)
1164
+ "Under Contract": ch.accentTeal,
1165
+ // pending sale (3.03)
1166
+ Sold: ch.grey01,
1167
+ // sold (7.19)
1168
+ Unavailable: ch.grey02,
1169
+ // not available (4.10)
1170
+ Unknown: ch.grey02
1171
+ // default fallback
1136
1172
  };
1137
1173
  var inventoryStatusColors = {
1138
- "Ready Now": "#2E7D32",
1139
- // Green - available immediately
1140
- Upcoming: "#ED6C02",
1141
- // Orange - coming soon
1142
- default: "#757575"
1143
- // Gray - unknown status
1174
+ "Ready Now": ch.heritageTeal,
1175
+ // available immediately (11.30)
1176
+ Upcoming: ch.collection.classic,
1177
+ // Steel Navy - coming soon (8.71)
1178
+ default: ch.grey02
1179
+ // unknown status (4.10)
1144
1180
  };
1145
1181
  var lotSizeColors = {
1146
- Small: "#2196f3",
1147
- // Blue
1148
- Medium: "#4caf50",
1149
- // Green
1150
- Large: "#ff9800",
1151
- // Orange
1152
- "Extra Large": "#f44336",
1153
- // Red
1154
- Unknown: "#757575"
1155
- // Gray
1182
+ Small: ch.sage600,
1183
+ // Fern (3.39)
1184
+ Medium: ch.sage700,
1185
+ // Moss (4.56)
1186
+ Large: ch.collection.cadence,
1187
+ // Spruce (6.99)
1188
+ "Extra Large": ch.heritageTeal,
1189
+ // (11.30)
1190
+ Unknown: ch.grey02
1191
+ // (4.10)
1156
1192
  };
1157
1193
  function getContrastTextColor(backgroundColor) {
1158
1194
  try {
@@ -1167,27 +1203,6 @@ function getAvailabilityColor(availability) {
1167
1203
  function getSizeColor(size) {
1168
1204
  return lotSizeColors[size] ?? lotSizeColors.Unknown;
1169
1205
  }
1170
- var clusterColors = {
1171
- small: colors.teal[500],
1172
- // #3ba4a7 - < 10 points
1173
- medium: colors.navy[700],
1174
- // #002e3f - 10-50 points
1175
- large: colors.plum[700],
1176
- // #5e2c41 - 50+ points
1177
- stroke: colors.white,
1178
- text: colors.white
1179
- };
1180
- var boundaryColors = {
1181
- fill: "#C50F22",
1182
- // Brand red
1183
- line: "#C50F22",
1184
- hoverFill: "#1976d2",
1185
- defaultFill: "#4A90E2",
1186
- hoverLine: "#1565c0",
1187
- defaultLine: "#4A90E2"
1188
- };
1189
- var salesOfficeColor = "#C50F22";
1190
- var nonMatchedColor = "#9e9e9e";
1191
1206
 
1192
1207
  // src/colors/expressions.ts
1193
1208
  var lotAvailabilityColorExpression = createCategoricalColorExpression(
@@ -1227,4 +1242,4 @@ function createMatchedColorExpression(baseColorExpression, matchedProperty = "ma
1227
1242
  ];
1228
1243
  }
1229
1244
 
1230
- export { BIKE_LANES, BUILTIN_BASEMAPS, BUILTIN_OVERLAY_LAYERS, CATEGORY_META, CITY_LIMITS, CLASSIC_DARK, CLASSIC_LIGHT, DEFAULT_BASEMAP, EDGE_MARGIN, FLOOD_ZONES, FREE_BASEMAPS, MAPTILER_BASIC, MAPTILER_OUTDOOR, MAPTILER_SATELLITE, MAPTILER_STREETS, OSM_STANDARD, PARKS, PRIMARY_BASEMAPS, PRIORITY_ORDER, PositioningCoordinator, SATELLITE_BASEMAP, SCHOOL_DISTRICTS, SPORTS_FACILITIES, STACK_GAP, STADIA_ALIDADE_DARK, STADIA_ALIDADE_SMOOTH, STADIA_STAMEN_TERRAIN, STADIA_STAMEN_TONER, STADIA_STAMEN_WATERCOLOR, TOPO_BASEMAP, TRAILS, TRANSIT_ROUTES, WATERSHEDS, ZONING_DISTRICTS, Z_INDEX_LAYERS, boundaryColors, clusterColorExpression, clusterColors, createInitialLayerStates, createMatchedColorExpression, createPositioningCoordinator, getAvailabilityColor, getAvailableBasemaps, getContrastTextColor, getLayerCategories, getLayerStatesArray, getLayerStyleForTheme, getLayersByCategory, getLayersWithErrors, getSizeColor, getVisibleLayerIds, groupLayersByCategory, hideAllLayers, inventoryStatusColorExpression, inventoryStatusColors, isAnyLayerLoading, lotAvailabilityColorExpression, lotAvailabilityColors, lotSizeColorExpression, lotSizeColors, nonMatchedColor, reorderLayers, resolveBasemapStyle, resolveBasemapThumbnail, resolveLayerSourceUrl, salesOfficeColor, searchLayers, setLayerError, setLayerLoading, setLayerOpacity, showAllLayers, toggleLayerVisibility, updateLayerState };
1245
+ export { BIKE_LANES, BUILTIN_BASEMAPS, BUILTIN_OVERLAY_LAYERS, CATEGORY_META, CITY_LIMITS, CLASSIC_DARK, CLASSIC_LIGHT, DEFAULT_BASEMAP, EDGE_MARGIN, FLOOD_ZONES, FREE_BASEMAPS, MAPTILER_BASIC, MAPTILER_OUTDOOR, MAPTILER_SATELLITE, MAPTILER_STREETS, OSM_STANDARD, OUTLINE_LAYER_SUFFIX, PARKS, PRIMARY_BASEMAPS, PRIORITY_ORDER, PositioningCoordinator, SATELLITE_BASEMAP, SCHOOL_DISTRICTS, SPORTS_FACILITIES, STACK_GAP, STADIA_ALIDADE_DARK, STADIA_ALIDADE_SMOOTH, STADIA_STAMEN_TERRAIN, STADIA_STAMEN_TONER, STADIA_STAMEN_WATERCOLOR, TOPO_BASEMAP, TRAILS, TRANSIT_ROUTES, WATERSHEDS, ZONING_DISTRICTS, Z_INDEX_LAYERS, clusterColorExpression, createInitialLayerStates, createMatchedColorExpression, createPositioningCoordinator, getAvailabilityColor, getAvailableBasemaps, getContrastTextColor, getLayerCategories, getLayerStatesArray, getLayerStyleForTheme, getLayersByCategory, getLayersWithErrors, getOutlineStyleForTheme, getSizeColor, getVisibleLayerIds, groupLayersByCategory, hideAllLayers, inventoryStatusColorExpression, inventoryStatusColors, isAnyLayerLoading, lotAvailabilityColorExpression, lotAvailabilityColors, lotSizeColorExpression, lotSizeColors, reorderLayers, resolveBasemapStyle, resolveBasemapThumbnail, resolveLayerSourceUrl, searchLayers, setLayerError, setLayerLoading, setLayerOpacity, showAllLayers, toggleLayerVisibility, updateLayerState };
@@ -7,31 +7,33 @@ var THEME_LIGHT = "classic-light";
7
7
  var THEME_DARK = "classic-dark";
8
8
  function generateLightColors() {
9
9
  return {
10
- background: themeTokens.colors.white,
11
- water: themeTokens.colors.sky[200],
12
- land: themeTokens.colors.sage[50],
13
- park: themeTokens.colors.forest[100],
14
- building: themeTokens.colors.gray[200],
15
- buildingOutline: themeTokens.colors.gray[300],
16
- roadPrimary: themeTokens.colors.white,
17
- roadSecondary: themeTokens.colors.gray[100],
18
- roadCasing: themeTokens.colors.gray[300],
19
- rail: themeTokens.colors.gray[400],
20
- boundary: themeTokens.colors.gray[400],
21
- adminBoundary: themeTokens.colors.plum[300],
22
- residential: themeTokens.colors.sage[100],
23
- commercial: themeTokens.colors.stone[100],
24
- industrial: themeTokens.colors.gray[200],
25
- highlight: themeTokens.colors.teal[500],
26
- // Core 1 - brand teal
27
- highlightSecondary: themeTokens.colors.teal[300],
28
- selection: themeTokens.colors.red[500],
29
- // Brand red
10
+ background: themeTokens.ch.white,
11
+ water: themeTokens.ch.accentTeal100,
12
+ // Shallows
13
+ land: themeTokens.ch.paper,
14
+ park: themeTokens.ch.linen,
15
+ building: themeTokens.ch.linen,
16
+ buildingOutline: themeTokens.ch.lichen,
17
+ roadPrimary: themeTokens.ch.white,
18
+ roadSecondary: themeTokens.ch.white,
19
+ roadCasing: themeTokens.ch.lichen,
20
+ rail: themeTokens.ch.sage500,
21
+ boundary: themeTokens.ch.sage500,
22
+ adminBoundary: themeTokens.ch.sage600,
23
+ residential: themeTokens.ch.paper,
24
+ commercial: themeTokens.ch.linen,
25
+ industrial: themeTokens.ch.linen,
26
+ highlight: themeTokens.ch.heritageTeal,
27
+ // hovered: 11.30:1 on land
28
+ highlightSecondary: themeTokens.ch.accentTeal,
29
+ // resting: 3.03:1 on land
30
+ // Selection is not an error: Steel Navy (8.71:1 on land), with the width
31
+ // step in getHighlightStyle, not red
32
+ selection: themeTokens.ch.collection.classic,
30
33
  textPrimary: themeTokens.semanticColors.light.foreground,
31
34
  textSecondary: themeTokens.semanticColors.light.mutedForeground,
32
- textHalo: themeTokens.colors.white,
33
- poi: themeTokens.colors.navy[700],
34
- // Core 2 - brand navy
35
+ textHalo: themeTokens.ch.white,
36
+ poi: themeTokens.ch.heritageTeal,
35
37
  labelBackground: "rgba(255, 255, 255, 0.85)"
36
38
  };
37
39
  }
@@ -66,32 +68,16 @@ function generateDarkColors() {
66
68
  };
67
69
  }
68
70
  function generateLightDataColors() {
71
+ const { chart } = themeTokens.semanticColors.light;
69
72
  return {
70
- sequence: [
71
- themeTokens.colors.teal[500],
72
- // chart.1
73
- themeTokens.colors.navy[700],
74
- // chart.2
75
- themeTokens.colors.plum[700],
76
- // chart.3
77
- themeTokens.colors.forest[500],
78
- // chart.4
79
- themeTokens.colors.sky[600]
80
- // chart.5
81
- ],
82
- positive: themeTokens.colors.forest[500],
83
- negative: themeTokens.colors.red[500],
84
- neutral: themeTokens.colors.gray[500],
85
- heatmapRamp: [
86
- "rgba(59, 164, 167, 0)",
87
- // teal transparent
88
- themeTokens.colors.teal[200],
89
- themeTokens.colors.teal[400],
90
- themeTokens.colors.teal[500],
91
- themeTokens.colors.red[400],
92
- themeTokens.colors.red[500],
93
- themeTokens.colors.red[600]
94
- ]
73
+ // The chart series colours, each 3:1 or more on White
74
+ sequence: [chart[1], chart[2], chart[3], chart[4], chart[5]],
75
+ positive: themeTokens.ch.heritageTeal,
76
+ negative: themeTokens.ch.foundersRed,
77
+ neutral: themeTokens.ch.grey02,
78
+ // One teal ramp (Shallows, Accent Teal, Heritage Teal); no red in it, since
79
+ // red means a problem in v2.5
80
+ heatmapRamp: ["rgba(216, 237, 237, 0)", themeTokens.ch.accentTeal100, themeTokens.ch.accentTeal, themeTokens.ch.heritageTeal]
95
81
  };
96
82
  }
97
83
  function generateDarkDataColors() {
@@ -1,2 +1,2 @@
1
- export { darkBasicStyle, generateBasicStyle, generateVectorStyle, getBasicStyle, lightBasicStyle } from '../chunk-6WMCIBJJ.js';
2
- export { THEME_DARK, THEME_LIGHT, darkTheme, generateDarkColors, generateDarkDataColors, generateDarkTheme, generateLightColors, generateLightDataColors, generateLightTheme, getTheme, getTypography, lightTheme } from '../chunk-ZGUACUEF.js';
1
+ export { darkBasicStyle, generateBasicStyle, generateVectorStyle, getBasicStyle, lightBasicStyle } from '../chunk-Q4ISJ6FV.js';
2
+ export { THEME_DARK, THEME_LIGHT, darkTheme, generateDarkColors, generateDarkDataColors, generateDarkTheme, generateLightColors, generateLightDataColors, generateLightTheme, getTheme, getTypography, lightTheme } from '../chunk-KEBZDTH3.js';
@@ -651,7 +651,7 @@ interface MarkerProps {
651
651
  id?: string;
652
652
  /** Marker coordinates [lng, lat] */
653
653
  coordinates: LngLat;
654
- /** Marker color (init-only: MapLibre bakes it into the marker element at creation) */
654
+ /** Marker color (default Heritage Teal; init-only: MapLibre bakes it into the marker element at creation) */
655
655
  color?: string;
656
656
  /** Custom anchor point (init-only: cannot change after marker creation) */
657
657
  anchor?: 'center' | 'top' | 'bottom' | 'left' | 'right' | 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
@@ -651,7 +651,7 @@ interface MarkerProps {
651
651
  id?: string;
652
652
  /** Marker coordinates [lng, lat] */
653
653
  coordinates: LngLat;
654
- /** Marker color (init-only: MapLibre bakes it into the marker element at creation) */
654
+ /** Marker color (default Heritage Teal; init-only: MapLibre bakes it into the marker element at creation) */
655
655
  color?: string;
656
656
  /** Custom anchor point (init-only: cannot change after marker creation) */
657
657
  anchor?: 'center' | 'top' | 'bottom' | 'left' | 'right' | 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';