@classic-homes/maps-core 0.6.0 → 0.7.0

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.
@@ -2850,4 +2850,33 @@ function panToFitPopup(map, popup, padding) {
2850
2850
  }
2851
2851
  }
2852
2852
 
2853
- 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, normalizePadding, paintPropsEqual, panToFitPopup, prefersReducedMotion, queryByBounds, queryByBoundsWithStats, queryRTreeByBounds, queryRTreeByBoundsWithStats, removeMarkerProtection, serializeFilter, simplifyFeature, simplifyFeatureCollection, simplifyFeatureCollectionWithStats, simplifyPolygon, validateBoundsArray, validateCoordinates, validateGeoJSON, zoomToScale };
2853
+ // src/utils/worker.ts
2854
+ var SETUP_HINT = ` import { setWorkerUrl } from 'maplibre-gl';
2855
+ import workerUrl from 'maplibre-gl/dist/maplibre-gl-worker.mjs?worker&url'; // Vite
2856
+ setWorkerUrl(workerUrl);
2857
+
2858
+ Webpack: setWorkerUrl(new URL("maplibre-gl/dist/maplibre-gl-worker.mjs", import.meta.url).toString()). See https://maplibre.org/maplibre-gl-js/docs/guides/v5-to-v6-migration-guide/`;
2859
+ var warnedMissingUrl = false;
2860
+ function resetWorkerUrlWarning() {
2861
+ warnedMissingUrl = false;
2862
+ }
2863
+ function warnIfWorkerUrlMissing(maplibregl, log = console.warn) {
2864
+ if (warnedMissingUrl) return false;
2865
+ try {
2866
+ if (typeof maplibregl?.getVersion !== "function" || typeof maplibregl.getWorkerUrl !== "function") {
2867
+ return false;
2868
+ }
2869
+ const major = Number.parseInt(maplibregl.getVersion(), 10);
2870
+ if (!Number.isFinite(major) || major < 6) return false;
2871
+ if (maplibregl.getWorkerUrl()) return false;
2872
+ warnedMissingUrl = true;
2873
+ log(
2874
+ "[maps] MapLibre " + major + ' has no worker URL set. Under a bundler it cannot find its worker on its own, so the map fails with "Worker failed to load". Call setWorkerUrl() once at app startup:\n\n' + SETUP_HINT
2875
+ );
2876
+ return true;
2877
+ } catch {
2878
+ return false;
2879
+ }
2880
+ }
2881
+
2882
+ 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, normalizePadding, paintPropsEqual, panToFitPopup, prefersReducedMotion, queryByBounds, queryByBoundsWithStats, queryRTreeByBounds, queryRTreeByBoundsWithStats, removeMarkerProtection, resetWorkerUrlWarning, serializeFilter, simplifyFeature, simplifyFeatureCollection, simplifyFeatureCollectionWithStats, simplifyPolygon, validateBoundsArray, validateCoordinates, validateGeoJSON, warnIfWorkerUrlMissing, zoomToScale };
package/dist/index.cjs CHANGED
@@ -3352,6 +3352,35 @@ function applyMarkerChildProtection(element) {
3352
3352
  style.setProperty("animation", "none", "important");
3353
3353
  }
3354
3354
 
3355
+ // src/utils/worker.ts
3356
+ var SETUP_HINT = ` import { setWorkerUrl } from 'maplibre-gl';
3357
+ import workerUrl from 'maplibre-gl/dist/maplibre-gl-worker.mjs?worker&url'; // Vite
3358
+ setWorkerUrl(workerUrl);
3359
+
3360
+ Webpack: setWorkerUrl(new URL("maplibre-gl/dist/maplibre-gl-worker.mjs", import.meta.url).toString()). See https://maplibre.org/maplibre-gl-js/docs/guides/v5-to-v6-migration-guide/`;
3361
+ var warnedMissingUrl = false;
3362
+ function resetWorkerUrlWarning() {
3363
+ warnedMissingUrl = false;
3364
+ }
3365
+ function warnIfWorkerUrlMissing(maplibregl, log = console.warn) {
3366
+ if (warnedMissingUrl) return false;
3367
+ try {
3368
+ if (typeof maplibregl?.getVersion !== "function" || typeof maplibregl.getWorkerUrl !== "function") {
3369
+ return false;
3370
+ }
3371
+ const major = Number.parseInt(maplibregl.getVersion(), 10);
3372
+ if (!Number.isFinite(major) || major < 6) return false;
3373
+ if (maplibregl.getWorkerUrl()) return false;
3374
+ warnedMissingUrl = true;
3375
+ log(
3376
+ "[maps] MapLibre " + major + ' has no worker URL set. Under a bundler it cannot find its worker on its own, so the map fails with "Worker failed to load". Call setWorkerUrl() once at app startup:\n\n' + SETUP_HINT
3377
+ );
3378
+ return true;
3379
+ } catch {
3380
+ return false;
3381
+ }
3382
+ }
3383
+
3355
3384
  // src/basemaps/registry.ts
3356
3385
  var DEFAULT_BASEMAP = {
3357
3386
  id: "default",
@@ -4747,6 +4776,7 @@ exports.queryRTreeByBounds = queryRTreeByBounds;
4747
4776
  exports.queryRTreeByBoundsWithStats = queryRTreeByBoundsWithStats;
4748
4777
  exports.removeMarkerProtection = removeMarkerProtection;
4749
4778
  exports.reorderLayers = reorderLayers;
4779
+ exports.resetWorkerUrlWarning = resetWorkerUrlWarning;
4750
4780
  exports.resolveBasemapStyle = resolveBasemapStyle;
4751
4781
  exports.resolveBasemapThumbnail = resolveBasemapThumbnail;
4752
4782
  exports.resolveLayerSourceUrl = resolveLayerSourceUrl;
@@ -4766,4 +4796,5 @@ exports.updateLayerState = updateLayerState;
4766
4796
  exports.validateBoundsArray = validateBoundsArray;
4767
4797
  exports.validateCoordinates = validateCoordinates;
4768
4798
  exports.validateGeoJSON = validateGeoJSON;
4799
+ exports.warnIfWorkerUrlMissing = warnIfWorkerUrlMissing;
4769
4800
  exports.zoomToScale = zoomToScale;
package/dist/index.d.cts CHANGED
@@ -3,8 +3,8 @@ export { MapStyleSpec, darkBasicStyle, generateBasicStyle, generateVectorStyle,
3
3
  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
- 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, 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 DynamicLODOptions, m as DynamicLODState, E as ExtrusionHeightOptions, F as FeatureGroup, n as FilterExpression, o as FilterOperator, p as FilterValue, G as GenerateLODOptions, q as GeoJSONFingerprint, r as GroupFeaturesOptions, K as KEYBOARD_CONTROLS, L as LODData, s as LODDataWithSimplification, t as LoadGeoJSONOptions, u as LoadGeoJSONResult, v as LotFillStyleOptions, w as LotOutlineStyleOptions, M as MARKER_PROTECTION_CLASS, N as NumberExpression, P as PaintProps, x as PaintPropsDiff, S as SimplificationStats, y as SimplificationThreshold, U as UnclusteredPointStyleOptions, V as ValidationResult, z as applyMarkerChildProtection, A as applyMarkerProtection, B as boundsToPolygon, H as calculateBounds, I as calculateCentroid, J as calculateZoomThresholds, O as clampLatitude, Q as combineBounds, R as countFeaturesByType, T as createCategoricalColorExpression, W as createCircleStyle, X as createClusterCirclePaint, Y as createClusterStyles, Z as createClusterTextLayout, _ as createContinuousColorExpression, $ as createDynamicLODManager, a0 as createExtrusionHeightExpression, a1 as createExtrusionStyle, a2 as createFillStyle, a3 as createGeoJSONFingerprint, a4 as createHeatmapStyle, a5 as createHoverExpression, a6 as createInteractiveExpression, a7 as createInteractiveStatusColorExpression, a8 as createLineStyle, a9 as createLotFillStyle, aa as createLotOutlineStyle, ab as createSelectionExpression, ac as createStatusColorExpression, ad as createZoomExpression, ae as decimalToDMS, af as deepEqual, ag as ensureValidCoordinates, ah as expandCluster, ai as expandClusterToBounds, aj as extendBounds, ak as filterByGeometryType, al as filterEqual, am as fingerprintEqual, an as formatArea, ao as formatBearing, ap as formatBounds, aq as formatCoordinates, ar as formatDistance, as as formatFeatureProperties, at as formatLabel, au as formatPitch, av as formatPropertyValue, aw as formatScale, ax as formatZoom, ay as generateBoundingPolygon, az as generateConvexHull, aA as generateFeatureCollectionDescription, aB as generateFeatureTable, aC as generateKeyboardControlsDescription, aD as generateLODData, aE as generateLODDataWithSimplification, aF as generateMapDescription, aG as generateMarkerList, aH as generateMarkersDescription, aI as generateMoveAnnouncement, aJ as geoJSONEqual, aK as getChangedPaintProps, aL as getClusterBounds, aM as getClusterChildren, aN as getClusterExpansionZoom, aO as getClusterLeaves, aP as getGridNavigationIndex, aQ as getHighlightStyle, aR as getSelectionStyle, aS as getSimplificationToleranceForZoom, aT as getSimplifiedFeaturesForZoom, aU as groupFeaturesByProperty, aV as isClusterFeature, aW as isValidBounds, aX as isValidLatitude, aY as isValidLongitude, aZ as loadGeoJSON, a_ as normalizeLongitude, a$ as paintPropsEqual, b0 as removeMarkerProtection, b1 as serializeFilter, b2 as simplifyFeature, b3 as simplifyFeatureCollection, b4 as simplifyFeatureCollectionWithStats, b5 as simplifyPolygon, b6 as validateBoundsArray, b7 as validateCoordinates, b8 as validateGeoJSON, b9 as zoomToScale } from './marker-5KqXgC2u.cjs';
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 DynamicLODOptions, m as DynamicLODState, E as ExtrusionHeightOptions, F as FeatureGroup, n as FilterExpression, o as FilterOperator, p as FilterValue, G as GenerateLODOptions, q as GeoJSONFingerprint, r as GroupFeaturesOptions, K as KEYBOARD_CONTROLS, L as LODData, s as LODDataWithSimplification, t as LoadGeoJSONOptions, u as LoadGeoJSONResult, v as LotFillStyleOptions, w as LotOutlineStyleOptions, M as MARKER_PROTECTION_CLASS, N as NumberExpression, P as PaintProps, y as PaintPropsDiff, S as SimplificationStats, z as SimplificationThreshold, U as UnclusteredPointStyleOptions, V as ValidationResult, A as applyMarkerChildProtection, B as applyMarkerProtection, H as boundsToPolygon, I as calculateBounds, J as calculateCentroid, O as calculateZoomThresholds, Q as clampLatitude, R as combineBounds, T as countFeaturesByType, W as createCategoricalColorExpression, X as createCircleStyle, Y as createClusterCirclePaint, Z as createClusterStyles, _ as createClusterTextLayout, $ as createContinuousColorExpression, a0 as createDynamicLODManager, a1 as createExtrusionHeightExpression, a2 as createExtrusionStyle, a3 as createFillStyle, a4 as createGeoJSONFingerprint, a5 as createHeatmapStyle, a6 as createHoverExpression, a7 as createInteractiveExpression, a8 as createInteractiveStatusColorExpression, a9 as createLineStyle, aa as createLotFillStyle, ab as createLotOutlineStyle, ac as createSelectionExpression, ad as createStatusColorExpression, ae as createZoomExpression, af as decimalToDMS, ag as deepEqual, ah as ensureValidCoordinates, ai as expandCluster, aj as expandClusterToBounds, ak as extendBounds, al as filterByGeometryType, am as filterEqual, an as fingerprintEqual, ao as formatArea, ap as formatBearing, aq as formatBounds, ar as formatCoordinates, as as formatDistance, at as formatFeatureProperties, au as formatLabel, av as formatPitch, aw as formatPropertyValue, ax as formatScale, ay as formatZoom, az as generateBoundingPolygon, aA as generateConvexHull, aB as generateFeatureCollectionDescription, aC as generateFeatureTable, aD as generateKeyboardControlsDescription, aE as generateLODData, aF as generateLODDataWithSimplification, aG as generateMapDescription, aH as generateMarkerList, aI as generateMarkersDescription, aJ as generateMoveAnnouncement, aK as geoJSONEqual, aL as getChangedPaintProps, aM as getClusterBounds, aN as getClusterChildren, aO as getClusterExpansionZoom, aP as getClusterLeaves, aQ as getGridNavigationIndex, aR as getHighlightStyle, aS as getSelectionStyle, aT as getSimplificationToleranceForZoom, aU as getSimplifiedFeaturesForZoom, aV as groupFeaturesByProperty, aW as isClusterFeature, aX as isValidBounds, aY as isValidLatitude, aZ as isValidLongitude, a_ as loadGeoJSON, a$ as normalizeLongitude, b0 as paintPropsEqual, b1 as removeMarkerProtection, b2 as resetWorkerUrlWarning, b3 as serializeFilter, b4 as simplifyFeature, b5 as simplifyFeatureCollection, b6 as simplifyFeatureCollectionWithStats, b7 as simplifyPolygon, b8 as validateBoundsArray, b9 as validateCoordinates, ba as validateGeoJSON, bb as warnIfWorkerUrlMissing, bc as zoomToScale } from './worker-BvmbGSPq.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
 
package/dist/index.d.ts CHANGED
@@ -3,8 +3,8 @@ export { MapStyleSpec, darkBasicStyle, generateBasicStyle, generateVectorStyle,
3
3
  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
- 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, 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 DynamicLODOptions, m as DynamicLODState, E as ExtrusionHeightOptions, F as FeatureGroup, n as FilterExpression, o as FilterOperator, p as FilterValue, G as GenerateLODOptions, q as GeoJSONFingerprint, r as GroupFeaturesOptions, K as KEYBOARD_CONTROLS, L as LODData, s as LODDataWithSimplification, t as LoadGeoJSONOptions, u as LoadGeoJSONResult, v as LotFillStyleOptions, w as LotOutlineStyleOptions, M as MARKER_PROTECTION_CLASS, N as NumberExpression, P as PaintProps, x as PaintPropsDiff, S as SimplificationStats, y as SimplificationThreshold, U as UnclusteredPointStyleOptions, V as ValidationResult, z as applyMarkerChildProtection, A as applyMarkerProtection, B as boundsToPolygon, H as calculateBounds, I as calculateCentroid, J as calculateZoomThresholds, O as clampLatitude, Q as combineBounds, R as countFeaturesByType, T as createCategoricalColorExpression, W as createCircleStyle, X as createClusterCirclePaint, Y as createClusterStyles, Z as createClusterTextLayout, _ as createContinuousColorExpression, $ as createDynamicLODManager, a0 as createExtrusionHeightExpression, a1 as createExtrusionStyle, a2 as createFillStyle, a3 as createGeoJSONFingerprint, a4 as createHeatmapStyle, a5 as createHoverExpression, a6 as createInteractiveExpression, a7 as createInteractiveStatusColorExpression, a8 as createLineStyle, a9 as createLotFillStyle, aa as createLotOutlineStyle, ab as createSelectionExpression, ac as createStatusColorExpression, ad as createZoomExpression, ae as decimalToDMS, af as deepEqual, ag as ensureValidCoordinates, ah as expandCluster, ai as expandClusterToBounds, aj as extendBounds, ak as filterByGeometryType, al as filterEqual, am as fingerprintEqual, an as formatArea, ao as formatBearing, ap as formatBounds, aq as formatCoordinates, ar as formatDistance, as as formatFeatureProperties, at as formatLabel, au as formatPitch, av as formatPropertyValue, aw as formatScale, ax as formatZoom, ay as generateBoundingPolygon, az as generateConvexHull, aA as generateFeatureCollectionDescription, aB as generateFeatureTable, aC as generateKeyboardControlsDescription, aD as generateLODData, aE as generateLODDataWithSimplification, aF as generateMapDescription, aG as generateMarkerList, aH as generateMarkersDescription, aI as generateMoveAnnouncement, aJ as geoJSONEqual, aK as getChangedPaintProps, aL as getClusterBounds, aM as getClusterChildren, aN as getClusterExpansionZoom, aO as getClusterLeaves, aP as getGridNavigationIndex, aQ as getHighlightStyle, aR as getSelectionStyle, aS as getSimplificationToleranceForZoom, aT as getSimplifiedFeaturesForZoom, aU as groupFeaturesByProperty, aV as isClusterFeature, aW as isValidBounds, aX as isValidLatitude, aY as isValidLongitude, aZ as loadGeoJSON, a_ as normalizeLongitude, a$ as paintPropsEqual, b0 as removeMarkerProtection, b1 as serializeFilter, b2 as simplifyFeature, b3 as simplifyFeatureCollection, b4 as simplifyFeatureCollectionWithStats, b5 as simplifyPolygon, b6 as validateBoundsArray, b7 as validateCoordinates, b8 as validateGeoJSON, b9 as zoomToScale } from './marker-Dqz53Ym7.js';
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 DynamicLODOptions, m as DynamicLODState, E as ExtrusionHeightOptions, F as FeatureGroup, n as FilterExpression, o as FilterOperator, p as FilterValue, G as GenerateLODOptions, q as GeoJSONFingerprint, r as GroupFeaturesOptions, K as KEYBOARD_CONTROLS, L as LODData, s as LODDataWithSimplification, t as LoadGeoJSONOptions, u as LoadGeoJSONResult, v as LotFillStyleOptions, w as LotOutlineStyleOptions, M as MARKER_PROTECTION_CLASS, N as NumberExpression, P as PaintProps, y as PaintPropsDiff, S as SimplificationStats, z as SimplificationThreshold, U as UnclusteredPointStyleOptions, V as ValidationResult, A as applyMarkerChildProtection, B as applyMarkerProtection, H as boundsToPolygon, I as calculateBounds, J as calculateCentroid, O as calculateZoomThresholds, Q as clampLatitude, R as combineBounds, T as countFeaturesByType, W as createCategoricalColorExpression, X as createCircleStyle, Y as createClusterCirclePaint, Z as createClusterStyles, _ as createClusterTextLayout, $ as createContinuousColorExpression, a0 as createDynamicLODManager, a1 as createExtrusionHeightExpression, a2 as createExtrusionStyle, a3 as createFillStyle, a4 as createGeoJSONFingerprint, a5 as createHeatmapStyle, a6 as createHoverExpression, a7 as createInteractiveExpression, a8 as createInteractiveStatusColorExpression, a9 as createLineStyle, aa as createLotFillStyle, ab as createLotOutlineStyle, ac as createSelectionExpression, ad as createStatusColorExpression, ae as createZoomExpression, af as decimalToDMS, ag as deepEqual, ah as ensureValidCoordinates, ai as expandCluster, aj as expandClusterToBounds, ak as extendBounds, al as filterByGeometryType, am as filterEqual, an as fingerprintEqual, ao as formatArea, ap as formatBearing, aq as formatBounds, ar as formatCoordinates, as as formatDistance, at as formatFeatureProperties, au as formatLabel, av as formatPitch, aw as formatPropertyValue, ax as formatScale, ay as formatZoom, az as generateBoundingPolygon, aA as generateConvexHull, aB as generateFeatureCollectionDescription, aC as generateFeatureTable, aD as generateKeyboardControlsDescription, aE as generateLODData, aF as generateLODDataWithSimplification, aG as generateMapDescription, aH as generateMarkerList, aI as generateMarkersDescription, aJ as generateMoveAnnouncement, aK as geoJSONEqual, aL as getChangedPaintProps, aM as getClusterBounds, aN as getClusterChildren, aO as getClusterExpansionZoom, aP as getClusterLeaves, aQ as getGridNavigationIndex, aR as getHighlightStyle, aS as getSelectionStyle, aT as getSimplificationToleranceForZoom, aU as getSimplifiedFeaturesForZoom, aV as groupFeaturesByProperty, aW as isClusterFeature, aX as isValidBounds, aY as isValidLatitude, aZ as isValidLongitude, a_ as loadGeoJSON, a$ as normalizeLongitude, b0 as paintPropsEqual, b1 as removeMarkerProtection, b2 as resetWorkerUrlWarning, b3 as serializeFilter, b4 as simplifyFeature, b5 as simplifyFeatureCollection, b6 as simplifyFeatureCollectionWithStats, b7 as simplifyPolygon, b8 as validateBoundsArray, b9 as validateCoordinates, ba as validateGeoJSON, bb as warnIfWorkerUrlMissing, bc as zoomToScale } from './worker-Cmyx33j4.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
 
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { lightBasicStyle, darkBasicStyle } from './chunk-6WMCIBJJ.js';
2
2
  export { darkBasicStyle, generateBasicStyle, generateVectorStyle, getBasicStyle, lightBasicStyle } from './chunk-6WMCIBJJ.js';
3
- import { createCategoricalColorExpression } from './chunk-BWZMIFZI.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, serializeFilter, simplifyFeature, simplifyFeatureCollection, simplifyFeatureCollectionWithStats, simplifyPolygon, validateBoundsArray, validateCoordinates, validateGeoJSON, zoomToScale } from './chunk-BWZMIFZI.js';
3
+ import { createCategoricalColorExpression } from './chunk-4YUKENCX.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-4YUKENCX.js';
5
5
  export { THEME_DARK, THEME_LIGHT, darkTheme, generateDarkColors, generateDarkDataColors, generateDarkTheme, generateLightColors, generateLightDataColors, generateLightTheme, getTheme, getTypography, lightTheme } from './chunk-ZGUACUEF.js';
6
6
  import { getContrastTextColor as getContrastTextColor$1 } from '@classic-homes/theme-tokens/contrast';
7
7
  import { colors } from '@classic-homes/theme-tokens';
@@ -134,6 +134,18 @@ interface PopupEventParams {
134
134
  /** Popup coordinates [lng, lat] */
135
135
  lngLat: LngLat;
136
136
  }
137
+ /**
138
+ * The shape MapLibre guarantees on an error event.
139
+ *
140
+ * Not `Error`: MapLibre 6 narrowed `ErrorEvent.error` to `{ message: string }`,
141
+ * so a real `Error` satisfies this but the reverse does not hold. Read
142
+ * `message`; treat `name` and `stack` as best-effort.
143
+ */
144
+ interface MapErrorLike {
145
+ message: string;
146
+ name?: string;
147
+ stack?: string;
148
+ }
137
149
  /**
138
150
  * Error event parameters
139
151
  */
@@ -143,8 +155,8 @@ interface MapErrorEventParams {
143
155
  message: string;
144
156
  /** Error source (e.g., 'tile', 'source', 'layer') */
145
157
  source?: string;
146
- /** Original error object */
147
- error?: Error;
158
+ /** Original error object, as MapLibre reported it */
159
+ error?: MapErrorLike;
148
160
  /**
149
161
  * True when the error replaced the map with the error panel (it happened
150
162
  * before the map first loaded). False for failures after load — a missing
@@ -884,4 +896,4 @@ interface BasemapSwitcherProps extends BaseControlProps {
884
896
  class?: string;
885
897
  }
886
898
 
887
- export { type BaseControlProps, type BaseLayerProps, type BaseMapEventParams, type BaseMapProps, type BasemapApiKeys, type BasemapCategory, type BasemapDefinition, type BasemapProvider, type BasemapSwitcherProps, BoundsArray, type CircleLayerProps, ClusterConfig, type ControlPosition, type CoordinateDisplayProps, type FeatureClickEventParams, type FeatureHoverEventParams, type FillExtrusionLayerProps, type FillLayerProps, GeoJSONFeature, GeoJSONFeatureCollection, type GeolocateControlProps, type GradientStop, type HeatmapLayerProps, type LegendConfig, type LegendGroupProps, type LegendItem, type LegendProps, type LineLayerProps, LngLat, MapBounds, type MapClickEventParams, type MapErrorEventParams, type MapHoverEventParams, type MapLayerSpecBase, type MapLoadEventParams, type MapMoveEventParams, type MapProps, MapSourceData, type MapSourceSpec, type MapStyleSpec, type MarkerClickEventParams, type MarkerDragEventParams, type MarkerProps, type NavigationControlProps, type PopupEventParams, type PopupProps, type RasterLayerProps, type ScaleControlProps, type SourceProps, type SymbolLayerProps };
899
+ export { type BaseControlProps, type BaseLayerProps, type BaseMapEventParams, type BaseMapProps, type BasemapApiKeys, type BasemapCategory, type BasemapDefinition, type BasemapProvider, type BasemapSwitcherProps, BoundsArray, type CircleLayerProps, ClusterConfig, type ControlPosition, type CoordinateDisplayProps, type FeatureClickEventParams, type FeatureHoverEventParams, type FillExtrusionLayerProps, type FillLayerProps, GeoJSONFeature, GeoJSONFeatureCollection, type GeolocateControlProps, type GradientStop, type HeatmapLayerProps, type LegendConfig, type LegendGroupProps, type LegendItem, type LegendProps, type LineLayerProps, LngLat, MapBounds, type MapClickEventParams, type MapErrorEventParams, type MapErrorLike, type MapHoverEventParams, type MapLayerSpecBase, type MapLoadEventParams, type MapMoveEventParams, type MapProps, MapSourceData, type MapSourceSpec, type MapStyleSpec, type MarkerClickEventParams, type MarkerDragEventParams, type MarkerProps, type NavigationControlProps, type PopupEventParams, type PopupProps, type RasterLayerProps, type ScaleControlProps, type SourceProps, type SymbolLayerProps };
@@ -134,6 +134,18 @@ interface PopupEventParams {
134
134
  /** Popup coordinates [lng, lat] */
135
135
  lngLat: LngLat;
136
136
  }
137
+ /**
138
+ * The shape MapLibre guarantees on an error event.
139
+ *
140
+ * Not `Error`: MapLibre 6 narrowed `ErrorEvent.error` to `{ message: string }`,
141
+ * so a real `Error` satisfies this but the reverse does not hold. Read
142
+ * `message`; treat `name` and `stack` as best-effort.
143
+ */
144
+ interface MapErrorLike {
145
+ message: string;
146
+ name?: string;
147
+ stack?: string;
148
+ }
137
149
  /**
138
150
  * Error event parameters
139
151
  */
@@ -143,8 +155,8 @@ interface MapErrorEventParams {
143
155
  message: string;
144
156
  /** Error source (e.g., 'tile', 'source', 'layer') */
145
157
  source?: string;
146
- /** Original error object */
147
- error?: Error;
158
+ /** Original error object, as MapLibre reported it */
159
+ error?: MapErrorLike;
148
160
  /**
149
161
  * True when the error replaced the map with the error panel (it happened
150
162
  * before the map first loaded). False for failures after load — a missing
@@ -884,4 +896,4 @@ interface BasemapSwitcherProps extends BaseControlProps {
884
896
  class?: string;
885
897
  }
886
898
 
887
- export { type BaseControlProps, type BaseLayerProps, type BaseMapEventParams, type BaseMapProps, type BasemapApiKeys, type BasemapCategory, type BasemapDefinition, type BasemapProvider, type BasemapSwitcherProps, BoundsArray, type CircleLayerProps, ClusterConfig, type ControlPosition, type CoordinateDisplayProps, type FeatureClickEventParams, type FeatureHoverEventParams, type FillExtrusionLayerProps, type FillLayerProps, GeoJSONFeature, GeoJSONFeatureCollection, type GeolocateControlProps, type GradientStop, type HeatmapLayerProps, type LegendConfig, type LegendGroupProps, type LegendItem, type LegendProps, type LineLayerProps, LngLat, MapBounds, type MapClickEventParams, type MapErrorEventParams, type MapHoverEventParams, type MapLayerSpecBase, type MapLoadEventParams, type MapMoveEventParams, type MapProps, MapSourceData, type MapSourceSpec, type MapStyleSpec, type MarkerClickEventParams, type MarkerDragEventParams, type MarkerProps, type NavigationControlProps, type PopupEventParams, type PopupProps, type RasterLayerProps, type ScaleControlProps, type SourceProps, type SymbolLayerProps };
899
+ export { type BaseControlProps, type BaseLayerProps, type BaseMapEventParams, type BaseMapProps, type BasemapApiKeys, type BasemapCategory, type BasemapDefinition, type BasemapProvider, type BasemapSwitcherProps, BoundsArray, type CircleLayerProps, ClusterConfig, type ControlPosition, type CoordinateDisplayProps, type FeatureClickEventParams, type FeatureHoverEventParams, type FillExtrusionLayerProps, type FillLayerProps, GeoJSONFeature, GeoJSONFeatureCollection, type GeolocateControlProps, type GradientStop, type HeatmapLayerProps, type LegendConfig, type LegendGroupProps, type LegendItem, type LegendProps, type LineLayerProps, LngLat, MapBounds, type MapClickEventParams, type MapErrorEventParams, type MapErrorLike, type MapHoverEventParams, type MapLayerSpecBase, type MapLoadEventParams, type MapMoveEventParams, type MapProps, MapSourceData, type MapSourceSpec, type MapStyleSpec, type MarkerClickEventParams, type MarkerDragEventParams, type MarkerProps, type NavigationControlProps, type PopupEventParams, type PopupProps, type RasterLayerProps, type ScaleControlProps, type SourceProps, type SymbolLayerProps };
@@ -3001,6 +3001,35 @@ function panToFitPopup(map, popup, padding) {
3001
3001
  }
3002
3002
  }
3003
3003
 
3004
+ // src/utils/worker.ts
3005
+ var SETUP_HINT = ` import { setWorkerUrl } from 'maplibre-gl';
3006
+ import workerUrl from 'maplibre-gl/dist/maplibre-gl-worker.mjs?worker&url'; // Vite
3007
+ setWorkerUrl(workerUrl);
3008
+
3009
+ Webpack: setWorkerUrl(new URL("maplibre-gl/dist/maplibre-gl-worker.mjs", import.meta.url).toString()). See https://maplibre.org/maplibre-gl-js/docs/guides/v5-to-v6-migration-guide/`;
3010
+ var warnedMissingUrl = false;
3011
+ function resetWorkerUrlWarning() {
3012
+ warnedMissingUrl = false;
3013
+ }
3014
+ function warnIfWorkerUrlMissing(maplibregl, log = console.warn) {
3015
+ if (warnedMissingUrl) return false;
3016
+ try {
3017
+ if (typeof maplibregl?.getVersion !== "function" || typeof maplibregl.getWorkerUrl !== "function") {
3018
+ return false;
3019
+ }
3020
+ const major = Number.parseInt(maplibregl.getVersion(), 10);
3021
+ if (!Number.isFinite(major) || major < 6) return false;
3022
+ if (maplibregl.getWorkerUrl()) return false;
3023
+ warnedMissingUrl = true;
3024
+ log(
3025
+ "[maps] MapLibre " + major + ' has no worker URL set. Under a bundler it cannot find its worker on its own, so the map fails with "Worker failed to load". Call setWorkerUrl() once at app startup:\n\n' + SETUP_HINT
3026
+ );
3027
+ return true;
3028
+ } catch {
3029
+ return false;
3030
+ }
3031
+ }
3032
+
3004
3033
  exports.DEFAULT_SIMPLIFICATION_THRESHOLDS = DEFAULT_SIMPLIFICATION_THRESHOLDS;
3005
3034
  exports.KEYBOARD_CONTROLS = KEYBOARD_CONTROLS;
3006
3035
  exports.MARKER_PROTECTION_CLASS = MARKER_PROTECTION_CLASS;
@@ -3099,6 +3128,7 @@ exports.queryByBoundsWithStats = queryByBoundsWithStats;
3099
3128
  exports.queryRTreeByBounds = queryRTreeByBounds;
3100
3129
  exports.queryRTreeByBoundsWithStats = queryRTreeByBoundsWithStats;
3101
3130
  exports.removeMarkerProtection = removeMarkerProtection;
3131
+ exports.resetWorkerUrlWarning = resetWorkerUrlWarning;
3102
3132
  exports.serializeFilter = serializeFilter;
3103
3133
  exports.simplifyFeature = simplifyFeature;
3104
3134
  exports.simplifyFeatureCollection = simplifyFeatureCollection;
@@ -3107,4 +3137,5 @@ exports.simplifyPolygon = simplifyPolygon;
3107
3137
  exports.validateBoundsArray = validateBoundsArray;
3108
3138
  exports.validateCoordinates = validateCoordinates;
3109
3139
  exports.validateGeoJSON = validateGeoJSON;
3140
+ exports.warnIfWorkerUrlMissing = warnIfWorkerUrlMissing;
3110
3141
  exports.zoomToScale = zoomToScale;
@@ -1,4 +1,4 @@
1
- export { C as ClusterCircleStyleOptions, a as ClusterExpandOptions, b as ClusterExpansionResult, c as ClusterFeatureProperties, d as ClusterLayerStyles, e as ClusterMapBoundsExpander, f as ClusterMapExpander, g as ClusterMapReader, h as ClusterTextStyleOptions, i as ClusterableGeoJSONSource, j as ColorExpression, k as CoordinateValidationResult, D as DEFAULT_SIMPLIFICATION_THRESHOLDS, l as DynamicLODOptions, m as DynamicLODState, E as ExtrusionHeightOptions, F as FeatureGroup, n as FilterExpression, o as FilterOperator, p as FilterValue, G as GenerateLODOptions, q as GeoJSONFingerprint, r as GroupFeaturesOptions, K as KEYBOARD_CONTROLS, L as LODData, s as LODDataWithSimplification, t as LoadGeoJSONOptions, u as LoadGeoJSONResult, v as LotFillStyleOptions, w as LotOutlineStyleOptions, M as MARKER_PROTECTION_CLASS, N as NumberExpression, P as PaintProps, x as PaintPropsDiff, S as SimplificationStats, y as SimplificationThreshold, U as UnclusteredPointStyleOptions, V as ValidationResult, z as applyMarkerChildProtection, A as applyMarkerProtection, B as boundsToPolygon, H as calculateBounds, I as calculateCentroid, J as calculateZoomThresholds, O as clampLatitude, Q as combineBounds, R as countFeaturesByType, T as createCategoricalColorExpression, W as createCircleStyle, X as createClusterCirclePaint, Y as createClusterStyles, Z as createClusterTextLayout, _ as createContinuousColorExpression, $ as createDynamicLODManager, a0 as createExtrusionHeightExpression, a1 as createExtrusionStyle, a2 as createFillStyle, a3 as createGeoJSONFingerprint, a4 as createHeatmapStyle, a5 as createHoverExpression, a6 as createInteractiveExpression, a7 as createInteractiveStatusColorExpression, a8 as createLineStyle, a9 as createLotFillStyle, aa as createLotOutlineStyle, ab as createSelectionExpression, ac as createStatusColorExpression, ad as createZoomExpression, ae as decimalToDMS, af as deepEqual, ag as ensureValidCoordinates, ah as expandCluster, ai as expandClusterToBounds, aj as extendBounds, ak as filterByGeometryType, al as filterEqual, am as fingerprintEqual, an as formatArea, ao as formatBearing, ap as formatBounds, aq as formatCoordinates, ar as formatDistance, as as formatFeatureProperties, at as formatLabel, au as formatPitch, av as formatPropertyValue, aw as formatScale, ax as formatZoom, ay as generateBoundingPolygon, az as generateConvexHull, aA as generateFeatureCollectionDescription, aB as generateFeatureTable, aC as generateKeyboardControlsDescription, aD as generateLODData, aE as generateLODDataWithSimplification, aF as generateMapDescription, aG as generateMarkerList, aH as generateMarkersDescription, aI as generateMoveAnnouncement, aJ as geoJSONEqual, aK as getChangedPaintProps, aL as getClusterBounds, aM as getClusterChildren, aN as getClusterExpansionZoom, aO as getClusterLeaves, aP as getGridNavigationIndex, aQ as getHighlightStyle, aR as getSelectionStyle, aS as getSimplificationToleranceForZoom, aT as getSimplifiedFeaturesForZoom, aU as groupFeaturesByProperty, aV as isClusterFeature, aW as isValidBounds, aX as isValidLatitude, aY as isValidLongitude, aZ as loadGeoJSON, a_ as normalizeLongitude, a$ as paintPropsEqual, b0 as removeMarkerProtection, b1 as serializeFilter, b2 as simplifyFeature, b3 as simplifyFeatureCollection, b4 as simplifyFeatureCollectionWithStats, b5 as simplifyPolygon, b6 as validateBoundsArray, b7 as validateCoordinates, b8 as validateGeoJSON, b9 as zoomToScale } from '../marker-5KqXgC2u.cjs';
1
+ export { C as ClusterCircleStyleOptions, a as ClusterExpandOptions, b as ClusterExpansionResult, c as ClusterFeatureProperties, d as ClusterLayerStyles, e as ClusterMapBoundsExpander, f as ClusterMapExpander, g as ClusterMapReader, h as ClusterTextStyleOptions, i as ClusterableGeoJSONSource, j as ColorExpression, k as CoordinateValidationResult, D as DEFAULT_SIMPLIFICATION_THRESHOLDS, l as DynamicLODOptions, m as DynamicLODState, E as ExtrusionHeightOptions, F as FeatureGroup, n as FilterExpression, o as FilterOperator, p as FilterValue, G as GenerateLODOptions, q as GeoJSONFingerprint, r as GroupFeaturesOptions, K as KEYBOARD_CONTROLS, L as LODData, s as LODDataWithSimplification, t as LoadGeoJSONOptions, u as LoadGeoJSONResult, v as LotFillStyleOptions, w as LotOutlineStyleOptions, M as MARKER_PROTECTION_CLASS, x as MapLibreWorkerApi, N as NumberExpression, P as PaintProps, y as PaintPropsDiff, S as SimplificationStats, z as SimplificationThreshold, U as UnclusteredPointStyleOptions, V as ValidationResult, A as applyMarkerChildProtection, B as applyMarkerProtection, H as boundsToPolygon, I as calculateBounds, J as calculateCentroid, O as calculateZoomThresholds, Q as clampLatitude, R as combineBounds, T as countFeaturesByType, W as createCategoricalColorExpression, X as createCircleStyle, Y as createClusterCirclePaint, Z as createClusterStyles, _ as createClusterTextLayout, $ as createContinuousColorExpression, a0 as createDynamicLODManager, a1 as createExtrusionHeightExpression, a2 as createExtrusionStyle, a3 as createFillStyle, a4 as createGeoJSONFingerprint, a5 as createHeatmapStyle, a6 as createHoverExpression, a7 as createInteractiveExpression, a8 as createInteractiveStatusColorExpression, a9 as createLineStyle, aa as createLotFillStyle, ab as createLotOutlineStyle, ac as createSelectionExpression, ad as createStatusColorExpression, ae as createZoomExpression, af as decimalToDMS, ag as deepEqual, ah as ensureValidCoordinates, ai as expandCluster, aj as expandClusterToBounds, ak as extendBounds, al as filterByGeometryType, am as filterEqual, an as fingerprintEqual, ao as formatArea, ap as formatBearing, aq as formatBounds, ar as formatCoordinates, as as formatDistance, at as formatFeatureProperties, au as formatLabel, av as formatPitch, aw as formatPropertyValue, ax as formatScale, ay as formatZoom, az as generateBoundingPolygon, aA as generateConvexHull, aB as generateFeatureCollectionDescription, aC as generateFeatureTable, aD as generateKeyboardControlsDescription, aE as generateLODData, aF as generateLODDataWithSimplification, aG as generateMapDescription, aH as generateMarkerList, aI as generateMarkersDescription, aJ as generateMoveAnnouncement, aK as geoJSONEqual, aL as getChangedPaintProps, aM as getClusterBounds, aN as getClusterChildren, aO as getClusterExpansionZoom, aP as getClusterLeaves, aQ as getGridNavigationIndex, aR as getHighlightStyle, aS as getSelectionStyle, aT as getSimplificationToleranceForZoom, aU as getSimplifiedFeaturesForZoom, aV as groupFeaturesByProperty, aW as isClusterFeature, aX as isValidBounds, aY as isValidLatitude, aZ as isValidLongitude, a_ as loadGeoJSON, a$ as normalizeLongitude, b0 as paintPropsEqual, b1 as removeMarkerProtection, b2 as resetWorkerUrlWarning, b3 as serializeFilter, b4 as simplifyFeature, b5 as simplifyFeatureCollection, b6 as simplifyFeatureCollectionWithStats, b7 as simplifyPolygon, b8 as validateBoundsArray, b9 as validateCoordinates, ba as validateGeoJSON, bb as warnIfWorkerUrlMissing, bc as zoomToScale } from '../worker-BvmbGSPq.cjs';
2
2
  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';
3
3
  import '../data-DCyEqgN0.cjs';
4
4
  import '../generator-CU9ZTZ1v.cjs';
@@ -1,4 +1,4 @@
1
- export { C as ClusterCircleStyleOptions, a as ClusterExpandOptions, b as ClusterExpansionResult, c as ClusterFeatureProperties, d as ClusterLayerStyles, e as ClusterMapBoundsExpander, f as ClusterMapExpander, g as ClusterMapReader, h as ClusterTextStyleOptions, i as ClusterableGeoJSONSource, j as ColorExpression, k as CoordinateValidationResult, D as DEFAULT_SIMPLIFICATION_THRESHOLDS, l as DynamicLODOptions, m as DynamicLODState, E as ExtrusionHeightOptions, F as FeatureGroup, n as FilterExpression, o as FilterOperator, p as FilterValue, G as GenerateLODOptions, q as GeoJSONFingerprint, r as GroupFeaturesOptions, K as KEYBOARD_CONTROLS, L as LODData, s as LODDataWithSimplification, t as LoadGeoJSONOptions, u as LoadGeoJSONResult, v as LotFillStyleOptions, w as LotOutlineStyleOptions, M as MARKER_PROTECTION_CLASS, N as NumberExpression, P as PaintProps, x as PaintPropsDiff, S as SimplificationStats, y as SimplificationThreshold, U as UnclusteredPointStyleOptions, V as ValidationResult, z as applyMarkerChildProtection, A as applyMarkerProtection, B as boundsToPolygon, H as calculateBounds, I as calculateCentroid, J as calculateZoomThresholds, O as clampLatitude, Q as combineBounds, R as countFeaturesByType, T as createCategoricalColorExpression, W as createCircleStyle, X as createClusterCirclePaint, Y as createClusterStyles, Z as createClusterTextLayout, _ as createContinuousColorExpression, $ as createDynamicLODManager, a0 as createExtrusionHeightExpression, a1 as createExtrusionStyle, a2 as createFillStyle, a3 as createGeoJSONFingerprint, a4 as createHeatmapStyle, a5 as createHoverExpression, a6 as createInteractiveExpression, a7 as createInteractiveStatusColorExpression, a8 as createLineStyle, a9 as createLotFillStyle, aa as createLotOutlineStyle, ab as createSelectionExpression, ac as createStatusColorExpression, ad as createZoomExpression, ae as decimalToDMS, af as deepEqual, ag as ensureValidCoordinates, ah as expandCluster, ai as expandClusterToBounds, aj as extendBounds, ak as filterByGeometryType, al as filterEqual, am as fingerprintEqual, an as formatArea, ao as formatBearing, ap as formatBounds, aq as formatCoordinates, ar as formatDistance, as as formatFeatureProperties, at as formatLabel, au as formatPitch, av as formatPropertyValue, aw as formatScale, ax as formatZoom, ay as generateBoundingPolygon, az as generateConvexHull, aA as generateFeatureCollectionDescription, aB as generateFeatureTable, aC as generateKeyboardControlsDescription, aD as generateLODData, aE as generateLODDataWithSimplification, aF as generateMapDescription, aG as generateMarkerList, aH as generateMarkersDescription, aI as generateMoveAnnouncement, aJ as geoJSONEqual, aK as getChangedPaintProps, aL as getClusterBounds, aM as getClusterChildren, aN as getClusterExpansionZoom, aO as getClusterLeaves, aP as getGridNavigationIndex, aQ as getHighlightStyle, aR as getSelectionStyle, aS as getSimplificationToleranceForZoom, aT as getSimplifiedFeaturesForZoom, aU as groupFeaturesByProperty, aV as isClusterFeature, aW as isValidBounds, aX as isValidLatitude, aY as isValidLongitude, aZ as loadGeoJSON, a_ as normalizeLongitude, a$ as paintPropsEqual, b0 as removeMarkerProtection, b1 as serializeFilter, b2 as simplifyFeature, b3 as simplifyFeatureCollection, b4 as simplifyFeatureCollectionWithStats, b5 as simplifyPolygon, b6 as validateBoundsArray, b7 as validateCoordinates, b8 as validateGeoJSON, b9 as zoomToScale } from '../marker-Dqz53Ym7.js';
1
+ export { C as ClusterCircleStyleOptions, a as ClusterExpandOptions, b as ClusterExpansionResult, c as ClusterFeatureProperties, d as ClusterLayerStyles, e as ClusterMapBoundsExpander, f as ClusterMapExpander, g as ClusterMapReader, h as ClusterTextStyleOptions, i as ClusterableGeoJSONSource, j as ColorExpression, k as CoordinateValidationResult, D as DEFAULT_SIMPLIFICATION_THRESHOLDS, l as DynamicLODOptions, m as DynamicLODState, E as ExtrusionHeightOptions, F as FeatureGroup, n as FilterExpression, o as FilterOperator, p as FilterValue, G as GenerateLODOptions, q as GeoJSONFingerprint, r as GroupFeaturesOptions, K as KEYBOARD_CONTROLS, L as LODData, s as LODDataWithSimplification, t as LoadGeoJSONOptions, u as LoadGeoJSONResult, v as LotFillStyleOptions, w as LotOutlineStyleOptions, M as MARKER_PROTECTION_CLASS, x as MapLibreWorkerApi, N as NumberExpression, P as PaintProps, y as PaintPropsDiff, S as SimplificationStats, z as SimplificationThreshold, U as UnclusteredPointStyleOptions, V as ValidationResult, A as applyMarkerChildProtection, B as applyMarkerProtection, H as boundsToPolygon, I as calculateBounds, J as calculateCentroid, O as calculateZoomThresholds, Q as clampLatitude, R as combineBounds, T as countFeaturesByType, W as createCategoricalColorExpression, X as createCircleStyle, Y as createClusterCirclePaint, Z as createClusterStyles, _ as createClusterTextLayout, $ as createContinuousColorExpression, a0 as createDynamicLODManager, a1 as createExtrusionHeightExpression, a2 as createExtrusionStyle, a3 as createFillStyle, a4 as createGeoJSONFingerprint, a5 as createHeatmapStyle, a6 as createHoverExpression, a7 as createInteractiveExpression, a8 as createInteractiveStatusColorExpression, a9 as createLineStyle, aa as createLotFillStyle, ab as createLotOutlineStyle, ac as createSelectionExpression, ad as createStatusColorExpression, ae as createZoomExpression, af as decimalToDMS, ag as deepEqual, ah as ensureValidCoordinates, ai as expandCluster, aj as expandClusterToBounds, ak as extendBounds, al as filterByGeometryType, am as filterEqual, an as fingerprintEqual, ao as formatArea, ap as formatBearing, aq as formatBounds, ar as formatCoordinates, as as formatDistance, at as formatFeatureProperties, au as formatLabel, av as formatPitch, aw as formatPropertyValue, ax as formatScale, ay as formatZoom, az as generateBoundingPolygon, aA as generateConvexHull, aB as generateFeatureCollectionDescription, aC as generateFeatureTable, aD as generateKeyboardControlsDescription, aE as generateLODData, aF as generateLODDataWithSimplification, aG as generateMapDescription, aH as generateMarkerList, aI as generateMarkersDescription, aJ as generateMoveAnnouncement, aK as geoJSONEqual, aL as getChangedPaintProps, aM as getClusterBounds, aN as getClusterChildren, aO as getClusterExpansionZoom, aP as getClusterLeaves, aQ as getGridNavigationIndex, aR as getHighlightStyle, aS as getSelectionStyle, aT as getSimplificationToleranceForZoom, aU as getSimplifiedFeaturesForZoom, aV as groupFeaturesByProperty, aW as isClusterFeature, aX as isValidBounds, aY as isValidLatitude, aZ as isValidLongitude, a_ as loadGeoJSON, a$ as normalizeLongitude, b0 as paintPropsEqual, b1 as removeMarkerProtection, b2 as resetWorkerUrlWarning, b3 as serializeFilter, b4 as simplifyFeature, b5 as simplifyFeatureCollection, b6 as simplifyFeatureCollectionWithStats, b7 as simplifyPolygon, b8 as validateBoundsArray, b9 as validateCoordinates, ba as validateGeoJSON, bb as warnIfWorkerUrlMissing, bc as zoomToScale } from '../worker-Cmyx33j4.js';
2
2
  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';
3
3
  import '../data-DCyEqgN0.js';
4
4
  import '../generator-CU9ZTZ1v.js';
@@ -1,2 +1,2 @@
1
- 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, normalizePadding, paintPropsEqual, panToFitPopup, prefersReducedMotion, queryByBounds, queryByBoundsWithStats, queryRTreeByBounds, queryRTreeByBoundsWithStats, removeMarkerProtection, serializeFilter, simplifyFeature, simplifyFeatureCollection, simplifyFeatureCollectionWithStats, simplifyPolygon, validateBoundsArray, validateCoordinates, validateGeoJSON, zoomToScale } from '../chunk-BWZMIFZI.js';
1
+ 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, normalizePadding, paintPropsEqual, panToFitPopup, prefersReducedMotion, queryByBounds, queryByBoundsWithStats, queryRTreeByBounds, queryRTreeByBoundsWithStats, removeMarkerProtection, resetWorkerUrlWarning, serializeFilter, simplifyFeature, simplifyFeatureCollection, simplifyFeatureCollectionWithStats, simplifyPolygon, validateBoundsArray, validateCoordinates, validateGeoJSON, warnIfWorkerUrlMissing, zoomToScale } from '../chunk-4YUKENCX.js';
2
2
  import '../chunk-ZGUACUEF.js';
@@ -1495,4 +1495,35 @@ declare function removeMarkerProtection(element: HTMLElement): void;
1495
1495
  */
1496
1496
  declare function applyMarkerChildProtection(element: HTMLElement): void;
1497
1497
 
1498
- export { createDynamicLODManager as $, applyMarkerProtection as A, boundsToPolygon as B, type ClusterCircleStyleOptions as C, DEFAULT_SIMPLIFICATION_THRESHOLDS as D, type ExtrusionHeightOptions as E, type FeatureGroup as F, type GenerateLODOptions as G, calculateBounds as H, calculateCentroid as I, calculateZoomThresholds as J, KEYBOARD_CONTROLS as K, type LODData as L, MARKER_PROTECTION_CLASS as M, type NumberExpression as N, clampLatitude as O, type PaintProps as P, combineBounds as Q, countFeaturesByType as R, type SimplificationStats as S, createCategoricalColorExpression as T, type UnclusteredPointStyleOptions as U, type ValidationResult as V, createCircleStyle as W, createClusterCirclePaint as X, createClusterStyles as Y, createClusterTextLayout as Z, createContinuousColorExpression as _, type ClusterExpandOptions as a, paintPropsEqual as a$, createExtrusionHeightExpression as a0, createExtrusionStyle as a1, createFillStyle as a2, createGeoJSONFingerprint as a3, createHeatmapStyle as a4, createHoverExpression as a5, createInteractiveExpression as a6, createInteractiveStatusColorExpression as a7, createLineStyle as a8, createLotFillStyle as a9, generateFeatureCollectionDescription as aA, generateFeatureTable as aB, generateKeyboardControlsDescription as aC, generateLODData as aD, generateLODDataWithSimplification as aE, generateMapDescription as aF, generateMarkerList as aG, generateMarkersDescription as aH, generateMoveAnnouncement as aI, geoJSONEqual as aJ, getChangedPaintProps as aK, getClusterBounds as aL, getClusterChildren as aM, getClusterExpansionZoom as aN, getClusterLeaves as aO, getGridNavigationIndex as aP, getHighlightStyle as aQ, getSelectionStyle as aR, getSimplificationToleranceForZoom as aS, getSimplifiedFeaturesForZoom as aT, groupFeaturesByProperty as aU, isClusterFeature as aV, isValidBounds as aW, isValidLatitude as aX, isValidLongitude as aY, loadGeoJSON as aZ, normalizeLongitude as a_, createLotOutlineStyle as aa, createSelectionExpression as ab, createStatusColorExpression as ac, createZoomExpression as ad, decimalToDMS as ae, deepEqual as af, ensureValidCoordinates as ag, expandCluster as ah, expandClusterToBounds as ai, extendBounds as aj, filterByGeometryType as ak, filterEqual as al, fingerprintEqual as am, formatArea as an, formatBearing as ao, formatBounds as ap, formatCoordinates as aq, formatDistance as ar, formatFeatureProperties as as, formatLabel as at, formatPitch as au, formatPropertyValue as av, formatScale as aw, formatZoom as ax, generateBoundingPolygon as ay, generateConvexHull as az, type ClusterExpansionResult as b, removeMarkerProtection as b0, serializeFilter as b1, simplifyFeature as b2, simplifyFeatureCollection as b3, simplifyFeatureCollectionWithStats as b4, simplifyPolygon as b5, validateBoundsArray as b6, validateCoordinates as b7, validateGeoJSON as b8, zoomToScale as b9, type ClusterFeatureProperties as c, type ClusterLayerStyles as d, type ClusterMapBoundsExpander as e, type ClusterMapExpander as f, type ClusterMapReader as g, type ClusterTextStyleOptions as h, type ClusterableGeoJSONSource as i, type ColorExpression as j, type CoordinateValidationResult as k, type DynamicLODOptions as l, type DynamicLODState as m, type FilterExpression as n, type FilterOperator as o, type FilterValue as p, type GeoJSONFingerprint as q, type GroupFeaturesOptions as r, type LODDataWithSimplification as s, type LoadGeoJSONOptions as t, type LoadGeoJSONResult as u, type LotFillStyleOptions as v, type LotOutlineStyleOptions as w, type PaintPropsDiff as x, type SimplificationThreshold as y, applyMarkerChildProtection as z };
1498
+ /**
1499
+ * MapLibre worker-URL guard.
1500
+ *
1501
+ * MapLibre 6 loads its tile worker from a separate file. Under a bundler it
1502
+ * cannot find that file itself: its fallback resolves the worker next to its
1503
+ * own module via `import.meta.url`, which a bundler (and Vite's dependency
1504
+ * pre-bundling) moves. The app has to hand it the URL once with
1505
+ * `setWorkerUrl()`. Without it the worker fails to load and the map shows
1506
+ * MapLibre's "Worker failed to load" error, which names the symptom but not the
1507
+ * fix.
1508
+ *
1509
+ * This warns before the first map is built, with the fix. It cannot fix the
1510
+ * problem from inside the library: the URL is bundler-specific (`?worker&url`
1511
+ * in Vite, `new URL(...)` in webpack), so it belongs to the app.
1512
+ */
1513
+ /** The slice of the maplibre-gl module namespace the worker-URL check needs */
1514
+ interface MapLibreWorkerApi {
1515
+ getVersion?: () => string;
1516
+ getWorkerUrl?: () => string;
1517
+ }
1518
+ /** Reset the once-per-session latch. Tests only. */
1519
+ declare function resetWorkerUrlWarning(): void;
1520
+ /**
1521
+ * Warn once when MapLibre 6+ has no worker URL set.
1522
+ *
1523
+ * Silent on MapLibre 5, which bundles its own worker, and silent when the
1524
+ * version cannot be read - a guess is not worth a false alarm in a consumer's
1525
+ * console. Never throws: it is a diagnostic and must not stop a map mounting.
1526
+ */
1527
+ declare function warnIfWorkerUrlMissing(maplibregl: MapLibreWorkerApi, log?: (message: string) => void): boolean;
1528
+
1529
+ export { createContinuousColorExpression as $, applyMarkerChildProtection as A, applyMarkerProtection as B, type ClusterCircleStyleOptions as C, DEFAULT_SIMPLIFICATION_THRESHOLDS as D, type ExtrusionHeightOptions as E, type FeatureGroup as F, type GenerateLODOptions as G, boundsToPolygon as H, calculateBounds as I, calculateCentroid as J, KEYBOARD_CONTROLS as K, type LODData as L, MARKER_PROTECTION_CLASS as M, type NumberExpression as N, calculateZoomThresholds as O, type PaintProps as P, clampLatitude as Q, combineBounds as R, type SimplificationStats as S, countFeaturesByType as T, type UnclusteredPointStyleOptions as U, type ValidationResult as V, createCategoricalColorExpression as W, createCircleStyle as X, createClusterCirclePaint as Y, createClusterStyles as Z, createClusterTextLayout as _, type ClusterExpandOptions as a, normalizeLongitude as a$, createDynamicLODManager as a0, createExtrusionHeightExpression as a1, createExtrusionStyle as a2, createFillStyle as a3, createGeoJSONFingerprint as a4, createHeatmapStyle as a5, createHoverExpression as a6, createInteractiveExpression as a7, createInteractiveStatusColorExpression as a8, createLineStyle as a9, generateConvexHull as aA, generateFeatureCollectionDescription as aB, generateFeatureTable as aC, generateKeyboardControlsDescription as aD, generateLODData as aE, generateLODDataWithSimplification as aF, generateMapDescription as aG, generateMarkerList as aH, generateMarkersDescription as aI, generateMoveAnnouncement as aJ, geoJSONEqual as aK, getChangedPaintProps as aL, getClusterBounds as aM, getClusterChildren as aN, getClusterExpansionZoom as aO, getClusterLeaves as aP, getGridNavigationIndex as aQ, getHighlightStyle as aR, getSelectionStyle as aS, getSimplificationToleranceForZoom as aT, getSimplifiedFeaturesForZoom as aU, groupFeaturesByProperty as aV, isClusterFeature as aW, isValidBounds as aX, isValidLatitude as aY, isValidLongitude as aZ, loadGeoJSON as a_, createLotFillStyle as aa, createLotOutlineStyle as ab, createSelectionExpression as ac, createStatusColorExpression as ad, createZoomExpression as ae, decimalToDMS as af, deepEqual as ag, ensureValidCoordinates as ah, expandCluster as ai, expandClusterToBounds as aj, extendBounds as ak, filterByGeometryType as al, filterEqual as am, fingerprintEqual as an, formatArea as ao, formatBearing as ap, formatBounds as aq, formatCoordinates as ar, formatDistance as as, formatFeatureProperties as at, formatLabel as au, formatPitch as av, formatPropertyValue as aw, formatScale as ax, formatZoom as ay, generateBoundingPolygon as az, type ClusterExpansionResult as b, paintPropsEqual as b0, removeMarkerProtection as b1, resetWorkerUrlWarning as b2, serializeFilter as b3, simplifyFeature as b4, simplifyFeatureCollection as b5, simplifyFeatureCollectionWithStats as b6, simplifyPolygon as b7, validateBoundsArray as b8, validateCoordinates as b9, validateGeoJSON as ba, warnIfWorkerUrlMissing as bb, zoomToScale as bc, type ClusterFeatureProperties as c, type ClusterLayerStyles as d, type ClusterMapBoundsExpander as e, type ClusterMapExpander as f, type ClusterMapReader as g, type ClusterTextStyleOptions as h, type ClusterableGeoJSONSource as i, type ColorExpression as j, type CoordinateValidationResult as k, type DynamicLODOptions as l, type DynamicLODState as m, type FilterExpression as n, type FilterOperator as o, type FilterValue as p, type GeoJSONFingerprint as q, type GroupFeaturesOptions as r, type LODDataWithSimplification as s, type LoadGeoJSONOptions as t, type LoadGeoJSONResult as u, type LotFillStyleOptions as v, type LotOutlineStyleOptions as w, type MapLibreWorkerApi as x, type PaintPropsDiff as y, type SimplificationThreshold as z };
@@ -1495,4 +1495,35 @@ declare function removeMarkerProtection(element: HTMLElement): void;
1495
1495
  */
1496
1496
  declare function applyMarkerChildProtection(element: HTMLElement): void;
1497
1497
 
1498
- export { createDynamicLODManager as $, applyMarkerProtection as A, boundsToPolygon as B, type ClusterCircleStyleOptions as C, DEFAULT_SIMPLIFICATION_THRESHOLDS as D, type ExtrusionHeightOptions as E, type FeatureGroup as F, type GenerateLODOptions as G, calculateBounds as H, calculateCentroid as I, calculateZoomThresholds as J, KEYBOARD_CONTROLS as K, type LODData as L, MARKER_PROTECTION_CLASS as M, type NumberExpression as N, clampLatitude as O, type PaintProps as P, combineBounds as Q, countFeaturesByType as R, type SimplificationStats as S, createCategoricalColorExpression as T, type UnclusteredPointStyleOptions as U, type ValidationResult as V, createCircleStyle as W, createClusterCirclePaint as X, createClusterStyles as Y, createClusterTextLayout as Z, createContinuousColorExpression as _, type ClusterExpandOptions as a, paintPropsEqual as a$, createExtrusionHeightExpression as a0, createExtrusionStyle as a1, createFillStyle as a2, createGeoJSONFingerprint as a3, createHeatmapStyle as a4, createHoverExpression as a5, createInteractiveExpression as a6, createInteractiveStatusColorExpression as a7, createLineStyle as a8, createLotFillStyle as a9, generateFeatureCollectionDescription as aA, generateFeatureTable as aB, generateKeyboardControlsDescription as aC, generateLODData as aD, generateLODDataWithSimplification as aE, generateMapDescription as aF, generateMarkerList as aG, generateMarkersDescription as aH, generateMoveAnnouncement as aI, geoJSONEqual as aJ, getChangedPaintProps as aK, getClusterBounds as aL, getClusterChildren as aM, getClusterExpansionZoom as aN, getClusterLeaves as aO, getGridNavigationIndex as aP, getHighlightStyle as aQ, getSelectionStyle as aR, getSimplificationToleranceForZoom as aS, getSimplifiedFeaturesForZoom as aT, groupFeaturesByProperty as aU, isClusterFeature as aV, isValidBounds as aW, isValidLatitude as aX, isValidLongitude as aY, loadGeoJSON as aZ, normalizeLongitude as a_, createLotOutlineStyle as aa, createSelectionExpression as ab, createStatusColorExpression as ac, createZoomExpression as ad, decimalToDMS as ae, deepEqual as af, ensureValidCoordinates as ag, expandCluster as ah, expandClusterToBounds as ai, extendBounds as aj, filterByGeometryType as ak, filterEqual as al, fingerprintEqual as am, formatArea as an, formatBearing as ao, formatBounds as ap, formatCoordinates as aq, formatDistance as ar, formatFeatureProperties as as, formatLabel as at, formatPitch as au, formatPropertyValue as av, formatScale as aw, formatZoom as ax, generateBoundingPolygon as ay, generateConvexHull as az, type ClusterExpansionResult as b, removeMarkerProtection as b0, serializeFilter as b1, simplifyFeature as b2, simplifyFeatureCollection as b3, simplifyFeatureCollectionWithStats as b4, simplifyPolygon as b5, validateBoundsArray as b6, validateCoordinates as b7, validateGeoJSON as b8, zoomToScale as b9, type ClusterFeatureProperties as c, type ClusterLayerStyles as d, type ClusterMapBoundsExpander as e, type ClusterMapExpander as f, type ClusterMapReader as g, type ClusterTextStyleOptions as h, type ClusterableGeoJSONSource as i, type ColorExpression as j, type CoordinateValidationResult as k, type DynamicLODOptions as l, type DynamicLODState as m, type FilterExpression as n, type FilterOperator as o, type FilterValue as p, type GeoJSONFingerprint as q, type GroupFeaturesOptions as r, type LODDataWithSimplification as s, type LoadGeoJSONOptions as t, type LoadGeoJSONResult as u, type LotFillStyleOptions as v, type LotOutlineStyleOptions as w, type PaintPropsDiff as x, type SimplificationThreshold as y, applyMarkerChildProtection as z };
1498
+ /**
1499
+ * MapLibre worker-URL guard.
1500
+ *
1501
+ * MapLibre 6 loads its tile worker from a separate file. Under a bundler it
1502
+ * cannot find that file itself: its fallback resolves the worker next to its
1503
+ * own module via `import.meta.url`, which a bundler (and Vite's dependency
1504
+ * pre-bundling) moves. The app has to hand it the URL once with
1505
+ * `setWorkerUrl()`. Without it the worker fails to load and the map shows
1506
+ * MapLibre's "Worker failed to load" error, which names the symptom but not the
1507
+ * fix.
1508
+ *
1509
+ * This warns before the first map is built, with the fix. It cannot fix the
1510
+ * problem from inside the library: the URL is bundler-specific (`?worker&url`
1511
+ * in Vite, `new URL(...)` in webpack), so it belongs to the app.
1512
+ */
1513
+ /** The slice of the maplibre-gl module namespace the worker-URL check needs */
1514
+ interface MapLibreWorkerApi {
1515
+ getVersion?: () => string;
1516
+ getWorkerUrl?: () => string;
1517
+ }
1518
+ /** Reset the once-per-session latch. Tests only. */
1519
+ declare function resetWorkerUrlWarning(): void;
1520
+ /**
1521
+ * Warn once when MapLibre 6+ has no worker URL set.
1522
+ *
1523
+ * Silent on MapLibre 5, which bundles its own worker, and silent when the
1524
+ * version cannot be read - a guess is not worth a false alarm in a consumer's
1525
+ * console. Never throws: it is a diagnostic and must not stop a map mounting.
1526
+ */
1527
+ declare function warnIfWorkerUrlMissing(maplibregl: MapLibreWorkerApi, log?: (message: string) => void): boolean;
1528
+
1529
+ export { createContinuousColorExpression as $, applyMarkerChildProtection as A, applyMarkerProtection as B, type ClusterCircleStyleOptions as C, DEFAULT_SIMPLIFICATION_THRESHOLDS as D, type ExtrusionHeightOptions as E, type FeatureGroup as F, type GenerateLODOptions as G, boundsToPolygon as H, calculateBounds as I, calculateCentroid as J, KEYBOARD_CONTROLS as K, type LODData as L, MARKER_PROTECTION_CLASS as M, type NumberExpression as N, calculateZoomThresholds as O, type PaintProps as P, clampLatitude as Q, combineBounds as R, type SimplificationStats as S, countFeaturesByType as T, type UnclusteredPointStyleOptions as U, type ValidationResult as V, createCategoricalColorExpression as W, createCircleStyle as X, createClusterCirclePaint as Y, createClusterStyles as Z, createClusterTextLayout as _, type ClusterExpandOptions as a, normalizeLongitude as a$, createDynamicLODManager as a0, createExtrusionHeightExpression as a1, createExtrusionStyle as a2, createFillStyle as a3, createGeoJSONFingerprint as a4, createHeatmapStyle as a5, createHoverExpression as a6, createInteractiveExpression as a7, createInteractiveStatusColorExpression as a8, createLineStyle as a9, generateConvexHull as aA, generateFeatureCollectionDescription as aB, generateFeatureTable as aC, generateKeyboardControlsDescription as aD, generateLODData as aE, generateLODDataWithSimplification as aF, generateMapDescription as aG, generateMarkerList as aH, generateMarkersDescription as aI, generateMoveAnnouncement as aJ, geoJSONEqual as aK, getChangedPaintProps as aL, getClusterBounds as aM, getClusterChildren as aN, getClusterExpansionZoom as aO, getClusterLeaves as aP, getGridNavigationIndex as aQ, getHighlightStyle as aR, getSelectionStyle as aS, getSimplificationToleranceForZoom as aT, getSimplifiedFeaturesForZoom as aU, groupFeaturesByProperty as aV, isClusterFeature as aW, isValidBounds as aX, isValidLatitude as aY, isValidLongitude as aZ, loadGeoJSON as a_, createLotFillStyle as aa, createLotOutlineStyle as ab, createSelectionExpression as ac, createStatusColorExpression as ad, createZoomExpression as ae, decimalToDMS as af, deepEqual as ag, ensureValidCoordinates as ah, expandCluster as ai, expandClusterToBounds as aj, extendBounds as ak, filterByGeometryType as al, filterEqual as am, fingerprintEqual as an, formatArea as ao, formatBearing as ap, formatBounds as aq, formatCoordinates as ar, formatDistance as as, formatFeatureProperties as at, formatLabel as au, formatPitch as av, formatPropertyValue as aw, formatScale as ax, formatZoom as ay, generateBoundingPolygon as az, type ClusterExpansionResult as b, paintPropsEqual as b0, removeMarkerProtection as b1, resetWorkerUrlWarning as b2, serializeFilter as b3, simplifyFeature as b4, simplifyFeatureCollection as b5, simplifyFeatureCollectionWithStats as b6, simplifyPolygon as b7, validateBoundsArray as b8, validateCoordinates as b9, validateGeoJSON as ba, warnIfWorkerUrlMissing as bb, zoomToScale as bc, type ClusterFeatureProperties as c, type ClusterLayerStyles as d, type ClusterMapBoundsExpander as e, type ClusterMapExpander as f, type ClusterMapReader as g, type ClusterTextStyleOptions as h, type ClusterableGeoJSONSource as i, type ColorExpression as j, type CoordinateValidationResult as k, type DynamicLODOptions as l, type DynamicLODState as m, type FilterExpression as n, type FilterOperator as o, type FilterValue as p, type GeoJSONFingerprint as q, type GroupFeaturesOptions as r, type LODDataWithSimplification as s, type LoadGeoJSONOptions as t, type LoadGeoJSONResult as u, type LotFillStyleOptions as v, type LotOutlineStyleOptions as w, type MapLibreWorkerApi as x, type PaintPropsDiff as y, type SimplificationThreshold as z };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@classic-homes/maps-core",
3
- "version": "0.6.0",
3
+ "version": "0.7.0",
4
4
  "description": "Core utilities and theme for Classic Theme maps",
5
5
  "keywords": [
6
6
  "maps",
@@ -125,11 +125,11 @@
125
125
  "rbush": "^4.0.1"
126
126
  },
127
127
  "peerDependencies": {
128
- "maplibre-gl": "^4.0.0 || ^5.0.0"
128
+ "maplibre-gl": "^5.0.0 || ^6.11.0"
129
129
  },
130
130
  "devDependencies": {
131
131
  "@types/rbush": "^4.0.0",
132
- "maplibre-gl": "^5.0.0",
132
+ "maplibre-gl": "^6.14.0",
133
133
  "tsup": "^8.0.0",
134
134
  "typescript": "^5.3.0",
135
135
  "vitest": "^4.1.10"