@local-logic/maps 0.1.7 → 0.1.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-eyFsWhYO.js → index-B-7FSpFA.js} +5 -5
- package/dist/{index-B13R2TUm.js → index-B9geAgZc.js} +1 -1
- package/dist/{index-eWv3le07.js → index-BAPVoRQk.js} +4 -4
- package/dist/{index-DFGiNPbe.js → index-BDolTDJO.js} +1 -1
- package/dist/{index-BpXydeNl.js → index-BIEyexab.js} +2 -2
- package/dist/{index-B2t_G7DM.js → index-BKCGWHuo.js} +1 -1
- package/dist/{index-BqhW6lBz.js → index-BjiM48Gd.js} +1 -1
- package/dist/{index-DM-Ih4p_.js → index-BrJk0fvu.js} +2 -2
- package/dist/{index-CUUravWc.js → index-C7kVubqd.js} +4 -4
- package/dist/{index-qum6AMNP.js → index-CGULF4ex.js} +2 -2
- package/dist/{index-BL4YTPcp.js → index-CSsNIeGf.js} +2 -2
- package/dist/{index-C3Tj3r2u.js → index-CedT4ujG.js} +4 -4
- package/dist/{index-D9mXgSxJ.js → index-D06VjH1r.js} +2 -2
- package/dist/{index-Oeg9DKq8.js → index-DEk1iNZG.js} +1 -1
- package/dist/{index-BTgWiuFg.js → index-DI5zCndd.js} +2 -2
- package/dist/index.es.js +1 -1
- package/dist/{styles-BPYm8pR9.js → styles-C3ghTFwc.js} +1 -1
- package/package.json +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _ } from "react/jsx-runtime";
|
|
2
2
|
import * as Z from "react";
|
|
3
|
-
import ut, { useContext as lt, useState as b, useMemo as O,
|
|
3
|
+
import ut, { useContext as lt, useState as b, useMemo as O, Suspense as R, lazy as w, useEffect as z, useRef as j } from "react";
|
|
4
4
|
const rt = ut.createContext({}), I = () => lt(rt), L = {
|
|
5
5
|
zoom: 14,
|
|
6
6
|
pitch: 0,
|
|
@@ -16,7 +16,7 @@ const rt = ut.createContext({}), I = () => lt(rt), L = {
|
|
|
16
16
|
bottom: 10,
|
|
17
17
|
left: 10,
|
|
18
18
|
right: 10
|
|
19
|
-
}, W = 10, pt = 22, Qt = 10, ft = 30, dt = 60, Xt = 15, mt = [-180, -85.0511, 180, 85.0511], gt = "w-full h-full relative overflow-hidden", yt = w(() => import("./index-
|
|
19
|
+
}, W = 10, pt = 22, Qt = 10, ft = 30, dt = 60, Xt = 15, mt = [-180, -85.0511, 180, 85.0511], gt = "w-full h-full relative overflow-hidden", yt = w(() => import("./index-BjiM48Gd.js")), wt = w(() => import("./index-BKCGWHuo.js")), Mt = w(() => import("./index-B9geAgZc.js")), Y = w(() => import("./index-DEk1iNZG.js")), _t = ({ children: r }) => {
|
|
20
20
|
const {
|
|
21
21
|
mapProvider: t,
|
|
22
22
|
center: e,
|
|
@@ -56,7 +56,7 @@ const rt = ut.createContext({}), I = () => lt(rt), L = {
|
|
|
56
56
|
children: /* @__PURE__ */ _(R, { fallback: null, children: /* @__PURE__ */ _(l, { children: r }) })
|
|
57
57
|
}
|
|
58
58
|
);
|
|
59
|
-
}, Pt = w(() => import("./index-
|
|
59
|
+
}, Pt = w(() => import("./index-CedT4ujG.js")), At = w(() => import("./index-C7kVubqd.js")), Et = w(() => import("./index-BAPVoRQk.js")), xt = w(() => import("./index-BO34uKgS.js"));
|
|
60
60
|
function Tt(r) {
|
|
61
61
|
const { mapProvider: t, setCenterPinMarkerPoints: e } = I();
|
|
62
62
|
z(() => {
|
|
@@ -581,7 +581,7 @@ var It = function(t) {
|
|
|
581
581
|
supercluster: c.current
|
|
582
582
|
};
|
|
583
583
|
};
|
|
584
|
-
const Ut = w(() => import("./index-
|
|
584
|
+
const Ut = w(() => import("./index-BIEyexab.js")), Dt = w(() => import("./index-CGULF4ex.js")), Zt = w(() => import("./index-DI5zCndd.js")), Bt = w(() => import("./index-DEFuc-6u.js"));
|
|
585
585
|
function Ft({ isLoading: r, markers: t, onClick: e, ...n }) {
|
|
586
586
|
const { mapProvider: i, activeMarker: o, zoom: a, setMarkerPoints: c, setClusterPoints: s } = I();
|
|
587
587
|
z(() => {
|
|
@@ -664,7 +664,7 @@ function Ft({ isLoading: r, markers: t, onClick: e, ...n }) {
|
|
|
664
664
|
}
|
|
665
665
|
) }) : null;
|
|
666
666
|
}
|
|
667
|
-
const kt = w(() => import("./index-
|
|
667
|
+
const kt = w(() => import("./index-CSsNIeGf.js")), Nt = w(() => import("./index-BrJk0fvu.js")), zt = w(() => import("./index-D06VjH1r.js")), jt = w(() => import("./index-COB6j_V1.js"));
|
|
668
668
|
function Gt({ children: r, anchor: t = "bottom", ...e }) {
|
|
669
669
|
const { mapProvider: n } = I(), i = O(() => {
|
|
670
670
|
switch (n?.name) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as x, jsx as M } from "react/jsx-runtime";
|
|
2
2
|
import { useState as h, useRef as Z, useCallback as B, useEffect as g } from "react";
|
|
3
3
|
import { M as L, N as P, u as T } from "./scale-control-Dsir9fWY.js";
|
|
4
|
-
import { u as v, D as f, a as z, m as A } from "./index-
|
|
4
|
+
import { u as v, D as f, a as z, m as A } from "./index-B-7FSpFA.js";
|
|
5
5
|
import { t as E } from "./index-DscDx7HE.js";
|
|
6
6
|
const y = {
|
|
7
7
|
en: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as e, jsx as i } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { b as o, S as a, i as r, t as s, c } from "./styles-BhmqUA5C.js";
|
|
3
3
|
import { a as d } from "./scale-control-Dsir9fWY.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import { HouseLineIcon as l } from "@phosphor-icons/react";
|
|
@@ -10,10 +10,10 @@ function b({ marker: t, className: n }) {
|
|
|
10
10
|
anchor: "bottom",
|
|
11
11
|
longitude: t.longitude,
|
|
12
12
|
latitude: t.latitude,
|
|
13
|
-
className:
|
|
13
|
+
className: s(c.trim(), n),
|
|
14
14
|
children: [
|
|
15
|
-
/* @__PURE__ */ i("span", { id: "center-pin-background", className:
|
|
16
|
-
/* @__PURE__ */ i(l, { id: "center-pin-icon", className:
|
|
15
|
+
/* @__PURE__ */ i("span", { id: "center-pin-background", className: o, children: /* @__PURE__ */ i(a, {}) }),
|
|
16
|
+
/* @__PURE__ */ i(l, { id: "center-pin-icon", className: r })
|
|
17
17
|
]
|
|
18
18
|
},
|
|
19
19
|
`center-pin-marker-${t.longitude}-${t.latitude}`
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as i, jsx as e, Fragment as d } from "react/jsx-runtime";
|
|
2
2
|
import { useMemo as u } from "react";
|
|
3
|
-
import { u as f, M as n } from "./index-
|
|
3
|
+
import { u as f, M as n } from "./index-B-7FSpFA.js";
|
|
4
4
|
import { c as o, M as v } from "./index-D4t3jFAj.js";
|
|
5
5
|
const M = `
|
|
6
6
|
relative flex
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsxs as f, jsx as i } from "react/jsx-runtime";
|
|
2
2
|
import { a as k } from "./logo-control-CHapR1Dt.js";
|
|
3
3
|
import "react";
|
|
4
|
-
import { u, M } from "./index-
|
|
4
|
+
import { u, M } from "./index-B-7FSpFA.js";
|
|
5
5
|
import { c as g, M as C } from "./index-D4t3jFAj.js";
|
|
6
|
-
import { C as v } from "./index-
|
|
6
|
+
import { C as v } from "./index-BDolTDJO.js";
|
|
7
7
|
function y({
|
|
8
8
|
clusters: n,
|
|
9
9
|
colors: o,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as v, jsxs as x, Fragment as A } from "react/jsx-runtime";
|
|
2
2
|
import { useState as B, useEffect as P, useRef as C, useCallback as E } from "react";
|
|
3
3
|
import { APIProvider as O, Map as z, ControlPosition as L, useMap as G } from "@vis.gl/react-google-maps";
|
|
4
|
-
import { u as _, D as T, W as p, a as Z, m as I } from "./index-
|
|
4
|
+
import { u as _, D as T, W as p, a as Z, m as I } from "./index-B-7FSpFA.js";
|
|
5
5
|
import { t as R } from "./index-DscDx7HE.js";
|
|
6
6
|
const F = {
|
|
7
7
|
"top-left": L.LEFT_TOP,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as T, jsx as M } from "react/jsx-runtime";
|
|
2
2
|
import { useState as E, useRef as x, useCallback as L, useEffect as f } from "react";
|
|
3
3
|
import { M as A, N as G, u as h } from "./logo-control-CHapR1Dt.js";
|
|
4
|
-
import { u as v, D as C, a as F, m as S } from "./index-
|
|
4
|
+
import { u as v, D as C, a as F, m as S } from "./index-B-7FSpFA.js";
|
|
5
5
|
import { t as z } from "./index-DscDx7HE.js";
|
|
6
6
|
const H = {
|
|
7
7
|
en: {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as E } from "react/jsx-runtime";
|
|
2
2
|
import { useState as L, useRef as M, useCallback as N, useEffect as f, useMemo as W } from "react";
|
|
3
3
|
import { useMap as _, InfoWindow as x } from "@vis.gl/react-google-maps";
|
|
4
|
-
import { u as z, P as y } from "./index-
|
|
5
|
-
import { c as H, m as j } from "./styles-
|
|
4
|
+
import { u as z, P as y } from "./index-B-7FSpFA.js";
|
|
5
|
+
import { c as H, m as j } from "./styles-C3ghTFwc.js";
|
|
6
6
|
function Z({
|
|
7
7
|
latitude: g,
|
|
8
8
|
longitude: m,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as t, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { b as o, S as a, i as r, t as s, c } from "./styles-BhmqUA5C.js";
|
|
3
3
|
import { AdvancedMarker as d } from "@vis.gl/react-google-maps";
|
|
4
4
|
import { HouseLineIcon as l } from "@phosphor-icons/react";
|
|
5
5
|
function f({ marker: n, className: i }) {
|
|
@@ -10,11 +10,11 @@ function f({ marker: n, className: i }) {
|
|
|
10
10
|
lat: n.latitude,
|
|
11
11
|
lng: n.longitude
|
|
12
12
|
},
|
|
13
|
-
className:
|
|
13
|
+
className: s(c.trim(), i),
|
|
14
14
|
zIndex: 10,
|
|
15
15
|
children: [
|
|
16
|
-
/* @__PURE__ */ e("span", { id: "center-pin-background", className:
|
|
17
|
-
/* @__PURE__ */ e(l, { id: "center-pin-icon", className:
|
|
16
|
+
/* @__PURE__ */ e("span", { id: "center-pin-background", className: o, children: /* @__PURE__ */ e(a, {}) }),
|
|
17
|
+
/* @__PURE__ */ e(l, { id: "center-pin-icon", className: r })
|
|
18
18
|
]
|
|
19
19
|
},
|
|
20
20
|
`center-pin-marker-${n.longitude}-${n.latitude}`
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsxs as f, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { useMap as k, AdvancedMarker as u } from "@vis.gl/react-google-maps";
|
|
3
|
-
import { u as M, M as g } from "./index-
|
|
3
|
+
import { u as M, M as g } from "./index-B-7FSpFA.js";
|
|
4
4
|
import { c as C, M as v } from "./index-D4t3jFAj.js";
|
|
5
|
-
import { C as I } from "./index-
|
|
5
|
+
import { C as I } from "./index-BDolTDJO.js";
|
|
6
6
|
function y({
|
|
7
7
|
clusters: a,
|
|
8
8
|
colors: o,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as E } from "react/jsx-runtime";
|
|
2
2
|
import { useRef as d, useEffect as M } from "react";
|
|
3
3
|
import { u as D, P as H } from "./logo-control-CHapR1Dt.js";
|
|
4
|
-
import { u as j, P as T } from "./index-
|
|
5
|
-
import { c as x, m as A } from "./styles-
|
|
4
|
+
import { u as j, P as T } from "./index-B-7FSpFA.js";
|
|
5
|
+
import { c as x, m as A } from "./styles-C3ghTFwc.js";
|
|
6
6
|
function Z({
|
|
7
7
|
latitude: l,
|
|
8
8
|
longitude: h,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as n, jsx as i } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { b as o, S as a, i as r, t as s, c } from "./styles-BhmqUA5C.js";
|
|
3
3
|
import { a as d } from "./logo-control-CHapR1Dt.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import { HouseLineIcon as l } from "@phosphor-icons/react";
|
|
@@ -10,10 +10,10 @@ function b({ marker: t, className: e }) {
|
|
|
10
10
|
anchor: "bottom",
|
|
11
11
|
longitude: t.longitude,
|
|
12
12
|
latitude: t.latitude,
|
|
13
|
-
className:
|
|
13
|
+
className: s(c.trim(), e),
|
|
14
14
|
children: [
|
|
15
|
-
/* @__PURE__ */ i("span", { id: "center-pin-background", className:
|
|
16
|
-
/* @__PURE__ */ i(l, { id: "center-pin-icon", className:
|
|
15
|
+
/* @__PURE__ */ i("span", { id: "center-pin-background", className: o, children: /* @__PURE__ */ i(a, {}) }),
|
|
16
|
+
/* @__PURE__ */ i(l, { id: "center-pin-icon", className: r })
|
|
17
17
|
]
|
|
18
18
|
},
|
|
19
19
|
`center-pin-marker-${t.longitude}-${t.latitude}`
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as E } from "react/jsx-runtime";
|
|
2
2
|
import { useRef as d, useEffect as M } from "react";
|
|
3
3
|
import { u as z, P as D } from "./scale-control-Dsir9fWY.js";
|
|
4
|
-
import { u as H, P as T } from "./index-
|
|
5
|
-
import { c as j, m as A } from "./styles-
|
|
4
|
+
import { u as H, P as T } from "./index-B-7FSpFA.js";
|
|
5
|
+
import { c as j, m as A } from "./styles-C3ghTFwc.js";
|
|
6
6
|
function Z({
|
|
7
7
|
latitude: h,
|
|
8
8
|
longitude: l,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsxs as f, jsx as i } from "react/jsx-runtime";
|
|
2
2
|
import { a as k } from "./scale-control-Dsir9fWY.js";
|
|
3
3
|
import "react";
|
|
4
|
-
import { u, M } from "./index-
|
|
4
|
+
import { u, M } from "./index-B-7FSpFA.js";
|
|
5
5
|
import { c as g, M as C } from "./index-D4t3jFAj.js";
|
|
6
|
-
import { C as b } from "./index-
|
|
6
|
+
import { C as b } from "./index-BDolTDJO.js";
|
|
7
7
|
function y({
|
|
8
8
|
clusters: n,
|
|
9
9
|
colors: r,
|
package/dist/index.es.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@local-logic/maps",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.8",
|
|
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",
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
"react-dom": "^19.1.1",
|
|
97
97
|
"react-map-gl": "^8.1.0",
|
|
98
98
|
"rollup-plugin-visualizer": "^5.14.0",
|
|
99
|
-
"storybook": "^8.6.
|
|
99
|
+
"storybook": "^8.6.17",
|
|
100
100
|
"tailwindcss": "^3.4.17",
|
|
101
101
|
"tsconfig": "workspace:*",
|
|
102
102
|
"typescript": "^5.9.2",
|