@classic-homes/maps-core 0.7.2 → 0.7.3
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-4YUKENCX.js → chunk-OVHVN7QO.js} +52 -4
- package/dist/index.cjs +52 -4
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/utils/index.cjs +52 -4
- package/dist/utils/index.d.cts +1 -1
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/index.js +1 -1
- package/dist/{worker-BvmbGSPq.d.cts → worker-BoWJ1lO0.d.cts} +18 -11
- package/dist/{worker-Cmyx33j4.d.ts → worker-CQNc5vck.d.ts} +18 -11
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -159,7 +159,7 @@ const lodManager = createDynamicLODManager({
|
|
|
159
159
|
```typescript
|
|
160
160
|
import { createGeoJSONFingerprint, fingerprintEqual, geoJSONEqual } from '@classic-homes/maps-core';
|
|
161
161
|
|
|
162
|
-
//
|
|
162
|
+
// Count, first/last id and a hash of every feature: catches any change in one pass
|
|
163
163
|
const prevFingerprint = createGeoJSONFingerprint(prevData);
|
|
164
164
|
const nextFingerprint = createGeoJSONFingerprint(nextData);
|
|
165
165
|
|
|
@@ -2680,24 +2680,72 @@ function createGeoJSONFingerprint(data) {
|
|
|
2680
2680
|
if (data.type !== "FeatureCollection") return null;
|
|
2681
2681
|
const features = data.features;
|
|
2682
2682
|
if (!features || !Array.isArray(features)) {
|
|
2683
|
-
return { count: 0, firstId: void 0, lastId: void 0 };
|
|
2683
|
+
return { count: 0, firstId: void 0, lastId: void 0, hash: 0 };
|
|
2684
2684
|
}
|
|
2685
2685
|
const count = features.length;
|
|
2686
2686
|
if (count === 0) {
|
|
2687
|
-
return { count: 0, firstId: void 0, lastId: void 0 };
|
|
2687
|
+
return { count: 0, firstId: void 0, lastId: void 0, hash: 0 };
|
|
2688
2688
|
}
|
|
2689
2689
|
const firstFeature = features[0];
|
|
2690
2690
|
const lastFeature = features[count - 1];
|
|
2691
2691
|
return {
|
|
2692
2692
|
count,
|
|
2693
2693
|
firstId: firstFeature?.id,
|
|
2694
|
-
lastId: lastFeature?.id
|
|
2694
|
+
lastId: lastFeature?.id,
|
|
2695
|
+
hash: hashValue(SEED, features)
|
|
2695
2696
|
};
|
|
2696
2697
|
}
|
|
2698
|
+
var SEED = 2166136261;
|
|
2699
|
+
var TAG_NULL = 1;
|
|
2700
|
+
var TAG_FALSE = 2;
|
|
2701
|
+
var TAG_TRUE = 3;
|
|
2702
|
+
var TAG_NUMBER = 4;
|
|
2703
|
+
var TAG_STRING = 5;
|
|
2704
|
+
var TAG_ARRAY = 6;
|
|
2705
|
+
var TAG_OBJECT = 7;
|
|
2706
|
+
var TAG_UNDEFINED = 8;
|
|
2707
|
+
var float = new Float64Array(1);
|
|
2708
|
+
var floatWords = new Uint32Array(float.buffer);
|
|
2709
|
+
function mix(hash, word) {
|
|
2710
|
+
hash = Math.imul(hash ^ word, 1540483477);
|
|
2711
|
+
return hash ^ hash >>> 15;
|
|
2712
|
+
}
|
|
2713
|
+
function hashString(hash, value) {
|
|
2714
|
+
hash = mix(mix(hash, TAG_STRING), value.length);
|
|
2715
|
+
for (let i = 0; i < value.length; i++) hash = mix(hash, value.charCodeAt(i));
|
|
2716
|
+
return hash;
|
|
2717
|
+
}
|
|
2718
|
+
function hashValue(hash, value) {
|
|
2719
|
+
switch (typeof value) {
|
|
2720
|
+
case "number":
|
|
2721
|
+
float[0] = value;
|
|
2722
|
+
return mix(mix(mix(hash, TAG_NUMBER), floatWords[0]), floatWords[1]);
|
|
2723
|
+
case "string":
|
|
2724
|
+
return hashString(hash, value);
|
|
2725
|
+
case "boolean":
|
|
2726
|
+
return mix(hash, value ? TAG_TRUE : TAG_FALSE);
|
|
2727
|
+
case "object": {
|
|
2728
|
+
if (value === null) return mix(hash, TAG_NULL);
|
|
2729
|
+
if (Array.isArray(value)) {
|
|
2730
|
+
hash = mix(mix(hash, TAG_ARRAY), value.length);
|
|
2731
|
+
for (let i = 0; i < value.length; i++) hash = hashValue(hash, value[i]);
|
|
2732
|
+
return hash;
|
|
2733
|
+
}
|
|
2734
|
+
hash = mix(hash, TAG_OBJECT);
|
|
2735
|
+
for (const key in value) {
|
|
2736
|
+
if (!Object.prototype.hasOwnProperty.call(value, key)) continue;
|
|
2737
|
+
hash = hashValue(hashString(hash, key), value[key]);
|
|
2738
|
+
}
|
|
2739
|
+
return hash;
|
|
2740
|
+
}
|
|
2741
|
+
default:
|
|
2742
|
+
return mix(hash, TAG_UNDEFINED);
|
|
2743
|
+
}
|
|
2744
|
+
}
|
|
2697
2745
|
function fingerprintEqual(a, b) {
|
|
2698
2746
|
if (a === null && b === null) return true;
|
|
2699
2747
|
if (a === null || b === null) return false;
|
|
2700
|
-
return a.count === b.count && a.firstId === b.firstId && a.lastId === b.lastId;
|
|
2748
|
+
return a.count === b.count && a.firstId === b.firstId && a.lastId === b.lastId && a.hash === b.hash;
|
|
2701
2749
|
}
|
|
2702
2750
|
function geoJSONEqual(a, b) {
|
|
2703
2751
|
if (typeof a === "string" || typeof b === "string") {
|
package/dist/index.cjs
CHANGED
|
@@ -3218,24 +3218,72 @@ function createGeoJSONFingerprint(data) {
|
|
|
3218
3218
|
if (data.type !== "FeatureCollection") return null;
|
|
3219
3219
|
const features = data.features;
|
|
3220
3220
|
if (!features || !Array.isArray(features)) {
|
|
3221
|
-
return { count: 0, firstId: void 0, lastId: void 0 };
|
|
3221
|
+
return { count: 0, firstId: void 0, lastId: void 0, hash: 0 };
|
|
3222
3222
|
}
|
|
3223
3223
|
const count = features.length;
|
|
3224
3224
|
if (count === 0) {
|
|
3225
|
-
return { count: 0, firstId: void 0, lastId: void 0 };
|
|
3225
|
+
return { count: 0, firstId: void 0, lastId: void 0, hash: 0 };
|
|
3226
3226
|
}
|
|
3227
3227
|
const firstFeature = features[0];
|
|
3228
3228
|
const lastFeature = features[count - 1];
|
|
3229
3229
|
return {
|
|
3230
3230
|
count,
|
|
3231
3231
|
firstId: firstFeature?.id,
|
|
3232
|
-
lastId: lastFeature?.id
|
|
3232
|
+
lastId: lastFeature?.id,
|
|
3233
|
+
hash: hashValue(SEED, features)
|
|
3233
3234
|
};
|
|
3234
3235
|
}
|
|
3236
|
+
var SEED = 2166136261;
|
|
3237
|
+
var TAG_NULL = 1;
|
|
3238
|
+
var TAG_FALSE = 2;
|
|
3239
|
+
var TAG_TRUE = 3;
|
|
3240
|
+
var TAG_NUMBER = 4;
|
|
3241
|
+
var TAG_STRING = 5;
|
|
3242
|
+
var TAG_ARRAY = 6;
|
|
3243
|
+
var TAG_OBJECT = 7;
|
|
3244
|
+
var TAG_UNDEFINED = 8;
|
|
3245
|
+
var float = new Float64Array(1);
|
|
3246
|
+
var floatWords = new Uint32Array(float.buffer);
|
|
3247
|
+
function mix(hash, word) {
|
|
3248
|
+
hash = Math.imul(hash ^ word, 1540483477);
|
|
3249
|
+
return hash ^ hash >>> 15;
|
|
3250
|
+
}
|
|
3251
|
+
function hashString(hash, value) {
|
|
3252
|
+
hash = mix(mix(hash, TAG_STRING), value.length);
|
|
3253
|
+
for (let i = 0; i < value.length; i++) hash = mix(hash, value.charCodeAt(i));
|
|
3254
|
+
return hash;
|
|
3255
|
+
}
|
|
3256
|
+
function hashValue(hash, value) {
|
|
3257
|
+
switch (typeof value) {
|
|
3258
|
+
case "number":
|
|
3259
|
+
float[0] = value;
|
|
3260
|
+
return mix(mix(mix(hash, TAG_NUMBER), floatWords[0]), floatWords[1]);
|
|
3261
|
+
case "string":
|
|
3262
|
+
return hashString(hash, value);
|
|
3263
|
+
case "boolean":
|
|
3264
|
+
return mix(hash, value ? TAG_TRUE : TAG_FALSE);
|
|
3265
|
+
case "object": {
|
|
3266
|
+
if (value === null) return mix(hash, TAG_NULL);
|
|
3267
|
+
if (Array.isArray(value)) {
|
|
3268
|
+
hash = mix(mix(hash, TAG_ARRAY), value.length);
|
|
3269
|
+
for (let i = 0; i < value.length; i++) hash = hashValue(hash, value[i]);
|
|
3270
|
+
return hash;
|
|
3271
|
+
}
|
|
3272
|
+
hash = mix(hash, TAG_OBJECT);
|
|
3273
|
+
for (const key in value) {
|
|
3274
|
+
if (!Object.prototype.hasOwnProperty.call(value, key)) continue;
|
|
3275
|
+
hash = hashValue(hashString(hash, key), value[key]);
|
|
3276
|
+
}
|
|
3277
|
+
return hash;
|
|
3278
|
+
}
|
|
3279
|
+
default:
|
|
3280
|
+
return mix(hash, TAG_UNDEFINED);
|
|
3281
|
+
}
|
|
3282
|
+
}
|
|
3235
3283
|
function fingerprintEqual(a, b) {
|
|
3236
3284
|
if (a === null && b === null) return true;
|
|
3237
3285
|
if (a === null || b === null) return false;
|
|
3238
|
-
return a.count === b.count && a.firstId === b.firstId && a.lastId === b.lastId;
|
|
3286
|
+
return a.count === b.count && a.firstId === b.firstId && a.lastId === b.lastId && a.hash === b.hash;
|
|
3239
3287
|
}
|
|
3240
3288
|
function geoJSONEqual(a, b) {
|
|
3241
3289
|
if (typeof a === "string" || typeof b === "string") {
|
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 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-
|
|
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-BoWJ1lO0.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
|
@@ -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 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-
|
|
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-CQNc5vck.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-
|
|
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-
|
|
3
|
+
import { createCategoricalColorExpression } from './chunk-OVHVN7QO.js';
|
|
4
|
+
export { DEFAULT_SIMPLIFICATION_THRESHOLDS, KEYBOARD_CONTROLS, MARKER_PROTECTION_CLASS, applyMarkerChildProtection, applyMarkerProtection, boundsToPolygon, buildRTreeIndex, buildSpatialIndex, calculateBounds, calculateCentroid, calculateZoomThresholds, clampLatitude, combineBounds, countFeaturesByType, createCategoricalColorExpression, createCircleStyle, createClusterCirclePaint, createClusterStyles, createClusterTextLayout, createContinuousColorExpression, createDynamicLODManager, createExtrusionHeightExpression, createExtrusionStyle, createFillStyle, createGeoJSONFingerprint, createHeatmapStyle, createHoverExpression, createIdleViewportManager, createInteractiveExpression, createInteractiveStatusColorExpression, createLineStyle, createLotFillStyle, createLotOutlineStyle, createPredictiveViewportManager, createRTreeViewportManager, createSelectionExpression, createStatusColorExpression, createViewportManager, createViewportQuery, createZoomExpression, decimalToDMS, deepEqual, ensureValidCoordinates, expandCluster, expandClusterToBounds, extendBounds, filterByGeometryType, filterEqual, fingerprintEqual, formatArea, formatBearing, formatBounds, formatCoordinates, formatDistance, formatFeatureProperties, formatLabel, formatPitch, formatPropertyValue, formatScale, formatZoom, generateBoundingPolygon, generateConvexHull, generateFeatureCollectionDescription, generateFeatureTable, generateKeyboardControlsDescription, generateLODData, generateLODDataWithSimplification, generateMapDescription, generateMarkerList, generateMarkersDescription, generateMoveAnnouncement, geoJSONEqual, getChangedPaintProps, getClusterBounds, getClusterChildren, getClusterExpansionZoom, getClusterLeaves, getGridNavigationIndex, getHighlightStyle, getSelectionStyle, getSimplificationToleranceForZoom, getSimplifiedFeaturesForZoom, groupFeaturesByProperty, isClusterFeature, isValidBounds, isValidLatitude, isValidLongitude, loadGeoJSON, normalizeLongitude, paintPropsEqual, queryByBounds, queryByBoundsWithStats, queryRTreeByBounds, queryRTreeByBoundsWithStats, removeMarkerProtection, resetWorkerUrlWarning, serializeFilter, simplifyFeature, simplifyFeatureCollection, simplifyFeatureCollectionWithStats, simplifyPolygon, validateBoundsArray, validateCoordinates, validateGeoJSON, warnIfWorkerUrlMissing, zoomToScale } from './chunk-OVHVN7QO.js';
|
|
5
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';
|
package/dist/utils/index.cjs
CHANGED
|
@@ -2831,24 +2831,72 @@ function createGeoJSONFingerprint(data) {
|
|
|
2831
2831
|
if (data.type !== "FeatureCollection") return null;
|
|
2832
2832
|
const features = data.features;
|
|
2833
2833
|
if (!features || !Array.isArray(features)) {
|
|
2834
|
-
return { count: 0, firstId: void 0, lastId: void 0 };
|
|
2834
|
+
return { count: 0, firstId: void 0, lastId: void 0, hash: 0 };
|
|
2835
2835
|
}
|
|
2836
2836
|
const count = features.length;
|
|
2837
2837
|
if (count === 0) {
|
|
2838
|
-
return { count: 0, firstId: void 0, lastId: void 0 };
|
|
2838
|
+
return { count: 0, firstId: void 0, lastId: void 0, hash: 0 };
|
|
2839
2839
|
}
|
|
2840
2840
|
const firstFeature = features[0];
|
|
2841
2841
|
const lastFeature = features[count - 1];
|
|
2842
2842
|
return {
|
|
2843
2843
|
count,
|
|
2844
2844
|
firstId: firstFeature?.id,
|
|
2845
|
-
lastId: lastFeature?.id
|
|
2845
|
+
lastId: lastFeature?.id,
|
|
2846
|
+
hash: hashValue(SEED, features)
|
|
2846
2847
|
};
|
|
2847
2848
|
}
|
|
2849
|
+
var SEED = 2166136261;
|
|
2850
|
+
var TAG_NULL = 1;
|
|
2851
|
+
var TAG_FALSE = 2;
|
|
2852
|
+
var TAG_TRUE = 3;
|
|
2853
|
+
var TAG_NUMBER = 4;
|
|
2854
|
+
var TAG_STRING = 5;
|
|
2855
|
+
var TAG_ARRAY = 6;
|
|
2856
|
+
var TAG_OBJECT = 7;
|
|
2857
|
+
var TAG_UNDEFINED = 8;
|
|
2858
|
+
var float = new Float64Array(1);
|
|
2859
|
+
var floatWords = new Uint32Array(float.buffer);
|
|
2860
|
+
function mix(hash, word) {
|
|
2861
|
+
hash = Math.imul(hash ^ word, 1540483477);
|
|
2862
|
+
return hash ^ hash >>> 15;
|
|
2863
|
+
}
|
|
2864
|
+
function hashString(hash, value) {
|
|
2865
|
+
hash = mix(mix(hash, TAG_STRING), value.length);
|
|
2866
|
+
for (let i = 0; i < value.length; i++) hash = mix(hash, value.charCodeAt(i));
|
|
2867
|
+
return hash;
|
|
2868
|
+
}
|
|
2869
|
+
function hashValue(hash, value) {
|
|
2870
|
+
switch (typeof value) {
|
|
2871
|
+
case "number":
|
|
2872
|
+
float[0] = value;
|
|
2873
|
+
return mix(mix(mix(hash, TAG_NUMBER), floatWords[0]), floatWords[1]);
|
|
2874
|
+
case "string":
|
|
2875
|
+
return hashString(hash, value);
|
|
2876
|
+
case "boolean":
|
|
2877
|
+
return mix(hash, value ? TAG_TRUE : TAG_FALSE);
|
|
2878
|
+
case "object": {
|
|
2879
|
+
if (value === null) return mix(hash, TAG_NULL);
|
|
2880
|
+
if (Array.isArray(value)) {
|
|
2881
|
+
hash = mix(mix(hash, TAG_ARRAY), value.length);
|
|
2882
|
+
for (let i = 0; i < value.length; i++) hash = hashValue(hash, value[i]);
|
|
2883
|
+
return hash;
|
|
2884
|
+
}
|
|
2885
|
+
hash = mix(hash, TAG_OBJECT);
|
|
2886
|
+
for (const key in value) {
|
|
2887
|
+
if (!Object.prototype.hasOwnProperty.call(value, key)) continue;
|
|
2888
|
+
hash = hashValue(hashString(hash, key), value[key]);
|
|
2889
|
+
}
|
|
2890
|
+
return hash;
|
|
2891
|
+
}
|
|
2892
|
+
default:
|
|
2893
|
+
return mix(hash, TAG_UNDEFINED);
|
|
2894
|
+
}
|
|
2895
|
+
}
|
|
2848
2896
|
function fingerprintEqual(a, b) {
|
|
2849
2897
|
if (a === null && b === null) return true;
|
|
2850
2898
|
if (a === null || b === null) return false;
|
|
2851
|
-
return a.count === b.count && a.firstId === b.firstId && a.lastId === b.lastId;
|
|
2899
|
+
return a.count === b.count && a.firstId === b.firstId && a.lastId === b.lastId && a.hash === b.hash;
|
|
2852
2900
|
}
|
|
2853
2901
|
function geoJSONEqual(a, b) {
|
|
2854
2902
|
if (typeof a === "string" || typeof b === "string") {
|
package/dist/utils/index.d.cts
CHANGED
|
@@ -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, 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-
|
|
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-BoWJ1lO0.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';
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -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, 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-
|
|
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-CQNc5vck.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';
|
package/dist/utils/index.js
CHANGED
|
@@ -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, resetWorkerUrlWarning, serializeFilter, simplifyFeature, simplifyFeatureCollection, simplifyFeatureCollectionWithStats, simplifyPolygon, validateBoundsArray, validateCoordinates, validateGeoJSON, warnIfWorkerUrlMissing, zoomToScale } from '../chunk-
|
|
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-OVHVN7QO.js';
|
|
2
2
|
import '../chunk-ZGUACUEF.js';
|
|
@@ -1325,14 +1325,18 @@ declare function getSimplificationToleranceForZoom(zoom: number, baseToleranceAt
|
|
|
1325
1325
|
declare const DEFAULT_SIMPLIFICATION_THRESHOLDS: SimplificationThreshold[];
|
|
1326
1326
|
|
|
1327
1327
|
/**
|
|
1328
|
-
*
|
|
1328
|
+
* Fingerprinting utilities for GeoJSON data equality checking.
|
|
1329
1329
|
*
|
|
1330
|
-
*
|
|
1331
|
-
*
|
|
1332
|
-
*
|
|
1333
|
-
* -
|
|
1330
|
+
* A fingerprint is the feature count, the first and last feature ids, and a
|
|
1331
|
+
* hash of every feature's id, geometry and properties. It is built in one pass
|
|
1332
|
+
* without serialising the data, so it costs far less than the `setData` it
|
|
1333
|
+
* guards (which structured-clones and re-parses the whole collection in the
|
|
1334
|
+
* worker).
|
|
1334
1335
|
*
|
|
1335
|
-
*
|
|
1336
|
+
* The hash is what makes it reliable: count and first/last id alone miss a
|
|
1337
|
+
* filter that keeps as many features, a change in the middle of the
|
|
1338
|
+
* collection, any geometry or property edit, and every change at all when the
|
|
1339
|
+
* features carry no top-level ids.
|
|
1336
1340
|
*/
|
|
1337
1341
|
|
|
1338
1342
|
/**
|
|
@@ -1345,9 +1349,12 @@ interface GeoJSONFingerprint {
|
|
|
1345
1349
|
firstId: string | number | undefined;
|
|
1346
1350
|
/** ID of the last feature (undefined if no features or no ID) */
|
|
1347
1351
|
lastId: string | number | undefined;
|
|
1352
|
+
/** Hash of every feature's id, geometry and properties (0 for no features) */
|
|
1353
|
+
hash: number;
|
|
1348
1354
|
}
|
|
1349
1355
|
/**
|
|
1350
|
-
* Creates a
|
|
1356
|
+
* Creates a fingerprint for a GeoJSON FeatureCollection. Linear in the size of
|
|
1357
|
+
* the data; two collections with the same content get the same fingerprint.
|
|
1351
1358
|
*
|
|
1352
1359
|
* @param data - GeoJSON data to fingerprint
|
|
1353
1360
|
* @returns Fingerprint object or null if data is not a FeatureCollection
|
|
@@ -1358,16 +1365,16 @@ declare function createGeoJSONFingerprint(data: GeoJSONFeatureCollection | GeoJS
|
|
|
1358
1365
|
*
|
|
1359
1366
|
* @param a - First fingerprint
|
|
1360
1367
|
* @param b - Second fingerprint
|
|
1361
|
-
* @returns true if fingerprints match (data
|
|
1368
|
+
* @returns true if fingerprints match (data unchanged)
|
|
1362
1369
|
*/
|
|
1363
1370
|
declare function fingerprintEqual(a: GeoJSONFingerprint | null, b: GeoJSONFingerprint | null): boolean;
|
|
1364
1371
|
/**
|
|
1365
|
-
* Checks if two GeoJSON data objects are equal based on their fingerprints
|
|
1366
|
-
*
|
|
1372
|
+
* Checks if two GeoJSON data objects are equal based on their fingerprints:
|
|
1373
|
+
* same features, ids, geometry and properties.
|
|
1367
1374
|
*
|
|
1368
1375
|
* @param a - First GeoJSON data
|
|
1369
1376
|
* @param b - Second GeoJSON data
|
|
1370
|
-
* @returns true if data is
|
|
1377
|
+
* @returns true if the data is unchanged (barring a 32-bit hash collision)
|
|
1371
1378
|
*/
|
|
1372
1379
|
declare function geoJSONEqual(a: GeoJSONFeatureCollection | GeoJSON.GeoJSON | string | null | undefined, b: GeoJSONFeatureCollection | GeoJSON.GeoJSON | string | null | undefined): boolean;
|
|
1373
1380
|
|
|
@@ -1325,14 +1325,18 @@ declare function getSimplificationToleranceForZoom(zoom: number, baseToleranceAt
|
|
|
1325
1325
|
declare const DEFAULT_SIMPLIFICATION_THRESHOLDS: SimplificationThreshold[];
|
|
1326
1326
|
|
|
1327
1327
|
/**
|
|
1328
|
-
*
|
|
1328
|
+
* Fingerprinting utilities for GeoJSON data equality checking.
|
|
1329
1329
|
*
|
|
1330
|
-
*
|
|
1331
|
-
*
|
|
1332
|
-
*
|
|
1333
|
-
* -
|
|
1330
|
+
* A fingerprint is the feature count, the first and last feature ids, and a
|
|
1331
|
+
* hash of every feature's id, geometry and properties. It is built in one pass
|
|
1332
|
+
* without serialising the data, so it costs far less than the `setData` it
|
|
1333
|
+
* guards (which structured-clones and re-parses the whole collection in the
|
|
1334
|
+
* worker).
|
|
1334
1335
|
*
|
|
1335
|
-
*
|
|
1336
|
+
* The hash is what makes it reliable: count and first/last id alone miss a
|
|
1337
|
+
* filter that keeps as many features, a change in the middle of the
|
|
1338
|
+
* collection, any geometry or property edit, and every change at all when the
|
|
1339
|
+
* features carry no top-level ids.
|
|
1336
1340
|
*/
|
|
1337
1341
|
|
|
1338
1342
|
/**
|
|
@@ -1345,9 +1349,12 @@ interface GeoJSONFingerprint {
|
|
|
1345
1349
|
firstId: string | number | undefined;
|
|
1346
1350
|
/** ID of the last feature (undefined if no features or no ID) */
|
|
1347
1351
|
lastId: string | number | undefined;
|
|
1352
|
+
/** Hash of every feature's id, geometry and properties (0 for no features) */
|
|
1353
|
+
hash: number;
|
|
1348
1354
|
}
|
|
1349
1355
|
/**
|
|
1350
|
-
* Creates a
|
|
1356
|
+
* Creates a fingerprint for a GeoJSON FeatureCollection. Linear in the size of
|
|
1357
|
+
* the data; two collections with the same content get the same fingerprint.
|
|
1351
1358
|
*
|
|
1352
1359
|
* @param data - GeoJSON data to fingerprint
|
|
1353
1360
|
* @returns Fingerprint object or null if data is not a FeatureCollection
|
|
@@ -1358,16 +1365,16 @@ declare function createGeoJSONFingerprint(data: GeoJSONFeatureCollection | GeoJS
|
|
|
1358
1365
|
*
|
|
1359
1366
|
* @param a - First fingerprint
|
|
1360
1367
|
* @param b - Second fingerprint
|
|
1361
|
-
* @returns true if fingerprints match (data
|
|
1368
|
+
* @returns true if fingerprints match (data unchanged)
|
|
1362
1369
|
*/
|
|
1363
1370
|
declare function fingerprintEqual(a: GeoJSONFingerprint | null, b: GeoJSONFingerprint | null): boolean;
|
|
1364
1371
|
/**
|
|
1365
|
-
* Checks if two GeoJSON data objects are equal based on their fingerprints
|
|
1366
|
-
*
|
|
1372
|
+
* Checks if two GeoJSON data objects are equal based on their fingerprints:
|
|
1373
|
+
* same features, ids, geometry and properties.
|
|
1367
1374
|
*
|
|
1368
1375
|
* @param a - First GeoJSON data
|
|
1369
1376
|
* @param b - Second GeoJSON data
|
|
1370
|
-
* @returns true if data is
|
|
1377
|
+
* @returns true if the data is unchanged (barring a 32-bit hash collision)
|
|
1371
1378
|
*/
|
|
1372
1379
|
declare function geoJSONEqual(a: GeoJSONFeatureCollection | GeoJSON.GeoJSON | string | null | undefined, b: GeoJSONFeatureCollection | GeoJSON.GeoJSON | string | null | undefined): boolean;
|
|
1373
1380
|
|