@carto/ps-react-maps 4.7.2 → 4.7.3
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 +105 -105
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3,16 +3,16 @@ import { c as F } from "react/compiler-runtime";
|
|
|
3
3
|
import { useImperativeHandle as WA, useEffect as K, useState as cA, createContext as KA, useContext as $A, useRef as TA, useMemo as RA, useCallback as vA } from "react";
|
|
4
4
|
import { AttributionControl as Je, MapProvider as Xe, Map as At, useMap as et } from "react-map-gl/maplibre";
|
|
5
5
|
import tt from "@deck.gl/react";
|
|
6
|
-
import { useMap as
|
|
6
|
+
import { useMap as Me, Map as rt, APIProvider as nt } from "@vis.gl/react-google-maps";
|
|
7
7
|
import { GoogleMapsOverlay as it } from "@deck.gl/google-maps";
|
|
8
|
-
import { createStore as ZA, useStore as JA, create as
|
|
8
|
+
import { createStore as ZA, useStore as JA, create as Se } from "zustand";
|
|
9
9
|
import { FlyToInterpolator as ot, WebMercatorViewport as xe } from "@deck.gl/core";
|
|
10
10
|
import { CompositeMode as st, TranslateMode as lt, ModifyMode as at, DrawPolygonByDraggingMode as ut, DrawCircleFromCenterMode as De, DrawRectangleMode as ct, DrawPolygonMode as ft, EditableGeoJsonLayer as ht, MeasureAreaMode as gt, getPickedEditHandle as pt, MeasureDistanceMode as dt, ViewMode as mt } from "@deck.gl-community/editable-layers";
|
|
11
11
|
import { DataFilterExtension as wt, MaskExtension as yt } from "@deck.gl/extensions";
|
|
12
12
|
import { Pan as oe, InputDirection as bt, EventManager as vt, Tap as se, Pinch as Et } from "mjolnir.js";
|
|
13
13
|
import { GeoJsonLayer as kt } from "@deck.gl/layers";
|
|
14
14
|
import { useShallow as IA } from "zustand/shallow";
|
|
15
|
-
import { area as le, centroid as Pe, lineIntersect as Ct, booleanIntersects as Bt, feature as _t, bbox as
|
|
15
|
+
import { area as le, centroid as Pe, lineIntersect as Ct, booleanIntersects as Bt, feature as _t, bbox as Mt, featureCollection as St, multiPolygon as MA, multiLineString as xt, multiPoint as Dt, polygon as Pt, lineString as Tt, point as Lt } from "@turf/turf";
|
|
16
16
|
import { formatNumber as Te, formatCurrency as It } from "@carto/ps-utils";
|
|
17
17
|
import Le from "convert-units";
|
|
18
18
|
import Qt from "convert-units/definitions/length";
|
|
@@ -117,11 +117,11 @@ function r0(t) {
|
|
|
117
117
|
A[24] !== e ? (k = /* @__PURE__ */ Y(Je, { compact: !1, ...e }), A[24] = e, A[25] = k) : k = A[25];
|
|
118
118
|
let B;
|
|
119
119
|
A[26] !== l || A[27] !== y || A[28] !== k ? (B = /* @__PURE__ */ Y(At, { reuseMaps: !1, mapStyle: l, attributionControl: !1, onLoad: y, children: k }), A[26] = l, A[27] = y, A[28] = k, A[29] = B) : B = A[29];
|
|
120
|
-
let
|
|
121
|
-
return A[30] !== b || A[31] !== r || A[32] !== n || A[33] !== i || A[34] !== o || A[35] !== f || A[36] !== d || A[37] !== u || A[38] !== g || A[39] !== m || A[40] !== v || A[41] !== B ? (
|
|
120
|
+
let M;
|
|
121
|
+
return A[30] !== b || A[31] !== r || A[32] !== n || A[33] !== i || A[34] !== o || A[35] !== f || A[36] !== d || A[37] !== u || A[38] !== g || A[39] !== m || A[40] !== v || A[41] !== B ? (M = /* @__PURE__ */ Y(Xe, { children: /* @__PURE__ */ Y("div", { className: "deckgl-map", children: /* @__PURE__ */ _e(tt, { controller: r, id: o, ref: u, layers: b, getCursor: n, getTooltip: i, onLoad: g, onViewStateChange: f, parameters: m, ...d, children: [
|
|
122
122
|
v,
|
|
123
123
|
B
|
|
124
|
-
] }) }) }), A[30] = b, A[31] = r, A[32] = n, A[33] = i, A[34] = o, A[35] = f, A[36] = d, A[37] = u, A[38] = g, A[39] = m, A[40] = v, A[41] = B, A[42] =
|
|
124
|
+
] }) }) }), A[30] = b, A[31] = r, A[32] = n, A[33] = i, A[34] = o, A[35] = f, A[36] = d, A[37] = u, A[38] = g, A[39] = m, A[40] = v, A[41] = B, A[42] = M) : M = A[42], M;
|
|
125
125
|
}
|
|
126
126
|
function n0(t) {
|
|
127
127
|
const {
|
|
@@ -148,7 +148,7 @@ const s0 = (t) => {
|
|
|
148
148
|
A[0] === Symbol.for("react.memo_cache_sentinel") ? (e = new it({
|
|
149
149
|
interleaved: !0
|
|
150
150
|
}), A[0] = e) : e = A[0];
|
|
151
|
-
const r = e, n =
|
|
151
|
+
const r = e, n = Me();
|
|
152
152
|
let i, o;
|
|
153
153
|
A[1] === Symbol.for("react.memo_cache_sentinel") ? (i = () => r, o = [r], A[1] = i, A[2] = o) : (i = A[1], o = A[2]), WA(t.instanceRef, i, o);
|
|
154
154
|
let s, a;
|
|
@@ -252,13 +252,13 @@ function l0(t) {
|
|
|
252
252
|
}
|
|
253
253
|
});
|
|
254
254
|
}, A[29] = i, A[30] = a, A[31] = B) : B = A[31];
|
|
255
|
-
const
|
|
255
|
+
const M = B;
|
|
256
256
|
let C;
|
|
257
|
-
A[32] !==
|
|
257
|
+
A[32] !== M || A[33] !== k ? (C = (X) => {
|
|
258
258
|
const eA = k(X);
|
|
259
|
-
|
|
260
|
-
}, A[32] =
|
|
261
|
-
const
|
|
259
|
+
M(eA);
|
|
260
|
+
}, A[32] = M, A[33] = k, A[34] = C) : C = A[34];
|
|
261
|
+
const S = C, P = f.initialViewState?.latitude ?? 0, D = f.initialViewState?.longitude ?? 0;
|
|
262
262
|
let x;
|
|
263
263
|
A[35] !== P || A[36] !== D ? (x = {
|
|
264
264
|
lat: P,
|
|
@@ -266,12 +266,12 @@ function l0(t) {
|
|
|
266
266
|
}, A[35] = P, A[36] = D, A[37] = x) : x = A[37];
|
|
267
267
|
const R = (f.initialViewState?.zoom ?? 0) + 1, N = (f.initialViewState?.maxZoom ?? 23) + 1, E = (f.initialViewState?.minZoom ?? 0) + 1, _ = f.initialViewState?.pitch, T = f.initialViewState?.bearing;
|
|
268
268
|
let L;
|
|
269
|
-
A[38] !==
|
|
269
|
+
A[38] !== M || A[39] !== s || A[40] !== f.initialViewState ? (L = () => {
|
|
270
270
|
s({
|
|
271
271
|
type: "load",
|
|
272
272
|
value: !0
|
|
273
|
-
}),
|
|
274
|
-
}, A[38] =
|
|
273
|
+
}), M(f.initialViewState);
|
|
274
|
+
}, A[38] = M, A[39] = s, A[40] = f.initialViewState, A[41] = L) : L = A[41];
|
|
275
275
|
const O = typeof g.scrollZoom == "boolean" ? g.scrollZoom : !!g.scrollZoom, z = g.dragPan ? "greedy" : "none", G = !g.doubleClickZoom;
|
|
276
276
|
let U;
|
|
277
277
|
A[42] !== n || A[43] !== l ? (U = /* @__PURE__ */ Y(c0, { id: n, overlayRef: l }), A[42] = n, A[43] = l, A[44] = U) : U = A[44];
|
|
@@ -290,10 +290,10 @@ function l0(t) {
|
|
|
290
290
|
let nA;
|
|
291
291
|
A[49] !== v || A[50] !== n || A[51] !== i || A[52] !== f || A[53] !== V || A[54] !== q ? (nA = /* @__PURE__ */ Y(s0, { id: n, instanceRef: i, layers: v, onLoad: V, parameters: q, ...f }), A[49] = v, A[50] = n, A[51] = i, A[52] = f, A[53] = V, A[54] = q, A[55] = nA) : nA = A[55];
|
|
292
292
|
let J;
|
|
293
|
-
A[56] !== w || A[57] !== e || A[58] !==
|
|
293
|
+
A[56] !== w || A[57] !== e || A[58] !== S || A[59] !== n || A[60] !== x || A[61] !== R || A[62] !== N || A[63] !== E || A[64] !== _ || A[65] !== T || A[66] !== L || A[67] !== O || A[68] !== z || A[69] !== G || A[70] !== U || A[71] !== nA ? (J = /* @__PURE__ */ Y("div", { className: "deckgl-map", children: /* @__PURE__ */ _e(rt, { id: n, mapTypeId: e, disableDefaultUI: !0, ...w, center: x, zoom: R, maxZoom: N, minZoom: E, tilt: _, heading: T, onTilesLoaded: L, onBoundsChanged: S, onZoomChanged: S, scrollwheel: O, gestureHandling: z, disableDoubleClickZoom: G, children: [
|
|
294
294
|
U,
|
|
295
295
|
nA
|
|
296
|
-
] }) }), A[56] = w, A[57] = e, A[58] =
|
|
296
|
+
] }) }), A[56] = w, A[57] = e, A[58] = S, A[59] = n, A[60] = x, A[61] = R, A[62] = N, A[63] = E, A[64] = _, A[65] = T, A[66] = L, A[67] = O, A[68] = z, A[69] = G, A[70] = U, A[71] = nA, A[72] = J) : J = A[72];
|
|
297
297
|
let aA;
|
|
298
298
|
return A[73] !== d || A[74] !== b || A[75] !== J ? (aA = /* @__PURE__ */ Y(nt, { apiKey: b, ...d, children: J }), A[73] = d, A[74] = b, A[75] = J, A[76] = aA) : aA = A[76], aA;
|
|
299
299
|
}
|
|
@@ -311,7 +311,7 @@ function c0(t) {
|
|
|
311
311
|
const A = F(3), {
|
|
312
312
|
id: e,
|
|
313
313
|
overlayRef: r
|
|
314
|
-
} = t, n =
|
|
314
|
+
} = t, n = Me(e);
|
|
315
315
|
let i, o;
|
|
316
316
|
return A[0] !== n ? (i = () => n, o = [n], A[0] = n, A[1] = i, A[2] = o) : (i = A[1], o = A[2]), WA(r, i, o), null;
|
|
317
317
|
}
|
|
@@ -338,14 +338,14 @@ function f0(t) {
|
|
|
338
338
|
const g = u, m = f === void 0 ? e0 : f, v = h === void 0 ? t0 : h, y = p === void 0 ? g0 : p;
|
|
339
339
|
let k;
|
|
340
340
|
A[15] === Symbol.for("react.memo_cache_sentinel") ? (k = [!1, !1], A[15] = k) : k = A[15];
|
|
341
|
-
const [B,
|
|
341
|
+
const [B, M] = cA(k), {
|
|
342
342
|
url: C,
|
|
343
|
-
type:
|
|
344
|
-
} = _A[d], P =
|
|
343
|
+
type: S
|
|
344
|
+
} = _A[d], P = S === uA.googleMaps;
|
|
345
345
|
let D;
|
|
346
346
|
A[16] === Symbol.for("react.memo_cache_sentinel") ? (D = (L) => {
|
|
347
347
|
const O = L.type === "deckgl" ? 0 : 1;
|
|
348
|
-
|
|
348
|
+
M((z) => z.map((G, U) => U === O ? L.value : G));
|
|
349
349
|
}, A[16] = D) : D = A[16];
|
|
350
350
|
const x = D;
|
|
351
351
|
let R, N;
|
|
@@ -684,7 +684,7 @@ const gA = /* @__PURE__ */ d0(w0), y0 = (t) => {
|
|
|
684
684
|
...r,
|
|
685
685
|
...o
|
|
686
686
|
};
|
|
687
|
-
|
|
687
|
+
i.setViewState(e, s), i.updateViewPort(e, s);
|
|
688
688
|
},
|
|
689
689
|
loadInitialViewState: (e, r) => {
|
|
690
690
|
const n = A();
|
|
@@ -782,7 +782,7 @@ function wi(t) {
|
|
|
782
782
|
A[0] !== r ? (n = (c) => c.maps[r], A[0] = r, A[1] = n) : n = A[1];
|
|
783
783
|
const {
|
|
784
784
|
basemap: i
|
|
785
|
-
} = I(n), o = I(
|
|
785
|
+
} = I(n), o = I(M0);
|
|
786
786
|
let s;
|
|
787
787
|
A[2] !== r || A[3] !== o ? (s = (c) => o(r, c), A[2] = r, A[3] = o, A[4] = s) : s = A[4];
|
|
788
788
|
const a = s;
|
|
@@ -792,7 +792,7 @@ function wi(t) {
|
|
|
792
792
|
setBasemap: a
|
|
793
793
|
}), A[5] = i, A[6] = e, A[7] = a, A[8] = l) : l = A[8], l;
|
|
794
794
|
}
|
|
795
|
-
function
|
|
795
|
+
function M0(t) {
|
|
796
796
|
return t.setBasemap;
|
|
797
797
|
}
|
|
798
798
|
const rA = {
|
|
@@ -803,7 +803,7 @@ const rA = {
|
|
|
803
803
|
finish: "finish",
|
|
804
804
|
addPosition: "addPosition"
|
|
805
805
|
};
|
|
806
|
-
class
|
|
806
|
+
class S0 extends st {
|
|
807
807
|
constructor() {
|
|
808
808
|
super([new lt(), new at()]);
|
|
809
809
|
}
|
|
@@ -876,9 +876,9 @@ const mA = "lassoLayer", QA = "maskLayer", x0 = {
|
|
|
876
876
|
},
|
|
877
877
|
edit: {
|
|
878
878
|
value: "edit",
|
|
879
|
-
mode:
|
|
879
|
+
mode: S0
|
|
880
880
|
}
|
|
881
|
-
}, kA =
|
|
881
|
+
}, kA = Se((t, A) => ({
|
|
882
882
|
layers: {},
|
|
883
883
|
setLayer: (e, r) => t((n) => {
|
|
884
884
|
const i = {
|
|
@@ -1192,8 +1192,8 @@ function R0(t) {
|
|
|
1192
1192
|
A[8] !== i || A[9] !== e || A[10] !== h || A[11] !== w || A[12] !== b ? (u = () => {
|
|
1193
1193
|
const C = w[h];
|
|
1194
1194
|
if (C && i) {
|
|
1195
|
-
const
|
|
1196
|
-
b(e, new
|
|
1195
|
+
const S = C.mode;
|
|
1196
|
+
b(e, new S());
|
|
1197
1197
|
}
|
|
1198
1198
|
}, g = [i, e, h, w, b], A[8] = i, A[9] = e, A[10] = h, A[11] = w, A[12] = b, A[13] = u, A[14] = g) : (u = A[13], g = A[14]), K(u, g);
|
|
1199
1199
|
const m = U0;
|
|
@@ -1205,14 +1205,14 @@ function R0(t) {
|
|
|
1205
1205
|
o(e, !!C), p(e, C);
|
|
1206
1206
|
}, A[17] = e, A[18] = o, A[19] = p, A[20] = k) : k = A[20];
|
|
1207
1207
|
const B = k;
|
|
1208
|
-
let
|
|
1208
|
+
let M;
|
|
1209
1209
|
if (A[21] !== r || A[22] !== i || A[23] !== B || A[24] !== e || A[25] !== y || A[26] !== h || A[27] !== w || A[28] !== o || A[29] !== l || A[30] !== c) {
|
|
1210
1210
|
let C;
|
|
1211
1211
|
A[32] !== e || A[33] !== l ? (C = (D, x) => l(e, D, x), A[32] = e, A[33] = l, A[34] = C) : C = A[34];
|
|
1212
|
-
let
|
|
1213
|
-
A[35] !== e || A[36] !== o ? (
|
|
1212
|
+
let S;
|
|
1213
|
+
A[35] !== e || A[36] !== o ? (S = (D) => o(e, D), A[35] = e, A[36] = o, A[37] = S) : S = A[37];
|
|
1214
1214
|
let P;
|
|
1215
|
-
A[38] !== e || A[39] !== c ? (P = (D, x) => c(e, D, x), A[38] = e, A[39] = c, A[40] = P) : P = A[40],
|
|
1215
|
+
A[38] !== e || A[39] !== c ? (P = (D, x) => c(e, D, x), A[38] = e, A[39] = c, A[40] = P) : P = A[40], M = r({
|
|
1216
1216
|
mapId: e,
|
|
1217
1217
|
enabled: i,
|
|
1218
1218
|
modes: w,
|
|
@@ -1221,13 +1221,13 @@ function R0(t) {
|
|
|
1221
1221
|
mask: y
|
|
1222
1222
|
},
|
|
1223
1223
|
setValue: C,
|
|
1224
|
-
setEnabled:
|
|
1224
|
+
setEnabled: S,
|
|
1225
1225
|
setVisibility: P,
|
|
1226
1226
|
setModeSelected: B
|
|
1227
|
-
}), A[21] = r, A[22] = i, A[23] = B, A[24] = e, A[25] = y, A[26] = h, A[27] = w, A[28] = o, A[29] = l, A[30] = c, A[31] =
|
|
1227
|
+
}), A[21] = r, A[22] = i, A[23] = B, A[24] = e, A[25] = y, A[26] = h, A[27] = w, A[28] = o, A[29] = l, A[30] = c, A[31] = M;
|
|
1228
1228
|
} else
|
|
1229
|
-
|
|
1230
|
-
return
|
|
1229
|
+
M = A[31];
|
|
1230
|
+
return M;
|
|
1231
1231
|
}
|
|
1232
1232
|
function N0(t) {
|
|
1233
1233
|
return t.type === "mask";
|
|
@@ -1778,12 +1778,12 @@ function rr({
|
|
|
1778
1778
|
properties: E.properties,
|
|
1779
1779
|
id: E.id
|
|
1780
1780
|
}))
|
|
1781
|
-
}), [v]), k = RA(() => v.filter((E) => E.properties.visible).map((E) => E.id), [v]), [B,
|
|
1781
|
+
}), [v]), k = RA(() => v.filter((E) => E.properties.visible).map((E) => E.id), [v]), [B, M] = cA(y), [C, S] = cA([]), P = vA(() => {
|
|
1782
1782
|
const E = {
|
|
1783
1783
|
...y,
|
|
1784
1784
|
features: y.features.filter((_) => _.properties?.visible)
|
|
1785
1785
|
};
|
|
1786
|
-
|
|
1786
|
+
M(E);
|
|
1787
1787
|
}, [y]);
|
|
1788
1788
|
K(() => {
|
|
1789
1789
|
P();
|
|
@@ -1793,7 +1793,7 @@ function rr({
|
|
|
1793
1793
|
b(A, [mA]);
|
|
1794
1794
|
}), [w, A, b]);
|
|
1795
1795
|
const x = vA(() => {
|
|
1796
|
-
P(),
|
|
1796
|
+
P(), S([]), l(A, !1);
|
|
1797
1797
|
}, [A, P, l]), R = vA((E) => {
|
|
1798
1798
|
E.forEach((_, T) => {
|
|
1799
1799
|
_.properties.label ??= `${r?.mask} ${D.current}`, _.properties.index = T, _.properties.visible = _.properties.visible ?? !0;
|
|
@@ -1812,7 +1812,7 @@ function rr({
|
|
|
1812
1812
|
x();
|
|
1813
1813
|
return;
|
|
1814
1814
|
}
|
|
1815
|
-
|
|
1815
|
+
M(_), E !== rA.updateTentativeFeature && E === rA.addFeature && (p !== "edit" && (D.current = D.current + 1), R(_.features), x());
|
|
1816
1816
|
}, [R, x, p]);
|
|
1817
1817
|
return K(() => {
|
|
1818
1818
|
const E = a, {
|
|
@@ -1833,7 +1833,7 @@ function rr({
|
|
|
1833
1833
|
},
|
|
1834
1834
|
onClick: (U) => {
|
|
1835
1835
|
const V = U;
|
|
1836
|
-
V.isGuide ||
|
|
1836
|
+
V.isGuide || S([V.index]);
|
|
1837
1837
|
}
|
|
1838
1838
|
},
|
|
1839
1839
|
getLineColor: (U) => C[0] === U.properties.index ? _ : O,
|
|
@@ -2121,11 +2121,11 @@ function je(t) {
|
|
|
2121
2121
|
g(!!Q), y(e, Q);
|
|
2122
2122
|
}, A[18] = y, A[19] = e, A[20] = g, A[21] = k) : k = A[21];
|
|
2123
2123
|
const B = k;
|
|
2124
|
-
let
|
|
2125
|
-
A[22] !== e ? (
|
|
2126
|
-
const C = H(
|
|
2124
|
+
let M;
|
|
2125
|
+
A[22] !== e ? (M = (Q) => Q.measurements[e].finished, A[22] = e, A[23] = M) : M = A[23];
|
|
2126
|
+
const C = H(M), S = H(fr);
|
|
2127
2127
|
let P;
|
|
2128
|
-
A[24] !==
|
|
2128
|
+
A[24] !== S || A[25] !== e ? (P = (Q) => S(e, Q), A[24] = S, A[25] = e, A[26] = P) : P = A[26];
|
|
2129
2129
|
const D = P;
|
|
2130
2130
|
let x;
|
|
2131
2131
|
A[27] !== e ? (x = (Q) => Q.measurements[e].locale, A[27] = e, A[28] = x) : x = A[28];
|
|
@@ -2156,11 +2156,11 @@ function je(t) {
|
|
|
2156
2156
|
L?.resetClickSequence(), J([]);
|
|
2157
2157
|
}, A[47] = L, A[48] = J, A[49] = AA) : AA = A[49];
|
|
2158
2158
|
const oA = AA;
|
|
2159
|
-
let
|
|
2160
|
-
A[50] !== g ? (
|
|
2159
|
+
let SA;
|
|
2160
|
+
A[50] !== g ? (SA = (Q) => {
|
|
2161
2161
|
g(Q);
|
|
2162
|
-
}, A[50] = g, A[51] =
|
|
2163
|
-
const FA =
|
|
2162
|
+
}, A[50] = g, A[51] = SA) : SA = A[51];
|
|
2163
|
+
const FA = SA;
|
|
2164
2164
|
let xA;
|
|
2165
2165
|
return A[52] !== oA || A[53] !== p || A[54] !== a || A[55] !== w || A[56] !== C || A[57] !== R || A[58] !== L || A[59] !== v || A[60] !== n || A[61] !== V || A[62] !== f || A[63] !== g || A[64] !== D || A[65] !== _ || A[66] !== G || A[67] !== B || A[68] !== J || A[69] !== $ || A[70] !== FA || A[71] !== X || A[72] !== o ? (xA = {
|
|
2166
2166
|
modes: n,
|
|
@@ -2239,9 +2239,9 @@ function dr(t) {
|
|
|
2239
2239
|
positions: y,
|
|
2240
2240
|
setPositions: k,
|
|
2241
2241
|
unit: B,
|
|
2242
|
-
setUnit:
|
|
2242
|
+
setUnit: M,
|
|
2243
2243
|
clearLayer: C,
|
|
2244
|
-
toggleLayer:
|
|
2244
|
+
toggleLayer: S
|
|
2245
2245
|
} = je(i);
|
|
2246
2246
|
let P;
|
|
2247
2247
|
A[2] !== f || A[3] !== o || A[4] !== v || A[5] !== k ? (P = () => {
|
|
@@ -2256,12 +2256,12 @@ function dr(t) {
|
|
|
2256
2256
|
let D;
|
|
2257
2257
|
A[7] !== f || A[8] !== o || A[9] !== d || A[10] !== v || A[11] !== k ? (D = [o, f, k, v, d], A[7] = f, A[8] = o, A[9] = d, A[10] = v, A[11] = k, A[12] = D) : D = A[12], K(P, D);
|
|
2258
2258
|
let x;
|
|
2259
|
-
A[13] !==
|
|
2260
|
-
_ && (c || !w) && C(),
|
|
2261
|
-
}, A[13] =
|
|
2259
|
+
A[13] !== S || A[14] !== C || A[15] !== c || A[16] !== w ? (x = (_) => {
|
|
2260
|
+
_ && (c || !w) && C(), S(_);
|
|
2261
|
+
}, A[13] = S, A[14] = C, A[15] = c, A[16] = w, A[17] = x) : x = A[17];
|
|
2262
2262
|
const R = x, N = !!c;
|
|
2263
2263
|
let E;
|
|
2264
|
-
return A[18] !== n || A[19] !== C || A[20] !== a || A[21] !== p || A[22] !== w || A[23] !== u || A[24] !== e || A[25] !== m || A[26] !== f || A[27] !== o || A[28] !== y || A[29] !== l || A[30] !== d || A[31] !== b || A[32] !== g || A[33] !== h || A[34] !== k || A[35] !==
|
|
2264
|
+
return A[18] !== n || A[19] !== C || A[20] !== a || A[21] !== p || A[22] !== w || A[23] !== u || A[24] !== e || A[25] !== m || A[26] !== f || A[27] !== o || A[28] !== y || A[29] !== l || A[30] !== d || A[31] !== b || A[32] !== g || A[33] !== h || A[34] !== k || A[35] !== M || A[36] !== N || A[37] !== r || A[38] !== R || A[39] !== B || A[40] !== s ? (E = n({
|
|
2265
2265
|
mapId: e,
|
|
2266
2266
|
distance: a,
|
|
2267
2267
|
enabled: p,
|
|
@@ -2285,11 +2285,11 @@ function dr(t) {
|
|
|
2285
2285
|
setFinished: b,
|
|
2286
2286
|
setLocale: g,
|
|
2287
2287
|
setPositions: k,
|
|
2288
|
-
setUnit:
|
|
2288
|
+
setUnit: M,
|
|
2289
2289
|
setEnabled: d,
|
|
2290
2290
|
toggleLayer: R,
|
|
2291
2291
|
clearLayer: C
|
|
2292
|
-
}), A[18] = n, A[19] = C, A[20] = a, A[21] = p, A[22] = w, A[23] = u, A[24] = e, A[25] = m, A[26] = f, A[27] = o, A[28] = y, A[29] = l, A[30] = d, A[31] = b, A[32] = g, A[33] = h, A[34] = k, A[35] =
|
|
2292
|
+
}), A[18] = n, A[19] = C, A[20] = a, A[21] = p, A[22] = w, A[23] = u, A[24] = e, A[25] = m, A[26] = f, A[27] = o, A[28] = y, A[29] = l, A[30] = d, A[31] = b, A[32] = g, A[33] = h, A[34] = k, A[35] = M, A[36] = N, A[37] = r, A[38] = R, A[39] = B, A[40] = s, A[41] = E) : E = A[41], E;
|
|
2293
2293
|
}
|
|
2294
2294
|
const mr = [fA];
|
|
2295
2295
|
function wr(t) {
|
|
@@ -2321,9 +2321,9 @@ function wr(t) {
|
|
|
2321
2321
|
unit: u,
|
|
2322
2322
|
modeInstance: g
|
|
2323
2323
|
} = je(c), m = kA(Br), v = I(Cr), y = I(kr), k = I(Er), B = I(vr);
|
|
2324
|
-
let
|
|
2325
|
-
A[4] !== r ? (
|
|
2326
|
-
const C = I(IA(
|
|
2324
|
+
let M;
|
|
2325
|
+
A[4] !== r ? (M = (G) => G.maps[r]?.layers.filter(br), A[4] = r, A[5] = M) : M = A[5];
|
|
2326
|
+
const C = I(IA(M)), S = I(yr);
|
|
2327
2327
|
let P;
|
|
2328
2328
|
A[6] === Symbol.for("react.memo_cache_sentinel") ? (P = {}, A[6] = P) : P = A[6];
|
|
2329
2329
|
const D = TA(P);
|
|
@@ -2342,9 +2342,9 @@ function wr(t) {
|
|
|
2342
2342
|
};
|
|
2343
2343
|
}, N = [k, h, v, r, B, y], A[9] = k, A[10] = h, A[11] = v, A[12] = r, A[13] = B, A[14] = y, A[15] = R, A[16] = N) : (R = A[15], N = A[16]), K(R, N);
|
|
2344
2344
|
let E, _;
|
|
2345
|
-
A[17] !== h || A[18] !==
|
|
2345
|
+
A[17] !== h || A[18] !== S || A[19] !== r || A[20] !== C || A[21] !== m ? (E = () => {
|
|
2346
2346
|
C?.forEach((G) => {
|
|
2347
|
-
const U =
|
|
2347
|
+
const U = S(r)?.props.layers.find((q) => q.props.id === G);
|
|
2348
2348
|
if (!U)
|
|
2349
2349
|
return;
|
|
2350
2350
|
h && (D.current[G] = U?.props.pickable);
|
|
@@ -2355,7 +2355,7 @@ function wr(t) {
|
|
|
2355
2355
|
}
|
|
2356
2356
|
});
|
|
2357
2357
|
});
|
|
2358
|
-
}, _ = [h,
|
|
2358
|
+
}, _ = [h, S, r, C, m], A[17] = h, A[18] = S, A[19] = r, A[20] = C, A[21] = m, A[22] = E, A[23] = _) : (E = A[22], _ = A[23]), K(E, _);
|
|
2359
2359
|
let T;
|
|
2360
2360
|
A[24] !== g || A[25] !== f || A[26] !== d || A[27] !== b ? (T = (G) => {
|
|
2361
2361
|
const {
|
|
@@ -2420,19 +2420,19 @@ function _r(t) {
|
|
|
2420
2420
|
A[0] !== e ? (r = (a) => a.maps[e], A[0] = e, A[1] = r) : r = A[1];
|
|
2421
2421
|
const {
|
|
2422
2422
|
layers: n
|
|
2423
|
-
} = I(r), i = kA(
|
|
2423
|
+
} = I(r), i = kA(Sr);
|
|
2424
2424
|
let o;
|
|
2425
2425
|
if (A[2] !== i || A[3] !== n) {
|
|
2426
2426
|
let a;
|
|
2427
|
-
A[5] !== i ? (a = (l) => i[l], A[5] = i, A[6] = a) : a = A[6], o = n.map(a).filter(
|
|
2427
|
+
A[5] !== i ? (a = (l) => i[l], A[5] = i, A[6] = a) : a = A[6], o = n.map(a).filter(Mr), A[2] = i, A[3] = n, A[4] = o;
|
|
2428
2428
|
} else
|
|
2429
2429
|
o = A[4];
|
|
2430
2430
|
return o;
|
|
2431
2431
|
}
|
|
2432
|
-
function
|
|
2432
|
+
function Mr(t) {
|
|
2433
2433
|
return !!t;
|
|
2434
2434
|
}
|
|
2435
|
-
function
|
|
2435
|
+
function Sr(t) {
|
|
2436
2436
|
return t.layers;
|
|
2437
2437
|
}
|
|
2438
2438
|
const we = [QA, mA, fA];
|
|
@@ -2470,11 +2470,11 @@ function bi(t) {
|
|
|
2470
2470
|
mapId: e
|
|
2471
2471
|
}, A[15] = e, A[16] = k) : k = A[16];
|
|
2472
2472
|
const B = _r(k);
|
|
2473
|
-
let S;
|
|
2474
|
-
A[17] !== B ? (S = Ve(B), A[17] = B, A[18] = S) : S = A[18];
|
|
2475
|
-
const C = S;
|
|
2476
2473
|
let M;
|
|
2477
|
-
A[
|
|
2474
|
+
A[17] !== B ? (M = Ve(B), A[17] = B, A[18] = M) : M = A[18];
|
|
2475
|
+
const C = M;
|
|
2476
|
+
let S;
|
|
2477
|
+
A[19] !== e || A[20] !== n || A[21] !== g || A[22] !== y ? (S = (O) => {
|
|
2478
2478
|
const z = g;
|
|
2479
2479
|
if (h.current && clearInterval(h.current), h.current = setTimeout(() => {
|
|
2480
2480
|
y(e);
|
|
@@ -2483,8 +2483,8 @@ function bi(t) {
|
|
|
2483
2483
|
return;
|
|
2484
2484
|
}
|
|
2485
2485
|
z(e, O.viewState);
|
|
2486
|
-
}, A[19] = e, A[20] = n, A[21] = g, A[22] = y, A[23] =
|
|
2487
|
-
const P =
|
|
2486
|
+
}, A[19] = e, A[20] = n, A[21] = g, A[22] = y, A[23] = S) : S = A[23];
|
|
2487
|
+
const P = S;
|
|
2488
2488
|
let D;
|
|
2489
2489
|
A[24] !== e || A[25] !== r || A[26] !== m || A[27] !== y ? (D = (O) => {
|
|
2490
2490
|
m(e, O), r?.(O), y(e);
|
|
@@ -2933,7 +2933,7 @@ class Yr extends Qe {
|
|
|
2933
2933
|
}
|
|
2934
2934
|
/** @experimental */
|
|
2935
2935
|
getExtent() {
|
|
2936
|
-
const A = St(
|
|
2936
|
+
const A = Mt(St(this.features));
|
|
2937
2937
|
return Promise.resolve({
|
|
2938
2938
|
bbox: A
|
|
2939
2939
|
});
|
|
@@ -3110,7 +3110,7 @@ class qr extends Qe {
|
|
|
3110
3110
|
return this._executeWorkerMethod(iA.GET_EXTENT, [e], A);
|
|
3111
3111
|
}
|
|
3112
3112
|
}
|
|
3113
|
-
const ie =
|
|
3113
|
+
const ie = Se()(Xt((t, A) => ({
|
|
3114
3114
|
sources: {},
|
|
3115
3115
|
filters: {},
|
|
3116
3116
|
setSource: (e, r) => t((n) => {
|
|
@@ -3505,11 +3505,11 @@ function sn(t) {
|
|
|
3505
3505
|
let u;
|
|
3506
3506
|
if (A[9] !== d || A[10] !== o) {
|
|
3507
3507
|
let B;
|
|
3508
|
-
A[12] !== d.length || A[13] !== o ? (B = (
|
|
3509
|
-
const
|
|
3508
|
+
A[12] !== d.length || A[13] !== o ? (B = (M, C) => {
|
|
3509
|
+
const S = "column" in o ? $e(o.column, C, d.length) : void 0, P = "operationExp" in o ? EA(o.operationExp, C, d.length, "operationExp") : void 0, D = "operationColumn" in o ? EA(o.operationColumn, C, d.length, "operationColumn") : void 0, x = {
|
|
3510
3510
|
...o,
|
|
3511
3511
|
..."column" in o && {
|
|
3512
|
-
column:
|
|
3512
|
+
column: S
|
|
3513
3513
|
},
|
|
3514
3514
|
...P !== void 0 && {
|
|
3515
3515
|
operationExp: P
|
|
@@ -3526,21 +3526,21 @@ function sn(t) {
|
|
|
3526
3526
|
let m;
|
|
3527
3527
|
if (A[15] !== d || A[16] !== b || A[17] !== g) {
|
|
3528
3528
|
let B;
|
|
3529
|
-
A[19] !== b || A[20] !== g ? (B = (
|
|
3530
|
-
const
|
|
3529
|
+
A[19] !== b || A[20] !== g ? (B = (M, C) => {
|
|
3530
|
+
const S = g[C], P = [...M, S], D = b?.[C];
|
|
3531
3531
|
return D && P.push(D), P;
|
|
3532
3532
|
}, A[19] = b, A[20] = g, A[21] = B) : B = A[21], m = d.map(B), A[15] = d, A[16] = b, A[17] = g, A[18] = m;
|
|
3533
3533
|
} else
|
|
3534
3534
|
m = A[18];
|
|
3535
3535
|
const v = m;
|
|
3536
3536
|
if (a) {
|
|
3537
|
-
const B = f?.[0],
|
|
3538
|
-
let
|
|
3539
|
-
return A[22] !== B || A[23] !==
|
|
3537
|
+
const B = f?.[0], M = h[0] ?? null, C = v[0];
|
|
3538
|
+
let S;
|
|
3539
|
+
return A[22] !== B || A[23] !== M || A[24] !== C ? (S = {
|
|
3540
3540
|
mergedFilters: B,
|
|
3541
|
-
widgetModel:
|
|
3541
|
+
widgetModel: M,
|
|
3542
3542
|
queryKey: C
|
|
3543
|
-
}, A[22] = B, A[23] =
|
|
3543
|
+
}, A[22] = B, A[23] = M, A[24] = C, A[25] = S) : S = A[25], S;
|
|
3544
3544
|
}
|
|
3545
3545
|
let y;
|
|
3546
3546
|
A[26] !== f ? (y = f ?? [], A[26] = f, A[27] = y) : y = A[27];
|
|
@@ -3637,14 +3637,14 @@ function lA({
|
|
|
3637
3637
|
throw E;
|
|
3638
3638
|
return s ? N.at(0) : N;
|
|
3639
3639
|
}, i[15] = u, i[16] = m, i[17] = s, i[18] = y, i[19] = l, i[20] = B) : B = i[20];
|
|
3640
|
-
const
|
|
3640
|
+
const M = !!y.length && w;
|
|
3641
3641
|
let C;
|
|
3642
|
-
return i[21] !== k || i[22] !== B || i[23] !==
|
|
3642
|
+
return i[21] !== k || i[22] !== B || i[23] !== M || i[24] !== d ? (C = {
|
|
3643
3643
|
queryKey: k,
|
|
3644
3644
|
queryFn: B,
|
|
3645
|
-
enabled:
|
|
3645
|
+
enabled: M,
|
|
3646
3646
|
...d
|
|
3647
|
-
}, i[21] = k, i[22] = B, i[23] =
|
|
3647
|
+
}, i[21] = k, i[22] = B, i[23] = M, i[24] = d, i[25] = C) : C = i[25], Ie(C);
|
|
3648
3648
|
}
|
|
3649
3649
|
function r(n) {
|
|
3650
3650
|
const i = F(3), o = e(n);
|
|
@@ -3704,8 +3704,8 @@ const {
|
|
|
3704
3704
|
queryKeyPrefix: ["categories"],
|
|
3705
3705
|
getWidgetMethod: (t) => (A) => t.getCategories(A)
|
|
3706
3706
|
}), {
|
|
3707
|
-
useModelHook:
|
|
3708
|
-
ModelComponent:
|
|
3707
|
+
useModelHook: Mi,
|
|
3708
|
+
ModelComponent: Si
|
|
3709
3709
|
} = lA({
|
|
3710
3710
|
queryKeyPrefix: ["features"],
|
|
3711
3711
|
getWidgetMethod: (t) => (A) => t.getFeatures(A)
|
|
@@ -3945,7 +3945,7 @@ function hn(t) {
|
|
|
3945
3945
|
i = void 0;
|
|
3946
3946
|
break A;
|
|
3947
3947
|
}
|
|
3948
|
-
i =
|
|
3948
|
+
i = MA(o.map(gn)).geometry;
|
|
3949
3949
|
}
|
|
3950
3950
|
A[2] = n, A[3] = i;
|
|
3951
3951
|
} else
|
|
@@ -3974,7 +3974,7 @@ function dn(t) {
|
|
|
3974
3974
|
let o;
|
|
3975
3975
|
if (A[2] !== n) {
|
|
3976
3976
|
const s = Object.values(n).filter(wn).flatMap(mn);
|
|
3977
|
-
o =
|
|
3977
|
+
o = MA(s), A[2] = n, A[3] = o;
|
|
3978
3978
|
} else
|
|
3979
3979
|
o = A[3];
|
|
3980
3980
|
i = o.geometry;
|
|
@@ -4058,7 +4058,7 @@ function yn(t) {
|
|
|
4058
4058
|
const d = s[p];
|
|
4059
4059
|
if (d && d.length > 0) {
|
|
4060
4060
|
const w = d.map(En).join("|"), b = `${p}:${w}`;
|
|
4061
|
-
l.has(b) || l.set(b,
|
|
4061
|
+
l.has(b) || l.set(b, MA(d.map(vn)).geometry), a.push(l.get(b));
|
|
4062
4062
|
}
|
|
4063
4063
|
}
|
|
4064
4064
|
const h = new Set(c.filter((p) => {
|
|
@@ -4130,8 +4130,8 @@ function _n(t) {
|
|
|
4130
4130
|
if (d && d.length > 0) {
|
|
4131
4131
|
const w = d.map(xn).join("|"), b = `static:${p}:${w}`;
|
|
4132
4132
|
if (!l.has(b)) {
|
|
4133
|
-
const u = d.flatMap(
|
|
4134
|
-
l.set(b,
|
|
4133
|
+
const u = d.flatMap(Sn);
|
|
4134
|
+
l.set(b, MA(u).geometry);
|
|
4135
4135
|
}
|
|
4136
4136
|
a.push(l.get(b));
|
|
4137
4137
|
}
|
|
@@ -4140,7 +4140,7 @@ function _n(t) {
|
|
|
4140
4140
|
const d = s[p];
|
|
4141
4141
|
return d && d.length > 0;
|
|
4142
4142
|
}).map((p) => {
|
|
4143
|
-
const w = s[p].map(
|
|
4143
|
+
const w = s[p].map(Mn).join("|");
|
|
4144
4144
|
return `static:${p}:${w}`;
|
|
4145
4145
|
}));
|
|
4146
4146
|
for (const p of l.keys())
|
|
@@ -4150,10 +4150,10 @@ function _n(t) {
|
|
|
4150
4150
|
a = A[8];
|
|
4151
4151
|
return a;
|
|
4152
4152
|
}
|
|
4153
|
-
function
|
|
4153
|
+
function Mn(t) {
|
|
4154
4154
|
return `${t.type}:${JSON.stringify(t.coordinates).length}`;
|
|
4155
4155
|
}
|
|
4156
|
-
function
|
|
4156
|
+
function Sn(t) {
|
|
4157
4157
|
return t.type === "Polygon" ? [t.coordinates] : t.coordinates;
|
|
4158
4158
|
}
|
|
4159
4159
|
function xn(t) {
|
|
@@ -4246,7 +4246,7 @@ const Rn = {
|
|
|
4246
4246
|
Polygon: (t) => Pt(t.coordinates),
|
|
4247
4247
|
MultiPoint: (t) => Dt(t.coordinates),
|
|
4248
4248
|
MultiLineString: (t) => xt(t.coordinates),
|
|
4249
|
-
MultiPolygon: (t) =>
|
|
4249
|
+
MultiPolygon: (t) => MA(t.coordinates)
|
|
4250
4250
|
};
|
|
4251
4251
|
function Zi(t) {
|
|
4252
4252
|
const A = Rn[t.type], e = A?.(t);
|
|
@@ -4536,7 +4536,7 @@ export {
|
|
|
4536
4536
|
UA as CartoBasemapURL,
|
|
4537
4537
|
sA as CartoBasemaps,
|
|
4538
4538
|
_i as CategoriesModel,
|
|
4539
|
-
|
|
4539
|
+
S0 as CustomCompositeEditMode,
|
|
4540
4540
|
Ae as CustomEditableGeojsonLayer,
|
|
4541
4541
|
K0 as CustomMeasureAreaMode,
|
|
4542
4542
|
$0 as CustomMeasureBufferMode,
|
|
@@ -4551,7 +4551,7 @@ export {
|
|
|
4551
4551
|
VA as DEFAULT_MEASURE_COLORS,
|
|
4552
4552
|
f0 as DeckGLComponent,
|
|
4553
4553
|
rA as EditableEditType,
|
|
4554
|
-
|
|
4554
|
+
Si as FeaturesModel,
|
|
4555
4555
|
Di as FormulaModel,
|
|
4556
4556
|
NA as GmapsBasemap,
|
|
4557
4557
|
Ti as HistogramModel,
|
|
@@ -4600,7 +4600,7 @@ export {
|
|
|
4600
4600
|
ki as useAggregations,
|
|
4601
4601
|
Bi as useCategories,
|
|
4602
4602
|
Re as useEventManager,
|
|
4603
|
-
|
|
4603
|
+
Mi as useFeatures,
|
|
4604
4604
|
We as useFilters,
|
|
4605
4605
|
xi as useFormula,
|
|
4606
4606
|
yn as useGroupedLassoToolsSpatialFilters,
|