@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,71 +1,76 @@
|
|
|
1
|
-
import { jsx as x, Fragment as
|
|
1
|
+
import { jsx as x, Fragment as st } from "react/jsx-runtime";
|
|
2
2
|
import * as F from "react";
|
|
3
|
-
import
|
|
4
|
-
const
|
|
3
|
+
import ot, { useContext as it, lazy as w, useMemo as L, useRef as G, useState as Q } from "react";
|
|
4
|
+
const X = ot.createContext(
|
|
5
5
|
{}
|
|
6
|
-
), R = () => it(
|
|
6
|
+
), R = () => it(X), S = {
|
|
7
7
|
zoom: 16,
|
|
8
8
|
pitch: 0,
|
|
9
9
|
bearing: 0,
|
|
10
10
|
cooperativeGestures: !1
|
|
11
|
-
},
|
|
11
|
+
}, V = {
|
|
12
|
+
maptiler: "600d69cb-288d-445e-9839-3dfe4d76b31a",
|
|
13
|
+
mapbox: "locallogic/cmb9nz9kb011501ru8drq8fqf",
|
|
14
|
+
google: "a7ff20eb973126bb"
|
|
15
|
+
}, at = "w-full h-full relative overflow-hidden", ct = w(() => import("./index-BF2kb4Y-.js")), ut = w(() => import("./index-C5-_i-6M.js")), ht = w(() => import("./index-CrIFr9oc.js")), pt = w(() => import("./index-qqbvBkdn.js")), lt = ({ children: r }) => {
|
|
12
16
|
const {
|
|
13
17
|
mapProvider: t,
|
|
14
18
|
center: e,
|
|
15
|
-
zoom:
|
|
16
|
-
pitch:
|
|
17
|
-
bearing:
|
|
19
|
+
zoom: n = S.zoom,
|
|
20
|
+
pitch: o = S.pitch,
|
|
21
|
+
bearing: i = S.bearing,
|
|
18
22
|
cooperativeGestures: a = S.cooperativeGestures,
|
|
19
23
|
zoomPosition: u
|
|
20
24
|
} = R(), s = L(() => {
|
|
21
25
|
switch (t == null ? void 0 : t.name) {
|
|
22
26
|
case "maptiler":
|
|
23
|
-
return at;
|
|
24
|
-
case "google":
|
|
25
27
|
return ct;
|
|
26
|
-
case "
|
|
28
|
+
case "google":
|
|
27
29
|
return ut;
|
|
28
|
-
|
|
30
|
+
case "mapbox":
|
|
29
31
|
return ht;
|
|
32
|
+
default:
|
|
33
|
+
return pt;
|
|
30
34
|
}
|
|
31
35
|
}, [t]);
|
|
32
36
|
return /* @__PURE__ */ x(
|
|
33
37
|
"div",
|
|
34
38
|
{
|
|
35
|
-
className:
|
|
39
|
+
className: at,
|
|
36
40
|
"data-testid": "base-map",
|
|
37
|
-
"data-map-provider": t == null ? void 0 : t.name,
|
|
38
|
-
"data-
|
|
39
|
-
"data-
|
|
40
|
-
"data-
|
|
41
|
+
"data-map-provider-name": t == null ? void 0 : t.name,
|
|
42
|
+
"data-map-provider-theme": (t == null ? void 0 : t.theme) || V[t == null ? void 0 : t.name] || V.maptiler,
|
|
43
|
+
"data-zoom": n,
|
|
44
|
+
"data-pitch": o,
|
|
45
|
+
"data-bearing": i,
|
|
41
46
|
"data-cooperative-gestures": a,
|
|
42
47
|
"data-zoom-position": u,
|
|
43
48
|
"data-center-latitude": e.latitude,
|
|
44
49
|
"data-center-longitude": e.longitude,
|
|
45
|
-
children: /* @__PURE__ */ x(s, { children:
|
|
50
|
+
children: /* @__PURE__ */ x(s, { children: r })
|
|
46
51
|
}
|
|
47
52
|
);
|
|
48
53
|
};
|
|
49
|
-
function
|
|
50
|
-
const
|
|
51
|
-
return (e.id === 0 || e.id) && (
|
|
54
|
+
function ft(r, t, e = {}) {
|
|
55
|
+
const n = { type: "Feature" };
|
|
56
|
+
return (e.id === 0 || e.id) && (n.id = e.id), e.bbox && (n.bbox = e.bbox), n.properties = t || {}, n.geometry = r, n;
|
|
52
57
|
}
|
|
53
|
-
function
|
|
54
|
-
if (!
|
|
58
|
+
function dt(r, t, e = {}) {
|
|
59
|
+
if (!r)
|
|
55
60
|
throw new Error("coordinates is required");
|
|
56
|
-
if (!Array.isArray(
|
|
61
|
+
if (!Array.isArray(r))
|
|
57
62
|
throw new Error("coordinates must be an Array");
|
|
58
|
-
if (
|
|
63
|
+
if (r.length < 2)
|
|
59
64
|
throw new Error("coordinates must be at least 2 numbers long");
|
|
60
|
-
if (!
|
|
65
|
+
if (!k(r[0]) || !k(r[1]))
|
|
61
66
|
throw new Error("coordinates must contain numbers");
|
|
62
|
-
return
|
|
67
|
+
return ft({
|
|
63
68
|
type: "Point",
|
|
64
|
-
coordinates:
|
|
69
|
+
coordinates: r
|
|
65
70
|
}, t, e);
|
|
66
71
|
}
|
|
67
|
-
function
|
|
68
|
-
return !isNaN(
|
|
72
|
+
function k(r) {
|
|
73
|
+
return !isNaN(r) && r !== null && !Array.isArray(r);
|
|
69
74
|
}
|
|
70
75
|
const H = [
|
|
71
76
|
Int8Array,
|
|
@@ -77,7 +82,7 @@ const H = [
|
|
|
77
82
|
Uint32Array,
|
|
78
83
|
Float32Array,
|
|
79
84
|
Float64Array
|
|
80
|
-
], C = 1,
|
|
85
|
+
], C = 1, O = 8;
|
|
81
86
|
class D {
|
|
82
87
|
/**
|
|
83
88
|
* Creates an index from raw `ArrayBuffer` data.
|
|
@@ -86,17 +91,17 @@ class D {
|
|
|
86
91
|
static from(t) {
|
|
87
92
|
if (!(t instanceof ArrayBuffer))
|
|
88
93
|
throw new Error("Data must be an instance of ArrayBuffer.");
|
|
89
|
-
const [e,
|
|
94
|
+
const [e, n] = new Uint8Array(t, 0, 2);
|
|
90
95
|
if (e !== 219)
|
|
91
96
|
throw new Error("Data does not appear to be in a KDBush format.");
|
|
92
|
-
const
|
|
93
|
-
if (
|
|
94
|
-
throw new Error(`Got v${
|
|
95
|
-
const
|
|
96
|
-
if (!
|
|
97
|
+
const o = n >> 4;
|
|
98
|
+
if (o !== C)
|
|
99
|
+
throw new Error(`Got v${o} data when expected v${C}.`);
|
|
100
|
+
const i = H[n & 15];
|
|
101
|
+
if (!i)
|
|
97
102
|
throw new Error("Unrecognized array type.");
|
|
98
103
|
const [a] = new Uint16Array(t, 2, 1), [u] = new Uint32Array(t, 4, 1);
|
|
99
|
-
return new D(u, a,
|
|
104
|
+
return new D(u, a, i, t);
|
|
100
105
|
}
|
|
101
106
|
/**
|
|
102
107
|
* Creates an index that will hold a given number of items.
|
|
@@ -105,13 +110,13 @@ class D {
|
|
|
105
110
|
* @param {TypedArrayConstructor} [ArrayType=Float64Array] The array type used for coordinates storage (`Float64Array` by default).
|
|
106
111
|
* @param {ArrayBuffer} [data] (For internal use only)
|
|
107
112
|
*/
|
|
108
|
-
constructor(t, e = 64,
|
|
113
|
+
constructor(t, e = 64, n = Float64Array, o) {
|
|
109
114
|
if (isNaN(t) || t < 0) throw new Error(`Unpexpected numItems value: ${t}.`);
|
|
110
|
-
this.numItems = +t, this.nodeSize = Math.min(Math.max(+e, 2), 65535), this.ArrayType =
|
|
111
|
-
const
|
|
112
|
-
if (
|
|
113
|
-
throw new Error(`Unexpected typed array class: ${
|
|
114
|
-
|
|
115
|
+
this.numItems = +t, this.nodeSize = Math.min(Math.max(+e, 2), 65535), this.ArrayType = n, this.IndexArrayType = t < 65536 ? Uint16Array : Uint32Array;
|
|
116
|
+
const i = H.indexOf(this.ArrayType), a = t * 2 * this.ArrayType.BYTES_PER_ELEMENT, u = t * this.IndexArrayType.BYTES_PER_ELEMENT, s = (8 - u % 8) % 8;
|
|
117
|
+
if (i < 0)
|
|
118
|
+
throw new Error(`Unexpected typed array class: ${n}.`);
|
|
119
|
+
o && o instanceof ArrayBuffer ? (this.data = o, this.ids = new this.IndexArrayType(this.data, O, t), this.coords = new this.ArrayType(this.data, O + u + s, t * 2), this._pos = t * 2, this._finished = !0) : (this.data = new ArrayBuffer(O + a + u + s), this.ids = new this.IndexArrayType(this.data, O, t), this.coords = new this.ArrayType(this.data, O + u + s, t * 2), this._pos = 0, this._finished = !1, new Uint8Array(this.data, 0, 2).set([219, (C << 4) + i]), new Uint16Array(this.data, 2, 1)[0] = e, new Uint32Array(this.data, 4, 1)[0] = t);
|
|
115
120
|
}
|
|
116
121
|
/**
|
|
117
122
|
* Add a point to the index.
|
|
@@ -120,8 +125,8 @@ class D {
|
|
|
120
125
|
* @returns {number} An incremental index associated with the added item (starting from `0`).
|
|
121
126
|
*/
|
|
122
127
|
add(t, e) {
|
|
123
|
-
const
|
|
124
|
-
return this.ids[
|
|
128
|
+
const n = this._pos >> 1;
|
|
129
|
+
return this.ids[n] = n, this.coords[this._pos++] = t, this.coords[this._pos++] = e, n;
|
|
125
130
|
}
|
|
126
131
|
/**
|
|
127
132
|
* Perform indexing of the added points.
|
|
@@ -140,20 +145,20 @@ class D {
|
|
|
140
145
|
* @param {number} maxY
|
|
141
146
|
* @returns {number[]} An array of indices correponding to the found items.
|
|
142
147
|
*/
|
|
143
|
-
range(t, e,
|
|
148
|
+
range(t, e, n, o) {
|
|
144
149
|
if (!this._finished) throw new Error("Data not yet indexed - call index.finish().");
|
|
145
|
-
const { ids:
|
|
150
|
+
const { ids: i, coords: a, nodeSize: u } = this, s = [0, i.length - 1, 0], c = [];
|
|
146
151
|
for (; s.length; ) {
|
|
147
152
|
const p = s.pop() || 0, h = s.pop() || 0, l = s.pop() || 0;
|
|
148
153
|
if (h - l <= u) {
|
|
149
154
|
for (let d = l; d <= h; d++) {
|
|
150
155
|
const y = a[2 * d], M = a[2 * d + 1];
|
|
151
|
-
y >= t && y <=
|
|
156
|
+
y >= t && y <= n && M >= e && M <= o && c.push(i[d]);
|
|
152
157
|
}
|
|
153
158
|
continue;
|
|
154
159
|
}
|
|
155
160
|
const f = l + h >> 1, g = a[2 * f], m = a[2 * f + 1];
|
|
156
|
-
g >= t && g <=
|
|
161
|
+
g >= t && g <= n && m >= e && m <= o && c.push(i[f]), (p === 0 ? t <= g : e <= m) && (s.push(l), s.push(f - 1), s.push(1 - p)), (p === 0 ? n >= g : o >= m) && (s.push(f + 1), s.push(h), s.push(1 - p));
|
|
157
162
|
}
|
|
158
163
|
return c;
|
|
159
164
|
}
|
|
@@ -164,54 +169,54 @@ class D {
|
|
|
164
169
|
* @param {number} r Query radius.
|
|
165
170
|
* @returns {number[]} An array of indices correponding to the found items.
|
|
166
171
|
*/
|
|
167
|
-
within(t, e,
|
|
172
|
+
within(t, e, n) {
|
|
168
173
|
if (!this._finished) throw new Error("Data not yet indexed - call index.finish().");
|
|
169
|
-
const { ids:
|
|
174
|
+
const { ids: o, coords: i, nodeSize: a } = this, u = [0, o.length - 1, 0], s = [], c = n * n;
|
|
170
175
|
for (; u.length; ) {
|
|
171
176
|
const p = u.pop() || 0, h = u.pop() || 0, l = u.pop() || 0;
|
|
172
177
|
if (h - l <= a) {
|
|
173
178
|
for (let d = l; d <= h; d++)
|
|
174
|
-
|
|
179
|
+
J(i[2 * d], i[2 * d + 1], t, e) <= c && s.push(o[d]);
|
|
175
180
|
continue;
|
|
176
181
|
}
|
|
177
|
-
const f = l + h >> 1, g =
|
|
178
|
-
|
|
182
|
+
const f = l + h >> 1, g = i[2 * f], m = i[2 * f + 1];
|
|
183
|
+
J(g, m, t, e) <= c && s.push(o[f]), (p === 0 ? t - n <= g : e - n <= m) && (u.push(l), u.push(f - 1), u.push(1 - p)), (p === 0 ? t + n >= g : e + n >= m) && (u.push(f + 1), u.push(h), u.push(1 - p));
|
|
179
184
|
}
|
|
180
185
|
return s;
|
|
181
186
|
}
|
|
182
187
|
}
|
|
183
|
-
function j(
|
|
184
|
-
if (
|
|
185
|
-
const a =
|
|
186
|
-
|
|
188
|
+
function j(r, t, e, n, o, i) {
|
|
189
|
+
if (o - n <= e) return;
|
|
190
|
+
const a = n + o >> 1;
|
|
191
|
+
tt(r, t, a, n, o, i), j(r, t, e, n, a - 1, 1 - i), j(r, t, e, a + 1, o, 1 - i);
|
|
187
192
|
}
|
|
188
|
-
function
|
|
189
|
-
for (;
|
|
190
|
-
if (
|
|
191
|
-
const c =
|
|
192
|
-
|
|
193
|
+
function tt(r, t, e, n, o, i) {
|
|
194
|
+
for (; o > n; ) {
|
|
195
|
+
if (o - n > 600) {
|
|
196
|
+
const c = o - n + 1, p = e - n + 1, h = Math.log(c), l = 0.5 * Math.exp(2 * h / 3), f = 0.5 * Math.sqrt(h * l * (c - l) / c) * (p - c / 2 < 0 ? -1 : 1), g = Math.max(n, Math.floor(e - p * l / c + f)), m = Math.min(o, Math.floor(e + (c - p) * l / c + f));
|
|
197
|
+
tt(r, t, e, g, m, i);
|
|
193
198
|
}
|
|
194
|
-
const a = t[2 * e +
|
|
195
|
-
let u =
|
|
196
|
-
for (
|
|
197
|
-
for (
|
|
198
|
-
for (; t[2 * s +
|
|
199
|
+
const a = t[2 * e + i];
|
|
200
|
+
let u = n, s = o;
|
|
201
|
+
for (P(r, t, n, e), t[2 * o + i] > a && P(r, t, n, o); u < s; ) {
|
|
202
|
+
for (P(r, t, u, s), u++, s--; t[2 * u + i] < a; ) u++;
|
|
203
|
+
for (; t[2 * s + i] > a; ) s--;
|
|
199
204
|
}
|
|
200
|
-
t[2 *
|
|
205
|
+
t[2 * n + i] === a ? P(r, t, n, s) : (s++, P(r, t, s, o)), s <= e && (n = s + 1), e <= s && (o = s - 1);
|
|
201
206
|
}
|
|
202
207
|
}
|
|
203
|
-
function
|
|
204
|
-
U(
|
|
208
|
+
function P(r, t, e, n) {
|
|
209
|
+
U(r, e, n), U(t, 2 * e, 2 * n), U(t, 2 * e + 1, 2 * n + 1);
|
|
205
210
|
}
|
|
206
|
-
function U(
|
|
207
|
-
const
|
|
208
|
-
|
|
211
|
+
function U(r, t, e) {
|
|
212
|
+
const n = r[t];
|
|
213
|
+
r[t] = r[e], r[e] = n;
|
|
209
214
|
}
|
|
210
|
-
function
|
|
211
|
-
const
|
|
212
|
-
return
|
|
215
|
+
function J(r, t, e, n) {
|
|
216
|
+
const o = r - e, i = t - n;
|
|
217
|
+
return o * o + i * i;
|
|
213
218
|
}
|
|
214
|
-
const
|
|
219
|
+
const gt = {
|
|
215
220
|
minZoom: 0,
|
|
216
221
|
// min zoom to generate clusters on
|
|
217
222
|
maxZoom: 16,
|
|
@@ -232,23 +237,23 @@ const dt = {
|
|
|
232
237
|
reduce: null,
|
|
233
238
|
// (accumulated, props) => { accumulated.sum += props.sum; }
|
|
234
239
|
// properties to use for individual points when running the reducer
|
|
235
|
-
map: (
|
|
240
|
+
map: (r) => r
|
|
236
241
|
// props => ({sum: props.my_value})
|
|
237
|
-
},
|
|
238
|
-
class
|
|
242
|
+
}, K = Math.fround || /* @__PURE__ */ ((r) => (t) => (r[0] = +t, r[0]))(new Float32Array(1)), T = 2, E = 3, z = 4, A = 5, et = 6;
|
|
243
|
+
class mt {
|
|
239
244
|
constructor(t) {
|
|
240
|
-
this.options = Object.assign(Object.create(
|
|
245
|
+
this.options = Object.assign(Object.create(gt), t), this.trees = new Array(this.options.maxZoom + 1), this.stride = this.options.reduce ? 7 : 6, this.clusterProps = [];
|
|
241
246
|
}
|
|
242
247
|
load(t) {
|
|
243
|
-
const { log: e, minZoom:
|
|
248
|
+
const { log: e, minZoom: n, maxZoom: o } = this.options;
|
|
244
249
|
e && console.time("total time");
|
|
245
|
-
const
|
|
246
|
-
e && console.time(
|
|
250
|
+
const i = `prepare ${t.length} points`;
|
|
251
|
+
e && console.time(i), this.points = t;
|
|
247
252
|
const a = [];
|
|
248
253
|
for (let s = 0; s < t.length; s++) {
|
|
249
254
|
const c = t[s];
|
|
250
255
|
if (!c.geometry) continue;
|
|
251
|
-
const [p, h] = c.geometry.coordinates, l =
|
|
256
|
+
const [p, h] = c.geometry.coordinates, l = K(I(p)), f = K(B(h));
|
|
252
257
|
a.push(
|
|
253
258
|
l,
|
|
254
259
|
f,
|
|
@@ -263,105 +268,105 @@ class gt {
|
|
|
263
268
|
// number of points in a cluster
|
|
264
269
|
), this.options.reduce && a.push(0);
|
|
265
270
|
}
|
|
266
|
-
let u = this.trees[
|
|
267
|
-
e && console.timeEnd(
|
|
268
|
-
for (let s =
|
|
271
|
+
let u = this.trees[o + 1] = this._createTree(a);
|
|
272
|
+
e && console.timeEnd(i);
|
|
273
|
+
for (let s = o; s >= n; s--) {
|
|
269
274
|
const c = +Date.now();
|
|
270
275
|
u = this.trees[s] = this._createTree(this._cluster(u, s)), e && console.log("z%d: %d clusters in %dms", s, u.numItems, +Date.now() - c);
|
|
271
276
|
}
|
|
272
277
|
return e && console.timeEnd("total time"), this;
|
|
273
278
|
}
|
|
274
279
|
getClusters(t, e) {
|
|
275
|
-
let
|
|
276
|
-
const
|
|
277
|
-
let
|
|
280
|
+
let n = ((t[0] + 180) % 360 + 360) % 360 - 180;
|
|
281
|
+
const o = Math.max(-90, Math.min(90, t[1]));
|
|
282
|
+
let i = t[2] === 180 ? 180 : ((t[2] + 180) % 360 + 360) % 360 - 180;
|
|
278
283
|
const a = Math.max(-90, Math.min(90, t[3]));
|
|
279
284
|
if (t[2] - t[0] >= 360)
|
|
280
|
-
|
|
281
|
-
else if (
|
|
282
|
-
const h = this.getClusters([
|
|
285
|
+
n = -180, i = 180;
|
|
286
|
+
else if (n > i) {
|
|
287
|
+
const h = this.getClusters([n, o, 180, a], e), l = this.getClusters([-180, o, i, a], e);
|
|
283
288
|
return h.concat(l);
|
|
284
289
|
}
|
|
285
|
-
const u = this.trees[this._limitZoom(e)], s = u.range(I(
|
|
290
|
+
const u = this.trees[this._limitZoom(e)], s = u.range(I(n), B(a), I(i), B(o)), c = u.data, p = [];
|
|
286
291
|
for (const h of s) {
|
|
287
292
|
const l = this.stride * h;
|
|
288
|
-
p.push(c[l + A] > 1 ?
|
|
293
|
+
p.push(c[l + A] > 1 ? W(c, l, this.clusterProps) : this.points[c[l + E]]);
|
|
289
294
|
}
|
|
290
295
|
return p;
|
|
291
296
|
}
|
|
292
297
|
getChildren(t) {
|
|
293
|
-
const e = this._getOriginId(t),
|
|
294
|
-
if (!
|
|
295
|
-
const a =
|
|
296
|
-
if (e * this.stride >= a.length) throw new Error(
|
|
297
|
-
const u = this.options.radius / (this.options.extent * Math.pow(2,
|
|
298
|
+
const e = this._getOriginId(t), n = this._getOriginZoom(t), o = "No cluster with the specified id.", i = this.trees[n];
|
|
299
|
+
if (!i) throw new Error(o);
|
|
300
|
+
const a = i.data;
|
|
301
|
+
if (e * this.stride >= a.length) throw new Error(o);
|
|
302
|
+
const u = this.options.radius / (this.options.extent * Math.pow(2, n - 1)), s = a[e * this.stride], c = a[e * this.stride + 1], p = i.within(s, c, u), h = [];
|
|
298
303
|
for (const l of p) {
|
|
299
304
|
const f = l * this.stride;
|
|
300
|
-
a[f + z] === t && h.push(a[f + A] > 1 ?
|
|
305
|
+
a[f + z] === t && h.push(a[f + A] > 1 ? W(a, f, this.clusterProps) : this.points[a[f + E]]);
|
|
301
306
|
}
|
|
302
|
-
if (h.length === 0) throw new Error(
|
|
307
|
+
if (h.length === 0) throw new Error(o);
|
|
303
308
|
return h;
|
|
304
309
|
}
|
|
305
|
-
getLeaves(t, e,
|
|
306
|
-
e = e || 10,
|
|
307
|
-
const
|
|
308
|
-
return this._appendLeaves(
|
|
310
|
+
getLeaves(t, e, n) {
|
|
311
|
+
e = e || 10, n = n || 0;
|
|
312
|
+
const o = [];
|
|
313
|
+
return this._appendLeaves(o, t, e, n, 0), o;
|
|
309
314
|
}
|
|
310
|
-
getTile(t, e,
|
|
311
|
-
const
|
|
315
|
+
getTile(t, e, n) {
|
|
316
|
+
const o = this.trees[this._limitZoom(t)], i = Math.pow(2, t), { extent: a, radius: u } = this.options, s = u / a, c = (n - s) / i, p = (n + 1 + s) / i, h = {
|
|
312
317
|
features: []
|
|
313
318
|
};
|
|
314
319
|
return this._addTileFeatures(
|
|
315
|
-
|
|
316
|
-
|
|
320
|
+
o.range((e - s) / i, c, (e + 1 + s) / i, p),
|
|
321
|
+
o.data,
|
|
317
322
|
e,
|
|
318
|
-
|
|
319
|
-
|
|
323
|
+
n,
|
|
324
|
+
i,
|
|
320
325
|
h
|
|
321
326
|
), e === 0 && this._addTileFeatures(
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
+
o.range(1 - s / i, c, 1, p),
|
|
328
|
+
o.data,
|
|
329
|
+
i,
|
|
330
|
+
n,
|
|
331
|
+
i,
|
|
327
332
|
h
|
|
328
|
-
), e ===
|
|
329
|
-
|
|
330
|
-
|
|
333
|
+
), e === i - 1 && this._addTileFeatures(
|
|
334
|
+
o.range(0, c, s / i, p),
|
|
335
|
+
o.data,
|
|
331
336
|
-1,
|
|
332
|
-
|
|
333
|
-
|
|
337
|
+
n,
|
|
338
|
+
i,
|
|
334
339
|
h
|
|
335
340
|
), h.features.length ? h : null;
|
|
336
341
|
}
|
|
337
342
|
getClusterExpansionZoom(t) {
|
|
338
343
|
let e = this._getOriginZoom(t) - 1;
|
|
339
344
|
for (; e <= this.options.maxZoom; ) {
|
|
340
|
-
const
|
|
341
|
-
if (e++,
|
|
342
|
-
t =
|
|
345
|
+
const n = this.getChildren(t);
|
|
346
|
+
if (e++, n.length !== 1) break;
|
|
347
|
+
t = n[0].properties.cluster_id;
|
|
343
348
|
}
|
|
344
349
|
return e;
|
|
345
350
|
}
|
|
346
|
-
_appendLeaves(t, e,
|
|
351
|
+
_appendLeaves(t, e, n, o, i) {
|
|
347
352
|
const a = this.getChildren(e);
|
|
348
353
|
for (const u of a) {
|
|
349
354
|
const s = u.properties;
|
|
350
|
-
if (s && s.cluster ?
|
|
355
|
+
if (s && s.cluster ? i + s.point_count <= o ? i += s.point_count : i = this._appendLeaves(t, s.cluster_id, n, o, i) : i < o ? i++ : t.push(u), t.length === n) break;
|
|
351
356
|
}
|
|
352
|
-
return
|
|
357
|
+
return i;
|
|
353
358
|
}
|
|
354
359
|
_createTree(t) {
|
|
355
360
|
const e = new D(t.length / this.stride | 0, this.options.nodeSize, Float32Array);
|
|
356
|
-
for (let
|
|
361
|
+
for (let n = 0; n < t.length; n += this.stride) e.add(t[n], t[n + 1]);
|
|
357
362
|
return e.finish(), e.data = t, e;
|
|
358
363
|
}
|
|
359
|
-
_addTileFeatures(t, e,
|
|
364
|
+
_addTileFeatures(t, e, n, o, i, a) {
|
|
360
365
|
for (const u of t) {
|
|
361
366
|
const s = u * this.stride, c = e[s + A] > 1;
|
|
362
367
|
let p, h, l;
|
|
363
368
|
if (c)
|
|
364
|
-
p =
|
|
369
|
+
p = nt(e, s, this.clusterProps), h = e[s], l = e[s + 1];
|
|
365
370
|
else {
|
|
366
371
|
const m = this.points[e[s + E]];
|
|
367
372
|
p = m.properties;
|
|
@@ -371,8 +376,8 @@ class gt {
|
|
|
371
376
|
const f = {
|
|
372
377
|
type: 1,
|
|
373
378
|
geometry: [[
|
|
374
|
-
Math.round(this.options.extent * (h *
|
|
375
|
-
Math.round(this.options.extent * (l *
|
|
379
|
+
Math.round(this.options.extent * (h * i - n)),
|
|
380
|
+
Math.round(this.options.extent * (l * i - o))
|
|
376
381
|
]],
|
|
377
382
|
tags: p
|
|
378
383
|
};
|
|
@@ -384,34 +389,34 @@ class gt {
|
|
|
384
389
|
return Math.max(this.options.minZoom, Math.min(Math.floor(+t), this.options.maxZoom + 1));
|
|
385
390
|
}
|
|
386
391
|
_cluster(t, e) {
|
|
387
|
-
const { radius:
|
|
392
|
+
const { radius: n, extent: o, reduce: i, minPoints: a } = this.options, u = n / (o * Math.pow(2, e)), s = t.data, c = [], p = this.stride;
|
|
388
393
|
for (let h = 0; h < s.length; h += p) {
|
|
389
|
-
if (s[h +
|
|
390
|
-
s[h +
|
|
394
|
+
if (s[h + T] <= e) continue;
|
|
395
|
+
s[h + T] = e;
|
|
391
396
|
const l = s[h], f = s[h + 1], g = t.within(s[h], s[h + 1], u), m = s[h + A];
|
|
392
397
|
let d = m;
|
|
393
398
|
for (const y of g) {
|
|
394
399
|
const M = y * p;
|
|
395
|
-
s[M +
|
|
400
|
+
s[M + T] > e && (d += s[M + A]);
|
|
396
401
|
}
|
|
397
402
|
if (d > m && d >= a) {
|
|
398
403
|
let y = l * m, M = f * m, _, N = -1;
|
|
399
404
|
const Z = ((h / p | 0) << 5) + (e + 1) + this.points.length;
|
|
400
405
|
for (const rt of g) {
|
|
401
406
|
const b = rt * p;
|
|
402
|
-
if (s[b +
|
|
403
|
-
s[b +
|
|
407
|
+
if (s[b + T] <= e) continue;
|
|
408
|
+
s[b + T] = e;
|
|
404
409
|
const $ = s[b + A];
|
|
405
|
-
y += s[b] * $, M += s[b + 1] * $, s[b + z] = Z,
|
|
410
|
+
y += s[b] * $, M += s[b + 1] * $, s[b + z] = Z, i && (_ || (_ = this._map(s, h, !0), N = this.clusterProps.length, this.clusterProps.push(_)), i(_, this._map(s, b)));
|
|
406
411
|
}
|
|
407
|
-
s[h + z] = Z, c.push(y / d, M / d, 1 / 0, Z, -1, d),
|
|
412
|
+
s[h + z] = Z, c.push(y / d, M / d, 1 / 0, Z, -1, d), i && c.push(N);
|
|
408
413
|
} else {
|
|
409
414
|
for (let y = 0; y < p; y++) c.push(s[h + y]);
|
|
410
415
|
if (d > 1)
|
|
411
416
|
for (const y of g) {
|
|
412
417
|
const M = y * p;
|
|
413
|
-
if (!(s[M +
|
|
414
|
-
s[M +
|
|
418
|
+
if (!(s[M + T] <= e)) {
|
|
419
|
+
s[M + T] = e;
|
|
415
420
|
for (let _ = 0; _ < p; _++) c.push(s[M + _]);
|
|
416
421
|
}
|
|
417
422
|
}
|
|
@@ -427,120 +432,120 @@ class gt {
|
|
|
427
432
|
_getOriginZoom(t) {
|
|
428
433
|
return (t - this.points.length) % 32;
|
|
429
434
|
}
|
|
430
|
-
_map(t, e,
|
|
435
|
+
_map(t, e, n) {
|
|
431
436
|
if (t[e + A] > 1) {
|
|
432
|
-
const a = this.clusterProps[t[e +
|
|
433
|
-
return
|
|
437
|
+
const a = this.clusterProps[t[e + et]];
|
|
438
|
+
return n ? Object.assign({}, a) : a;
|
|
434
439
|
}
|
|
435
|
-
const
|
|
436
|
-
return
|
|
440
|
+
const o = this.points[t[e + E]].properties, i = this.options.map(o);
|
|
441
|
+
return n && i === o ? Object.assign({}, i) : i;
|
|
437
442
|
}
|
|
438
443
|
}
|
|
439
|
-
function
|
|
444
|
+
function W(r, t, e) {
|
|
440
445
|
return {
|
|
441
446
|
type: "Feature",
|
|
442
|
-
id:
|
|
443
|
-
properties:
|
|
447
|
+
id: r[t + E],
|
|
448
|
+
properties: nt(r, t, e),
|
|
444
449
|
geometry: {
|
|
445
450
|
type: "Point",
|
|
446
|
-
coordinates: [
|
|
451
|
+
coordinates: [yt(r[t]), wt(r[t + 1])]
|
|
447
452
|
}
|
|
448
453
|
};
|
|
449
454
|
}
|
|
450
|
-
function
|
|
451
|
-
const
|
|
455
|
+
function nt(r, t, e) {
|
|
456
|
+
const n = r[t + A], o = n >= 1e4 ? `${Math.round(n / 1e3)}k` : n >= 1e3 ? `${Math.round(n / 100) / 10}k` : n, i = r[t + et], a = i === -1 ? {} : Object.assign({}, e[i]);
|
|
452
457
|
return Object.assign(a, {
|
|
453
458
|
cluster: !0,
|
|
454
|
-
cluster_id:
|
|
455
|
-
point_count:
|
|
456
|
-
point_count_abbreviated:
|
|
459
|
+
cluster_id: r[t + E],
|
|
460
|
+
point_count: n,
|
|
461
|
+
point_count_abbreviated: o
|
|
457
462
|
});
|
|
458
463
|
}
|
|
459
|
-
function I(
|
|
460
|
-
return
|
|
464
|
+
function I(r) {
|
|
465
|
+
return r / 360 + 0.5;
|
|
461
466
|
}
|
|
462
|
-
function B(
|
|
463
|
-
const t = Math.sin(
|
|
467
|
+
function B(r) {
|
|
468
|
+
const t = Math.sin(r * Math.PI / 180), e = 0.5 - 0.25 * Math.log((1 + t) / (1 - t)) / Math.PI;
|
|
464
469
|
return e < 0 ? 0 : e > 1 ? 1 : e;
|
|
465
470
|
}
|
|
466
|
-
function
|
|
467
|
-
return (
|
|
471
|
+
function yt(r) {
|
|
472
|
+
return (r - 0.5) * 360;
|
|
468
473
|
}
|
|
469
|
-
function
|
|
470
|
-
const t = (180 -
|
|
474
|
+
function wt(r) {
|
|
475
|
+
const t = (180 - r * 360) * Math.PI / 180;
|
|
471
476
|
return 360 * Math.atan(Math.exp(t)) / Math.PI - 90;
|
|
472
477
|
}
|
|
473
|
-
var
|
|
474
|
-
function
|
|
475
|
-
for (e of
|
|
476
|
-
if (
|
|
478
|
+
var Y = Object.prototype.hasOwnProperty;
|
|
479
|
+
function q(r, t, e) {
|
|
480
|
+
for (e of r.keys())
|
|
481
|
+
if (v(e, t)) return e;
|
|
477
482
|
}
|
|
478
|
-
function
|
|
479
|
-
var e,
|
|
480
|
-
if (
|
|
481
|
-
if (
|
|
482
|
-
if (e === Date) return
|
|
483
|
-
if (e === RegExp) return
|
|
483
|
+
function v(r, t) {
|
|
484
|
+
var e, n, o;
|
|
485
|
+
if (r === t) return !0;
|
|
486
|
+
if (r && t && (e = r.constructor) === t.constructor) {
|
|
487
|
+
if (e === Date) return r.getTime() === t.getTime();
|
|
488
|
+
if (e === RegExp) return r.toString() === t.toString();
|
|
484
489
|
if (e === Array) {
|
|
485
|
-
if ((
|
|
486
|
-
for (;
|
|
487
|
-
return
|
|
490
|
+
if ((n = r.length) === t.length)
|
|
491
|
+
for (; n-- && v(r[n], t[n]); ) ;
|
|
492
|
+
return n === -1;
|
|
488
493
|
}
|
|
489
494
|
if (e === Set) {
|
|
490
|
-
if (
|
|
495
|
+
if (r.size !== t.size)
|
|
491
496
|
return !1;
|
|
492
|
-
for (
|
|
493
|
-
if (
|
|
497
|
+
for (n of r)
|
|
498
|
+
if (o = n, o && typeof o == "object" && (o = q(t, o), !o) || !t.has(o)) return !1;
|
|
494
499
|
return !0;
|
|
495
500
|
}
|
|
496
501
|
if (e === Map) {
|
|
497
|
-
if (
|
|
502
|
+
if (r.size !== t.size)
|
|
498
503
|
return !1;
|
|
499
|
-
for (
|
|
500
|
-
if (
|
|
504
|
+
for (n of r)
|
|
505
|
+
if (o = n[0], o && typeof o == "object" && (o = q(t, o), !o) || !v(n[1], t.get(o)))
|
|
501
506
|
return !1;
|
|
502
507
|
return !0;
|
|
503
508
|
}
|
|
504
509
|
if (e === ArrayBuffer)
|
|
505
|
-
|
|
510
|
+
r = new Uint8Array(r), t = new Uint8Array(t);
|
|
506
511
|
else if (e === DataView) {
|
|
507
|
-
if ((
|
|
508
|
-
for (;
|
|
509
|
-
return
|
|
512
|
+
if ((n = r.byteLength) === t.byteLength)
|
|
513
|
+
for (; n-- && r.getInt8(n) === t.getInt8(n); ) ;
|
|
514
|
+
return n === -1;
|
|
510
515
|
}
|
|
511
|
-
if (ArrayBuffer.isView(
|
|
512
|
-
if ((
|
|
513
|
-
for (;
|
|
514
|
-
return
|
|
516
|
+
if (ArrayBuffer.isView(r)) {
|
|
517
|
+
if ((n = r.byteLength) === t.byteLength)
|
|
518
|
+
for (; n-- && r[n] === t[n]; ) ;
|
|
519
|
+
return n === -1;
|
|
515
520
|
}
|
|
516
|
-
if (!e || typeof
|
|
517
|
-
|
|
518
|
-
for (e in
|
|
519
|
-
if (
|
|
520
|
-
return Object.keys(t).length ===
|
|
521
|
+
if (!e || typeof r == "object") {
|
|
522
|
+
n = 0;
|
|
523
|
+
for (e in r)
|
|
524
|
+
if (Y.call(r, e) && ++n && !Y.call(t, e) || !(e in t) || !v(r[e], t[e])) return !1;
|
|
525
|
+
return Object.keys(t).length === n;
|
|
521
526
|
}
|
|
522
527
|
}
|
|
523
|
-
return
|
|
528
|
+
return r !== r && t !== t;
|
|
524
529
|
}
|
|
525
|
-
function
|
|
526
|
-
var t = F.useRef(
|
|
527
|
-
return
|
|
530
|
+
function Mt(r) {
|
|
531
|
+
var t = F.useRef(r), e = F.useRef(0);
|
|
532
|
+
return v(r, t.current) || (t.current = r, e.current += 1), F.useMemo(function() {
|
|
528
533
|
return t.current;
|
|
529
534
|
}, [e.current]);
|
|
530
535
|
}
|
|
531
|
-
function
|
|
532
|
-
return F.useEffect(
|
|
536
|
+
function xt(r, t) {
|
|
537
|
+
return F.useEffect(r, Mt(t));
|
|
533
538
|
}
|
|
534
|
-
var
|
|
535
|
-
var e = t.points,
|
|
536
|
-
return
|
|
537
|
-
a !== !0 && ((!u.current || !
|
|
538
|
-
}, [e,
|
|
539
|
+
var _t = function(t) {
|
|
540
|
+
var e = t.points, n = t.bounds, o = t.zoom, i = t.options, a = t.disableRefresh, u = G(), s = G(), c = Q([]), p = c[0], h = c[1], l = Math.round(o);
|
|
541
|
+
return xt(function() {
|
|
542
|
+
a !== !0 && ((!u.current || !v(s.current, e) || !v(u.current.options, i)) && (u.current = new mt(i), u.current.load(e)), n && h(u.current.getClusters(n, l)), s.current = e);
|
|
543
|
+
}, [e, n, l, i, a]), {
|
|
539
544
|
clusters: p,
|
|
540
545
|
supercluster: u.current
|
|
541
546
|
};
|
|
542
547
|
};
|
|
543
|
-
const
|
|
548
|
+
const zt = `
|
|
544
549
|
cursor-pointer
|
|
545
550
|
relative
|
|
546
551
|
h-7
|
|
@@ -550,7 +555,7 @@ const Ut = `
|
|
|
550
555
|
transition-transform
|
|
551
556
|
|
|
552
557
|
data-[is-cluster=true]:w-auto
|
|
553
|
-
`,
|
|
558
|
+
`, At = `
|
|
554
559
|
cursor-pointer
|
|
555
560
|
fill-primary-100
|
|
556
561
|
stroke-1
|
|
@@ -559,23 +564,23 @@ const Ut = `
|
|
|
559
564
|
transition-transform
|
|
560
565
|
group-hover:stroke-base-white
|
|
561
566
|
group-focus:stroke-base-white
|
|
562
|
-
`,
|
|
567
|
+
`, jt = `
|
|
563
568
|
absolute top-1 left-1/2 transform -translate-x-1/2
|
|
564
569
|
flex justify-center items-center rounded-full overflow-hidden
|
|
565
570
|
transition-all w-3.5 h-3.5
|
|
566
571
|
|
|
567
572
|
group-hover:bg-base-white
|
|
568
|
-
`,
|
|
573
|
+
`, Dt = `
|
|
569
574
|
m-auto transition-all w-full h-full
|
|
570
575
|
max-w-3.5 max-h-3.5
|
|
571
576
|
|
|
572
577
|
group-hover:text-primary-100
|
|
573
578
|
group-hover:max-w-2.5
|
|
574
579
|
group-hover:max-h-2.5
|
|
575
|
-
`,
|
|
576
|
-
const { mapProvider:
|
|
577
|
-
points:
|
|
578
|
-
bounds:
|
|
580
|
+
`, Et = w(() => import("./index-92HhWupr.js")), bt = w(() => import("./index-ChwN5abO.js")), Tt = w(() => import("./index-D5-2anzJ.js")), vt = ({ markers: r, onClick: t, ...e }) => {
|
|
581
|
+
const { mapProvider: n, bounds: o } = R(), { clusters: i, supercluster: a } = _t({
|
|
582
|
+
points: r.map((c) => dt([c.longitude, c.latitude], c)),
|
|
583
|
+
bounds: o,
|
|
579
584
|
zoom: 16,
|
|
580
585
|
options: { radius: 50, maxZoom: 30 }
|
|
581
586
|
}), u = (c) => {
|
|
@@ -598,73 +603,74 @@ const Ut = `
|
|
|
598
603
|
markers: [c.properties]
|
|
599
604
|
});
|
|
600
605
|
}, s = L(() => {
|
|
601
|
-
switch (
|
|
606
|
+
switch (n == null ? void 0 : n.name) {
|
|
602
607
|
case "maptiler":
|
|
603
|
-
return At;
|
|
604
|
-
case "google":
|
|
605
608
|
return Et;
|
|
606
|
-
case "
|
|
609
|
+
case "google":
|
|
607
610
|
return bt;
|
|
611
|
+
case "mapbox":
|
|
612
|
+
return Tt;
|
|
608
613
|
default:
|
|
609
614
|
return null;
|
|
610
615
|
}
|
|
611
|
-
}, [
|
|
612
|
-
return s ? /* @__PURE__ */ x(
|
|
616
|
+
}, [n]);
|
|
617
|
+
return s ? /* @__PURE__ */ x(st, { children: /* @__PURE__ */ x(s, { clusters: i, onClick: u, ...e, children: /* @__PURE__ */ x("svg", { viewBox: "0 0 20 28", fill: "none", className: At, children: /* @__PURE__ */ x(
|
|
613
618
|
"path",
|
|
614
619
|
{
|
|
615
620
|
d: "M20 10C20 15.5228 12 27.5 10 27.5C8 27.5 0 15.5228 0 10C0 4.47715 4.47715 0 10 0C15.5228 0 20 4.47715 20 10Z",
|
|
616
621
|
fill: "inherit"
|
|
617
622
|
}
|
|
618
623
|
) }) }) }) : null;
|
|
619
|
-
},
|
|
620
|
-
function
|
|
621
|
-
const { mapProvider: e } = R(),
|
|
624
|
+
}, Ot = w(() => import("./index-J1MKzGEM.js")), Pt = w(() => import("./index-BZ2605rA.js")), St = w(() => import("./index-B43MtiHH.js"));
|
|
625
|
+
function It({ children: r, ...t }) {
|
|
626
|
+
const { mapProvider: e } = R(), n = L(() => {
|
|
622
627
|
switch (e == null ? void 0 : e.name) {
|
|
623
628
|
case "maptiler":
|
|
624
|
-
return
|
|
629
|
+
return Ot;
|
|
625
630
|
case "google":
|
|
626
631
|
return Pt;
|
|
627
632
|
case "mapbox":
|
|
628
|
-
return
|
|
633
|
+
return St;
|
|
629
634
|
default:
|
|
630
635
|
return null;
|
|
631
636
|
}
|
|
632
637
|
}, [e]);
|
|
633
|
-
return
|
|
638
|
+
return n ? /* @__PURE__ */ x(n, { ...t, children: r }) : null;
|
|
634
639
|
}
|
|
635
|
-
const
|
|
636
|
-
function
|
|
640
|
+
const Bt = w(() => import("./index-CTk5bvm9.js")), Ft = w(() => import("./index-CPq7k7F4.js")), Lt = w(() => import("./index-DVitM43i.js"));
|
|
641
|
+
function Rt(r) {
|
|
637
642
|
const { mapProvider: t } = R(), e = L(() => {
|
|
638
643
|
switch (t == null ? void 0 : t.name) {
|
|
639
644
|
case "maptiler":
|
|
640
|
-
return It;
|
|
641
|
-
case "google":
|
|
642
645
|
return Bt;
|
|
643
|
-
case "
|
|
646
|
+
case "google":
|
|
644
647
|
return Ft;
|
|
648
|
+
case "mapbox":
|
|
649
|
+
return Lt;
|
|
645
650
|
default:
|
|
646
651
|
return null;
|
|
647
652
|
}
|
|
648
653
|
}, [t]);
|
|
649
|
-
return e ? /* @__PURE__ */ x(e, { ...
|
|
654
|
+
return e ? /* @__PURE__ */ x(e, { ...r }) : null;
|
|
650
655
|
}
|
|
651
|
-
function
|
|
656
|
+
function Zt(r) {
|
|
652
657
|
const [t, e] = Q();
|
|
653
|
-
return /* @__PURE__ */ x(
|
|
658
|
+
return /* @__PURE__ */ x(X.Provider, { value: { ...r, bounds: t, setBounds: e }, children: r.children });
|
|
654
659
|
}
|
|
655
|
-
const
|
|
660
|
+
const Nt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
656
661
|
__proto__: null,
|
|
657
|
-
BaseMap:
|
|
658
|
-
Layers:
|
|
662
|
+
BaseMap: lt,
|
|
663
|
+
Layers: Rt,
|
|
659
664
|
Markers: vt,
|
|
660
|
-
Popup:
|
|
661
|
-
Root:
|
|
665
|
+
Popup: It,
|
|
666
|
+
Root: Zt
|
|
662
667
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
663
668
|
export {
|
|
664
|
-
|
|
669
|
+
V as a,
|
|
665
670
|
Dt as b,
|
|
666
|
-
|
|
671
|
+
zt as c,
|
|
667
672
|
S as d,
|
|
668
|
-
|
|
673
|
+
Nt as e,
|
|
674
|
+
jt as i,
|
|
669
675
|
R as u
|
|
670
676
|
};
|