@local-logic/maps 0.0.20 → 0.0.21
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-29Y5fJR0.js +24 -0
- package/dist/{index-h41HdBg1.js → index-6JzOJU8O.js} +1 -1
- package/dist/{index-DiCaFCSI.js → index-AcZakyxd.js} +4 -4
- package/dist/{index-BQ20UVWH.js → index-CqUTGwL0.js} +1 -1
- package/dist/{index-DD3i8r0F.js → index-Cwn0dgP_.js} +2 -2
- package/dist/{index-B8fs8nrA.js → index-D--WdzK4.js} +1 -1
- package/dist/{index-LU2s85nk.js → index-D1Phs0fA.js} +2 -2
- package/dist/{index-D0-MIbts.js → index-D1vI6Ww_.js} +1 -1
- package/dist/{index-C-sxmk7l.js → index-DKFcZs0A.js} +1 -1
- package/dist/{index-CSNuLBAd.js → index-DZTFM839.js} +1 -1
- package/dist/index-DdYanSGw.js +23 -0
- package/dist/index-Dxh7aMoG.js +23 -0
- package/dist/{index-oYRVzSxJ.js → index-_8n5sl1B.js} +2 -2
- package/dist/{index-D8HDei0S.js → index-_n1FGHXc.js} +1 -1
- package/dist/index.es.js +1 -1
- package/dist/index.umd.js +174 -174
- package/dist/src/components/Map/Root/CenterPin/Google/index.d.ts +1 -1
- package/dist/src/components/Map/Root/CenterPin/Google/index.d.ts.map +1 -1
- package/dist/src/components/Map/Root/CenterPin/Mapbox/index.d.ts +1 -1
- package/dist/src/components/Map/Root/CenterPin/Mapbox/index.d.ts.map +1 -1
- package/dist/src/components/Map/Root/CenterPin/Maptiler/index.d.ts +1 -1
- package/dist/src/components/Map/Root/CenterPin/Maptiler/index.d.ts.map +1 -1
- package/dist/src/components/Map/Root/CenterPin/types.d.ts +1 -0
- package/dist/src/components/Map/Root/CenterPin/types.d.ts.map +1 -1
- package/dist/styles-B8oT_wcC.js +2772 -0
- package/package.json +2 -1
- package/dist/index-B8yUQ1_f.js +0 -23
- package/dist/index-BG_F5Dkz.js +0 -23
- package/dist/index-C7cTTXxY.js +0 -24
- package/dist/styles-Do-o-qNU.js +0 -48
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { jsxs as t, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { t as a, b as o, S as r, o as s, i as c, c as d } from "./styles-B8oT_wcC.js";
|
|
3
|
+
import { a as l } from "./index.modern-fpUBOYPT.js";
|
|
4
|
+
function m({ marker: n, className: i }) {
|
|
5
|
+
return /* @__PURE__ */ t(
|
|
6
|
+
l,
|
|
7
|
+
{
|
|
8
|
+
position: {
|
|
9
|
+
lat: n.latitude,
|
|
10
|
+
lng: n.longitude
|
|
11
|
+
},
|
|
12
|
+
className: a(d.trim(), i),
|
|
13
|
+
zIndex: 10,
|
|
14
|
+
children: [
|
|
15
|
+
/* @__PURE__ */ e("span", { id: "center-pin-background", className: o, children: /* @__PURE__ */ e(r, {}) }),
|
|
16
|
+
/* @__PURE__ */ e(s, { id: "center-pin-icon", className: c })
|
|
17
|
+
]
|
|
18
|
+
},
|
|
19
|
+
`center-pin-marker-${n.longitude}-${n.latitude}`
|
|
20
|
+
);
|
|
21
|
+
}
|
|
22
|
+
export {
|
|
23
|
+
m as default
|
|
24
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as r, jsxs as o, Fragment as f } from "react/jsx-runtime";
|
|
2
2
|
import * as e from "react";
|
|
3
3
|
import { useMemo as g } from "react";
|
|
4
|
-
import { u as p, M as c } from "./index-
|
|
4
|
+
import { u as p, M as c } from "./index-AcZakyxd.js";
|
|
5
5
|
import { p as Z } from "./IconBase.es-rM5tt24D.js";
|
|
6
6
|
const A = /* @__PURE__ */ new Map([
|
|
7
7
|
[
|
|
@@ -10,7 +10,7 @@ const tt = it.createContext({}), R = () => at(tt), I = {
|
|
|
10
10
|
maptiler: "600d69cb-288d-445e-9839-3dfe4d76b31a",
|
|
11
11
|
mapbox: "locallogic/cmb9nz9kb011501ru8drq8fqf",
|
|
12
12
|
google: "a7ff20eb973126bb"
|
|
13
|
-
}, Y = 13, ut = 22, Ht = 12.5, ht = 30, pt = 60, lt = "w-full h-full relative overflow-hidden", ft = w(() => import("./index-
|
|
13
|
+
}, Y = 13, ut = 22, Ht = 12.5, ht = 30, pt = 60, lt = "w-full h-full relative overflow-hidden", ft = w(() => import("./index-D--WdzK4.js")), dt = w(() => import("./index-DZTFM839.js")), gt = w(() => import("./index-DKFcZs0A.js")), mt = w(() => import("./index-qqbvBkdn.js")), yt = ({ padding: r = 1e-3, children: t }) => {
|
|
14
14
|
const {
|
|
15
15
|
mapProvider: e,
|
|
16
16
|
center: n,
|
|
@@ -48,7 +48,7 @@ const tt = it.createContext({}), R = () => at(tt), I = {
|
|
|
48
48
|
children: /* @__PURE__ */ T(p, { padding: r, children: t })
|
|
49
49
|
}
|
|
50
50
|
);
|
|
51
|
-
}, wt = w(() => import("./index-
|
|
51
|
+
}, wt = w(() => import("./index-Dxh7aMoG.js")), Mt = w(() => import("./index-29Y5fJR0.js")), _t = w(() => import("./index-DdYanSGw.js"));
|
|
52
52
|
function At(r) {
|
|
53
53
|
const { mapProvider: t } = R(), e = P(() => {
|
|
54
54
|
switch (t == null ? void 0 : t.name) {
|
|
@@ -564,7 +564,7 @@ var Lt = function(t) {
|
|
|
564
564
|
supercluster: c.current
|
|
565
565
|
};
|
|
566
566
|
};
|
|
567
|
-
const It = w(() => import("./index-
|
|
567
|
+
const It = w(() => import("./index-Cwn0dgP_.js")), vt = w(() => import("./index-D1Phs0fA.js")), Rt = w(() => import("./index-_8n5sl1B.js"));
|
|
568
568
|
function Zt({ markers: r, onClick: t, ...e }) {
|
|
569
569
|
const { mapProvider: n, activeMarker: o, center: i, bounds: a, zoom: c, setMarkerPoints: s } = R();
|
|
570
570
|
ct(() => {
|
|
@@ -629,7 +629,7 @@ function Zt({ markers: r, onClick: t, ...e }) {
|
|
|
629
629
|
}
|
|
630
630
|
) : null;
|
|
631
631
|
}
|
|
632
|
-
const Ct = w(() => import("./index-
|
|
632
|
+
const Ct = w(() => import("./index-CqUTGwL0.js")), Ut = w(() => import("./index-D1vI6Ww_.js")), Bt = w(() => import("./index-_n1FGHXc.js"));
|
|
633
633
|
function Ft({ children: r, anchor: t = "bottom", ...e }) {
|
|
634
634
|
const { mapProvider: n } = R(), o = P(() => {
|
|
635
635
|
switch (n == null ? void 0 : n.name) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as p } from "react/jsx-runtime";
|
|
2
2
|
import { useEffect as a } from "react";
|
|
3
3
|
import { P as i } from "./logo-control-C5ZdRec5.js";
|
|
4
|
-
import { u as c } from "./index-
|
|
4
|
+
import { u as c } from "./index-AcZakyxd.js";
|
|
5
5
|
import { c as n } from "./styles-ChFj97uV.js";
|
|
6
6
|
function y({
|
|
7
7
|
latitude: e,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsxs as M, jsx as p } from "react/jsx-runtime";
|
|
2
2
|
import { a as u } from "./logo-control-C5ZdRec5.js";
|
|
3
3
|
import "react";
|
|
4
|
-
import { u as _, M as b } from "./index-
|
|
5
|
-
import { C as h, c as k, M as I } from "./index-
|
|
4
|
+
import { u as _, M as b } from "./index-AcZakyxd.js";
|
|
5
|
+
import { C as h, c as k, M as I } from "./index-6JzOJU8O.js";
|
|
6
6
|
function N({
|
|
7
7
|
clusters: t,
|
|
8
8
|
colors: e,
|
|
@@ -2,7 +2,7 @@ import { jsxs as x, jsx as d } from "react/jsx-runtime";
|
|
|
2
2
|
import { useState as y, useEffect as c } from "react";
|
|
3
3
|
import { M as g, N as h, u as b } from "./logo-control-C5ZdRec5.js";
|
|
4
4
|
import { b as B } from "./index-CFomI3Il.js";
|
|
5
|
-
import { u as M, d as u, a as Z, m as z } from "./index-
|
|
5
|
+
import { u as M, d as u, a as Z, m as z } from "./index-AcZakyxd.js";
|
|
6
6
|
const L = ({ padding: i }) => {
|
|
7
7
|
const { current: o } = b(), { markerPoints: n, setBounds: m, setZoom: f } = M(), [r, p] = y(void 0), s = () => {
|
|
8
8
|
var e;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as u, jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import { u as M, a as k } from "./index.modern-fpUBOYPT.js";
|
|
3
|
-
import { u as I, M as O } from "./index-
|
|
4
|
-
import { C as _, c as b, M as h } from "./index-
|
|
3
|
+
import { u as I, M as O } from "./index-AcZakyxd.js";
|
|
4
|
+
import { C as _, c as b, M as h } from "./index-6JzOJU8O.js";
|
|
5
5
|
function C({
|
|
6
6
|
clusters: a,
|
|
7
7
|
colors: i,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as n } from "react/jsx-runtime";
|
|
2
2
|
import { useEffect as a, useMemo as f } from "react";
|
|
3
3
|
import { u as o, I as s } from "./index.modern-fpUBOYPT.js";
|
|
4
|
-
import { u as y } from "./index-
|
|
4
|
+
import { u as y } from "./index-AcZakyxd.js";
|
|
5
5
|
import { c as x } from "./styles-ChFj97uV.js";
|
|
6
6
|
function I({
|
|
7
7
|
latitude: u,
|
|
@@ -2,7 +2,7 @@ import { jsxs as M, jsx as d } from "react/jsx-runtime";
|
|
|
2
2
|
import { useState as v, useEffect as l } from "react";
|
|
3
3
|
import { M as y, N as g, u as h } from "./scale-control-Cflgzbvb.js";
|
|
4
4
|
import { b as B } from "./index-CFomI3Il.js";
|
|
5
|
-
import { u as b, d as u, a as Z, m as z } from "./index-
|
|
5
|
+
import { u as b, d as u, a as Z, m as z } from "./index-AcZakyxd.js";
|
|
6
6
|
const L = ({ padding: i }) => {
|
|
7
7
|
const { current: o } = h(), { markerPoints: n, setBounds: m, setZoom: f } = b(), [r, p] = v(void 0), a = () => {
|
|
8
8
|
var t;
|
|
@@ -2,7 +2,7 @@ import { jsxs as v, jsx as T } from "react/jsx-runtime";
|
|
|
2
2
|
import { useState as h, useEffect as M } from "react";
|
|
3
3
|
import { A as y, M as L, C as f, u as P } from "./index.modern-fpUBOYPT.js";
|
|
4
4
|
import { b as x } from "./index-CFomI3Il.js";
|
|
5
|
-
import { u as b, d as p, a as B, m as O } from "./index-
|
|
5
|
+
import { u as b, d as p, a as B, m as O } from "./index-AcZakyxd.js";
|
|
6
6
|
const Z = {
|
|
7
7
|
"top-left": f.LEFT_TOP,
|
|
8
8
|
"top-right": f.RIGHT_TOP,
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { jsxs as e, jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { t as a, b as o, S as r, o as s, i as c, c as d } from "./styles-B8oT_wcC.js";
|
|
3
|
+
import { a as l } from "./scale-control-Cflgzbvb.js";
|
|
4
|
+
import "react";
|
|
5
|
+
function b({ marker: t, className: n }) {
|
|
6
|
+
return /* @__PURE__ */ e(
|
|
7
|
+
l,
|
|
8
|
+
{
|
|
9
|
+
anchor: "bottom",
|
|
10
|
+
longitude: t.longitude,
|
|
11
|
+
latitude: t.latitude,
|
|
12
|
+
className: a(d.trim(), n),
|
|
13
|
+
children: [
|
|
14
|
+
/* @__PURE__ */ i("span", { id: "center-pin-background", className: o, children: /* @__PURE__ */ i(r, {}) }),
|
|
15
|
+
/* @__PURE__ */ i(s, { id: "center-pin-icon", className: c })
|
|
16
|
+
]
|
|
17
|
+
},
|
|
18
|
+
`center-pin-marker-${t.longitude}-${t.latitude}`
|
|
19
|
+
);
|
|
20
|
+
}
|
|
21
|
+
export {
|
|
22
|
+
b as default
|
|
23
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { jsxs as n, jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { t as a, b as o, S as r, o as s, i as c, c as d } from "./styles-B8oT_wcC.js";
|
|
3
|
+
import { a as l } from "./logo-control-C5ZdRec5.js";
|
|
4
|
+
import "react";
|
|
5
|
+
function f({ marker: t, className: e }) {
|
|
6
|
+
return /* @__PURE__ */ n(
|
|
7
|
+
l,
|
|
8
|
+
{
|
|
9
|
+
anchor: "bottom",
|
|
10
|
+
longitude: t.longitude,
|
|
11
|
+
latitude: t.latitude,
|
|
12
|
+
className: a(d.trim(), e),
|
|
13
|
+
children: [
|
|
14
|
+
/* @__PURE__ */ i("span", { id: "center-pin-background", className: o, children: /* @__PURE__ */ i(r, {}) }),
|
|
15
|
+
/* @__PURE__ */ i(s, { id: "center-pin-icon", className: c })
|
|
16
|
+
]
|
|
17
|
+
},
|
|
18
|
+
`center-pin-marker-${t.longitude}-${t.latitude}`
|
|
19
|
+
);
|
|
20
|
+
}
|
|
21
|
+
export {
|
|
22
|
+
f as default
|
|
23
|
+
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsxs as M, jsx as p } from "react/jsx-runtime";
|
|
2
2
|
import { a as b } from "./scale-control-Cflgzbvb.js";
|
|
3
3
|
import "react";
|
|
4
|
-
import { u, M as h } from "./index-
|
|
5
|
-
import { C as k, c as x, M as I } from "./index-
|
|
4
|
+
import { u, M as h } from "./index-AcZakyxd.js";
|
|
5
|
+
import { C as k, c as x, M as I } from "./index-6JzOJU8O.js";
|
|
6
6
|
function N({
|
|
7
7
|
clusters: t,
|
|
8
8
|
colors: e,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { useEffect as a } from "react";
|
|
3
3
|
import { P as c } from "./scale-control-Cflgzbvb.js";
|
|
4
|
-
import { u as i } from "./index-
|
|
4
|
+
import { u as i } from "./index-AcZakyxd.js";
|
|
5
5
|
import { c as n } from "./styles-ChFj97uV.js";
|
|
6
6
|
function l({
|
|
7
7
|
latitude: p,
|
package/dist/index.es.js
CHANGED