@carto/ps-react-maps 4.0.3 → 4.1.0
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.js +77 -73
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import { c as F } from "react/compiler-runtime";
|
|
|
3
3
|
import { useImperativeHandle as Ne, useEffect as Q, useState as ae, createContext as He, useContext as ze, useMemo as ye, useCallback as ee, useRef as Le } from "react";
|
|
4
4
|
import { MapProvider as xt, Map as Ut, useMap as Vt } from "react-map-gl/maplibre";
|
|
5
5
|
import Bt from "@deck.gl/react";
|
|
6
|
-
import { useMap as yt, Map as
|
|
6
|
+
import { useMap as yt, Map as It, APIProvider as jt } from "@vis.gl/react-google-maps";
|
|
7
7
|
import { GoogleMapsOverlay as Nt } from "@deck.gl/google-maps";
|
|
8
8
|
import { createStore as Ge, useStore as Ke, create as ht } from "zustand";
|
|
9
9
|
import { FlyToInterpolator as Ht, WebMercatorViewport as gt } from "@deck.gl/core";
|
|
@@ -230,13 +230,13 @@ function Fs(r) {
|
|
|
230
230
|
}
|
|
231
231
|
});
|
|
232
232
|
}, e[26] = o, e[27] = l, e[28] = P) : P = e[28];
|
|
233
|
-
const A = P,
|
|
233
|
+
const A = P, j = y.initialViewState?.latitude ?? 0, R = y.initialViewState?.longitude ?? 0;
|
|
234
234
|
let q;
|
|
235
|
-
e[29] !==
|
|
236
|
-
lat:
|
|
235
|
+
e[29] !== j || e[30] !== R ? (q = {
|
|
236
|
+
lat: j,
|
|
237
237
|
lng: R
|
|
238
|
-
}, e[29] =
|
|
239
|
-
const
|
|
238
|
+
}, e[29] = j, e[30] = R, e[31] = q) : q = e[31];
|
|
239
|
+
const I = (y.initialViewState?.zoom ?? 0) + 1, D = y.initialViewState?.pitch, T = y.initialViewState?.bearing;
|
|
240
240
|
let O;
|
|
241
241
|
e[32] !== A || e[33] !== a || e[34] !== y.initialViewState ? (O = () => {
|
|
242
242
|
a({
|
|
@@ -264,12 +264,12 @@ function Fs(r) {
|
|
|
264
264
|
let N;
|
|
265
265
|
e[46] !== _ || e[47] !== n || e[48] !== o || e[49] !== y || e[50] !== V || e[51] !== B ? (N = /* @__PURE__ */ K(Os, { id: n, instanceRef: o, layers: _, onLoad: V, parameters: B, ...y }), e[46] = _, e[47] = n, e[48] = o, e[49] = y, e[50] = V, e[51] = B, e[52] = N) : N = e[52];
|
|
266
266
|
let U;
|
|
267
|
-
e[53] !== m || e[54] !== t || e[55] !== n || e[56] !== D || e[57] !== T || e[58] !== O || e[59] !== d || e[60] !== S || e[61] !== L || e[62] !== C || e[63] !== k || e[64] !== E || e[65] !== N || e[66] !== q || e[67] !==
|
|
267
|
+
e[53] !== m || e[54] !== t || e[55] !== n || e[56] !== D || e[57] !== T || e[58] !== O || e[59] !== d || e[60] !== S || e[61] !== L || e[62] !== C || e[63] !== k || e[64] !== E || e[65] !== N || e[66] !== q || e[67] !== I ? (U = /* @__PURE__ */ K("div", { className: "deckgl-map", children: /* @__PURE__ */ mt(It, { id: n, mapTypeId: t, disableDefaultUI: !0, ...m, center: q, zoom: I, tilt: D, heading: T, onTilesLoaded: O, onBoundsChanged: d, onZoomChanged: S, scrollwheel: L, gestureHandling: C, disableDoubleClickZoom: k, children: [
|
|
268
268
|
E,
|
|
269
269
|
N
|
|
270
|
-
] }) }), e[53] = m, e[54] = t, e[55] = n, e[56] = D, e[57] = T, e[58] = O, e[59] = d, e[60] = S, e[61] = L, e[62] = C, e[63] = k, e[64] = E, e[65] = N, e[66] = q, e[67] =
|
|
270
|
+
] }) }), e[53] = m, e[54] = t, e[55] = n, e[56] = D, e[57] = T, e[58] = O, e[59] = d, e[60] = S, e[61] = L, e[62] = C, e[63] = k, e[64] = E, e[65] = N, e[66] = q, e[67] = I, e[68] = U) : U = e[68];
|
|
271
271
|
let z;
|
|
272
|
-
return e[69] !== b || e[70] !== w || e[71] !== U ? (z = /* @__PURE__ */ K(
|
|
272
|
+
return e[69] !== b || e[70] !== w || e[71] !== U ? (z = /* @__PURE__ */ K(jt, { apiKey: w, ...b, children: U }), e[69] = b, e[70] = w, e[71] = U, e[72] = z) : z = e[72], z;
|
|
273
273
|
}
|
|
274
274
|
function As(r) {
|
|
275
275
|
const {
|
|
@@ -329,14 +329,14 @@ function qs(r) {
|
|
|
329
329
|
const f = u, v = y === void 0 ? Ms : y, _ = g === void 0 ? Es : g, M = p === void 0 ? Us : p;
|
|
330
330
|
let P;
|
|
331
331
|
e[15] === Symbol.for("react.memo_cache_sentinel") ? (P = [!1, !1], e[15] = P) : P = e[15];
|
|
332
|
-
const [A,
|
|
332
|
+
const [A, j] = ae(P), {
|
|
333
333
|
url: R,
|
|
334
334
|
type: q
|
|
335
|
-
} = ve[b],
|
|
335
|
+
} = ve[b], I = q === ie.googleMaps;
|
|
336
336
|
let D;
|
|
337
337
|
e[16] === Symbol.for("react.memo_cache_sentinel") ? (D = (k) => {
|
|
338
338
|
const E = k.type === "deckgl" ? 0 : 1;
|
|
339
|
-
|
|
339
|
+
j((V) => V.map((B, N) => N === E ? k.value : B));
|
|
340
340
|
}, e[16] = D) : D = e[16];
|
|
341
341
|
const T = D;
|
|
342
342
|
let O, d;
|
|
@@ -353,7 +353,7 @@ function qs(r) {
|
|
|
353
353
|
if (e[19] !== A || e[20] !== n ? (S = () => {
|
|
354
354
|
const k = A.every(xs);
|
|
355
355
|
n?.(k);
|
|
356
|
-
}, L = [A, n], e[19] = A, e[20] = n, e[21] = S, e[22] = L) : (S = e[21], L = e[22]), Q(S, L),
|
|
356
|
+
}, L = [A, n], e[19] = A, e[20] = n, e[21] = S, e[22] = L) : (S = e[21], L = e[22]), Q(S, L), I) {
|
|
357
357
|
let k;
|
|
358
358
|
return e[23] !== b || e[24] !== m || e[25] !== v || e[26] !== _ || e[27] !== t || e[28] !== w || e[29] !== s || e[30] !== f || e[31] !== M || e[32] !== o || e[33] !== i ? (k = /* @__PURE__ */ K(Fs, { instanceRef: s, overlayRef: o, controller: m, id: w, basemap: b, layers: f, gmapsProps: t, getCursor: v, getTooltip: _, onLoad: T, onViewStateChange: M, ...i }), e[23] = b, e[24] = m, e[25] = v, e[26] = _, e[27] = t, e[28] = w, e[29] = s, e[30] = f, e[31] = M, e[32] = o, e[33] = i, e[34] = k) : k = e[34], k;
|
|
359
359
|
}
|
|
@@ -452,8 +452,8 @@ function Bs() {
|
|
|
452
452
|
var w = m;
|
|
453
453
|
return qe = w, qe;
|
|
454
454
|
}
|
|
455
|
-
var
|
|
456
|
-
const de = /* @__PURE__ */ Et(
|
|
455
|
+
var Is = Bs();
|
|
456
|
+
const de = /* @__PURE__ */ Et(Is), js = (r) => {
|
|
457
457
|
const e = r.reduce((t, s) => {
|
|
458
458
|
const {
|
|
459
459
|
id: n,
|
|
@@ -514,13 +514,17 @@ const de = /* @__PURE__ */ Et(js), Is = (r) => {
|
|
|
514
514
|
getBounds: (n, o, i) => {
|
|
515
515
|
const a = s();
|
|
516
516
|
if (!a.maps?.[n]?.isLoaded) return;
|
|
517
|
-
const l = a.getViewState(n);
|
|
518
|
-
if (!l) return;
|
|
519
|
-
const h = new gt(
|
|
517
|
+
const l = a.getViewState(n), c = a.getDeckInstance(n);
|
|
518
|
+
if (!l || !c?.height || !c?.width) return;
|
|
519
|
+
const h = l?.height ?? c?.height, y = l?.width ?? c?.width, p = new gt({
|
|
520
|
+
...l,
|
|
521
|
+
height: h,
|
|
522
|
+
width: y
|
|
523
|
+
}).fitBounds(o, i?.boundsOptions);
|
|
520
524
|
return {
|
|
521
|
-
latitude:
|
|
522
|
-
longitude:
|
|
523
|
-
zoom:
|
|
525
|
+
latitude: p.latitude,
|
|
526
|
+
longitude: p.longitude,
|
|
527
|
+
zoom: p.zoom,
|
|
524
528
|
...i?.viewStateOptions
|
|
525
529
|
};
|
|
526
530
|
},
|
|
@@ -694,7 +698,7 @@ const de = /* @__PURE__ */ Et(js), Is = (r) => {
|
|
|
694
698
|
}
|
|
695
699
|
}));
|
|
696
700
|
}, Ks = (r) => Ge()((...e) => ({
|
|
697
|
-
...
|
|
701
|
+
...js(r)(...e),
|
|
698
702
|
...Ns(r)(...e),
|
|
699
703
|
...Hs(r)(...e),
|
|
700
704
|
...Gs(r)(...e),
|
|
@@ -1200,7 +1204,7 @@ function Oe({
|
|
|
1200
1204
|
},
|
|
1201
1205
|
dimension: i = "length"
|
|
1202
1206
|
}) {
|
|
1203
|
-
const a = e ===
|
|
1207
|
+
const a = e === je["m-km"], l = e === je["ft-mi"], c = a || l;
|
|
1204
1208
|
let h, y;
|
|
1205
1209
|
if (c) {
|
|
1206
1210
|
const p = r < (s ?? rt);
|
|
@@ -1553,7 +1557,7 @@ const ce = "mapMeasureLayer", pn = {
|
|
|
1553
1557
|
squareKilometer: "squareKilometer",
|
|
1554
1558
|
squareMile: "squareMile",
|
|
1555
1559
|
squareFeet: "squareFeet"
|
|
1556
|
-
},
|
|
1560
|
+
}, je = {
|
|
1557
1561
|
"m-km": "m-km",
|
|
1558
1562
|
"ft-mi": "ft-mi",
|
|
1559
1563
|
...H
|
|
@@ -1670,7 +1674,7 @@ function vn({
|
|
|
1670
1674
|
properties: T.properties,
|
|
1671
1675
|
id: T.id
|
|
1672
1676
|
}))
|
|
1673
|
-
}), [f]), _ = ye(() => f.filter((T) => T.properties.visible).map((T) => T.id), [f]), [M, P] = ae(v), [A,
|
|
1677
|
+
}), [f]), _ = ye(() => f.filter((T) => T.properties.visible).map((T) => T.id), [f]), [M, P] = ae(v), [A, j] = ae([]), R = ee(() => {
|
|
1674
1678
|
const T = {
|
|
1675
1679
|
...v,
|
|
1676
1680
|
features: v.features.filter((O) => O.properties?.visible)
|
|
@@ -1684,14 +1688,14 @@ function vn({
|
|
|
1684
1688
|
Q(() => (p(e, [me]), () => {
|
|
1685
1689
|
b(e, [me]);
|
|
1686
1690
|
}), [p, e, b]);
|
|
1687
|
-
const
|
|
1688
|
-
R(),
|
|
1691
|
+
const I = ee(() => {
|
|
1692
|
+
R(), j([]), a(e, !1);
|
|
1689
1693
|
}, [e, R, a]), D = ee(({
|
|
1690
1694
|
editType: T,
|
|
1691
1695
|
updatedData: O
|
|
1692
1696
|
}) => {
|
|
1693
1697
|
if (T === te.cancel) {
|
|
1694
|
-
|
|
1698
|
+
I();
|
|
1695
1699
|
return;
|
|
1696
1700
|
}
|
|
1697
1701
|
P(O), T !== te.updateTentativeFeature && T === te.addFeature && (y !== "edit" && (q.current = q.current + 1), O.features.forEach((d, S) => {
|
|
@@ -1703,8 +1707,8 @@ function vn({
|
|
|
1703
1707
|
// visible: true,
|
|
1704
1708
|
type: o
|
|
1705
1709
|
});
|
|
1706
|
-
}),
|
|
1707
|
-
}, [o,
|
|
1710
|
+
}), I());
|
|
1711
|
+
}, [o, I, s?.mask, e, y, c]);
|
|
1708
1712
|
return Q(() => {
|
|
1709
1713
|
const T = i, {
|
|
1710
1714
|
border: O,
|
|
@@ -1724,7 +1728,7 @@ function vn({
|
|
|
1724
1728
|
},
|
|
1725
1729
|
onClick: (E) => {
|
|
1726
1730
|
const V = E;
|
|
1727
|
-
V.isGuide ||
|
|
1731
|
+
V.isGuide || j([V.index]);
|
|
1728
1732
|
}
|
|
1729
1733
|
},
|
|
1730
1734
|
getLineColor: (E) => A[0] === E.properties.index ? O : L,
|
|
@@ -1854,7 +1858,7 @@ const _n = (r) => Ge()((e) => ({
|
|
|
1854
1858
|
locale: y = "en",
|
|
1855
1859
|
positions: g = [],
|
|
1856
1860
|
clearLayerOnStart: p = !1,
|
|
1857
|
-
unit: b =
|
|
1861
|
+
unit: b = je["m-km"],
|
|
1858
1862
|
enabled: m = !1
|
|
1859
1863
|
} = n;
|
|
1860
1864
|
return s[o] = {
|
|
@@ -2010,12 +2014,12 @@ function Dt(r) {
|
|
|
2010
2014
|
f(!!$), M(t, $);
|
|
2011
2015
|
}, e[18] = M, e[19] = t, e[20] = f, e[21] = P) : P = e[21];
|
|
2012
2016
|
const A = P;
|
|
2013
|
-
let I;
|
|
2014
|
-
e[22] !== t ? (I = ($) => $.measurements[t].finished, e[22] = t, e[23] = I) : I = e[23];
|
|
2015
|
-
const R = G(I), q = G(kn);
|
|
2016
2017
|
let j;
|
|
2017
|
-
e[
|
|
2018
|
-
const
|
|
2018
|
+
e[22] !== t ? (j = ($) => $.measurements[t].finished, e[22] = t, e[23] = j) : j = e[23];
|
|
2019
|
+
const R = G(j), q = G(kn);
|
|
2020
|
+
let I;
|
|
2021
|
+
e[24] !== q || e[25] !== t ? (I = ($) => q(t, $), e[24] = q, e[25] = t, e[26] = I) : I = e[26];
|
|
2022
|
+
const D = I;
|
|
2019
2023
|
let T;
|
|
2020
2024
|
e[27] !== t ? (T = ($) => $.measurements[t].locale, e[27] = t, e[28] = T) : T = e[28];
|
|
2021
2025
|
const O = G(T), d = G(Pn);
|
|
@@ -2128,12 +2132,12 @@ function An(r) {
|
|
|
2128
2132
|
positions: M,
|
|
2129
2133
|
setPositions: P,
|
|
2130
2134
|
unit: A,
|
|
2131
|
-
setUnit:
|
|
2135
|
+
setUnit: j,
|
|
2132
2136
|
clearLayer: R,
|
|
2133
2137
|
toggleLayer: q
|
|
2134
2138
|
} = Dt(o);
|
|
2135
|
-
let
|
|
2136
|
-
e[2] !== y || e[3] !== i || e[4] !== _ || e[5] !== P ? (
|
|
2139
|
+
let I;
|
|
2140
|
+
e[2] !== y || e[3] !== i || e[4] !== _ || e[5] !== P ? (I = () => {
|
|
2137
2141
|
if (y && i[y]) {
|
|
2138
2142
|
const L = i[y].mode;
|
|
2139
2143
|
_(new L());
|
|
@@ -2141,16 +2145,16 @@ function An(r) {
|
|
|
2141
2145
|
return () => {
|
|
2142
2146
|
P([]);
|
|
2143
2147
|
};
|
|
2144
|
-
}, e[2] = y, e[3] = i, e[4] = _, e[5] = P, e[6] =
|
|
2148
|
+
}, e[2] = y, e[3] = i, e[4] = _, e[5] = P, e[6] = I) : I = e[6];
|
|
2145
2149
|
let D;
|
|
2146
|
-
e[7] !== y || e[8] !== i || e[9] !== b || e[10] !== _ || e[11] !== P ? (D = [i, y, P, _, b], e[7] = y, e[8] = i, e[9] = b, e[10] = _, e[11] = P, e[12] = D) : D = e[12], Q(
|
|
2150
|
+
e[7] !== y || e[8] !== i || e[9] !== b || e[10] !== _ || e[11] !== P ? (D = [i, y, P, _, b], e[7] = y, e[8] = i, e[9] = b, e[10] = _, e[11] = P, e[12] = D) : D = e[12], Q(I, D);
|
|
2147
2151
|
let T;
|
|
2148
2152
|
e[13] !== q || e[14] !== R || e[15] !== h || e[16] !== m ? (T = (L) => {
|
|
2149
2153
|
L && (h || !m) && R(), q(L);
|
|
2150
2154
|
}, e[13] = q, e[14] = R, e[15] = h, e[16] = m, e[17] = T) : T = e[17];
|
|
2151
2155
|
const O = T, d = !!h;
|
|
2152
2156
|
let S;
|
|
2153
|
-
return e[18] !== n || e[19] !== R || e[20] !== l || e[21] !== p || e[22] !== m || e[23] !== u || e[24] !== t || e[25] !== v || e[26] !== y || e[27] !== i || e[28] !== M || e[29] !== c || e[30] !== b || e[31] !== w || e[32] !== f || e[33] !== g || e[34] !== P || e[35] !==
|
|
2157
|
+
return e[18] !== n || e[19] !== R || e[20] !== l || e[21] !== p || e[22] !== m || e[23] !== u || e[24] !== t || e[25] !== v || e[26] !== y || e[27] !== i || e[28] !== M || e[29] !== c || e[30] !== b || e[31] !== w || e[32] !== f || e[33] !== g || e[34] !== P || e[35] !== j || e[36] !== d || e[37] !== s || e[38] !== O || e[39] !== A || e[40] !== a ? (S = n({
|
|
2154
2158
|
mapId: t,
|
|
2155
2159
|
distance: l,
|
|
2156
2160
|
enabled: p,
|
|
@@ -2174,11 +2178,11 @@ function An(r) {
|
|
|
2174
2178
|
setFinished: w,
|
|
2175
2179
|
setLocale: f,
|
|
2176
2180
|
setPositions: P,
|
|
2177
|
-
setUnit:
|
|
2181
|
+
setUnit: j,
|
|
2178
2182
|
setEnabled: b,
|
|
2179
2183
|
toggleLayer: O,
|
|
2180
2184
|
clearLayer: R
|
|
2181
|
-
}), e[18] = n, e[19] = R, e[20] = l, e[21] = p, e[22] = m, e[23] = u, e[24] = t, e[25] = v, e[26] = y, e[27] = i, e[28] = M, e[29] = c, e[30] = b, e[31] = w, e[32] = f, e[33] = g, e[34] = P, e[35] =
|
|
2185
|
+
}), e[18] = n, e[19] = R, e[20] = l, e[21] = p, e[22] = m, e[23] = u, e[24] = t, e[25] = v, e[26] = y, e[27] = i, e[28] = M, e[29] = c, e[30] = b, e[31] = w, e[32] = f, e[33] = g, e[34] = P, e[35] = j, e[36] = d, e[37] = s, e[38] = O, e[39] = A, e[40] = a, e[41] = S) : S = e[41], S;
|
|
2182
2186
|
}
|
|
2183
2187
|
const Rn = [ce];
|
|
2184
2188
|
function Dn(r) {
|
|
@@ -2211,12 +2215,12 @@ function Dn(r) {
|
|
|
2211
2215
|
unit: f,
|
|
2212
2216
|
modeInstance: v
|
|
2213
2217
|
} = Dt(h), _ = ge(Bn), M = x(Vn), P = x(Un), A = x(xn);
|
|
2214
|
-
let I;
|
|
2215
|
-
e[4] !== s ? (I = (B) => B.maps[s]?.layers.filter(qn), e[4] = s, e[5] = I) : I = e[5];
|
|
2216
|
-
const R = x(vt(I)), q = x($n);
|
|
2217
2218
|
let j;
|
|
2218
|
-
e[
|
|
2219
|
-
const
|
|
2219
|
+
e[4] !== s ? (j = (B) => B.maps[s]?.layers.filter(qn), e[4] = s, e[5] = j) : j = e[5];
|
|
2220
|
+
const R = x(vt(j)), q = x($n);
|
|
2221
|
+
let I;
|
|
2222
|
+
e[6] === Symbol.for("react.memo_cache_sentinel") ? (I = {}, e[6] = I) : I = e[6];
|
|
2223
|
+
const D = Le(I);
|
|
2220
2224
|
let T;
|
|
2221
2225
|
e[7] !== s ? (T = {
|
|
2222
2226
|
mapId: s,
|
|
@@ -2301,7 +2305,7 @@ function Bn(r) {
|
|
|
2301
2305
|
return r.setLayer;
|
|
2302
2306
|
}
|
|
2303
2307
|
Dn.Controls = An;
|
|
2304
|
-
function
|
|
2308
|
+
function In(r) {
|
|
2305
2309
|
const e = F(7), {
|
|
2306
2310
|
mapId: t
|
|
2307
2311
|
} = r;
|
|
@@ -2313,12 +2317,12 @@ function jn(r) {
|
|
|
2313
2317
|
let i;
|
|
2314
2318
|
if (e[2] !== o || e[3] !== n) {
|
|
2315
2319
|
let l;
|
|
2316
|
-
e[5] !== o ? (l = (c) => o[c], e[5] = o, e[6] = l) : l = e[6], i = n.map(l).filter(
|
|
2320
|
+
e[5] !== o ? (l = (c) => o[c], e[5] = o, e[6] = l) : l = e[6], i = n.map(l).filter(jn), e[2] = o, e[3] = n, e[4] = i;
|
|
2317
2321
|
} else
|
|
2318
2322
|
i = e[4];
|
|
2319
2323
|
return i;
|
|
2320
2324
|
}
|
|
2321
|
-
function
|
|
2325
|
+
function jn(r) {
|
|
2322
2326
|
return !!r;
|
|
2323
2327
|
}
|
|
2324
2328
|
function Nn(r) {
|
|
@@ -2358,10 +2362,10 @@ function go(r) {
|
|
|
2358
2362
|
e[15] !== t ? (P = {
|
|
2359
2363
|
mapId: t
|
|
2360
2364
|
}, e[15] = t, e[16] = P) : P = e[16];
|
|
2361
|
-
const A =
|
|
2362
|
-
let
|
|
2363
|
-
e[17] !== A ? (
|
|
2364
|
-
const R =
|
|
2365
|
+
const A = In(P);
|
|
2366
|
+
let j;
|
|
2367
|
+
e[17] !== A ? (j = $t(A), e[17] = A, e[18] = j) : j = e[18];
|
|
2368
|
+
const R = j;
|
|
2365
2369
|
let q;
|
|
2366
2370
|
e[19] !== t || e[20] !== n || e[21] !== f || e[22] !== M ? (q = (E) => {
|
|
2367
2371
|
const V = f;
|
|
@@ -2373,7 +2377,7 @@ function go(r) {
|
|
|
2373
2377
|
}
|
|
2374
2378
|
V(t, E.viewState);
|
|
2375
2379
|
}, e[19] = t, e[20] = n, e[21] = f, e[22] = M, e[23] = q) : q = e[23];
|
|
2376
|
-
const
|
|
2380
|
+
const I = q;
|
|
2377
2381
|
let D;
|
|
2378
2382
|
e[24] !== t || e[25] !== s || e[26] !== v || e[27] !== M ? (D = (E) => {
|
|
2379
2383
|
v(t, E), s?.(E), M(t);
|
|
@@ -2392,7 +2396,7 @@ function go(r) {
|
|
|
2392
2396
|
}, e[34] = S, e[35] = t, e[36] = M, e[37] = L) : L = e[37];
|
|
2393
2397
|
const C = L;
|
|
2394
2398
|
let k;
|
|
2395
|
-
return e[38] !== a || e[39] !== R || e[40] !== w || e[41] !== d || e[42] !== C || e[43] !== T || e[44] !==
|
|
2399
|
+
return e[38] !== a || e[39] !== R || e[40] !== w || e[41] !== d || e[42] !== C || e[43] !== T || e[44] !== I || e[45] !== t || e[46] !== c || e[47] !== y || e[48] !== o || e[49] !== b ? (k = /* @__PURE__ */ K(qs, { ...o, controller: w, id: t, layers: R, instanceRef: c, overlayRef: y, basemap: a, initialViewState: b, onLoad: T, onViewStateChange: I, onAfterRender: d, onDragEnd: C }), e[38] = a, e[39] = R, e[40] = w, e[41] = d, e[42] = C, e[43] = T, e[44] = I, e[45] = t, e[46] = c, e[47] = y, e[48] = o, e[49] = b, e[50] = k) : k = e[50], k;
|
|
2396
2400
|
}
|
|
2397
2401
|
function zn(r) {
|
|
2398
2402
|
return r?.isLoaded;
|
|
@@ -2596,7 +2600,7 @@ function Yn() {
|
|
|
2596
2600
|
}, this;
|
|
2597
2601
|
}
|
|
2598
2602
|
var A = ["CONNECT", "DELETE", "GET", "HEAD", "OPTIONS", "PATCH", "POST", "PUT", "TRACE"];
|
|
2599
|
-
function
|
|
2603
|
+
function j(d) {
|
|
2600
2604
|
var S = d.toUpperCase();
|
|
2601
2605
|
return A.indexOf(S) > -1 ? S : d;
|
|
2602
2606
|
}
|
|
@@ -2611,7 +2615,7 @@ function Yn() {
|
|
|
2611
2615
|
this.url = d.url, this.credentials = d.credentials, S.headers || (this.headers = new m(d.headers)), this.method = d.method, this.mode = d.mode, this.signal = d.signal, !L && d._bodyInit != null && (L = d._bodyInit, d.bodyUsed = !0);
|
|
2612
2616
|
} else
|
|
2613
2617
|
this.url = String(d);
|
|
2614
|
-
if (this.credentials = S.credentials || this.credentials || "same-origin", (S.headers || !this.headers) && (this.headers = new m(S.headers)), this.method =
|
|
2618
|
+
if (this.credentials = S.credentials || this.credentials || "same-origin", (S.headers || !this.headers) && (this.headers = new m(S.headers)), this.method = j(S.method || this.method || "GET"), this.mode = S.mode || this.mode || null, this.signal = S.signal || this.signal || (function() {
|
|
2615
2619
|
if ("AbortController" in a) {
|
|
2616
2620
|
var E = new AbortController();
|
|
2617
2621
|
return E.signal;
|
|
@@ -2640,7 +2644,7 @@ function Yn() {
|
|
|
2640
2644
|
}
|
|
2641
2645
|
}), S;
|
|
2642
2646
|
}
|
|
2643
|
-
function
|
|
2647
|
+
function I(d) {
|
|
2644
2648
|
var S = new m(), L = d.replace(/\r?\n[\t ]+/g, " ");
|
|
2645
2649
|
return L.split("\r").map(function(C) {
|
|
2646
2650
|
return C.indexOf(`
|
|
@@ -2703,7 +2707,7 @@ function Yn() {
|
|
|
2703
2707
|
E.onload = function() {
|
|
2704
2708
|
var U = {
|
|
2705
2709
|
statusText: E.statusText,
|
|
2706
|
-
headers:
|
|
2710
|
+
headers: I(E.getAllResponseHeaders() || "")
|
|
2707
2711
|
};
|
|
2708
2712
|
k.url.indexOf("file://") === 0 && (E.status < 200 || E.status > 599) ? U.status = 200 : U.status = E.status, U.url = "responseURL" in E ? E.responseURL : U.headers.get("X-Request-URL");
|
|
2709
2713
|
var z = "response" in E ? E.response : E.responseText;
|
|
@@ -2856,7 +2860,7 @@ function ft(r) {
|
|
|
2856
2860
|
}
|
|
2857
2861
|
}, r);
|
|
2858
2862
|
}
|
|
2859
|
-
function
|
|
2863
|
+
function Ie(r, e) {
|
|
2860
2864
|
return We({
|
|
2861
2865
|
method: he.post,
|
|
2862
2866
|
headers: {
|
|
@@ -2868,9 +2872,9 @@ function je(r, e) {
|
|
|
2868
2872
|
}
|
|
2869
2873
|
const ir = {
|
|
2870
2874
|
GET: ft,
|
|
2871
|
-
POST:
|
|
2872
|
-
PUT:
|
|
2873
|
-
PATCH:
|
|
2875
|
+
POST: Ie,
|
|
2876
|
+
PUT: Ie,
|
|
2877
|
+
PATCH: Ie,
|
|
2874
2878
|
DELETE: ft
|
|
2875
2879
|
};
|
|
2876
2880
|
function ar({
|
|
@@ -3969,7 +3973,7 @@ function Vr(r) {
|
|
|
3969
3973
|
function Br(r) {
|
|
3970
3974
|
return r.setZoom;
|
|
3971
3975
|
}
|
|
3972
|
-
async function
|
|
3976
|
+
async function Ir({
|
|
3973
3977
|
baseUrl: r = Ze,
|
|
3974
3978
|
connection: e,
|
|
3975
3979
|
accessToken: t,
|
|
@@ -3997,7 +4001,7 @@ async function jr({
|
|
|
3997
4001
|
...i
|
|
3998
4002
|
});
|
|
3999
4003
|
}
|
|
4000
|
-
async function
|
|
4004
|
+
async function jr({
|
|
4001
4005
|
baseUrl: r = Ze,
|
|
4002
4006
|
connection: e,
|
|
4003
4007
|
accessToken: t,
|
|
@@ -4071,7 +4075,7 @@ function Nr({
|
|
|
4071
4075
|
fetcherOptions: n
|
|
4072
4076
|
}) {
|
|
4073
4077
|
if (r.type.startsWith("query"))
|
|
4074
|
-
return
|
|
4078
|
+
return Ir({
|
|
4075
4079
|
connection: r.connectionName,
|
|
4076
4080
|
baseUrl: r.apiBaseUrl,
|
|
4077
4081
|
apiVersion: r.apiVersion,
|
|
@@ -4083,7 +4087,7 @@ function Nr({
|
|
|
4083
4087
|
fetcherOptions: n
|
|
4084
4088
|
});
|
|
4085
4089
|
if (r.type.startsWith("table"))
|
|
4086
|
-
return
|
|
4090
|
+
return jr({
|
|
4087
4091
|
connection: r.connectionName,
|
|
4088
4092
|
baseUrl: r.apiBaseUrl,
|
|
4089
4093
|
apiVersion: r.apiVersion,
|
|
@@ -4158,7 +4162,7 @@ export {
|
|
|
4158
4162
|
lt as MEASUREMENT_TOOLS_UNITS_DISTANCE,
|
|
4159
4163
|
X as MEASUREMENT_TOOLS_UNITS_DISTANCE_VALUES,
|
|
4160
4164
|
go as MapComponent,
|
|
4161
|
-
|
|
4165
|
+
je as MapMeasurementUnitAuto,
|
|
4162
4166
|
mn as MapMeasurementUnitTurf,
|
|
4163
4167
|
Zs as MapProvider,
|
|
4164
4168
|
Co as MapsProvider,
|
|
@@ -4196,7 +4200,7 @@ export {
|
|
|
4196
4200
|
Pr as useLassoToolsSpatialFilter,
|
|
4197
4201
|
Z as useLassoToolsState,
|
|
4198
4202
|
ge as useLayerStore,
|
|
4199
|
-
|
|
4203
|
+
In as useLayers,
|
|
4200
4204
|
Oo as useLegend,
|
|
4201
4205
|
Fo as useMapScreenshot,
|
|
4202
4206
|
x as useMapStore,
|