@local-logic/maps 0.0.11 → 0.0.13
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-58w3Qwxr.js +56 -0
- package/dist/index-BGoTpJjt.js +81 -0
- package/dist/index-Bp1bWq9c.js +690 -0
- package/dist/index-C36u5N_F.js +34 -0
- package/dist/{index-BMvwx9_l.js → index-CBp9gCca.js} +33 -20
- package/dist/index-CCtDJ-mV.js +56 -0
- package/dist/index-CFomI3Il.js +98 -0
- package/dist/index-CUpaKIZP.js +105 -0
- package/dist/index-CXTsUiSS.js +57 -0
- package/dist/index-CXUQoF5Q.js +34 -0
- package/dist/index-DY5pY-zk.js +43 -0
- package/dist/index-S5SfktvB.js +79 -0
- package/dist/{index-BsnsAUt5.js → index-UEadmVww.js} +2 -1
- package/dist/index.es.js +1 -1
- package/dist/index.umd.js +82 -78
- package/dist/src/components/Map/Root/BaseMap/Google/index.d.ts +1 -1
- package/dist/src/components/Map/Root/BaseMap/Google/index.d.ts.map +1 -1
- package/dist/src/components/Map/Root/BaseMap/Mapbox/index.d.ts +1 -1
- package/dist/src/components/Map/Root/BaseMap/Mapbox/index.d.ts.map +1 -1
- package/dist/src/components/Map/Root/BaseMap/Maptiler/index.d.ts +1 -1
- package/dist/src/components/Map/Root/BaseMap/Maptiler/index.d.ts.map +1 -1
- package/dist/src/components/Map/Root/BaseMap/index.d.ts +1 -1
- package/dist/src/components/Map/Root/BaseMap/index.d.ts.map +1 -1
- package/dist/src/components/Map/Root/BaseMap/types.d.ts +10 -1
- package/dist/src/components/Map/Root/BaseMap/types.d.ts.map +1 -1
- package/dist/src/components/Map/Root/Layers/Google/index.d.ts.map +1 -1
- package/dist/src/components/Map/Root/Markers/Cluster/index.d.ts +2 -1
- package/dist/src/components/Map/Root/Markers/Cluster/index.d.ts.map +1 -1
- package/dist/src/components/Map/Root/Markers/Google/index.d.ts +1 -1
- package/dist/src/components/Map/Root/Markers/Google/index.d.ts.map +1 -1
- package/dist/src/components/Map/Root/Markers/Mapbox/index.d.ts +1 -1
- package/dist/src/components/Map/Root/Markers/Mapbox/index.d.ts.map +1 -1
- package/dist/src/components/Map/Root/Markers/Maptiler/index.d.ts +1 -1
- package/dist/src/components/Map/Root/Markers/Maptiler/index.d.ts.map +1 -1
- package/dist/src/components/Map/Root/Markers/index.d.ts +1 -1
- package/dist/src/components/Map/Root/Markers/index.d.ts.map +1 -1
- package/dist/src/components/Map/Root/Markers/styles.d.ts +2 -2
- package/dist/src/components/Map/Root/Markers/styles.d.ts.map +1 -1
- package/dist/src/components/Map/Root/Markers/types.d.ts +1 -11
- package/dist/src/components/Map/Root/Markers/types.d.ts.map +1 -1
- package/dist/src/components/Map/Root/Popup/Google/index.d.ts.map +1 -1
- package/dist/src/components/Map/Root/Popup/Mapbox/index.d.ts.map +1 -1
- package/dist/src/components/Map/Root/Popup/Maptiler/index.d.ts.map +1 -1
- package/dist/src/components/Map/Root/Popup/index.d.ts +1 -1
- package/dist/src/components/Map/Root/Popup/index.d.ts.map +1 -1
- package/dist/src/components/Map/Root/Popup/styles.d.ts +1 -1
- package/dist/src/components/Map/Root/Popup/styles.d.ts.map +1 -1
- package/dist/src/components/Map/Root/constants.d.ts +4 -0
- package/dist/src/components/Map/Root/constants.d.ts.map +1 -1
- package/dist/src/components/Map/Root/context.d.ts +3 -0
- package/dist/src/components/Map/Root/context.d.ts.map +1 -1
- package/dist/src/components/Map/Root/index.d.ts.map +1 -1
- package/dist/src/components/Map/Root/types.d.ts +1 -0
- package/dist/src/components/Map/Root/types.d.ts.map +1 -1
- package/dist/style.css +2 -2
- package/dist/{styles-uPzJnzVS.js → styles-ChFj97uV.js} +1 -1
- package/package.json +1 -1
- package/dist/index-9RZYMoMG.js +0 -39
- package/dist/index-B9QF7ewJ.js +0 -73
- package/dist/index-BOBkPCX5.js +0 -772
- package/dist/index-BOuko7CL.js +0 -32
- package/dist/index-BdXay-zF.js +0 -62
- package/dist/index-Bn_2qA7h.js +0 -65
- package/dist/index-D5uhfwEH.js +0 -31
- package/dist/index-DJ4SJ9IL.js +0 -53
- package/dist/index-DaEKTD5_.js +0 -65
- package/dist/index-Dyy8UNMs.js +0 -50
package/package.json
CHANGED
package/dist/index-9RZYMoMG.js
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { jsx as u } from "react/jsx-runtime";
|
|
2
|
-
import { useEffect as m, useMemo as o } from "react";
|
|
3
|
-
import { u as s, I as d } from "./index.modern-CLRs8JwI.js";
|
|
4
|
-
import { c as f } from "./styles-uPzJnzVS.js";
|
|
5
|
-
function v({
|
|
6
|
-
latitude: n,
|
|
7
|
-
longitude: t,
|
|
8
|
-
offset: r = [0, -25],
|
|
9
|
-
onClose: e,
|
|
10
|
-
children: a
|
|
11
|
-
}) {
|
|
12
|
-
const i = s();
|
|
13
|
-
m(() => {
|
|
14
|
-
if (!i) return;
|
|
15
|
-
const c = i.addListener("click", () => {
|
|
16
|
-
e == null || e();
|
|
17
|
-
});
|
|
18
|
-
return () => {
|
|
19
|
-
c.remove();
|
|
20
|
-
};
|
|
21
|
-
}, [i]);
|
|
22
|
-
const p = o(() => Array.isArray(r) ? [r[0], r[1]] : [r, r], [r]);
|
|
23
|
-
return typeof n > "u" || typeof t > "u" ? null : /* @__PURE__ */ u(
|
|
24
|
-
d,
|
|
25
|
-
{
|
|
26
|
-
shouldFocus: !0,
|
|
27
|
-
position: {
|
|
28
|
-
lat: n,
|
|
29
|
-
lng: t
|
|
30
|
-
},
|
|
31
|
-
pixelOffset: p,
|
|
32
|
-
onClose: e,
|
|
33
|
-
children: /* @__PURE__ */ u("div", { className: f, children: a })
|
|
34
|
-
}
|
|
35
|
-
);
|
|
36
|
-
}
|
|
37
|
-
export {
|
|
38
|
-
v as default
|
|
39
|
-
};
|
package/dist/index-B9QF7ewJ.js
DELETED
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import { jsxs as M, jsx as d } from "react/jsx-runtime";
|
|
2
|
-
import { useState as h, useEffect as b } from "react";
|
|
3
|
-
import { A as C, M as O, C as i, u as P } from "./index.modern-CLRs8JwI.js";
|
|
4
|
-
import { u as p, d as l, a as v } from "./index-BOBkPCX5.js";
|
|
5
|
-
const y = {
|
|
6
|
-
"top-left": i.LEFT_TOP,
|
|
7
|
-
"top-right": i.RIGHT_TOP,
|
|
8
|
-
"bottom-left": i.LEFT_BOTTOM,
|
|
9
|
-
"bottom-right": i.RIGHT_BOTTOM
|
|
10
|
-
}, Z = ({ isMapLoaded: r }) => {
|
|
11
|
-
const o = P(), { setBounds: u, setZoom: t } = p(), a = () => {
|
|
12
|
-
var s;
|
|
13
|
-
if (!o)
|
|
14
|
-
return;
|
|
15
|
-
const e = (s = o.getBounds()) == null ? void 0 : s.toJSON(), n = o.getZoom();
|
|
16
|
-
e && u([e.west, e.south, e.east, e.north]), typeof n < "u" && t(n + 1);
|
|
17
|
-
};
|
|
18
|
-
return b(() => {
|
|
19
|
-
!r || !o || (a(), o.addListener("bounds_changed", () => {
|
|
20
|
-
a();
|
|
21
|
-
}));
|
|
22
|
-
}, [r, o]), null;
|
|
23
|
-
};
|
|
24
|
-
function B({ children: r }) {
|
|
25
|
-
const [o, u] = h(!1), {
|
|
26
|
-
mapProvider: t,
|
|
27
|
-
center: a,
|
|
28
|
-
// Google Maps zoom level starts at 0, so we add 1 to match our defaultMapValues
|
|
29
|
-
zoom: e = l.zoom + 1,
|
|
30
|
-
minZoom: n,
|
|
31
|
-
maxZoom: s,
|
|
32
|
-
pitch: f = l.pitch,
|
|
33
|
-
bearing: c = l.bearing,
|
|
34
|
-
cooperativeGestures: g = l.cooperativeGestures,
|
|
35
|
-
zoomPosition: m
|
|
36
|
-
} = p();
|
|
37
|
-
if (t.name !== "google")
|
|
38
|
-
return null;
|
|
39
|
-
const T = () => {
|
|
40
|
-
u(!0);
|
|
41
|
-
};
|
|
42
|
-
return /* @__PURE__ */ M(C, { apiKey: t.apiKey, children: [
|
|
43
|
-
/* @__PURE__ */ d(Z, { isMapLoaded: o }),
|
|
44
|
-
/* @__PURE__ */ d(
|
|
45
|
-
O,
|
|
46
|
-
{
|
|
47
|
-
mapId: t.theme || v.google,
|
|
48
|
-
defaultCenter: {
|
|
49
|
-
lat: a.latitude,
|
|
50
|
-
lng: a.longitude
|
|
51
|
-
},
|
|
52
|
-
defaultZoom: e,
|
|
53
|
-
defaultTilt: f,
|
|
54
|
-
defaultHeading: c,
|
|
55
|
-
gestureHandling: g ? "cooperative" : "greedy",
|
|
56
|
-
streetViewControl: !1,
|
|
57
|
-
fullscreenControl: !1,
|
|
58
|
-
clickableIcons: !1,
|
|
59
|
-
mapTypeControl: !1,
|
|
60
|
-
zoomControlOptions: {
|
|
61
|
-
position: m && y[m]
|
|
62
|
-
},
|
|
63
|
-
minZoom: typeof n == "number" ? n + 1 : void 0,
|
|
64
|
-
maxZoom: typeof s == "number" ? s + 1 : void 0,
|
|
65
|
-
onTilesLoaded: T,
|
|
66
|
-
children: r
|
|
67
|
-
}
|
|
68
|
-
)
|
|
69
|
-
] });
|
|
70
|
-
}
|
|
71
|
-
export {
|
|
72
|
-
B as default
|
|
73
|
-
};
|