@classic-homes/maps-core 0.2.14 → 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 +6 -0
- package/dist/types/index.d.ts +6 -0
- 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 */
|
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 */
|
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
|
|