@classic-homes/maps-core 0.2.4 → 0.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -934,49 +934,6 @@ function filterByGeometryType(geojson, types) {
934
934
  };
935
935
  }
936
936
 
937
- // src/utils/positioning.ts
938
- var BASE_OFFSET = 8;
939
- var POSITION_CLASSES = {
940
- "top-left": "top-2 left-2",
941
- "top-right": "top-2 right-2",
942
- "bottom-left": "bottom-2 left-2",
943
- "bottom-right": "bottom-2 right-2"
944
- };
945
- var OFFSET_CLASSES = {
946
- "top-left": "left-14",
947
- // Offset right (toward center)
948
- "top-right": "right-14",
949
- // Offset left (toward center)
950
- "bottom-left": "left-14",
951
- // Offset right (toward center)
952
- "bottom-right": "right-14"
953
- // Offset left (toward center)
954
- };
955
- function computePositionClasses(position, hasControlsAtPosition) {
956
- const base = POSITION_CLASSES[position];
957
- if (!hasControlsAtPosition) {
958
- return base;
959
- }
960
- const offset = OFFSET_CLASSES[position];
961
- if (position.includes("left")) {
962
- return base.replace("left-2", offset);
963
- }
964
- if (position.includes("right")) {
965
- return base.replace("right-2", offset);
966
- }
967
- return base;
968
- }
969
- function computeVerticalOffsetStyle(position, customControlOffset, baseOffset = BASE_OFFSET) {
970
- if (customControlOffset <= 0) {
971
- return {};
972
- }
973
- const totalOffset = `${baseOffset + customControlOffset}px`;
974
- if (position.includes("top")) {
975
- return { top: totalOffset };
976
- }
977
- return { bottom: totalOffset };
978
- }
979
-
980
937
  // src/utils/cluster.ts
981
938
  function isClusterFeature(feature) {
982
939
  return feature.properties !== null && feature.properties !== void 0 && typeof feature.properties === "object" && "cluster_id" in feature.properties && "point_count" in feature.properties;
@@ -2656,6 +2613,34 @@ function applyMarkerChildProtection(element) {
2656
2613
  }
2657
2614
 
2658
2615
  // src/basemaps/registry.ts
2616
+ var DEFAULT_BASEMAP = {
2617
+ id: "default",
2618
+ name: "Default",
2619
+ provider: "maptiler",
2620
+ category: "minimal",
2621
+ style: "https://api.maptiler.com/maps/019c0bd2-b70f-78c1-a129-6b471a6c2d93/style.json?key=DfdiXzki9UFQMr3alBEe",
2622
+ thumbnail: "https://api.maptiler.com/maps/positron/256/0/0/0.png?key=DfdiXzki9UFQMr3alBEe",
2623
+ requiresApiKey: false
2624
+ // Key is embedded in the style URL
2625
+ };
2626
+ var SATELLITE_BASEMAP = {
2627
+ id: "satellite",
2628
+ name: "Satellite",
2629
+ provider: "maptiler",
2630
+ category: "satellite",
2631
+ style: "https://api.maptiler.com/maps/hybrid-v4/style.json?key=DfdiXzki9UFQMr3alBEe",
2632
+ thumbnail: "https://api.maptiler.com/maps/hybrid/256/0/0/0.jpg?key=DfdiXzki9UFQMr3alBEe",
2633
+ requiresApiKey: false
2634
+ };
2635
+ var TOPO_BASEMAP = {
2636
+ id: "topo",
2637
+ name: "Topo",
2638
+ provider: "maptiler",
2639
+ category: "outdoor",
2640
+ style: "https://api.maptiler.com/maps/topo-v4/style.json?key=DfdiXzki9UFQMr3alBEe",
2641
+ thumbnail: "https://api.maptiler.com/maps/topo-v2/256/0/0/0.png?key=DfdiXzki9UFQMr3alBEe",
2642
+ requiresApiKey: false
2643
+ };
2659
2644
  var OSM_STANDARD = {
2660
2645
  id: "osm-standard",
2661
2646
  name: "OpenStreetMap",
@@ -2765,7 +2750,15 @@ var STADIA_STAMEN_TERRAIN = {
2765
2750
  style: (apiKey) => `https://tiles.stadiamaps.com/styles/stamen_terrain.json?api_key=${apiKey}`,
2766
2751
  requiresApiKey: true
2767
2752
  };
2753
+ var PRIMARY_BASEMAPS = [
2754
+ DEFAULT_BASEMAP,
2755
+ SATELLITE_BASEMAP,
2756
+ TOPO_BASEMAP
2757
+ ];
2768
2758
  var BUILTIN_BASEMAPS = [
2759
+ DEFAULT_BASEMAP,
2760
+ SATELLITE_BASEMAP,
2761
+ TOPO_BASEMAP,
2769
2762
  OSM_STANDARD,
2770
2763
  CLASSIC_LIGHT,
2771
2764
  CLASSIC_DARK,
@@ -3320,6 +3313,416 @@ function getLayersWithErrors(states) {
3320
3313
  return Array.from(states.values()).filter((state) => state.error !== null);
3321
3314
  }
3322
3315
 
3316
+ // src/positioning/types.ts
3317
+ var Z_INDEX_LAYERS = {
3318
+ base: 10,
3319
+ interactive: 20,
3320
+ expanded: 30,
3321
+ modal: 40,
3322
+ tooltip: 50
3323
+ };
3324
+ var PRIORITY_ORDER = ["low", "normal", "high", "critical"];
3325
+ var STACK_GAP = 8;
3326
+ var EDGE_MARGIN = 8;
3327
+ var ATTRIBUTION_HEIGHT = 32;
3328
+
3329
+ // src/positioning/PositioningCoordinator.ts
3330
+ var PositioningCoordinator = class {
3331
+ constructor() {
3332
+ /** Registered controls */
3333
+ this.controls = /* @__PURE__ */ new Map();
3334
+ /** Computed offsets for each control */
3335
+ this.offsets = /* @__PURE__ */ new Map();
3336
+ /** Current map dimensions */
3337
+ this.mapDimensions = { width: 0, height: 0 };
3338
+ /** Event listeners */
3339
+ this.listeners = /* @__PURE__ */ new Set();
3340
+ /** Batch update flag to defer layout recalculation */
3341
+ this.batchingUpdates = false;
3342
+ /** Pending recalculation flag during batching */
3343
+ this.pendingRecalculation = false;
3344
+ }
3345
+ /**
3346
+ * Register a control with the coordinator
3347
+ *
3348
+ * @param registration - Control registration data
3349
+ * @returns Computed offset for the control, or null if registration failed
3350
+ */
3351
+ register(registration) {
3352
+ if (this.controls.has(registration.id)) {
3353
+ console.warn(
3354
+ `PositioningCoordinator: Control "${registration.id}" is already registered. Use update() to modify.`
3355
+ );
3356
+ return this.offsets.get(registration.id) || null;
3357
+ }
3358
+ this.controls.set(registration.id, { ...registration });
3359
+ this.recalculateLayout();
3360
+ this.emit("control-registered", registration.id);
3361
+ return this.offsets.get(registration.id) || null;
3362
+ }
3363
+ /**
3364
+ * Unregister a control from the coordinator
3365
+ *
3366
+ * @param controlId - ID of the control to unregister
3367
+ */
3368
+ unregister(controlId) {
3369
+ if (!this.controls.has(controlId)) {
3370
+ return;
3371
+ }
3372
+ this.controls.delete(controlId);
3373
+ this.offsets.delete(controlId);
3374
+ this.recalculateLayout();
3375
+ this.emit("control-unregistered", controlId);
3376
+ }
3377
+ /**
3378
+ * Update a control's registration
3379
+ *
3380
+ * @param controlId - ID of the control to update
3381
+ * @param updates - Partial registration updates
3382
+ * @returns Updated offset, or null if control not found
3383
+ */
3384
+ update(controlId, updates) {
3385
+ const existing = this.controls.get(controlId);
3386
+ if (!existing) {
3387
+ console.warn(`PositioningCoordinator: Cannot update unregistered control "${controlId}"`);
3388
+ return null;
3389
+ }
3390
+ this.controls.set(controlId, { ...existing, ...updates });
3391
+ this.recalculateLayout();
3392
+ this.emit("control-updated", controlId);
3393
+ return this.offsets.get(controlId) || null;
3394
+ }
3395
+ /**
3396
+ * Set the expanded state of a control
3397
+ *
3398
+ * @param controlId - ID of the control
3399
+ * @param isExpanded - Whether the control is expanded
3400
+ * @returns Updated offset, or null if control not found
3401
+ */
3402
+ setExpanded(controlId, isExpanded) {
3403
+ return this.update(controlId, { isExpanded });
3404
+ }
3405
+ /**
3406
+ * Set the map dimensions for layout calculations
3407
+ *
3408
+ * @param dimensions - New map dimensions
3409
+ */
3410
+ setMapDimensions(dimensions) {
3411
+ if (dimensions.width === this.mapDimensions.width && dimensions.height === this.mapDimensions.height) {
3412
+ return;
3413
+ }
3414
+ this.mapDimensions = { ...dimensions };
3415
+ this.recalculateLayout();
3416
+ this.emit("map-resized");
3417
+ }
3418
+ /**
3419
+ * Get the current offset for a control
3420
+ *
3421
+ * @param controlId - ID of the control
3422
+ * @returns Current offset, or null if not found
3423
+ */
3424
+ getOffset(controlId) {
3425
+ return this.offsets.get(controlId) || null;
3426
+ }
3427
+ /**
3428
+ * Get all current offsets
3429
+ *
3430
+ * @returns Map of control IDs to offsets
3431
+ */
3432
+ getAllOffsets() {
3433
+ return new Map(this.offsets);
3434
+ }
3435
+ /**
3436
+ * Subscribe to coordinator events
3437
+ *
3438
+ * @param listener - Event listener function
3439
+ * @returns Unsubscribe function
3440
+ */
3441
+ subscribe(listener) {
3442
+ this.listeners.add(listener);
3443
+ return () => {
3444
+ this.listeners.delete(listener);
3445
+ };
3446
+ }
3447
+ /**
3448
+ * Start batching updates to defer layout recalculation
3449
+ * Call endBatch() when done to trigger a single recalculation
3450
+ */
3451
+ startBatch() {
3452
+ this.batchingUpdates = true;
3453
+ this.pendingRecalculation = false;
3454
+ }
3455
+ /**
3456
+ * End batching and trigger layout recalculation if needed
3457
+ */
3458
+ endBatch() {
3459
+ this.batchingUpdates = false;
3460
+ if (this.pendingRecalculation) {
3461
+ this.pendingRecalculation = false;
3462
+ this.recalculateLayout();
3463
+ this.emit("layout-changed");
3464
+ }
3465
+ }
3466
+ /**
3467
+ * Recalculate layout for all registered controls
3468
+ */
3469
+ recalculateLayout() {
3470
+ if (this.batchingUpdates) {
3471
+ this.pendingRecalculation = true;
3472
+ return;
3473
+ }
3474
+ this.offsets.clear();
3475
+ if (this.mapDimensions.width === 0 || this.mapDimensions.height === 0) {
3476
+ return;
3477
+ }
3478
+ const controlsByPosition = this.groupControlsByPosition();
3479
+ const positionedBoxes = /* @__PURE__ */ new Map();
3480
+ for (const [position, controls] of controlsByPosition) {
3481
+ this.calculatePositionStack(position, controls, positionedBoxes);
3482
+ }
3483
+ this.resolveCollisions(positionedBoxes);
3484
+ }
3485
+ /**
3486
+ * Group controls by their primary position
3487
+ */
3488
+ groupControlsByPosition() {
3489
+ const grouped = /* @__PURE__ */ new Map();
3490
+ for (const control of this.controls.values()) {
3491
+ const position = control.position.primary;
3492
+ const existing = grouped.get(position) || [];
3493
+ existing.push(control);
3494
+ grouped.set(position, existing);
3495
+ }
3496
+ for (const [position, controls] of grouped) {
3497
+ controls.sort((a, b) => {
3498
+ const aPriority = PRIORITY_ORDER.indexOf(a.priority);
3499
+ const bPriority = PRIORITY_ORDER.indexOf(b.priority);
3500
+ return bPriority - aPriority;
3501
+ });
3502
+ grouped.set(position, controls);
3503
+ }
3504
+ return grouped;
3505
+ }
3506
+ /**
3507
+ * Calculate stacked offsets for controls at a single position
3508
+ */
3509
+ calculatePositionStack(position, controls, positionedBoxes) {
3510
+ let stackOffset = 0;
3511
+ const isBottomPosition = position.startsWith("bottom");
3512
+ const isTopPosition = position.startsWith("top");
3513
+ const isCenterHorizontal = position.includes("center");
3514
+ const isRightPosition = position.includes("right");
3515
+ for (const control of controls) {
3516
+ const dimensions = control.isExpanded && control.expandedDimensions ? control.expandedDimensions : control.dimensions;
3517
+ let x = EDGE_MARGIN;
3518
+ let y = EDGE_MARGIN + stackOffset;
3519
+ if (isCenterHorizontal) {
3520
+ x = (this.mapDimensions.width - dimensions.width) / 2;
3521
+ } else if (isRightPosition) {
3522
+ x = EDGE_MARGIN;
3523
+ }
3524
+ if (isBottomPosition) {
3525
+ const attributionOffset = position === "bottom-right" ? ATTRIBUTION_HEIGHT : 0;
3526
+ y = EDGE_MARGIN + attributionOffset + stackOffset;
3527
+ } else if (position.startsWith("middle")) {
3528
+ y = (this.mapDimensions.height - dimensions.height) / 2;
3529
+ }
3530
+ let absoluteX = x;
3531
+ let absoluteY = y;
3532
+ if (isRightPosition && !isCenterHorizontal) {
3533
+ absoluteX = this.mapDimensions.width - dimensions.width - x;
3534
+ }
3535
+ if (isBottomPosition) {
3536
+ absoluteY = this.mapDimensions.height - dimensions.height - y;
3537
+ }
3538
+ const boundingBox = {
3539
+ left: absoluteX,
3540
+ top: absoluteY,
3541
+ right: absoluteX + dimensions.width,
3542
+ bottom: absoluteY + dimensions.height
3543
+ };
3544
+ const visible = this.isBoxInViewport(boundingBox);
3545
+ const zIndex = this.calculateZIndex(control);
3546
+ this.offsets.set(control.id, {
3547
+ x,
3548
+ y,
3549
+ zIndex,
3550
+ position,
3551
+ visible,
3552
+ usedFallback: false,
3553
+ warning: visible ? void 0 : "Control may be outside visible area"
3554
+ });
3555
+ positionedBoxes.set(control.id, boundingBox);
3556
+ if (isBottomPosition || isTopPosition) {
3557
+ stackOffset += dimensions.height + STACK_GAP;
3558
+ }
3559
+ }
3560
+ }
3561
+ /**
3562
+ * Calculate z-index for a control based on its layer and state
3563
+ */
3564
+ calculateZIndex(control) {
3565
+ let baseZ = Z_INDEX_LAYERS[control.zLayer];
3566
+ if (control.isExpanded) {
3567
+ baseZ += 5;
3568
+ }
3569
+ const priorityBonus = PRIORITY_ORDER.indexOf(control.priority);
3570
+ baseZ += priorityBonus;
3571
+ return baseZ;
3572
+ }
3573
+ /**
3574
+ * Check if a bounding box is within the viewport
3575
+ */
3576
+ isBoxInViewport(box) {
3577
+ return box.left >= 0 && box.top >= 0 && box.right <= this.mapDimensions.width && box.bottom <= this.mapDimensions.height;
3578
+ }
3579
+ /**
3580
+ * Detect collisions between bounding boxes
3581
+ */
3582
+ boxesCollide(box1, box2) {
3583
+ return !(box1.right < box2.left || box1.left > box2.right || box1.bottom < box2.top || box1.top > box2.bottom);
3584
+ }
3585
+ /**
3586
+ * Resolve collisions by moving lower-priority controls to fallback positions
3587
+ */
3588
+ resolveCollisions(positionedBoxes) {
3589
+ const sortedControls = Array.from(this.controls.values()).sort((a, b) => {
3590
+ const aPriority = PRIORITY_ORDER.indexOf(a.priority);
3591
+ const bPriority = PRIORITY_ORDER.indexOf(b.priority);
3592
+ return aPriority - bPriority;
3593
+ });
3594
+ for (const control of sortedControls) {
3595
+ const currentBox = positionedBoxes.get(control.id);
3596
+ if (!currentBox) continue;
3597
+ let hasCollision = false;
3598
+ for (const [otherId, otherBox] of positionedBoxes) {
3599
+ if (otherId === control.id) continue;
3600
+ const otherControl = this.controls.get(otherId);
3601
+ if (!otherControl) continue;
3602
+ const otherPriority = PRIORITY_ORDER.indexOf(otherControl.priority);
3603
+ const thisPriority = PRIORITY_ORDER.indexOf(control.priority);
3604
+ if (otherPriority > thisPriority && this.boxesCollide(currentBox, otherBox)) {
3605
+ hasCollision = true;
3606
+ break;
3607
+ }
3608
+ }
3609
+ if (hasCollision && control.position.fallbacks?.length) {
3610
+ const newPosition = this.tryFallbackPositions(control, positionedBoxes);
3611
+ if (newPosition) {
3612
+ const offset = this.offsets.get(control.id);
3613
+ if (offset) {
3614
+ offset.usedFallback = true;
3615
+ offset.position = newPosition;
3616
+ }
3617
+ }
3618
+ }
3619
+ }
3620
+ }
3621
+ /**
3622
+ * Try fallback positions for a control
3623
+ *
3624
+ * @returns The fallback position that worked, or null if none worked
3625
+ */
3626
+ tryFallbackPositions(control, positionedBoxes) {
3627
+ const fallbacks = control.position.fallbacks || [];
3628
+ for (const fallbackPosition of fallbacks) {
3629
+ const dimensions = control.isExpanded && control.expandedDimensions ? control.expandedDimensions : control.dimensions;
3630
+ const newBox = this.calculateBoxAtPosition(fallbackPosition, dimensions);
3631
+ let isValid = true;
3632
+ for (const [otherId, otherBox] of positionedBoxes) {
3633
+ if (otherId === control.id) continue;
3634
+ const otherControl = this.controls.get(otherId);
3635
+ if (!otherControl) continue;
3636
+ if (this.boxesCollide(newBox, otherBox)) {
3637
+ isValid = false;
3638
+ break;
3639
+ }
3640
+ }
3641
+ if (isValid && this.isBoxInViewport(newBox)) {
3642
+ positionedBoxes.set(control.id, newBox);
3643
+ let cssX = EDGE_MARGIN;
3644
+ let cssY = EDGE_MARGIN;
3645
+ if (fallbackPosition.includes("center")) {
3646
+ cssX = (this.mapDimensions.width - dimensions.width) / 2;
3647
+ }
3648
+ if (fallbackPosition.startsWith("middle")) {
3649
+ cssY = (this.mapDimensions.height - dimensions.height) / 2;
3650
+ } else if (fallbackPosition === "bottom-right") {
3651
+ cssY = EDGE_MARGIN + ATTRIBUTION_HEIGHT;
3652
+ }
3653
+ const offset = this.offsets.get(control.id);
3654
+ if (offset) {
3655
+ offset.x = cssX;
3656
+ offset.y = cssY;
3657
+ offset.position = fallbackPosition;
3658
+ offset.visible = true;
3659
+ }
3660
+ return fallbackPosition;
3661
+ }
3662
+ }
3663
+ return null;
3664
+ }
3665
+ /**
3666
+ * Calculate absolute bounding box for a control at a specific position
3667
+ * Returns absolute coordinates for collision detection
3668
+ */
3669
+ calculateBoxAtPosition(position, dimensions) {
3670
+ const isCenterHorizontal = position.includes("center");
3671
+ const isRightPosition = position.includes("right");
3672
+ const isBottomPosition = position.startsWith("bottom");
3673
+ const isMiddleVertical = position.startsWith("middle");
3674
+ let x = EDGE_MARGIN;
3675
+ if (isCenterHorizontal) {
3676
+ x = (this.mapDimensions.width - dimensions.width) / 2;
3677
+ } else if (isRightPosition) {
3678
+ x = this.mapDimensions.width - dimensions.width - EDGE_MARGIN;
3679
+ }
3680
+ const attributionOffset = position === "bottom-right" ? ATTRIBUTION_HEIGHT : 0;
3681
+ let y = EDGE_MARGIN;
3682
+ if (isBottomPosition) {
3683
+ y = this.mapDimensions.height - dimensions.height - EDGE_MARGIN - attributionOffset;
3684
+ } else if (isMiddleVertical) {
3685
+ y = (this.mapDimensions.height - dimensions.height) / 2;
3686
+ }
3687
+ return {
3688
+ left: x,
3689
+ top: y,
3690
+ right: x + dimensions.width,
3691
+ bottom: y + dimensions.height
3692
+ };
3693
+ }
3694
+ /**
3695
+ * Emit an event to all listeners
3696
+ */
3697
+ emit(type, controlId) {
3698
+ const event = {
3699
+ type,
3700
+ controlId,
3701
+ offsets: this.getAllOffsets(),
3702
+ timestamp: Date.now()
3703
+ };
3704
+ for (const listener of this.listeners) {
3705
+ try {
3706
+ listener(event);
3707
+ } catch (error) {
3708
+ console.error("PositioningCoordinator: Error in event listener", error);
3709
+ }
3710
+ }
3711
+ }
3712
+ /**
3713
+ * Clear all registrations and reset state
3714
+ */
3715
+ destroy() {
3716
+ this.controls.clear();
3717
+ this.offsets.clear();
3718
+ this.listeners.clear();
3719
+ this.mapDimensions = { width: 0, height: 0 };
3720
+ }
3721
+ };
3722
+ function createPositioningCoordinator() {
3723
+ return new PositioningCoordinator();
3724
+ }
3725
+
3323
3726
  // src/colors/realEstate.ts
3324
3727
  var lotAvailabilityColors = {
3325
3728
  Available: "#4caf50",
@@ -3434,4 +3837,4 @@ function createMatchedColorExpression(baseColorExpression, matchedProperty = "ma
3434
3837
  ];
3435
3838
  }
3436
3839
 
3437
- export { BASE_OFFSET, BIKE_LANES, BUILTIN_BASEMAPS, BUILTIN_OVERLAY_LAYERS, CATEGORY_META, CITY_LIMITS, CLASSIC_DARK, CLASSIC_LIGHT, DEFAULT_SIMPLIFICATION_THRESHOLDS, FLOOD_ZONES, FREE_BASEMAPS, KEYBOARD_CONTROLS, MAPTILER_BASIC, MAPTILER_OUTDOOR, MAPTILER_SATELLITE, MAPTILER_STREETS, MARKER_PROTECTION_CLASS, OFFSET_CLASSES, OSM_STANDARD, PARKS, POSITION_CLASSES, SCHOOL_DISTRICTS, SPORTS_FACILITIES, STADIA_ALIDADE_DARK, STADIA_ALIDADE_SMOOTH, STADIA_STAMEN_TERRAIN, STADIA_STAMEN_TONER, STADIA_STAMEN_WATERCOLOR, TRAILS, TRANSIT_ROUTES, WATERSHEDS, ZONING_DISTRICTS, applyMarkerChildProtection, applyMarkerProtection, boundaryColors, boundsToPolygon, buildRTreeIndex, buildSpatialIndex, calculateBounds, calculateCentroid, calculateZoomThresholds, clusterColorExpression, clusterColors, combineBounds, computePositionClasses, computeVerticalOffsetStyle, countFeaturesByType, createCategoricalColorExpression, createCircleStyle, createContinuousColorExpression, createDynamicLODManager, createExtrusionHeightExpression, createExtrusionStyle, createFillStyle, createGeoJSONFingerprint, createHeatmapStyle, createHoverExpression, createIdleViewportManager, createInitialLayerStates, createInteractiveExpression, createInteractiveStatusColorExpression, createLineStyle, createLotFillStyle, createLotOutlineStyle, createMatchedColorExpression, createPredictiveViewportManager, createRTreeViewportManager, createSelectionExpression, createStatusColorExpression, createViewportManager, createViewportQuery, createZoomExpression, decimalToDMS, deepEqual, 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, getAvailabilityColor, getAvailableBasemaps, getChangedPaintProps, getClusterBounds, getClusterChildren, getClusterExpansionZoom, getClusterLeaves, getContrastTextColor, getHighlightStyle, getLayerCategories, getLayerStatesArray, getLayerStyleForTheme, getLayersByCategory, getLayersWithErrors, getSelectionStyle, getSimplificationToleranceForZoom, getSimplifiedFeaturesForZoom, getSizeColor, getVisibleLayerIds, groupFeaturesByProperty, groupLayersByCategory, hideAllLayers, inventoryStatusColorExpression, inventoryStatusColors, isAnyLayerLoading, isClusterFeature, isValidBounds, loadGeoJSON, lotAvailabilityColorExpression, lotAvailabilityColors, lotSizeColorExpression, lotSizeColors, nonMatchedColor, paintPropsEqual, queryByBounds, queryByBoundsWithStats, queryRTreeByBounds, queryRTreeByBoundsWithStats, removeMarkerProtection, reorderLayers, resolveBasemapStyle, resolveBasemapThumbnail, resolveLayerSourceUrl, salesOfficeColor, searchLayers, serializeFilter, setLayerError, setLayerLoading, setLayerOpacity, showAllLayers, simplifyFeature, simplifyFeatureCollection, simplifyFeatureCollectionWithStats, simplifyPolygon, toggleLayerVisibility, updateLayerState, validateGeoJSON, zoomToScale };
3840
+ export { BIKE_LANES, BUILTIN_BASEMAPS, BUILTIN_OVERLAY_LAYERS, CATEGORY_META, CITY_LIMITS, CLASSIC_DARK, CLASSIC_LIGHT, DEFAULT_BASEMAP, DEFAULT_SIMPLIFICATION_THRESHOLDS, EDGE_MARGIN, FLOOD_ZONES, FREE_BASEMAPS, KEYBOARD_CONTROLS, MAPTILER_BASIC, MAPTILER_OUTDOOR, MAPTILER_SATELLITE, MAPTILER_STREETS, MARKER_PROTECTION_CLASS, OSM_STANDARD, PARKS, PRIMARY_BASEMAPS, PRIORITY_ORDER, PositioningCoordinator, SATELLITE_BASEMAP, SCHOOL_DISTRICTS, SPORTS_FACILITIES, STACK_GAP, STADIA_ALIDADE_DARK, STADIA_ALIDADE_SMOOTH, STADIA_STAMEN_TERRAIN, STADIA_STAMEN_TONER, STADIA_STAMEN_WATERCOLOR, TOPO_BASEMAP, TRAILS, TRANSIT_ROUTES, WATERSHEDS, ZONING_DISTRICTS, Z_INDEX_LAYERS, applyMarkerChildProtection, applyMarkerProtection, boundaryColors, boundsToPolygon, buildRTreeIndex, buildSpatialIndex, calculateBounds, calculateCentroid, calculateZoomThresholds, clusterColorExpression, clusterColors, combineBounds, countFeaturesByType, createCategoricalColorExpression, createCircleStyle, createContinuousColorExpression, createDynamicLODManager, createExtrusionHeightExpression, createExtrusionStyle, createFillStyle, createGeoJSONFingerprint, createHeatmapStyle, createHoverExpression, createIdleViewportManager, createInitialLayerStates, createInteractiveExpression, createInteractiveStatusColorExpression, createLineStyle, createLotFillStyle, createLotOutlineStyle, createMatchedColorExpression, createPositioningCoordinator, createPredictiveViewportManager, createRTreeViewportManager, createSelectionExpression, createStatusColorExpression, createViewportManager, createViewportQuery, createZoomExpression, decimalToDMS, deepEqual, 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, getAvailabilityColor, getAvailableBasemaps, getChangedPaintProps, getClusterBounds, getClusterChildren, getClusterExpansionZoom, getClusterLeaves, getContrastTextColor, getHighlightStyle, getLayerCategories, getLayerStatesArray, getLayerStyleForTheme, getLayersByCategory, getLayersWithErrors, getSelectionStyle, getSimplificationToleranceForZoom, getSimplifiedFeaturesForZoom, getSizeColor, getVisibleLayerIds, groupFeaturesByProperty, groupLayersByCategory, hideAllLayers, inventoryStatusColorExpression, inventoryStatusColors, isAnyLayerLoading, isClusterFeature, isValidBounds, loadGeoJSON, lotAvailabilityColorExpression, lotAvailabilityColors, lotSizeColorExpression, lotSizeColors, nonMatchedColor, paintPropsEqual, queryByBounds, queryByBoundsWithStats, queryRTreeByBounds, queryRTreeByBoundsWithStats, removeMarkerProtection, reorderLayers, resolveBasemapStyle, resolveBasemapThumbnail, resolveLayerSourceUrl, salesOfficeColor, searchLayers, serializeFilter, setLayerError, setLayerLoading, setLayerOpacity, showAllLayers, simplifyFeature, simplifyFeatureCollection, simplifyFeatureCollectionWithStats, simplifyPolygon, toggleLayerVisibility, updateLayerState, validateGeoJSON, zoomToScale };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@classic-homes/maps-core",
3
- "version": "0.2.4",
3
+ "version": "0.2.6",
4
4
  "description": "Core utilities and theme for Classic Theme maps",
5
5
  "keywords": [
6
6
  "maps",
@@ -629,6 +629,28 @@
629
629
  pointer-events: none;
630
630
  }
631
631
 
632
+ .pointer-events-auto {
633
+ pointer-events: auto;
634
+ }
635
+
636
+ /* Child selector variant: [&>*]:pointer-events-auto
637
+ Critical for map controls overlay - allows children to receive clicks */
638
+ .pointer-events-none > * {
639
+ pointer-events: auto;
640
+ }
641
+
642
+ /* ==========================================================================
643
+ Visibility
644
+ ========================================================================== */
645
+
646
+ .invisible {
647
+ visibility: hidden;
648
+ }
649
+
650
+ .visible {
651
+ visibility: visible;
652
+ }
653
+
632
654
  /* ==========================================================================
633
655
  Overflow
634
656
  ========================================================================== */