@classic-homes/maps-core 0.2.13 → 0.2.16
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/types/index.d.cts +9 -3
- package/dist/types/index.d.ts +9 -3
- package/package.json +1 -1
- package/src/styles/popup.css +7 -0
package/dist/types/index.d.cts
CHANGED
|
@@ -319,6 +319,12 @@ interface MapProps extends BaseMapProps {
|
|
|
319
319
|
touchZoomRotate?: boolean;
|
|
320
320
|
/** Enable keyboard navigation */
|
|
321
321
|
keyboard?: boolean;
|
|
322
|
+
/**
|
|
323
|
+
* Require two-finger touch panning and Ctrl/Cmd + scroll wheel zooming,
|
|
324
|
+
* showing MapLibre's built-in help overlay otherwise. Prevents map
|
|
325
|
+
* scroll-jacking on touch pages. Default: undefined (off).
|
|
326
|
+
*/
|
|
327
|
+
cooperativeGestures?: boolean;
|
|
322
328
|
/** Show attribution control */
|
|
323
329
|
attributionControl?: boolean;
|
|
324
330
|
/** Custom attribution text */
|
|
@@ -627,9 +633,9 @@ interface MarkerProps {
|
|
|
627
633
|
id?: string;
|
|
628
634
|
/** Marker coordinates [lng, lat] */
|
|
629
635
|
coordinates: LngLat;
|
|
630
|
-
/** Marker color */
|
|
636
|
+
/** Marker color (init-only: MapLibre bakes it into the marker element at creation) */
|
|
631
637
|
color?: string;
|
|
632
|
-
/** Custom anchor point */
|
|
638
|
+
/** Custom anchor point (init-only: cannot change after marker creation) */
|
|
633
639
|
anchor?: 'center' | 'top' | 'bottom' | 'left' | 'right' | 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
634
640
|
/** Offset from coordinates [x, y] in pixels */
|
|
635
641
|
offset?: [number, number];
|
|
@@ -637,7 +643,7 @@ interface MarkerProps {
|
|
|
637
643
|
rotation?: number;
|
|
638
644
|
/** Enable dragging */
|
|
639
645
|
draggable?: boolean;
|
|
640
|
-
/** Marker scale */
|
|
646
|
+
/** Marker scale (init-only: cannot change after marker creation) */
|
|
641
647
|
scale?: number;
|
|
642
648
|
/** Popup offset */
|
|
643
649
|
popupOffset?: number | [number, number];
|
package/dist/types/index.d.ts
CHANGED
|
@@ -319,6 +319,12 @@ interface MapProps extends BaseMapProps {
|
|
|
319
319
|
touchZoomRotate?: boolean;
|
|
320
320
|
/** Enable keyboard navigation */
|
|
321
321
|
keyboard?: boolean;
|
|
322
|
+
/**
|
|
323
|
+
* Require two-finger touch panning and Ctrl/Cmd + scroll wheel zooming,
|
|
324
|
+
* showing MapLibre's built-in help overlay otherwise. Prevents map
|
|
325
|
+
* scroll-jacking on touch pages. Default: undefined (off).
|
|
326
|
+
*/
|
|
327
|
+
cooperativeGestures?: boolean;
|
|
322
328
|
/** Show attribution control */
|
|
323
329
|
attributionControl?: boolean;
|
|
324
330
|
/** Custom attribution text */
|
|
@@ -627,9 +633,9 @@ interface MarkerProps {
|
|
|
627
633
|
id?: string;
|
|
628
634
|
/** Marker coordinates [lng, lat] */
|
|
629
635
|
coordinates: LngLat;
|
|
630
|
-
/** Marker color */
|
|
636
|
+
/** Marker color (init-only: MapLibre bakes it into the marker element at creation) */
|
|
631
637
|
color?: string;
|
|
632
|
-
/** Custom anchor point */
|
|
638
|
+
/** Custom anchor point (init-only: cannot change after marker creation) */
|
|
633
639
|
anchor?: 'center' | 'top' | 'bottom' | 'left' | 'right' | 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
634
640
|
/** Offset from coordinates [x, y] in pixels */
|
|
635
641
|
offset?: [number, number];
|
|
@@ -637,7 +643,7 @@ interface MarkerProps {
|
|
|
637
643
|
rotation?: number;
|
|
638
644
|
/** Enable dragging */
|
|
639
645
|
draggable?: boolean;
|
|
640
|
-
/** Marker scale */
|
|
646
|
+
/** Marker scale (init-only: cannot change after marker creation) */
|
|
641
647
|
scale?: number;
|
|
642
648
|
/** Popup offset */
|
|
643
649
|
popupOffset?: number | [number, number];
|
package/package.json
CHANGED
package/src/styles/popup.css
CHANGED
|
@@ -86,6 +86,13 @@
|
|
|
86
86
|
box-shadow: 0 0 0 2px hsl(var(--ring)) !important;
|
|
87
87
|
}
|
|
88
88
|
|
|
89
|
+
/* Expand the 28px close button to a 44px touch target without visual change */
|
|
90
|
+
.maplibregl-popup-close-button::after {
|
|
91
|
+
content: '';
|
|
92
|
+
position: absolute;
|
|
93
|
+
inset: -8px;
|
|
94
|
+
}
|
|
95
|
+
|
|
89
96
|
/* ==========================================================================
|
|
90
97
|
Popup Tip/Arrow Styling
|
|
91
98
|
|