@classic-homes/maps-core 0.7.2 → 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/README.md +1 -1
- package/dist/{chunk-ZGUACUEF.js → chunk-KEBZDTH3.js} +35 -49
- package/dist/{chunk-6WMCIBJJ.js → chunk-Q4ISJ6FV.js} +1 -1
- package/dist/{chunk-4YUKENCX.js → chunk-ZAGAADA3.js} +96 -17
- package/dist/{worker-Cmyx33j4.d.ts → deck-Crhj7TKV.d.ts} +65 -33
- package/dist/{worker-BvmbGSPq.d.cts → deck-Cvmx9g1O.d.cts} +65 -33
- package/dist/index.cjs +288 -204
- package/dist/index.d.cts +60 -35
- package/dist/index.d.ts +60 -35
- package/dist/index.js +124 -109
- package/dist/theme/index.cjs +34 -48
- package/dist/theme/index.js +2 -2
- package/dist/types/index.d.cts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/utils/index.cjs +129 -63
- package/dist/utils/index.d.cts +1 -1
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/index.js +2 -2
- package/package.json +1 -1
- package/src/styles/bundled.css +58 -75
- package/src/styles/bundled.test.ts +44 -0
- package/src/styles/controls.css +14 -11
- package/src/styles/layer-manager.css +29 -16
- package/src/styles/popup.css +12 -11
- package/src/styles/utilities.css +32 -52
package/dist/index.d.cts
CHANGED
|
@@ -4,7 +4,7 @@ import { G as GeoJSONFeatureCollection } from './data-DCyEqgN0.cjs';
|
|
|
4
4
|
export { B as BoundsArray, C as ClusterConfig, E as ExtrusionData, a as GeoJSONFeature, b as GeoJSONGeometry, c as GeoJSONLineString, d as GeoJSONMultiLineString, e as GeoJSONMultiPoint, f as GeoJSONMultiPolygon, g as GeoJSONPoint, h as GeoJSONPolygon, H as HeatmapPoint, L as LngLat, M as MapBounds, i as MapSourceData, j as MapViewport, k as MarkerData } from './data-DCyEqgN0.cjs';
|
|
5
5
|
import { BasemapDefinition, BasemapApiKeys, MapStyleSpec } from './types/index.cjs';
|
|
6
6
|
export { BaseControlProps, BaseLayerProps, BaseMapEventParams, BaseMapProps, BasemapCategory, BasemapProvider, BasemapSwitcherProps, CircleLayerProps, ControlPosition, CoordinateDisplayProps, FeatureClickEventParams, FeatureHoverEventParams, FillExtrusionLayerProps, FillLayerProps, GeolocateControlProps, GradientStop, HeatmapLayerProps, LegendConfig, LegendGroupProps, LegendItem, LegendProps, LineLayerProps, MapClickEventParams, MapErrorEventParams, MapErrorLike, MapHoverEventParams, MapLayerSpecBase, MapLoadEventParams, MapMoveEventParams, MapProps, MapSourceSpec, MarkerClickEventParams, MarkerDragEventParams, MarkerProps, NavigationControlProps, PopupEventParams, PopupProps, RasterLayerProps, ScaleControlProps, SourceProps, SymbolLayerProps } from './types/index.cjs';
|
|
7
|
-
export { C as ClusterCircleStyleOptions, a as ClusterExpandOptions, b as ClusterExpansionResult, c as ClusterFeatureProperties, d as ClusterLayerStyles, h as ClusterTextStyleOptions, j as ColorExpression, k as CoordinateValidationResult, D as DEFAULT_SIMPLIFICATION_THRESHOLDS, l as
|
|
7
|
+
export { C as ClusterCircleStyleOptions, a as ClusterExpandOptions, b as ClusterExpansionResult, c as ClusterFeatureProperties, d as ClusterLayerStyles, h as ClusterTextStyleOptions, j as ColorExpression, k as CoordinateValidationResult, D as DEFAULT_SIMPLIFICATION_THRESHOLDS, l as DeckHostMap, m as DynamicLODOptions, n as DynamicLODState, E as ExtrusionHeightOptions, F as FeatureGroup, o as FilterExpression, p as FilterOperator, q as FilterValue, G as GenerateLODOptions, r as GeoJSONFingerprint, s as GroupFeaturesOptions, K as KEYBOARD_CONTROLS, L as LODData, t as LODDataWithSimplification, u as LoadGeoJSONOptions, v as LoadGeoJSONResult, w as LotFillStyleOptions, x as LotOutlineStyleOptions, M as MARKER_PROTECTION_CLASS, N as NumberExpression, P as PaintProps, z as PaintPropsDiff, S as SimplificationStats, A as SimplificationThreshold, U as UnclusteredPointStyleOptions, V as ValidationResult, B as applyMarkerChildProtection, H as applyMarkerProtection, I as boundsToPolygon, J as calculateBounds, O as calculateCentroid, Q as calculateZoomThresholds, R as clampLatitude, T as combineBounds, W as countFeaturesByType, X as createCategoricalColorExpression, Y as createCircleStyle, Z as createClusterCirclePaint, _ as createClusterStyles, $ as createClusterTextLayout, a0 as createContinuousColorExpression, a1 as createDynamicLODManager, a2 as createExtrusionHeightExpression, a3 as createExtrusionStyle, a4 as createFillStyle, a5 as createGeoJSONFingerprint, a6 as createHeatmapStyle, a7 as createHoverExpression, a8 as createInteractiveExpression, a9 as createInteractiveStatusColorExpression, aa as createLineStyle, ab as createLotFillStyle, ac as createLotOutlineStyle, ad as createSelectionExpression, ae as createStatusColorExpression, af as createZoomExpression, ag as decimalToDMS, ah as deepEqual, ai as ensureValidCoordinates, aj as expandCluster, ak as expandClusterToBounds, al as extendBounds, am as filterByGeometryType, an as filterEqual, ao as fingerprintEqual, ap as formatArea, aq as formatBearing, ar as formatBounds, as as formatCoordinates, at as formatDistance, au as formatFeatureProperties, av as formatLabel, aw as formatPitch, ax as formatPropertyValue, ay as formatScale, az as formatZoom, aA as generateBoundingPolygon, aB as generateConvexHull, aC as generateFeatureCollectionDescription, aD as generateFeatureTable, aE as generateKeyboardControlsDescription, aF as generateLODData, aG as generateLODDataWithSimplification, aH as generateMapDescription, aI as generateMarkerList, aJ as generateMarkersDescription, aK as generateMoveAnnouncement, aL as geoJSONEqual, aM as getChangedPaintProps, aN as getClusterBounds, aO as getClusterChildren, aP as getClusterExpansionZoom, aQ as getClusterLeaves, aR as getGridNavigationIndex, aS as getHighlightStyle, aT as getSelectionStyle, aU as getSimplificationToleranceForZoom, aV as getSimplifiedFeaturesForZoom, aW as groupFeaturesByProperty, aX as isClusterFeature, aY as isValidBounds, aZ as isValidLatitude, a_ as isValidLongitude, a$ as loadGeoJSON, b0 as normalizeLongitude, b1 as paintPropsEqual, b2 as removeMarkerProtection, b3 as resetWorkerUrlWarning, b4 as resolveDeckInterleaved, b5 as serializeFilter, b6 as simplifyFeature, b7 as simplifyFeatureCollection, b8 as simplifyFeatureCollectionWithStats, b9 as simplifyPolygon, ba as supportsDeckInterleaving, bb as validateBoundsArray, bc as validateCoordinates, bd as validateGeoJSON, be as warnIfWorkerUrlMissing, bf as zoomToScale } from './deck-Cvmx9g1O.cjs';
|
|
8
8
|
export { B as BuildRTreeIndexOptions, a as BuildSpatialIndexOptions, I as IdleViewportManagerOptions, b as IdleViewportResult, P as PanVelocity, c as PredictiveViewportResult, Q as QuerySpatialIndexOptions, d as QueryStats, R as RTreeIndex, e as RTreeItem, f as RTreeQueryStats, S as SpatialIndex, V as ViewportManagedDataOptions, g as ViewportManagedResult, h as buildRTreeIndex, i as buildSpatialIndex, j as createIdleViewportManager, k as createPredictiveViewportManager, l as createRTreeViewportManager, m as createViewportManager, n as createViewportQuery, q as queryByBounds, o as queryByBoundsWithStats, p as queryRTreeByBounds, r as queryRTreeByBoundsWithStats } from './spatial-pNn2rgAH.cjs';
|
|
9
9
|
import 'rbush';
|
|
10
10
|
|
|
@@ -104,6 +104,16 @@ interface OverlayLayerStyle {
|
|
|
104
104
|
dark: Record<string, unknown>;
|
|
105
105
|
/** Layout properties (shared between themes) */
|
|
106
106
|
layout?: Record<string, unknown>;
|
|
107
|
+
/**
|
|
108
|
+
* Line paint for a full-strength outline round a `fill` layer, drawn as its
|
|
109
|
+
* own line layer (`<layer id>-outline`). Use it when the outline must meet
|
|
110
|
+
* 3:1 on the basemap: MapLibre draws `fill-outline-color` at `fill-opacity`.
|
|
111
|
+
* A theme without paint draws no outline.
|
|
112
|
+
*/
|
|
113
|
+
outline?: {
|
|
114
|
+
light?: Record<string, unknown>;
|
|
115
|
+
dark?: Record<string, unknown>;
|
|
116
|
+
};
|
|
107
117
|
/** Minimum zoom level for the layer */
|
|
108
118
|
minZoom?: number;
|
|
109
119
|
/** Maximum zoom level for the layer */
|
|
@@ -276,6 +286,13 @@ declare function resolveLayerSourceUrl(layer: OverlayLayerDefinition, apiKeys?:
|
|
|
276
286
|
* Get the appropriate style for the current theme
|
|
277
287
|
*/
|
|
278
288
|
declare function getLayerStyleForTheme(layer: OverlayLayerDefinition, theme: 'light' | 'dark'): Record<string, unknown>;
|
|
289
|
+
/** Suffix of the line layer that draws a layer's `style.outline` */
|
|
290
|
+
declare const OUTLINE_LAYER_SUFFIX = "-outline";
|
|
291
|
+
/**
|
|
292
|
+
* Get the outline line paint for the given theme, or undefined when the
|
|
293
|
+
* layer draws no outline in it (only `fill` layers draw one)
|
|
294
|
+
*/
|
|
295
|
+
declare function getOutlineStyleForTheme(layer: OverlayLayerDefinition, theme: 'light' | 'dark'): Record<string, unknown> | undefined;
|
|
279
296
|
/**
|
|
280
297
|
* Search layers by name, description, or tags
|
|
281
298
|
*/
|
|
@@ -647,34 +664,34 @@ declare function createPositioningCoordinator(): PositioningCoordinator;
|
|
|
647
664
|
* Lot availability status colors
|
|
648
665
|
*/
|
|
649
666
|
declare const lotAvailabilityColors: {
|
|
650
|
-
readonly Available: "#
|
|
651
|
-
readonly Future: "#
|
|
652
|
-
readonly Spec: "#
|
|
653
|
-
readonly Model: "#
|
|
654
|
-
readonly 'Under Contract': "#
|
|
655
|
-
readonly Sold: "#
|
|
656
|
-
readonly Unavailable: "#
|
|
657
|
-
readonly Unknown: "#
|
|
667
|
+
readonly Available: "#1b373b";
|
|
668
|
+
readonly Future: "#7a5837";
|
|
669
|
+
readonly Spec: "#4a8a6f";
|
|
670
|
+
readonly Model: "#6a5280";
|
|
671
|
+
readonly 'Under Contract': "#34999c";
|
|
672
|
+
readonly Sold: "#50504f";
|
|
673
|
+
readonly Unavailable: "#767574";
|
|
674
|
+
readonly Unknown: "#767574";
|
|
658
675
|
};
|
|
659
676
|
type LotAvailability = keyof typeof lotAvailabilityColors;
|
|
660
677
|
/**
|
|
661
678
|
* Inventory home status colors
|
|
662
679
|
*/
|
|
663
680
|
declare const inventoryStatusColors: {
|
|
664
|
-
readonly 'Ready Now': "#
|
|
665
|
-
readonly Upcoming: "#
|
|
666
|
-
readonly default: "#
|
|
681
|
+
readonly 'Ready Now': "#1b373b";
|
|
682
|
+
readonly Upcoming: "#2b4660";
|
|
683
|
+
readonly default: "#767574";
|
|
667
684
|
};
|
|
668
685
|
type InventoryStatus = keyof typeof inventoryStatusColors;
|
|
669
686
|
/**
|
|
670
|
-
* Lot size category colors
|
|
687
|
+
* Lot size category colors: one sequential sage-to-teal ramp, smallest lightest
|
|
671
688
|
*/
|
|
672
689
|
declare const lotSizeColors: {
|
|
673
|
-
readonly Small: "#
|
|
674
|
-
readonly Medium: "#
|
|
675
|
-
readonly Large: "#
|
|
676
|
-
readonly 'Extra Large': "#
|
|
677
|
-
readonly Unknown: "#
|
|
690
|
+
readonly Small: "#81856e";
|
|
691
|
+
readonly Medium: "#6c705b";
|
|
692
|
+
readonly Large: "#2e5a4a";
|
|
693
|
+
readonly 'Extra Large': "#1b373b";
|
|
694
|
+
readonly Unknown: "#767574";
|
|
678
695
|
};
|
|
679
696
|
type LotSize = keyof typeof lotSizeColors;
|
|
680
697
|
/**
|
|
@@ -690,37 +707,45 @@ declare function getSizeColor(size: string): string;
|
|
|
690
707
|
|
|
691
708
|
/**
|
|
692
709
|
* Map Feature Colors
|
|
693
|
-
* Colors for common map visualization features.
|
|
710
|
+
* Colors for common map visualization features (Digital Color Reference v2.5).
|
|
711
|
+
*/
|
|
712
|
+
/**
|
|
713
|
+
* Default marker pin: Heritage Teal (11.82:1 on the basemap land colour)
|
|
694
714
|
*/
|
|
715
|
+
declare const markerColor: "#1b373b";
|
|
695
716
|
/**
|
|
696
|
-
* Cluster visualization colors
|
|
717
|
+
* Cluster visualization colors. Each circle carries White count text at 4.5:1
|
|
718
|
+
* or more (12.68, 9.78, 6.71).
|
|
697
719
|
*/
|
|
698
720
|
declare const clusterColors: {
|
|
699
|
-
readonly small: "#
|
|
700
|
-
readonly medium: "#
|
|
701
|
-
readonly large: "#
|
|
721
|
+
readonly small: "#1b373b";
|
|
722
|
+
readonly medium: "#2b4660";
|
|
723
|
+
readonly large: "#6a5280";
|
|
702
724
|
readonly stroke: "#ffffff";
|
|
703
725
|
readonly text: "#ffffff";
|
|
704
726
|
};
|
|
705
727
|
/**
|
|
706
|
-
* Community/region boundary colors
|
|
728
|
+
* Community/region boundary colors. A boundary is not a problem, so no red:
|
|
729
|
+
* Accent Teal at rest (3.17:1 on land), Heritage Teal for the community in
|
|
730
|
+
* focus and on hover.
|
|
707
731
|
*/
|
|
708
732
|
declare const boundaryColors: {
|
|
709
|
-
readonly fill: "#
|
|
710
|
-
readonly line: "#
|
|
711
|
-
readonly hoverFill: "#
|
|
712
|
-
readonly defaultFill: "#
|
|
713
|
-
readonly hoverLine: "#
|
|
714
|
-
readonly defaultLine: "#
|
|
733
|
+
readonly fill: "#1b373b";
|
|
734
|
+
readonly line: "#1b373b";
|
|
735
|
+
readonly hoverFill: "#1b373b";
|
|
736
|
+
readonly defaultFill: "#34999c";
|
|
737
|
+
readonly hoverLine: "#1b373b";
|
|
738
|
+
readonly defaultLine: "#34999c";
|
|
715
739
|
};
|
|
716
740
|
/**
|
|
717
|
-
* Sales office marker color
|
|
741
|
+
* Sales office marker color: Founder's Red, the promo colour (where to buy),
|
|
742
|
+
* at full strength
|
|
718
743
|
*/
|
|
719
|
-
declare const salesOfficeColor
|
|
744
|
+
declare const salesOfficeColor: "#ae2025";
|
|
720
745
|
/**
|
|
721
|
-
* Color for non-matched/de-emphasized features
|
|
746
|
+
* Color for non-matched/de-emphasized features: Grey 02 (4.29:1 on land)
|
|
722
747
|
*/
|
|
723
|
-
declare const nonMatchedColor
|
|
748
|
+
declare const nonMatchedColor: "#767574";
|
|
724
749
|
|
|
725
750
|
/**
|
|
726
751
|
* Pre-built MapLibre Expressions
|
|
@@ -746,4 +771,4 @@ declare const clusterColorExpression: unknown[];
|
|
|
746
771
|
*/
|
|
747
772
|
declare function createMatchedColorExpression(baseColorExpression: unknown[], matchedProperty?: string): unknown[];
|
|
748
773
|
|
|
749
|
-
export { BIKE_LANES, BUILTIN_BASEMAPS, BUILTIN_OVERLAY_LAYERS, BasemapApiKeys, BasemapDefinition, CATEGORY_META, CITY_LIMITS, CLASSIC_DARK, CLASSIC_LIGHT, type ControlBoundingBox, type ControlDimensions, type ControlOffset, type ControlPriority, type ControlRegistration, type ControlType, type ControlUpdateOptions, type CoordinatorEvent, type CoordinatorEventType, type CoordinatorListener, DEFAULT_BASEMAP, EDGE_MARGIN, type ExtendedControlPosition, FLOOD_ZONES, FREE_BASEMAPS, GeoJSONFeatureCollection, type InventoryStatus, type LayerManagerProps, type LotAvailability, type LotSize, MAPTILER_BASIC, MAPTILER_OUTDOOR, MAPTILER_SATELLITE, MAPTILER_STREETS, type MapDimensions, OSM_STANDARD, type OverlayApiKeys, type OverlayDataSource, type OverlayLayerCategory, type OverlayLayerCategoryMeta, type OverlayLayerDefinition, type OverlayLayerLegend, type OverlayLayerState, type OverlayLayerStyle, type OverlayLegendItem, PARKS, PRIMARY_BASEMAPS, PRIORITY_ORDER, type PositionConfig, 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, type ZIndexLayer, 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 };
|
|
774
|
+
export { BIKE_LANES, BUILTIN_BASEMAPS, BUILTIN_OVERLAY_LAYERS, BasemapApiKeys, BasemapDefinition, CATEGORY_META, CITY_LIMITS, CLASSIC_DARK, CLASSIC_LIGHT, type ControlBoundingBox, type ControlDimensions, type ControlOffset, type ControlPriority, type ControlRegistration, type ControlType, type ControlUpdateOptions, type CoordinatorEvent, type CoordinatorEventType, type CoordinatorListener, DEFAULT_BASEMAP, EDGE_MARGIN, type ExtendedControlPosition, FLOOD_ZONES, FREE_BASEMAPS, GeoJSONFeatureCollection, type InventoryStatus, type LayerManagerProps, type LotAvailability, type LotSize, MAPTILER_BASIC, MAPTILER_OUTDOOR, MAPTILER_SATELLITE, MAPTILER_STREETS, type MapDimensions, OSM_STANDARD, OUTLINE_LAYER_SUFFIX, type OverlayApiKeys, type OverlayDataSource, type OverlayLayerCategory, type OverlayLayerCategoryMeta, type OverlayLayerDefinition, type OverlayLayerLegend, type OverlayLayerState, type OverlayLayerStyle, type OverlayLegendItem, PARKS, PRIMARY_BASEMAPS, PRIORITY_ORDER, type PositionConfig, 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, type ZIndexLayer, ZONING_DISTRICTS, Z_INDEX_LAYERS, boundaryColors, clusterColorExpression, clusterColors, createInitialLayerStates, createMatchedColorExpression, createPositioningCoordinator, getAvailabilityColor, getAvailableBasemaps, getContrastTextColor, getLayerCategories, getLayerStatesArray, getLayerStyleForTheme, getLayersByCategory, getLayersWithErrors, getOutlineStyleForTheme, getSizeColor, getVisibleLayerIds, groupLayersByCategory, hideAllLayers, inventoryStatusColorExpression, inventoryStatusColors, isAnyLayerLoading, lotAvailabilityColorExpression, lotAvailabilityColors, lotSizeColorExpression, lotSizeColors, markerColor, nonMatchedColor, reorderLayers, resolveBasemapStyle, resolveBasemapThumbnail, resolveLayerSourceUrl, salesOfficeColor, searchLayers, setLayerError, setLayerLoading, setLayerOpacity, showAllLayers, toggleLayerVisibility, updateLayerState };
|
package/dist/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { G as GeoJSONFeatureCollection } from './data-DCyEqgN0.js';
|
|
|
4
4
|
export { B as BoundsArray, C as ClusterConfig, E as ExtrusionData, a as GeoJSONFeature, b as GeoJSONGeometry, c as GeoJSONLineString, d as GeoJSONMultiLineString, e as GeoJSONMultiPoint, f as GeoJSONMultiPolygon, g as GeoJSONPoint, h as GeoJSONPolygon, H as HeatmapPoint, L as LngLat, M as MapBounds, i as MapSourceData, j as MapViewport, k as MarkerData } from './data-DCyEqgN0.js';
|
|
5
5
|
import { BasemapDefinition, BasemapApiKeys, MapStyleSpec } from './types/index.js';
|
|
6
6
|
export { BaseControlProps, BaseLayerProps, BaseMapEventParams, BaseMapProps, BasemapCategory, BasemapProvider, BasemapSwitcherProps, CircleLayerProps, ControlPosition, CoordinateDisplayProps, FeatureClickEventParams, FeatureHoverEventParams, FillExtrusionLayerProps, FillLayerProps, GeolocateControlProps, GradientStop, HeatmapLayerProps, LegendConfig, LegendGroupProps, LegendItem, LegendProps, LineLayerProps, MapClickEventParams, MapErrorEventParams, MapErrorLike, MapHoverEventParams, MapLayerSpecBase, MapLoadEventParams, MapMoveEventParams, MapProps, MapSourceSpec, MarkerClickEventParams, MarkerDragEventParams, MarkerProps, NavigationControlProps, PopupEventParams, PopupProps, RasterLayerProps, ScaleControlProps, SourceProps, SymbolLayerProps } from './types/index.js';
|
|
7
|
-
export { C as ClusterCircleStyleOptions, a as ClusterExpandOptions, b as ClusterExpansionResult, c as ClusterFeatureProperties, d as ClusterLayerStyles, h as ClusterTextStyleOptions, j as ColorExpression, k as CoordinateValidationResult, D as DEFAULT_SIMPLIFICATION_THRESHOLDS, l as
|
|
7
|
+
export { C as ClusterCircleStyleOptions, a as ClusterExpandOptions, b as ClusterExpansionResult, c as ClusterFeatureProperties, d as ClusterLayerStyles, h as ClusterTextStyleOptions, j as ColorExpression, k as CoordinateValidationResult, D as DEFAULT_SIMPLIFICATION_THRESHOLDS, l as DeckHostMap, m as DynamicLODOptions, n as DynamicLODState, E as ExtrusionHeightOptions, F as FeatureGroup, o as FilterExpression, p as FilterOperator, q as FilterValue, G as GenerateLODOptions, r as GeoJSONFingerprint, s as GroupFeaturesOptions, K as KEYBOARD_CONTROLS, L as LODData, t as LODDataWithSimplification, u as LoadGeoJSONOptions, v as LoadGeoJSONResult, w as LotFillStyleOptions, x as LotOutlineStyleOptions, M as MARKER_PROTECTION_CLASS, N as NumberExpression, P as PaintProps, z as PaintPropsDiff, S as SimplificationStats, A as SimplificationThreshold, U as UnclusteredPointStyleOptions, V as ValidationResult, B as applyMarkerChildProtection, H as applyMarkerProtection, I as boundsToPolygon, J as calculateBounds, O as calculateCentroid, Q as calculateZoomThresholds, R as clampLatitude, T as combineBounds, W as countFeaturesByType, X as createCategoricalColorExpression, Y as createCircleStyle, Z as createClusterCirclePaint, _ as createClusterStyles, $ as createClusterTextLayout, a0 as createContinuousColorExpression, a1 as createDynamicLODManager, a2 as createExtrusionHeightExpression, a3 as createExtrusionStyle, a4 as createFillStyle, a5 as createGeoJSONFingerprint, a6 as createHeatmapStyle, a7 as createHoverExpression, a8 as createInteractiveExpression, a9 as createInteractiveStatusColorExpression, aa as createLineStyle, ab as createLotFillStyle, ac as createLotOutlineStyle, ad as createSelectionExpression, ae as createStatusColorExpression, af as createZoomExpression, ag as decimalToDMS, ah as deepEqual, ai as ensureValidCoordinates, aj as expandCluster, ak as expandClusterToBounds, al as extendBounds, am as filterByGeometryType, an as filterEqual, ao as fingerprintEqual, ap as formatArea, aq as formatBearing, ar as formatBounds, as as formatCoordinates, at as formatDistance, au as formatFeatureProperties, av as formatLabel, aw as formatPitch, ax as formatPropertyValue, ay as formatScale, az as formatZoom, aA as generateBoundingPolygon, aB as generateConvexHull, aC as generateFeatureCollectionDescription, aD as generateFeatureTable, aE as generateKeyboardControlsDescription, aF as generateLODData, aG as generateLODDataWithSimplification, aH as generateMapDescription, aI as generateMarkerList, aJ as generateMarkersDescription, aK as generateMoveAnnouncement, aL as geoJSONEqual, aM as getChangedPaintProps, aN as getClusterBounds, aO as getClusterChildren, aP as getClusterExpansionZoom, aQ as getClusterLeaves, aR as getGridNavigationIndex, aS as getHighlightStyle, aT as getSelectionStyle, aU as getSimplificationToleranceForZoom, aV as getSimplifiedFeaturesForZoom, aW as groupFeaturesByProperty, aX as isClusterFeature, aY as isValidBounds, aZ as isValidLatitude, a_ as isValidLongitude, a$ as loadGeoJSON, b0 as normalizeLongitude, b1 as paintPropsEqual, b2 as removeMarkerProtection, b3 as resetWorkerUrlWarning, b4 as resolveDeckInterleaved, b5 as serializeFilter, b6 as simplifyFeature, b7 as simplifyFeatureCollection, b8 as simplifyFeatureCollectionWithStats, b9 as simplifyPolygon, ba as supportsDeckInterleaving, bb as validateBoundsArray, bc as validateCoordinates, bd as validateGeoJSON, be as warnIfWorkerUrlMissing, bf as zoomToScale } from './deck-Crhj7TKV.js';
|
|
8
8
|
export { B as BuildRTreeIndexOptions, a as BuildSpatialIndexOptions, I as IdleViewportManagerOptions, b as IdleViewportResult, P as PanVelocity, c as PredictiveViewportResult, Q as QuerySpatialIndexOptions, d as QueryStats, R as RTreeIndex, e as RTreeItem, f as RTreeQueryStats, S as SpatialIndex, V as ViewportManagedDataOptions, g as ViewportManagedResult, h as buildRTreeIndex, i as buildSpatialIndex, j as createIdleViewportManager, k as createPredictiveViewportManager, l as createRTreeViewportManager, m as createViewportManager, n as createViewportQuery, q as queryByBounds, o as queryByBoundsWithStats, p as queryRTreeByBounds, r as queryRTreeByBoundsWithStats } from './spatial-Df48Jj9D.js';
|
|
9
9
|
import 'rbush';
|
|
10
10
|
|
|
@@ -104,6 +104,16 @@ interface OverlayLayerStyle {
|
|
|
104
104
|
dark: Record<string, unknown>;
|
|
105
105
|
/** Layout properties (shared between themes) */
|
|
106
106
|
layout?: Record<string, unknown>;
|
|
107
|
+
/**
|
|
108
|
+
* Line paint for a full-strength outline round a `fill` layer, drawn as its
|
|
109
|
+
* own line layer (`<layer id>-outline`). Use it when the outline must meet
|
|
110
|
+
* 3:1 on the basemap: MapLibre draws `fill-outline-color` at `fill-opacity`.
|
|
111
|
+
* A theme without paint draws no outline.
|
|
112
|
+
*/
|
|
113
|
+
outline?: {
|
|
114
|
+
light?: Record<string, unknown>;
|
|
115
|
+
dark?: Record<string, unknown>;
|
|
116
|
+
};
|
|
107
117
|
/** Minimum zoom level for the layer */
|
|
108
118
|
minZoom?: number;
|
|
109
119
|
/** Maximum zoom level for the layer */
|
|
@@ -276,6 +286,13 @@ declare function resolveLayerSourceUrl(layer: OverlayLayerDefinition, apiKeys?:
|
|
|
276
286
|
* Get the appropriate style for the current theme
|
|
277
287
|
*/
|
|
278
288
|
declare function getLayerStyleForTheme(layer: OverlayLayerDefinition, theme: 'light' | 'dark'): Record<string, unknown>;
|
|
289
|
+
/** Suffix of the line layer that draws a layer's `style.outline` */
|
|
290
|
+
declare const OUTLINE_LAYER_SUFFIX = "-outline";
|
|
291
|
+
/**
|
|
292
|
+
* Get the outline line paint for the given theme, or undefined when the
|
|
293
|
+
* layer draws no outline in it (only `fill` layers draw one)
|
|
294
|
+
*/
|
|
295
|
+
declare function getOutlineStyleForTheme(layer: OverlayLayerDefinition, theme: 'light' | 'dark'): Record<string, unknown> | undefined;
|
|
279
296
|
/**
|
|
280
297
|
* Search layers by name, description, or tags
|
|
281
298
|
*/
|
|
@@ -647,34 +664,34 @@ declare function createPositioningCoordinator(): PositioningCoordinator;
|
|
|
647
664
|
* Lot availability status colors
|
|
648
665
|
*/
|
|
649
666
|
declare const lotAvailabilityColors: {
|
|
650
|
-
readonly Available: "#
|
|
651
|
-
readonly Future: "#
|
|
652
|
-
readonly Spec: "#
|
|
653
|
-
readonly Model: "#
|
|
654
|
-
readonly 'Under Contract': "#
|
|
655
|
-
readonly Sold: "#
|
|
656
|
-
readonly Unavailable: "#
|
|
657
|
-
readonly Unknown: "#
|
|
667
|
+
readonly Available: "#1b373b";
|
|
668
|
+
readonly Future: "#7a5837";
|
|
669
|
+
readonly Spec: "#4a8a6f";
|
|
670
|
+
readonly Model: "#6a5280";
|
|
671
|
+
readonly 'Under Contract': "#34999c";
|
|
672
|
+
readonly Sold: "#50504f";
|
|
673
|
+
readonly Unavailable: "#767574";
|
|
674
|
+
readonly Unknown: "#767574";
|
|
658
675
|
};
|
|
659
676
|
type LotAvailability = keyof typeof lotAvailabilityColors;
|
|
660
677
|
/**
|
|
661
678
|
* Inventory home status colors
|
|
662
679
|
*/
|
|
663
680
|
declare const inventoryStatusColors: {
|
|
664
|
-
readonly 'Ready Now': "#
|
|
665
|
-
readonly Upcoming: "#
|
|
666
|
-
readonly default: "#
|
|
681
|
+
readonly 'Ready Now': "#1b373b";
|
|
682
|
+
readonly Upcoming: "#2b4660";
|
|
683
|
+
readonly default: "#767574";
|
|
667
684
|
};
|
|
668
685
|
type InventoryStatus = keyof typeof inventoryStatusColors;
|
|
669
686
|
/**
|
|
670
|
-
* Lot size category colors
|
|
687
|
+
* Lot size category colors: one sequential sage-to-teal ramp, smallest lightest
|
|
671
688
|
*/
|
|
672
689
|
declare const lotSizeColors: {
|
|
673
|
-
readonly Small: "#
|
|
674
|
-
readonly Medium: "#
|
|
675
|
-
readonly Large: "#
|
|
676
|
-
readonly 'Extra Large': "#
|
|
677
|
-
readonly Unknown: "#
|
|
690
|
+
readonly Small: "#81856e";
|
|
691
|
+
readonly Medium: "#6c705b";
|
|
692
|
+
readonly Large: "#2e5a4a";
|
|
693
|
+
readonly 'Extra Large': "#1b373b";
|
|
694
|
+
readonly Unknown: "#767574";
|
|
678
695
|
};
|
|
679
696
|
type LotSize = keyof typeof lotSizeColors;
|
|
680
697
|
/**
|
|
@@ -690,37 +707,45 @@ declare function getSizeColor(size: string): string;
|
|
|
690
707
|
|
|
691
708
|
/**
|
|
692
709
|
* Map Feature Colors
|
|
693
|
-
* Colors for common map visualization features.
|
|
710
|
+
* Colors for common map visualization features (Digital Color Reference v2.5).
|
|
711
|
+
*/
|
|
712
|
+
/**
|
|
713
|
+
* Default marker pin: Heritage Teal (11.82:1 on the basemap land colour)
|
|
694
714
|
*/
|
|
715
|
+
declare const markerColor: "#1b373b";
|
|
695
716
|
/**
|
|
696
|
-
* Cluster visualization colors
|
|
717
|
+
* Cluster visualization colors. Each circle carries White count text at 4.5:1
|
|
718
|
+
* or more (12.68, 9.78, 6.71).
|
|
697
719
|
*/
|
|
698
720
|
declare const clusterColors: {
|
|
699
|
-
readonly small: "#
|
|
700
|
-
readonly medium: "#
|
|
701
|
-
readonly large: "#
|
|
721
|
+
readonly small: "#1b373b";
|
|
722
|
+
readonly medium: "#2b4660";
|
|
723
|
+
readonly large: "#6a5280";
|
|
702
724
|
readonly stroke: "#ffffff";
|
|
703
725
|
readonly text: "#ffffff";
|
|
704
726
|
};
|
|
705
727
|
/**
|
|
706
|
-
* Community/region boundary colors
|
|
728
|
+
* Community/region boundary colors. A boundary is not a problem, so no red:
|
|
729
|
+
* Accent Teal at rest (3.17:1 on land), Heritage Teal for the community in
|
|
730
|
+
* focus and on hover.
|
|
707
731
|
*/
|
|
708
732
|
declare const boundaryColors: {
|
|
709
|
-
readonly fill: "#
|
|
710
|
-
readonly line: "#
|
|
711
|
-
readonly hoverFill: "#
|
|
712
|
-
readonly defaultFill: "#
|
|
713
|
-
readonly hoverLine: "#
|
|
714
|
-
readonly defaultLine: "#
|
|
733
|
+
readonly fill: "#1b373b";
|
|
734
|
+
readonly line: "#1b373b";
|
|
735
|
+
readonly hoverFill: "#1b373b";
|
|
736
|
+
readonly defaultFill: "#34999c";
|
|
737
|
+
readonly hoverLine: "#1b373b";
|
|
738
|
+
readonly defaultLine: "#34999c";
|
|
715
739
|
};
|
|
716
740
|
/**
|
|
717
|
-
* Sales office marker color
|
|
741
|
+
* Sales office marker color: Founder's Red, the promo colour (where to buy),
|
|
742
|
+
* at full strength
|
|
718
743
|
*/
|
|
719
|
-
declare const salesOfficeColor
|
|
744
|
+
declare const salesOfficeColor: "#ae2025";
|
|
720
745
|
/**
|
|
721
|
-
* Color for non-matched/de-emphasized features
|
|
746
|
+
* Color for non-matched/de-emphasized features: Grey 02 (4.29:1 on land)
|
|
722
747
|
*/
|
|
723
|
-
declare const nonMatchedColor
|
|
748
|
+
declare const nonMatchedColor: "#767574";
|
|
724
749
|
|
|
725
750
|
/**
|
|
726
751
|
* Pre-built MapLibre Expressions
|
|
@@ -746,4 +771,4 @@ declare const clusterColorExpression: unknown[];
|
|
|
746
771
|
*/
|
|
747
772
|
declare function createMatchedColorExpression(baseColorExpression: unknown[], matchedProperty?: string): unknown[];
|
|
748
773
|
|
|
749
|
-
export { BIKE_LANES, BUILTIN_BASEMAPS, BUILTIN_OVERLAY_LAYERS, BasemapApiKeys, BasemapDefinition, CATEGORY_META, CITY_LIMITS, CLASSIC_DARK, CLASSIC_LIGHT, type ControlBoundingBox, type ControlDimensions, type ControlOffset, type ControlPriority, type ControlRegistration, type ControlType, type ControlUpdateOptions, type CoordinatorEvent, type CoordinatorEventType, type CoordinatorListener, DEFAULT_BASEMAP, EDGE_MARGIN, type ExtendedControlPosition, FLOOD_ZONES, FREE_BASEMAPS, GeoJSONFeatureCollection, type InventoryStatus, type LayerManagerProps, type LotAvailability, type LotSize, MAPTILER_BASIC, MAPTILER_OUTDOOR, MAPTILER_SATELLITE, MAPTILER_STREETS, type MapDimensions, OSM_STANDARD, type OverlayApiKeys, type OverlayDataSource, type OverlayLayerCategory, type OverlayLayerCategoryMeta, type OverlayLayerDefinition, type OverlayLayerLegend, type OverlayLayerState, type OverlayLayerStyle, type OverlayLegendItem, PARKS, PRIMARY_BASEMAPS, PRIORITY_ORDER, type PositionConfig, 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, type ZIndexLayer, 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 };
|
|
774
|
+
export { BIKE_LANES, BUILTIN_BASEMAPS, BUILTIN_OVERLAY_LAYERS, BasemapApiKeys, BasemapDefinition, CATEGORY_META, CITY_LIMITS, CLASSIC_DARK, CLASSIC_LIGHT, type ControlBoundingBox, type ControlDimensions, type ControlOffset, type ControlPriority, type ControlRegistration, type ControlType, type ControlUpdateOptions, type CoordinatorEvent, type CoordinatorEventType, type CoordinatorListener, DEFAULT_BASEMAP, EDGE_MARGIN, type ExtendedControlPosition, FLOOD_ZONES, FREE_BASEMAPS, GeoJSONFeatureCollection, type InventoryStatus, type LayerManagerProps, type LotAvailability, type LotSize, MAPTILER_BASIC, MAPTILER_OUTDOOR, MAPTILER_SATELLITE, MAPTILER_STREETS, type MapDimensions, OSM_STANDARD, OUTLINE_LAYER_SUFFIX, type OverlayApiKeys, type OverlayDataSource, type OverlayLayerCategory, type OverlayLayerCategoryMeta, type OverlayLayerDefinition, type OverlayLayerLegend, type OverlayLayerState, type OverlayLayerStyle, type OverlayLegendItem, PARKS, PRIMARY_BASEMAPS, PRIORITY_ORDER, type PositionConfig, 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, type ZIndexLayer, ZONING_DISTRICTS, Z_INDEX_LAYERS, boundaryColors, clusterColorExpression, clusterColors, createInitialLayerStates, createMatchedColorExpression, createPositioningCoordinator, getAvailabilityColor, getAvailableBasemaps, getContrastTextColor, getLayerCategories, getLayerStatesArray, getLayerStyleForTheme, getLayersByCategory, getLayersWithErrors, getOutlineStyleForTheme, getSizeColor, getVisibleLayerIds, groupLayersByCategory, hideAllLayers, inventoryStatusColorExpression, inventoryStatusColors, isAnyLayerLoading, lotAvailabilityColorExpression, lotAvailabilityColors, lotSizeColorExpression, lotSizeColors, markerColor, nonMatchedColor, reorderLayers, resolveBasemapStyle, resolveBasemapThumbnail, resolveLayerSourceUrl, salesOfficeColor, searchLayers, setLayerError, setLayerLoading, setLayerOpacity, showAllLayers, toggleLayerVisibility, updateLayerState };
|