@local-logic/maps 0.0.6 → 0.0.8
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-92HhWupr.js +29 -0
- package/dist/{index-Bd-X-1Gd.js → index-BF2kb4Y-.js} +13 -13
- package/dist/{index-BAAE2pMq.js → index-C5-_i-6M.js} +21 -21
- package/dist/{index-CXLLvdx4.js → index-CY0to_1B.js} +253 -247
- package/dist/{index-BHjgd5HB.js → index-ChwN5abO.js} +1 -1
- package/dist/index-CrIFr9oc.js +47 -0
- package/dist/{index-BbrOUWDy.js → index-D5-2anzJ.js} +1 -1
- package/dist/index.es.js +1 -1
- package/dist/index.umd.js +12 -12
- 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/index.d.ts.map +1 -1
- package/dist/src/components/Map/Root/Layers/Google/index.d.ts +2 -2
- package/dist/src/components/Map/Root/Layers/Google/index.d.ts.map +1 -1
- package/dist/src/components/Map/Root/Layers/Mapbox/index.d.ts +2 -2
- package/dist/src/components/Map/Root/Layers/Mapbox/index.d.ts.map +1 -1
- package/dist/src/components/Map/Root/Layers/Maptiler/index.d.ts +2 -2
- package/dist/src/components/Map/Root/Layers/Maptiler/index.d.ts.map +1 -1
- package/dist/src/components/Map/Root/Layers/index.d.ts +2 -2
- package/dist/src/components/Map/Root/Layers/index.d.ts.map +1 -1
- package/dist/src/components/Map/Root/Layers/types.d.ts +1 -1
- package/dist/src/components/Map/Root/Layers/types.d.ts.map +1 -1
- package/dist/src/components/Map/Root/constants.d.ts +5 -0
- package/dist/src/components/Map/Root/constants.d.ts.map +1 -1
- package/dist/src/components/Map/Root/index.d.ts +0 -3
- package/dist/src/components/Map/Root/index.d.ts.map +1 -1
- package/dist/src/components/Map/Root/types.d.ts +1 -1
- package/dist/src/components/Map/Root/types.d.ts.map +1 -1
- package/dist/src/components/Map/index.d.ts +3 -0
- package/dist/src/components/Map/index.d.ts.map +1 -1
- package/dist/src/components/Map/index.stories.d.ts +1 -1
- package/dist/src/components/Map/index.stories.d.ts.map +1 -1
- package/dist/src/components/Map/storybook-data.d.ts +1 -15
- package/dist/src/components/Map/storybook-data.d.ts.map +1 -1
- package/package.json +2 -2
- package/dist/index-B_LO5X9C.js +0 -46
- package/dist/index-DHw9gU4K.js +0 -29
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as r, jsxs as s, Fragment as d } from "react/jsx-runtime";
|
|
2
2
|
import { C as c, M as l } from "./index-CXjxZmYt.js";
|
|
3
3
|
import { a as f } from "./index.modern-EsUgbhzI.js";
|
|
4
|
-
import { c as g, i as h,
|
|
4
|
+
import { c as g, i as h, b as t } from "./index-CY0to_1B.js";
|
|
5
5
|
function j({ clusters: e, onClick: o, children: m }) {
|
|
6
6
|
return e == null ? void 0 : e.map((a, p) => {
|
|
7
7
|
const i = a.geometry.coordinates[0], n = a.geometry.coordinates[1];
|
|
@@ -0,0 +1,47 @@
|
|
|
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
|
+
};
|
|
@@ -2,7 +2,7 @@ import { jsx as r, jsxs as d, Fragment as c } from "react/jsx-runtime";
|
|
|
2
2
|
import { C as h, M as f } from "./index-CXjxZmYt.js";
|
|
3
3
|
import { a as g } from "./scale-control-CyJd4u6j.js";
|
|
4
4
|
import "react";
|
|
5
|
-
import { c as l, i as x,
|
|
5
|
+
import { c as l, i as x, b as t } from "./index-CY0to_1B.js";
|
|
6
6
|
function k({ clusters: o, onClick: e, children: p }) {
|
|
7
7
|
return o == null ? void 0 : o.map((a, m) => {
|
|
8
8
|
const i = a.geometry.coordinates[0], n = a.geometry.coordinates[1];
|
package/dist/index.es.js
CHANGED