@local-logic/maps 0.0.9 → 0.0.11
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/IconBase.es-rM5tt24D.js +48 -0
- package/dist/{index-BZ2605rA.js → index-9RZYMoMG.js} +1 -1
- package/dist/index-B9QF7ewJ.js +73 -0
- package/dist/index-BCa658u4.js +24 -0
- package/dist/index-BMvwx9_l.js +96 -0
- package/dist/index-BOBkPCX5.js +772 -0
- package/dist/index-BOuko7CL.js +32 -0
- package/dist/index-BdXay-zF.js +62 -0
- package/dist/index-Bn_2qA7h.js +65 -0
- package/dist/{index-CPq7k7F4.js → index-BsnsAUt5.js} +1 -1
- package/dist/index-CNxLnZ8O.js +23 -0
- package/dist/{index-B43MtiHH.js → index-D5uhfwEH.js} +10 -9
- package/dist/index-DJ4SJ9IL.js +53 -0
- package/dist/index-DaEKTD5_.js +65 -0
- package/dist/index-Do_dW76Q.js +23 -0
- package/dist/index-Dyy8UNMs.js +50 -0
- package/dist/index.es.js +1 -1
- package/dist/{index.modern-EsUgbhzI.js → index.modern-CLRs8JwI.js} +7 -7
- package/dist/index.umd.js +134 -146
- 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.map +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.map +1 -1
- package/dist/src/components/Map/Root/CenterPin/Google/index.d.ts +4 -0
- package/dist/src/components/Map/Root/CenterPin/Google/index.d.ts.map +1 -0
- package/dist/src/components/Map/Root/CenterPin/Mapbox/index.d.ts +4 -0
- package/dist/src/components/Map/Root/CenterPin/Mapbox/index.d.ts.map +1 -0
- package/dist/src/components/Map/Root/CenterPin/Maptiler/index.d.ts +4 -0
- package/dist/src/components/Map/Root/CenterPin/Maptiler/index.d.ts.map +1 -0
- package/dist/src/components/Map/Root/CenterPin/index.d.ts +4 -0
- package/dist/src/components/Map/Root/CenterPin/index.d.ts.map +1 -0
- package/dist/src/components/Map/Root/CenterPin/styles.d.ts +4 -0
- package/dist/src/components/Map/Root/CenterPin/styles.d.ts.map +1 -0
- package/dist/src/components/Map/Root/CenterPin/types.d.ts +6 -0
- package/dist/src/components/Map/Root/CenterPin/types.d.ts.map +1 -0
- package/dist/src/components/Map/Root/Markers/Cluster/index.d.ts +4 -3
- package/dist/src/components/Map/Root/Markers/Cluster/index.d.ts.map +1 -1
- package/dist/src/components/Map/Root/Markers/Cluster/styles.d.ts +2 -1
- package/dist/src/components/Map/Root/Markers/Cluster/styles.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/MarkerIcon/index.d.ts +6 -0
- package/dist/src/components/Map/Root/Markers/MarkerIcon/index.d.ts.map +1 -0
- 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 -4
- package/dist/src/components/Map/Root/Markers/styles.d.ts.map +1 -1
- package/dist/src/components/Map/Root/Markers/types.d.ts +18 -9
- package/dist/src/components/Map/Root/Markers/types.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/constants.d.ts +3 -0
- package/dist/src/components/Map/Root/constants.d.ts.map +1 -1
- package/dist/src/components/Map/Root/context.d.ts +2 -0
- package/dist/src/components/Map/Root/context.d.ts.map +1 -1
- package/dist/src/components/Map/Root/index.d.ts +1 -0
- package/dist/src/components/Map/Root/index.d.ts.map +1 -1
- package/dist/src/components/Map/Root/types.d.ts +10 -0
- package/dist/src/components/Map/Root/types.d.ts.map +1 -1
- package/dist/src/components/Map/index.d.ts +2 -2
- package/dist/src/components/Map/index.d.ts.map +1 -1
- package/dist/src/components/Map/index.stories.d.ts.map +1 -1
- package/dist/src/components/Map/storybook-data.d.ts.map +1 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/style.css +24 -1
- package/dist/styles-D2MYaLhP.js +47 -0
- package/package.json +5 -3
- package/dist/index-92HhWupr.js +0 -29
- package/dist/index-BF2kb4Y-.js +0 -42
- package/dist/index-C5-_i-6M.js +0 -64
- package/dist/index-CXjxZmYt.js +0 -144
- package/dist/index-CY0to_1B.js +0 -676
- package/dist/index-ChwN5abO.js +0 -29
- package/dist/index-CrIFr9oc.js +0 -47
- package/dist/index-D5-2anzJ.js +0 -29
- package/dist/index-J1MKzGEM.js +0 -31
package/dist/index-CrIFr9oc.js
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { jsxs as l, jsx as s } from "react/jsx-runtime";
|
|
2
|
-
import { useEffect as c } from "react";
|
|
3
|
-
import { M as f, N as d, u as b } from "./scale-control-CyJd4u6j.js";
|
|
4
|
-
import { u as n, d as a, a as x } from "./index-CY0to_1B.js";
|
|
5
|
-
const M = () => {
|
|
6
|
-
const { current: e } = b(), { setBounds: o } = n();
|
|
7
|
-
return c(() => {
|
|
8
|
-
if (!e)
|
|
9
|
-
return;
|
|
10
|
-
const t = e.getBounds();
|
|
11
|
-
t && o(t.toArray().flat());
|
|
12
|
-
}, [e]), null;
|
|
13
|
-
};
|
|
14
|
-
function w({ children: e }) {
|
|
15
|
-
const {
|
|
16
|
-
mapProvider: o,
|
|
17
|
-
center: t,
|
|
18
|
-
zoom: i = a.zoom,
|
|
19
|
-
pitch: p = a.pitch,
|
|
20
|
-
bearing: u = a.bearing,
|
|
21
|
-
cooperativeGestures: m = a.cooperativeGestures,
|
|
22
|
-
zoomPosition: r
|
|
23
|
-
} = n();
|
|
24
|
-
return o.name !== "mapbox" ? null : /* @__PURE__ */ l(
|
|
25
|
-
f,
|
|
26
|
-
{
|
|
27
|
-
mapboxAccessToken: o.apiKey,
|
|
28
|
-
initialViewState: {
|
|
29
|
-
...t,
|
|
30
|
-
zoom: i,
|
|
31
|
-
pitch: p,
|
|
32
|
-
bearing: u
|
|
33
|
-
},
|
|
34
|
-
cooperativeGestures: m,
|
|
35
|
-
mapStyle: `mapbox://styles/${o.theme || x.mapbox}`,
|
|
36
|
-
interactiveLayerIds: ["road-label", "waterway-label"],
|
|
37
|
-
children: [
|
|
38
|
-
/* @__PURE__ */ s(M, {}),
|
|
39
|
-
r && /* @__PURE__ */ s(d, { position: r }),
|
|
40
|
-
e
|
|
41
|
-
]
|
|
42
|
-
}
|
|
43
|
-
);
|
|
44
|
-
}
|
|
45
|
-
export {
|
|
46
|
-
w as default
|
|
47
|
-
};
|
package/dist/index-D5-2anzJ.js
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { jsx as r, jsxs as d, Fragment as c } from "react/jsx-runtime";
|
|
2
|
-
import { C as h, M as f } from "./index-CXjxZmYt.js";
|
|
3
|
-
import { a as g } from "./scale-control-CyJd4u6j.js";
|
|
4
|
-
import "react";
|
|
5
|
-
import { c as l, i as x, b as t } from "./index-CY0to_1B.js";
|
|
6
|
-
function k({ clusters: o, onClick: e, children: p }) {
|
|
7
|
-
return o == null ? void 0 : o.map((a, m) => {
|
|
8
|
-
const i = a.geometry.coordinates[0], n = a.geometry.coordinates[1];
|
|
9
|
-
return /* @__PURE__ */ r(
|
|
10
|
-
g,
|
|
11
|
-
{
|
|
12
|
-
anchor: "bottom",
|
|
13
|
-
longitude: i,
|
|
14
|
-
latitude: n,
|
|
15
|
-
onClick: (s) => {
|
|
16
|
-
s.originalEvent.stopPropagation(), e == null || e(a);
|
|
17
|
-
},
|
|
18
|
-
children: /* @__PURE__ */ r("div", { className: l, "data-is-cluster": !!a.properties.cluster, children: a.properties.cluster ? /* @__PURE__ */ r(h, { cluster: a }) : /* @__PURE__ */ d(c, { children: [
|
|
19
|
-
/* @__PURE__ */ r("div", { className: x, children: a.properties.icon ? /* @__PURE__ */ r(a.properties.icon, { className: t }) : /* @__PURE__ */ r(f, { className: t }) }),
|
|
20
|
-
p
|
|
21
|
-
] }) })
|
|
22
|
-
},
|
|
23
|
-
`map-marker-${i}-${n}-${m}`
|
|
24
|
-
);
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
export {
|
|
28
|
-
k as default
|
|
29
|
-
};
|
package/dist/index-J1MKzGEM.js
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { P as a } from "./logo-control-NE-LlsRy.js";
|
|
3
|
-
import "react";
|
|
4
|
-
import { c as i } from "./styles-uPzJnzVS.js";
|
|
5
|
-
function c({
|
|
6
|
-
latitude: p,
|
|
7
|
-
longitude: e,
|
|
8
|
-
anchor: o,
|
|
9
|
-
offset: t = [0, -35],
|
|
10
|
-
onClose: f,
|
|
11
|
-
children: n
|
|
12
|
-
}) {
|
|
13
|
-
return typeof p > "u" || typeof e > "u" ? null : /* @__PURE__ */ r(
|
|
14
|
-
a,
|
|
15
|
-
{
|
|
16
|
-
className: "maplibre-popup",
|
|
17
|
-
focusAfterOpen: !0,
|
|
18
|
-
latitude: p,
|
|
19
|
-
longitude: e,
|
|
20
|
-
anchor: o,
|
|
21
|
-
offset: t,
|
|
22
|
-
onClose: f,
|
|
23
|
-
closeButton: !1,
|
|
24
|
-
children: /* @__PURE__ */ r("div", { className: i, children: n })
|
|
25
|
-
},
|
|
26
|
-
"maplibre-popup"
|
|
27
|
-
);
|
|
28
|
-
}
|
|
29
|
-
export {
|
|
30
|
-
c as default
|
|
31
|
-
};
|