@local-logic/maps 0.0.9 → 0.0.10
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-BCa658u4.js +24 -0
- package/dist/index-BOuko7CL.js +32 -0
- package/dist/index-BYlamtEc.js +96 -0
- package/dist/{index-CPq7k7F4.js → index-BsnsAUt5.js} +1 -1
- package/dist/index-BtwgeEEU.js +53 -0
- package/dist/index-CNxLnZ8O.js +23 -0
- package/dist/index-CR8t37Oz.js +73 -0
- package/dist/index-CRQ5kxRL.js +65 -0
- package/dist/{index-B43MtiHH.js → index-D5uhfwEH.js} +10 -9
- package/dist/index-DNKXUpkv.js +65 -0
- package/dist/index-DgHrPgsK.js +772 -0
- package/dist/index-DnsF5I7I.js +62 -0
- package/dist/index-Do_dW76Q.js +23 -0
- package/dist/index-JQfyhSrg.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/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
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import * as e from "react";
|
|
2
|
+
import { p as l } from "./IconBase.es-rM5tt24D.js";
|
|
3
|
+
const n = /* @__PURE__ */ new Map([
|
|
4
|
+
[
|
|
5
|
+
"bold",
|
|
6
|
+
/* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("path", { d: "M240,204H228V144a12,12,0,0,0,12.49-19.78L142.14,25.85a20,20,0,0,0-28.28,0L15.51,124.2A12,12,0,0,0,28,144v60H16a12,12,0,0,0,0,24H240a12,12,0,0,0,0-24ZM52,121.65l76-76,76,76V204H164V152a12,12,0,0,0-12-12H104a12,12,0,0,0-12,12v52H52ZM140,204H116V164h24Z" }))
|
|
7
|
+
],
|
|
8
|
+
[
|
|
9
|
+
"duotone",
|
|
10
|
+
/* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
11
|
+
"path",
|
|
12
|
+
{
|
|
13
|
+
d: "M216,116.69V216H152V152H104v64H40V116.69l82.34-82.35a8,8,0,0,1,11.32,0Z",
|
|
14
|
+
opacity: "0.2"
|
|
15
|
+
}
|
|
16
|
+
), /* @__PURE__ */ e.createElement("path", { d: "M240,208H224V136l2.34,2.34A8,8,0,0,0,237.66,127L139.31,28.68a16,16,0,0,0-22.62,0L18.34,127a8,8,0,0,0,11.32,11.31L32,136v72H16a8,8,0,0,0,0,16H240a8,8,0,0,0,0-16ZM48,120l80-80,80,80v88H160V152a8,8,0,0,0-8-8H104a8,8,0,0,0-8,8v56H48Zm96,88H112V160h32Z" }))
|
|
17
|
+
],
|
|
18
|
+
[
|
|
19
|
+
"fill",
|
|
20
|
+
/* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("path", { d: "M240,208H224V136l2.34,2.34A8,8,0,0,0,237.66,127L139.31,28.68a16,16,0,0,0-22.62,0L18.34,127a8,8,0,0,0,11.32,11.31L32,136v72H16a8,8,0,0,0,0,16H240a8,8,0,0,0,0-16Zm-88,0H104V160a4,4,0,0,1,4-4h40a4,4,0,0,1,4,4Z" }))
|
|
21
|
+
],
|
|
22
|
+
[
|
|
23
|
+
"light",
|
|
24
|
+
/* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("path", { d: "M240,210H222V131.17l5.76,5.76a6,6,0,0,0,8.48-8.49L137.9,30.09a14,14,0,0,0-19.8,0L19.76,128.44a6,6,0,0,0,8.48,8.49L34,131.17V210H16a6,6,0,0,0,0,12H240a6,6,0,0,0,0-12ZM46,119.17l80.58-80.59a2,2,0,0,1,2.84,0L210,119.17V210H158V152a6,6,0,0,0-6-6H104a6,6,0,0,0-6,6v58H46ZM146,210H110V158h36Z" }))
|
|
25
|
+
],
|
|
26
|
+
[
|
|
27
|
+
"regular",
|
|
28
|
+
/* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("path", { d: "M240,208H224V136l2.34,2.34A8,8,0,0,0,237.66,127L139.31,28.68a16,16,0,0,0-22.62,0L18.34,127a8,8,0,0,0,11.32,11.31L32,136v72H16a8,8,0,0,0,0,16H240a8,8,0,0,0,0-16ZM48,120l80-80,80,80v88H160V152a8,8,0,0,0-8-8H104a8,8,0,0,0-8,8v56H48Zm96,88H112V160h32Z" }))
|
|
29
|
+
],
|
|
30
|
+
[
|
|
31
|
+
"thin",
|
|
32
|
+
/* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("path", { d: "M240,212H220V126.34l9.17,9.17a4,4,0,1,0,5.66-5.66L136.49,31.51a12,12,0,0,0-17,0L21.17,129.85a4,4,0,1,0,5.66,5.66L36,126.34V212H16a4,4,0,0,0,0,8H240a4,4,0,0,0,0-8ZM44,118.34l81.17-81.17a4,4,0,0,1,5.66,0L212,118.34V212H156V152a4,4,0,0,0-4-4H104a4,4,0,0,0-4,4v60H44ZM148,212H108V156h40Z" }))
|
|
33
|
+
]
|
|
34
|
+
]), H = e.forwardRef((a, t) => /* @__PURE__ */ e.createElement(l, { ref: t, ...a, weights: n }));
|
|
35
|
+
H.displayName = "HouseLineIcon";
|
|
36
|
+
const m = (a) => /* @__PURE__ */ e.createElement("svg", { width: 34, height: 41, viewBox: "0 0 34 41", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...a }, /* @__PURE__ */ e.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M17 0C26.3888 0 34 7.61116 34 17C34 24.1987 29.5256 30.3524 23.2061 32.8316L17.9683 39.991C17.8591 40.1409 17.7141 40.2632 17.5456 40.3476C17.377 40.4321 17.1899 40.4762 17 40.4762C16.8101 40.4762 16.623 40.4321 16.4544 40.3476C16.2859 40.2632 16.1409 40.1409 16.0317 39.991L10.7939 32.8316C4.47445 30.3524 0 24.1987 0 17C0 7.61116 7.61116 0 17 0Z", fill: "#008491" })), c = `
|
|
37
|
+
relative flex items-center justify-center z-10
|
|
38
|
+
`, o = `
|
|
39
|
+
w-5 h-5 fill-base-white
|
|
40
|
+
absolute top-1.5 left-1/2 transform -translate-x-1/2
|
|
41
|
+
`;
|
|
42
|
+
export {
|
|
43
|
+
m as S,
|
|
44
|
+
c,
|
|
45
|
+
o as i,
|
|
46
|
+
H as o
|
|
47
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@local-logic/maps",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.10",
|
|
4
4
|
"description": "This is a maps implementation allowing for the display of Local Logic data on a map.",
|
|
5
5
|
"author": "Local Logic",
|
|
6
6
|
"license": "ISC",
|
|
@@ -37,7 +37,8 @@
|
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
39
|
"react": ">=18",
|
|
40
|
-
"react-dom": ">=18"
|
|
40
|
+
"react-dom": ">=18",
|
|
41
|
+
"tailwindcss": ">=3"
|
|
41
42
|
},
|
|
42
43
|
"devDependencies": {
|
|
43
44
|
"@eslint/eslintrc": "^3.3.0",
|
|
@@ -68,6 +69,7 @@
|
|
|
68
69
|
"react-dom": "^19.0.0",
|
|
69
70
|
"rollup-plugin-visualizer": "^5.14.0",
|
|
70
71
|
"storybook": "^8.6.7",
|
|
72
|
+
"tailwindcss": "^3.4.14",
|
|
71
73
|
"tsconfig": "*",
|
|
72
74
|
"typescript": "^5.8.2",
|
|
73
75
|
"vite": "^6.2.2",
|
|
@@ -77,7 +79,7 @@
|
|
|
77
79
|
},
|
|
78
80
|
"dependencies": {
|
|
79
81
|
"@local-logic/design-system": "*",
|
|
80
|
-
"@phosphor-icons/react": "^2.1.
|
|
82
|
+
"@phosphor-icons/react": "^2.1.10",
|
|
81
83
|
"@turf/turf": "^7.2.0",
|
|
82
84
|
"@vis.gl/react-google-maps": "^1.5.2",
|
|
83
85
|
"mapbox-gl": "^3.10.0",
|
package/dist/index-92HhWupr.js
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { jsx as a, jsxs as d, Fragment as c } from "react/jsx-runtime";
|
|
2
|
-
import { C as h, M as l } from "./index-CXjxZmYt.js";
|
|
3
|
-
import { a as f } from "./logo-control-NE-LlsRy.js";
|
|
4
|
-
import "react";
|
|
5
|
-
import { c as g, i as M, 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((r, m) => {
|
|
8
|
-
const i = r.geometry.coordinates[0], n = r.geometry.coordinates[1];
|
|
9
|
-
return /* @__PURE__ */ a(
|
|
10
|
-
f,
|
|
11
|
-
{
|
|
12
|
-
anchor: "bottom",
|
|
13
|
-
longitude: i,
|
|
14
|
-
latitude: n,
|
|
15
|
-
onClick: (s) => {
|
|
16
|
-
s.originalEvent.stopPropagation(), e == null || e(r);
|
|
17
|
-
},
|
|
18
|
-
children: /* @__PURE__ */ a("div", { className: g, "data-is-cluster": !!r.properties.cluster, children: r.properties.cluster ? /* @__PURE__ */ a(h, { cluster: r }) : /* @__PURE__ */ d(c, { children: [
|
|
19
|
-
/* @__PURE__ */ a("div", { className: M, children: r.properties.icon ? /* @__PURE__ */ a(r.properties.icon, { className: t }) : /* @__PURE__ */ a(l, { 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-BF2kb4Y-.js
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { jsxs as l, jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { useEffect as c } from "react";
|
|
3
|
-
import { M as f, N as d, u as M } from "./logo-control-NE-LlsRy.js";
|
|
4
|
-
import { u as s, d as o, a as h } from "./index-CY0to_1B.js";
|
|
5
|
-
const y = () => {
|
|
6
|
-
const { current: t } = M(), { setBounds: e } = s();
|
|
7
|
-
return c(() => {
|
|
8
|
-
t && e(t.getBounds().toArray().flat());
|
|
9
|
-
}, [t]), null;
|
|
10
|
-
};
|
|
11
|
-
function z({ children: t }) {
|
|
12
|
-
const {
|
|
13
|
-
mapProvider: e,
|
|
14
|
-
center: i,
|
|
15
|
-
zoom: n = o.zoom,
|
|
16
|
-
pitch: p = o.pitch,
|
|
17
|
-
bearing: m = o.bearing,
|
|
18
|
-
cooperativeGestures: u = o.cooperativeGestures,
|
|
19
|
-
zoomPosition: a
|
|
20
|
-
} = s();
|
|
21
|
-
return e.name !== "maptiler" ? null : /* @__PURE__ */ l(
|
|
22
|
-
f,
|
|
23
|
-
{
|
|
24
|
-
initialViewState: {
|
|
25
|
-
...i,
|
|
26
|
-
zoom: n,
|
|
27
|
-
pitch: p,
|
|
28
|
-
bearing: m
|
|
29
|
-
},
|
|
30
|
-
cooperativeGestures: u,
|
|
31
|
-
mapStyle: `https://api.maptiler.com/maps/${e.theme || h.maptiler}/style.json?key=${e.apiKey}`,
|
|
32
|
-
children: [
|
|
33
|
-
/* @__PURE__ */ r(y, {}),
|
|
34
|
-
a && /* @__PURE__ */ r(d, { position: a }),
|
|
35
|
-
t
|
|
36
|
-
]
|
|
37
|
-
}
|
|
38
|
-
);
|
|
39
|
-
}
|
|
40
|
-
export {
|
|
41
|
-
z as default
|
|
42
|
-
};
|
package/dist/index-C5-_i-6M.js
DELETED
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { jsxs as g, jsx as i } from "react/jsx-runtime";
|
|
2
|
-
import { useState as T, useEffect as M } from "react";
|
|
3
|
-
import { A as h, M as C, C as s, u as O } from "./index.modern-EsUgbhzI.js";
|
|
4
|
-
import { u, d as n, a as P } from "./index-CY0to_1B.js";
|
|
5
|
-
const b = {
|
|
6
|
-
"top-left": s.LEFT_TOP,
|
|
7
|
-
"top-right": s.RIGHT_TOP,
|
|
8
|
-
"bottom-left": s.LEFT_BOTTOM,
|
|
9
|
-
"bottom-right": s.RIGHT_BOTTOM
|
|
10
|
-
}, I = ({ isMapLoaded: a }) => {
|
|
11
|
-
const e = O(), { setBounds: r } = u();
|
|
12
|
-
return M(() => {
|
|
13
|
-
var t;
|
|
14
|
-
if (!a || !e)
|
|
15
|
-
return;
|
|
16
|
-
const o = (t = e.getBounds()) == null ? void 0 : t.toJSON();
|
|
17
|
-
o && r([o.west, o.south, o.east, o.north]);
|
|
18
|
-
}, [a, e]), null;
|
|
19
|
-
};
|
|
20
|
-
function L({ children: a }) {
|
|
21
|
-
const [e, r] = T(!1), {
|
|
22
|
-
mapProvider: o,
|
|
23
|
-
center: t,
|
|
24
|
-
zoom: p = n.zoom,
|
|
25
|
-
pitch: d = n.pitch,
|
|
26
|
-
bearing: f = n.bearing,
|
|
27
|
-
cooperativeGestures: m = n.cooperativeGestures,
|
|
28
|
-
zoomPosition: l
|
|
29
|
-
} = u();
|
|
30
|
-
if (o.name !== "google")
|
|
31
|
-
return null;
|
|
32
|
-
const c = () => {
|
|
33
|
-
r(!0);
|
|
34
|
-
};
|
|
35
|
-
return /* @__PURE__ */ g(h, { apiKey: o.apiKey, children: [
|
|
36
|
-
/* @__PURE__ */ i(I, { isMapLoaded: e }),
|
|
37
|
-
/* @__PURE__ */ i(
|
|
38
|
-
C,
|
|
39
|
-
{
|
|
40
|
-
mapId: o.theme || P.google,
|
|
41
|
-
defaultCenter: {
|
|
42
|
-
lat: t.latitude,
|
|
43
|
-
lng: t.longitude
|
|
44
|
-
},
|
|
45
|
-
defaultZoom: p,
|
|
46
|
-
defaultTilt: d,
|
|
47
|
-
defaultHeading: f,
|
|
48
|
-
gestureHandling: m ? "cooperative" : "greedy",
|
|
49
|
-
streetViewControl: !1,
|
|
50
|
-
fullscreenControl: !1,
|
|
51
|
-
clickableIcons: !1,
|
|
52
|
-
mapTypeControl: !1,
|
|
53
|
-
zoomControlOptions: {
|
|
54
|
-
position: l && b[l]
|
|
55
|
-
},
|
|
56
|
-
onTilesLoaded: c,
|
|
57
|
-
children: a
|
|
58
|
-
}
|
|
59
|
-
)
|
|
60
|
-
] });
|
|
61
|
-
}
|
|
62
|
-
export {
|
|
63
|
-
L as default
|
|
64
|
-
};
|
package/dist/index-CXjxZmYt.js
DELETED
|
@@ -1,144 +0,0 @@
|
|
|
1
|
-
import a, { createContext as M, forwardRef as g, useContext as P, useMemo as $ } from "react";
|
|
2
|
-
import { jsx as z } from "react/jsx-runtime";
|
|
3
|
-
const F = /* @__PURE__ */ new Map([
|
|
4
|
-
[
|
|
5
|
-
"bold",
|
|
6
|
-
/* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("path", { d: "M128,60a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,60Zm0,64a20,20,0,1,1,20-20A20,20,0,0,1,128,124Zm0-112a92.1,92.1,0,0,0-92,92c0,77.36,81.64,135.4,85.12,137.83a12,12,0,0,0,13.76,0,259,259,0,0,0,42.18-39C205.15,170.57,220,136.37,220,104A92.1,92.1,0,0,0,128,12Zm31.3,174.71A249.35,249.35,0,0,1,128,216.89a249.35,249.35,0,0,1-31.3-30.18C80,167.37,60,137.31,60,104a68,68,0,0,1,136,0C196,137.31,176,167.37,159.3,186.71Z" }))
|
|
7
|
-
],
|
|
8
|
-
[
|
|
9
|
-
"duotone",
|
|
10
|
-
/* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement(
|
|
11
|
-
"path",
|
|
12
|
-
{
|
|
13
|
-
d: "M128,24a80,80,0,0,0-80,80c0,72,80,128,80,128s80-56,80-128A80,80,0,0,0,128,24Zm0,112a32,32,0,1,1,32-32A32,32,0,0,1,128,136Z",
|
|
14
|
-
opacity: "0.2"
|
|
15
|
-
}
|
|
16
|
-
), /* @__PURE__ */ a.createElement("path", { d: "M128,64a40,40,0,1,0,40,40A40,40,0,0,0,128,64Zm0,64a24,24,0,1,1,24-24A24,24,0,0,1,128,128Zm0-112a88.1,88.1,0,0,0-88,88c0,31.4,14.51,64.68,42,96.25a254.19,254.19,0,0,0,41.45,38.3,8,8,0,0,0,9.18,0A254.19,254.19,0,0,0,174,200.25c27.45-31.57,42-64.85,42-96.25A88.1,88.1,0,0,0,128,16Zm0,206c-16.53-13-72-60.75-72-118a72,72,0,0,1,144,0C200,161.23,144.53,209,128,222Z" }))
|
|
17
|
-
],
|
|
18
|
-
[
|
|
19
|
-
"fill",
|
|
20
|
-
/* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("path", { d: "M128,16a88.1,88.1,0,0,0-88,88c0,75.3,80,132.17,83.41,134.55a8,8,0,0,0,9.18,0C136,236.17,216,179.3,216,104A88.1,88.1,0,0,0,128,16Zm0,56a32,32,0,1,1-32,32A32,32,0,0,1,128,72Z" }))
|
|
21
|
-
],
|
|
22
|
-
[
|
|
23
|
-
"light",
|
|
24
|
-
/* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("path", { d: "M128,66a38,38,0,1,0,38,38A38,38,0,0,0,128,66Zm0,64a26,26,0,1,1,26-26A26,26,0,0,1,128,130Zm0-112a86.1,86.1,0,0,0-86,86c0,30.91,14.34,63.74,41.47,94.94a252.32,252.32,0,0,0,41.09,38,6,6,0,0,0,6.88,0,252.32,252.32,0,0,0,41.09-38c27.13-31.2,41.47-64,41.47-94.94A86.1,86.1,0,0,0,128,18Zm0,206.51C113,212.93,54,163.62,54,104a74,74,0,0,1,148,0C202,163.62,143,212.93,128,224.51Z" }))
|
|
25
|
-
],
|
|
26
|
-
[
|
|
27
|
-
"regular",
|
|
28
|
-
/* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("path", { d: "M128,64a40,40,0,1,0,40,40A40,40,0,0,0,128,64Zm0,64a24,24,0,1,1,24-24A24,24,0,0,1,128,128Zm0-112a88.1,88.1,0,0,0-88,88c0,31.4,14.51,64.68,42,96.25a254.19,254.19,0,0,0,41.45,38.3,8,8,0,0,0,9.18,0A254.19,254.19,0,0,0,174,200.25c27.45-31.57,42-64.85,42-96.25A88.1,88.1,0,0,0,128,16Zm0,206c-16.53-13-72-60.75-72-118a72,72,0,0,1,144,0C200,161.23,144.53,209,128,222Z" }))
|
|
29
|
-
],
|
|
30
|
-
[
|
|
31
|
-
"thin",
|
|
32
|
-
/* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("path", { d: "M128,68a36,36,0,1,0,36,36A36,36,0,0,0,128,68Zm0,64a28,28,0,1,1,28-28A28,28,0,0,1,128,132Zm0-112a84.09,84.09,0,0,0-84,84c0,30.42,14.17,62.79,41,93.62a250,250,0,0,0,40.73,37.66,4,4,0,0,0,4.58,0A250,250,0,0,0,171,197.62c26.81-30.83,41-63.2,41-93.62A84.09,84.09,0,0,0,128,20Zm37.1,172.23A254.62,254.62,0,0,1,128,227a254.62,254.62,0,0,1-37.1-34.81C73.15,171.8,52,139.9,52,104a76,76,0,0,1,152,0C204,139.9,182.85,171.8,165.1,192.23Z" }))
|
|
33
|
-
]
|
|
34
|
-
]), _ = M({
|
|
35
|
-
color: "currentColor",
|
|
36
|
-
size: "1em",
|
|
37
|
-
weight: "regular",
|
|
38
|
-
mirrored: !1
|
|
39
|
-
});
|
|
40
|
-
var I = Object.defineProperty, o = Object.getOwnPropertySymbols, b = Object.prototype.hasOwnProperty, v = Object.prototype.propertyIsEnumerable, p = (r, e, t) => e in r ? I(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, u = (r, e) => {
|
|
41
|
-
for (var t in e || (e = {}))
|
|
42
|
-
b.call(e, t) && p(r, t, e[t]);
|
|
43
|
-
if (o)
|
|
44
|
-
for (var t of o(e))
|
|
45
|
-
v.call(e, t) && p(r, t, e[t]);
|
|
46
|
-
return r;
|
|
47
|
-
}, d = (r, e) => {
|
|
48
|
-
var t = {};
|
|
49
|
-
for (var n in r)
|
|
50
|
-
b.call(r, n) && e.indexOf(n) < 0 && (t[n] = r[n]);
|
|
51
|
-
if (r != null && o)
|
|
52
|
-
for (var n of o(r))
|
|
53
|
-
e.indexOf(n) < 0 && v.call(r, n) && (t[n] = r[n]);
|
|
54
|
-
return t;
|
|
55
|
-
};
|
|
56
|
-
const w = g((r, e) => {
|
|
57
|
-
const t = r, {
|
|
58
|
-
alt: n,
|
|
59
|
-
color: i,
|
|
60
|
-
size: l,
|
|
61
|
-
weight: c,
|
|
62
|
-
mirrored: y,
|
|
63
|
-
children: A,
|
|
64
|
-
weights: Z
|
|
65
|
-
} = t, E = d(t, [
|
|
66
|
-
"alt",
|
|
67
|
-
"color",
|
|
68
|
-
"size",
|
|
69
|
-
"weight",
|
|
70
|
-
"mirrored",
|
|
71
|
-
"children",
|
|
72
|
-
"weights"
|
|
73
|
-
]), m = P(_), {
|
|
74
|
-
color: C = "currentColor",
|
|
75
|
-
size: s,
|
|
76
|
-
weight: O = "regular",
|
|
77
|
-
mirrored: x = !1
|
|
78
|
-
} = m, j = d(m, [
|
|
79
|
-
"color",
|
|
80
|
-
"size",
|
|
81
|
-
"weight",
|
|
82
|
-
"mirrored"
|
|
83
|
-
]);
|
|
84
|
-
return /* @__PURE__ */ a.createElement(
|
|
85
|
-
"svg",
|
|
86
|
-
u(u({
|
|
87
|
-
ref: e,
|
|
88
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
89
|
-
width: l ?? s,
|
|
90
|
-
height: l ?? s,
|
|
91
|
-
fill: i ?? C,
|
|
92
|
-
viewBox: "0 0 256 256",
|
|
93
|
-
transform: y || x ? "scale(-1, 1)" : void 0
|
|
94
|
-
}, j), E),
|
|
95
|
-
!!n && /* @__PURE__ */ a.createElement("title", null, n),
|
|
96
|
-
A,
|
|
97
|
-
Z.get(c ?? O)
|
|
98
|
-
);
|
|
99
|
-
});
|
|
100
|
-
w.displayName = "IconBase";
|
|
101
|
-
const B = w;
|
|
102
|
-
var N = Object.defineProperty, S = Object.defineProperties, R = Object.getOwnPropertyDescriptors, f = Object.getOwnPropertySymbols, D = Object.prototype.hasOwnProperty, k = Object.prototype.propertyIsEnumerable, h = (r, e, t) => e in r ? N(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, q = (r, e) => {
|
|
103
|
-
for (var t in e || (e = {}))
|
|
104
|
-
D.call(e, t) && h(r, t, e[t]);
|
|
105
|
-
if (f)
|
|
106
|
-
for (var t of f(e))
|
|
107
|
-
k.call(e, t) && h(r, t, e[t]);
|
|
108
|
-
return r;
|
|
109
|
-
}, G = (r, e) => S(r, R(e));
|
|
110
|
-
const H = g((r, e) => /* @__PURE__ */ a.createElement(B, G(q({ ref: e }, r), { weights: F })));
|
|
111
|
-
H.displayName = "MapPin";
|
|
112
|
-
const J = `
|
|
113
|
-
rounded-full leading-none font-sans border-2
|
|
114
|
-
border-solid shadow-sm
|
|
115
|
-
flex justify-center items-center
|
|
116
|
-
bg-primary-100 text-base-white border-base-white
|
|
117
|
-
transition-all
|
|
118
|
-
|
|
119
|
-
hover:bg-base-white
|
|
120
|
-
hover:text-primary-100
|
|
121
|
-
hover:border-primary-100
|
|
122
|
-
`;
|
|
123
|
-
function Q({ cluster: r }) {
|
|
124
|
-
const e = $(
|
|
125
|
-
() => 20 + r.properties.point_count * 4,
|
|
126
|
-
[r.properties.point_count]
|
|
127
|
-
);
|
|
128
|
-
return /* @__PURE__ */ z(
|
|
129
|
-
"div",
|
|
130
|
-
{
|
|
131
|
-
className: J,
|
|
132
|
-
style: {
|
|
133
|
-
width: `${e}px`,
|
|
134
|
-
height: `${e}px`,
|
|
135
|
-
fontSize: `${e / 2.5}px`
|
|
136
|
-
},
|
|
137
|
-
children: r.properties.point_count
|
|
138
|
-
}
|
|
139
|
-
);
|
|
140
|
-
}
|
|
141
|
-
export {
|
|
142
|
-
Q as C,
|
|
143
|
-
H as M
|
|
144
|
-
};
|