@classic-homes/maps-react 0.1.5 → 0.2.1
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.cjs +7 -1
- package/dist/index.js +7 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -118,6 +118,8 @@ var MapError = React25__namespace.forwardRef(
|
|
|
118
118
|
{
|
|
119
119
|
className: "h-10 w-10 text-destructive",
|
|
120
120
|
xmlns: "http://www.w3.org/2000/svg",
|
|
121
|
+
width: "40",
|
|
122
|
+
height: "40",
|
|
121
123
|
fill: "none",
|
|
122
124
|
viewBox: "0 0 24 24",
|
|
123
125
|
stroke: "currentColor",
|
|
@@ -410,6 +412,9 @@ var Map2 = React25__namespace.forwardRef(
|
|
|
410
412
|
if (geolocateControl) {
|
|
411
413
|
offsets[geolocateControlPosition] += 38;
|
|
412
414
|
}
|
|
415
|
+
if (attributionControl) {
|
|
416
|
+
offsets["bottom-right"] += 32;
|
|
417
|
+
}
|
|
413
418
|
return offsets;
|
|
414
419
|
}, [
|
|
415
420
|
navigationControl,
|
|
@@ -419,7 +424,8 @@ var Map2 = React25__namespace.forwardRef(
|
|
|
419
424
|
fullscreenControl,
|
|
420
425
|
fullscreenControlPosition,
|
|
421
426
|
geolocateControl,
|
|
422
|
-
geolocateControlPosition
|
|
427
|
+
geolocateControlPosition,
|
|
428
|
+
attributionControl
|
|
423
429
|
]);
|
|
424
430
|
const registerControl = React25__namespace.useCallback(
|
|
425
431
|
(id, position, height2) => {
|
package/dist/index.js
CHANGED
|
@@ -94,6 +94,8 @@ var MapError = React25.forwardRef(
|
|
|
94
94
|
{
|
|
95
95
|
className: "h-10 w-10 text-destructive",
|
|
96
96
|
xmlns: "http://www.w3.org/2000/svg",
|
|
97
|
+
width: "40",
|
|
98
|
+
height: "40",
|
|
97
99
|
fill: "none",
|
|
98
100
|
viewBox: "0 0 24 24",
|
|
99
101
|
stroke: "currentColor",
|
|
@@ -386,6 +388,9 @@ var Map2 = React25.forwardRef(
|
|
|
386
388
|
if (geolocateControl) {
|
|
387
389
|
offsets[geolocateControlPosition] += 38;
|
|
388
390
|
}
|
|
391
|
+
if (attributionControl) {
|
|
392
|
+
offsets["bottom-right"] += 32;
|
|
393
|
+
}
|
|
389
394
|
return offsets;
|
|
390
395
|
}, [
|
|
391
396
|
navigationControl,
|
|
@@ -395,7 +400,8 @@ var Map2 = React25.forwardRef(
|
|
|
395
400
|
fullscreenControl,
|
|
396
401
|
fullscreenControlPosition,
|
|
397
402
|
geolocateControl,
|
|
398
|
-
geolocateControlPosition
|
|
403
|
+
geolocateControlPosition,
|
|
404
|
+
attributionControl
|
|
399
405
|
]);
|
|
400
406
|
const registerControl = React25.useCallback(
|
|
401
407
|
(id, position, height2) => {
|