@carto/ps-react-maps 4.7.0 → 4.7.1
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 +315 -307
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/types/index.d.ts +3 -2
- package/dist/types/maps/map-libre.d.ts +1 -1
- package/dist/types/models/spread.d.ts +16 -0
- package/dist/types/models/types.d.ts +10 -0
- package/dist/types/types.d.ts +3 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as Y, jsxs as _e } from "react/jsx-runtime";
|
|
2
2
|
import { c as F } from "react/compiler-runtime";
|
|
3
|
-
import { useImperativeHandle as WA, useEffect as
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import { useMap as
|
|
7
|
-
import { GoogleMapsOverlay as
|
|
8
|
-
import { createStore as ZA, useStore as JA, create as
|
|
9
|
-
import { FlyToInterpolator as
|
|
10
|
-
import { CompositeMode as
|
|
11
|
-
import { DataFilterExtension as
|
|
12
|
-
import { Pan as oe, InputDirection as
|
|
13
|
-
import { GeoJsonLayer as
|
|
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
|
+
import { AttributionControl as Je, MapProvider as Xe, Map as At, useMap as et } from "react-map-gl/maplibre";
|
|
5
|
+
import tt from "@deck.gl/react";
|
|
6
|
+
import { useMap as Me, Map as rt, APIProvider as nt } from "@vis.gl/react-google-maps";
|
|
7
|
+
import { GoogleMapsOverlay as it } from "@deck.gl/google-maps";
|
|
8
|
+
import { createStore as ZA, useStore as JA, create as Se } from "zustand";
|
|
9
|
+
import { FlyToInterpolator as ot, WebMercatorViewport as xe } from "@deck.gl/core";
|
|
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
|
+
import { DataFilterExtension as wt, MaskExtension as yt } from "@deck.gl/extensions";
|
|
12
|
+
import { Pan as oe, InputDirection as bt, EventManager as vt, Tap as se, Pinch as Et } from "mjolnir.js";
|
|
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
|
|
16
|
-
import { formatNumber as Te, formatCurrency 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
|
+
import { formatNumber as Te, formatCurrency as It } from "@carto/ps-utils";
|
|
17
17
|
import Le from "convert-units";
|
|
18
|
-
import
|
|
19
|
-
import
|
|
18
|
+
import Qt from "convert-units/definitions/length";
|
|
19
|
+
import Ot from "convert-units/definitions/area";
|
|
20
20
|
import { useQuery as Ie } from "@tanstack/react-query";
|
|
21
|
-
import { WidgetSource as Qe, AggregationTypes as yA, aggregationFunctions as DA, histogram as
|
|
22
|
-
import { devtools as
|
|
23
|
-
import
|
|
21
|
+
import { WidgetSource as Qe, AggregationTypes as yA, aggregationFunctions as DA, histogram as Ft, groupValuesByColumn as Rt, OTHERS_CATEGORY_NAME as Nt, scatterPlot as Ut, applySorting as Gt, groupValuesByDateColumn as zt, applyFilters as jt, getApplicableFilters as Vt, removeFilter as Ht, addFilter as XA, WidgetRasterSource as Yt, WidgetTilesetSource as qt, TileFormat as Wt, WidgetTableSource as Kt, WidgetQuerySource as $t, createViewportSpatialFilter as Zt, vectorTilesetSource as Jt } from "@carto/api-client";
|
|
22
|
+
import { devtools as Xt } from "zustand/middleware";
|
|
23
|
+
import A0 from "html2canvas";
|
|
24
24
|
const NA = {
|
|
25
25
|
roadmap: "roadmap",
|
|
26
26
|
satellite: "satellite",
|
|
@@ -33,40 +33,40 @@ const NA = {
|
|
|
33
33
|
[sA.positron]: "https://basemaps.cartocdn.com/gl/positron-gl-style/style.json",
|
|
34
34
|
[sA.voyager]: "https://basemaps.cartocdn.com/gl/voyager-gl-style/style.json",
|
|
35
35
|
[sA.darkMatter]: "https://basemaps.cartocdn.com/gl/dark-matter-gl-style/style.json"
|
|
36
|
-
},
|
|
36
|
+
}, uA = {
|
|
37
37
|
maplibre: "maplibre",
|
|
38
38
|
googleMaps: "google-maps"
|
|
39
39
|
}, _A = {
|
|
40
40
|
[sA.positron]: {
|
|
41
41
|
url: UA[sA.positron],
|
|
42
|
-
type:
|
|
42
|
+
type: uA.maplibre
|
|
43
43
|
},
|
|
44
44
|
[sA.voyager]: {
|
|
45
45
|
url: UA[sA.voyager],
|
|
46
|
-
type:
|
|
46
|
+
type: uA.maplibre
|
|
47
47
|
},
|
|
48
48
|
[sA.darkMatter]: {
|
|
49
49
|
url: UA[sA.darkMatter],
|
|
50
|
-
type:
|
|
50
|
+
type: uA.maplibre,
|
|
51
51
|
dark: !0
|
|
52
52
|
},
|
|
53
53
|
[NA.roadmap]: {
|
|
54
|
-
type:
|
|
54
|
+
type: uA.googleMaps
|
|
55
55
|
},
|
|
56
56
|
[NA.satellite]: {
|
|
57
|
-
type:
|
|
57
|
+
type: uA.googleMaps
|
|
58
58
|
},
|
|
59
59
|
[NA.hybrid]: {
|
|
60
|
-
type:
|
|
60
|
+
type: uA.googleMaps
|
|
61
61
|
}
|
|
62
62
|
};
|
|
63
|
-
function
|
|
63
|
+
function e0({
|
|
64
64
|
isDragging: t,
|
|
65
65
|
isHovering: A
|
|
66
66
|
}) {
|
|
67
67
|
return t ? "grabbing" : A ? "pointer" : "grab";
|
|
68
68
|
}
|
|
69
|
-
function
|
|
69
|
+
function t0(t) {
|
|
70
70
|
return t.html ? {
|
|
71
71
|
html: `<div class='map-tooltip__content'>${t.html}</div>`,
|
|
72
72
|
style: {
|
|
@@ -75,53 +75,53 @@ function e0(t) {
|
|
|
75
75
|
}
|
|
76
76
|
} : null;
|
|
77
77
|
}
|
|
78
|
-
function
|
|
79
|
-
const A = F(
|
|
80
|
-
let e, r, n, i, o, s, a, l, c, f, h, p;
|
|
78
|
+
function r0(t) {
|
|
79
|
+
const A = F(43);
|
|
80
|
+
let e, r, n, i, o, s, a, l, c, f, h, p, d;
|
|
81
81
|
A[0] !== t ? ({
|
|
82
|
-
instanceRef:
|
|
83
|
-
overlayRef:
|
|
84
|
-
controller:
|
|
85
|
-
id:
|
|
86
|
-
layers:
|
|
87
|
-
mapStyle:
|
|
88
|
-
parameters:
|
|
89
|
-
getCursor:
|
|
90
|
-
getTooltip:
|
|
91
|
-
onLoad:
|
|
92
|
-
onViewStateChange:
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
82
|
+
instanceRef: s,
|
|
83
|
+
overlayRef: h,
|
|
84
|
+
controller: r,
|
|
85
|
+
id: o,
|
|
86
|
+
layers: a,
|
|
87
|
+
mapStyle: l,
|
|
88
|
+
parameters: p,
|
|
89
|
+
getCursor: n,
|
|
90
|
+
getTooltip: i,
|
|
91
|
+
onLoad: c,
|
|
92
|
+
onViewStateChange: f,
|
|
93
|
+
attributionProps: e,
|
|
94
|
+
...d
|
|
95
|
+
} = t, A[0] = t, A[1] = e, A[2] = r, A[3] = n, A[4] = i, A[5] = o, A[6] = s, A[7] = a, A[8] = l, A[9] = c, A[10] = f, A[11] = h, A[12] = p, A[13] = d) : (e = A[1], r = A[2], n = A[3], i = A[4], o = A[5], s = A[6], a = A[7], l = A[8], c = A[9], f = A[10], h = A[11], p = A[12], d = A[13]);
|
|
96
|
+
let w;
|
|
97
|
+
A[14] !== a ? (w = a.filter(i0).map(n0), A[14] = a, A[15] = w) : w = A[15];
|
|
98
|
+
const b = w, u = s;
|
|
99
|
+
let g;
|
|
100
|
+
A[16] !== c ? (g = () => c({
|
|
100
101
|
type: "deckgl",
|
|
101
102
|
value: !0
|
|
102
|
-
}), A[
|
|
103
|
-
let g;
|
|
104
|
-
A[17] !== h ? (g = {
|
|
105
|
-
depthTest: !1,
|
|
106
|
-
...h
|
|
107
|
-
}, A[17] = h, A[18] = g) : g = A[18];
|
|
103
|
+
}), A[16] = c, A[17] = g) : g = A[17];
|
|
108
104
|
let m;
|
|
109
|
-
A[
|
|
105
|
+
A[18] !== p ? (m = {
|
|
106
|
+
depthTest: !1,
|
|
107
|
+
...p
|
|
108
|
+
}, A[18] = p, A[19] = m) : m = A[19];
|
|
110
109
|
let v;
|
|
111
|
-
A[
|
|
110
|
+
A[20] !== h ? (v = /* @__PURE__ */ Y(o0, { overlayRef: h }), A[20] = h, A[21] = v) : v = A[21];
|
|
111
|
+
let y;
|
|
112
|
+
A[22] !== c ? (y = () => c({
|
|
112
113
|
type: "load",
|
|
113
114
|
value: !0
|
|
114
|
-
}), A[
|
|
115
|
-
let y;
|
|
116
|
-
A[23] !== a || A[24] !== v ? (y = /* @__PURE__ */ K(Xe, { reuseMaps: !1, mapStyle: a, onLoad: v, onRender: r0 }), A[23] = a, A[24] = v, A[25] = y) : y = A[25];
|
|
115
|
+
}), A[22] = c, A[23] = y) : y = A[23];
|
|
117
116
|
let k;
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
117
|
+
A[24] !== e ? (k = /* @__PURE__ */ Y(Je, { compact: !1, ...e }), A[24] = e, A[25] = k) : k = A[25];
|
|
118
|
+
let B;
|
|
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 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
|
+
v,
|
|
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] = M) : M = A[42], M;
|
|
125
125
|
}
|
|
126
126
|
function n0(t) {
|
|
127
127
|
const {
|
|
@@ -138,27 +138,27 @@ function o0(t) {
|
|
|
138
138
|
overlayRef: e
|
|
139
139
|
} = t, {
|
|
140
140
|
default: r
|
|
141
|
-
} =
|
|
141
|
+
} = et();
|
|
142
142
|
let n, i;
|
|
143
143
|
return A[0] !== r ? (n = () => r, i = [r], A[0] = r, A[1] = n, A[2] = i) : (n = A[1], i = A[2]), WA(e, n, i), null;
|
|
144
144
|
}
|
|
145
145
|
const s0 = (t) => {
|
|
146
146
|
const A = F(9);
|
|
147
147
|
let e;
|
|
148
|
-
A[0] === Symbol.for("react.memo_cache_sentinel") ? (e = new
|
|
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;
|
|
155
155
|
A[3] !== n ? (s = () => (r.setMap(n), () => {
|
|
156
156
|
r.finalize();
|
|
157
|
-
}), a = [r, n], A[3] = n, A[4] = s, A[5] = a) : (s = A[4], a = A[5]),
|
|
157
|
+
}), a = [r, n], A[3] = n, A[4] = s, A[5] = a) : (s = A[4], a = A[5]), K(s, a);
|
|
158
158
|
let l, c;
|
|
159
159
|
return A[6] !== t ? (l = () => {
|
|
160
160
|
r.setProps(t);
|
|
161
|
-
}, c = [r, t], A[6] = t, A[7] = l, A[8] = c) : (l = A[7], c = A[8]),
|
|
161
|
+
}, c = [r, t], A[6] = t, A[7] = l, A[8] = c) : (l = A[7], c = A[8]), K(l, c), null;
|
|
162
162
|
};
|
|
163
163
|
function l0(t) {
|
|
164
164
|
const A = F(77);
|
|
@@ -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,15 +266,15 @@ 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
|
-
A[42] !== n || A[43] !== l ? (U = /* @__PURE__ */
|
|
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];
|
|
278
278
|
let V;
|
|
279
279
|
A[45] !== s ? (V = () => {
|
|
280
280
|
s({
|
|
@@ -282,20 +282,20 @@ function l0(t) {
|
|
|
282
282
|
value: !0
|
|
283
283
|
});
|
|
284
284
|
}, A[45] = s, A[46] = V) : V = A[46];
|
|
285
|
-
let
|
|
286
|
-
A[47] !== c ? (
|
|
285
|
+
let q;
|
|
286
|
+
A[47] !== c ? (q = {
|
|
287
287
|
depthTest: !1,
|
|
288
288
|
...c
|
|
289
|
-
}, A[47] = c, A[48] =
|
|
289
|
+
}, A[47] = c, A[48] = q) : q = A[48];
|
|
290
290
|
let nA;
|
|
291
|
-
A[49] !== v || A[50] !== n || A[51] !== i || A[52] !== f || A[53] !== V || A[54] !==
|
|
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] =
|
|
297
|
-
let
|
|
298
|
-
return A[73] !== d || A[74] !== b || A[75] !== J ? (
|
|
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
|
+
let aA;
|
|
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
|
}
|
|
300
300
|
function a0(t) {
|
|
301
301
|
const {
|
|
@@ -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
|
}
|
|
@@ -335,17 +335,17 @@ function f0(t) {
|
|
|
335
335
|
const d = s === void 0 ? sA.positron : s, w = a === void 0 ? !0 : a, b = l === void 0 ? "deck-gl-map" : l;
|
|
336
336
|
let u;
|
|
337
337
|
A[13] !== c ? (u = c === void 0 ? [] : c, A[13] = c, A[14] = u) : u = A[14];
|
|
338
|
-
const g = u, m = f === void 0 ?
|
|
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;
|
|
@@ -357,17 +357,17 @@ function f0(t) {
|
|
|
357
357
|
type: "deckgl",
|
|
358
358
|
value: !1
|
|
359
359
|
});
|
|
360
|
-
}, N = [x], A[17] = R, A[18] = N) : (R = A[17], N = A[18]),
|
|
360
|
+
}, N = [x], A[17] = R, A[18] = N) : (R = A[17], N = A[18]), K(R, N);
|
|
361
361
|
let E, _;
|
|
362
362
|
if (A[19] !== B || A[20] !== n ? (E = () => {
|
|
363
363
|
const L = B.every(h0);
|
|
364
364
|
n?.(L);
|
|
365
|
-
}, _ = [B, n], A[19] = B, A[20] = n, A[21] = E, A[22] = _) : (E = A[21], _ = A[22]),
|
|
365
|
+
}, _ = [B, n], A[19] = B, A[20] = n, A[21] = E, A[22] = _) : (E = A[21], _ = A[22]), K(E, _), P) {
|
|
366
366
|
let L;
|
|
367
|
-
return A[23] !== d || A[24] !== w || A[25] !== m || A[26] !== v || A[27] !== e || A[28] !== b || A[29] !== r || A[30] !== g || A[31] !== y || A[32] !== i || A[33] !== o ? (L = /* @__PURE__ */
|
|
367
|
+
return A[23] !== d || A[24] !== w || A[25] !== m || A[26] !== v || A[27] !== e || A[28] !== b || A[29] !== r || A[30] !== g || A[31] !== y || A[32] !== i || A[33] !== o ? (L = /* @__PURE__ */ Y(l0, { instanceRef: r, overlayRef: i, controller: w, id: b, basemap: d, layers: g, gmapsProps: e, getCursor: m, getTooltip: v, onLoad: x, onViewStateChange: y, ...o }), A[23] = d, A[24] = w, A[25] = m, A[26] = v, A[27] = e, A[28] = b, A[29] = r, A[30] = g, A[31] = y, A[32] = i, A[33] = o, A[34] = L) : L = A[34], L;
|
|
368
368
|
}
|
|
369
369
|
let T;
|
|
370
|
-
return A[35] !== w || A[36] !== m || A[37] !== v || A[38] !== b || A[39] !== r || A[40] !== g || A[41] !== C || A[42] !== y || A[43] !== i || A[44] !== o ? (T = /* @__PURE__ */
|
|
370
|
+
return A[35] !== w || A[36] !== m || A[37] !== v || A[38] !== b || A[39] !== r || A[40] !== g || A[41] !== C || A[42] !== y || A[43] !== i || A[44] !== o ? (T = /* @__PURE__ */ Y(r0, { instanceRef: r, overlayRef: i, controller: w, id: b, layers: g, mapStyle: C, getCursor: m, getTooltip: v, onLoad: x, onViewStateChange: y, ...o }), A[35] = w, A[36] = m, A[37] = v, A[38] = b, A[39] = r, A[40] = g, A[41] = C, A[42] = y, A[43] = i, A[44] = o, A[45] = T) : T = A[45], T;
|
|
371
371
|
}
|
|
372
372
|
function h0(t) {
|
|
373
373
|
return t;
|
|
@@ -377,7 +377,7 @@ function g0() {
|
|
|
377
377
|
}
|
|
378
378
|
const p0 = {
|
|
379
379
|
transitionDuration: "auto",
|
|
380
|
-
transitionInterpolator: new
|
|
380
|
+
transitionInterpolator: new ot({
|
|
381
381
|
curve: 2
|
|
382
382
|
})
|
|
383
383
|
};
|
|
@@ -760,9 +760,9 @@ function _0(t) {
|
|
|
760
760
|
} = t;
|
|
761
761
|
let n;
|
|
762
762
|
A[0] !== r ? (n = B0(r), A[0] = r, A[1] = n) : n = A[1];
|
|
763
|
-
const [i] =
|
|
763
|
+
const [i] = cA(n);
|
|
764
764
|
let o;
|
|
765
|
-
return A[2] !== e || A[3] !== i ? (o = /* @__PURE__ */
|
|
765
|
+
return A[2] !== e || A[3] !== i ? (o = /* @__PURE__ */ Y(Oe.Provider, { value: i, children: e }), A[2] = e, A[3] = i, A[4] = o) : o = A[4], o;
|
|
766
766
|
}
|
|
767
767
|
function I(t) {
|
|
768
768
|
const A = $A(Oe);
|
|
@@ -779,7 +779,7 @@ function wi(t) {
|
|
|
779
779
|
A[0] !== r ? (n = (c) => c.maps[r], A[0] = r, A[1] = n) : n = A[1];
|
|
780
780
|
const {
|
|
781
781
|
basemap: i
|
|
782
|
-
} = I(n), o = I(
|
|
782
|
+
} = I(n), o = I(M0);
|
|
783
783
|
let s;
|
|
784
784
|
A[2] !== r || A[3] !== o ? (s = (c) => o(r, c), A[2] = r, A[3] = o, A[4] = s) : s = A[4];
|
|
785
785
|
const a = s;
|
|
@@ -789,7 +789,7 @@ function wi(t) {
|
|
|
789
789
|
setBasemap: a
|
|
790
790
|
}), A[5] = i, A[6] = e, A[7] = a, A[8] = l) : l = A[8], l;
|
|
791
791
|
}
|
|
792
|
-
function
|
|
792
|
+
function M0(t) {
|
|
793
793
|
return t.setBasemap;
|
|
794
794
|
}
|
|
795
795
|
const rA = {
|
|
@@ -800,9 +800,9 @@ const rA = {
|
|
|
800
800
|
finish: "finish",
|
|
801
801
|
addPosition: "addPosition"
|
|
802
802
|
};
|
|
803
|
-
class
|
|
803
|
+
class S0 extends st {
|
|
804
804
|
constructor() {
|
|
805
|
-
super([new
|
|
805
|
+
super([new lt(), new at()]);
|
|
806
806
|
}
|
|
807
807
|
handleKeyUp(A, e) {
|
|
808
808
|
super.handleKeyUp(A, e), A.key === "Enter" && (this.resetClickSequence(), e.onEdit({
|
|
@@ -845,7 +845,7 @@ const mA = "lassoLayer", QA = "maskLayer", x0 = {
|
|
|
845
845
|
labels: {
|
|
846
846
|
mask: "Mask"
|
|
847
847
|
}
|
|
848
|
-
}, D0 = [new
|
|
848
|
+
}, D0 = [new wt({
|
|
849
849
|
filterSize: 1
|
|
850
850
|
})], PA = {
|
|
851
851
|
id: QA,
|
|
@@ -857,11 +857,11 @@ const mA = "lassoLayer", QA = "maskLayer", x0 = {
|
|
|
857
857
|
}, jA = {
|
|
858
858
|
polygon: {
|
|
859
859
|
value: "polygon",
|
|
860
|
-
mode:
|
|
860
|
+
mode: ft
|
|
861
861
|
},
|
|
862
862
|
rectangle: {
|
|
863
863
|
value: "rectangle",
|
|
864
|
-
mode:
|
|
864
|
+
mode: ct
|
|
865
865
|
},
|
|
866
866
|
circle: {
|
|
867
867
|
value: "circle",
|
|
@@ -869,13 +869,13 @@ const mA = "lassoLayer", QA = "maskLayer", x0 = {
|
|
|
869
869
|
},
|
|
870
870
|
lasso: {
|
|
871
871
|
value: "lasso",
|
|
872
|
-
mode:
|
|
872
|
+
mode: ut
|
|
873
873
|
},
|
|
874
874
|
edit: {
|
|
875
875
|
value: "edit",
|
|
876
|
-
mode:
|
|
876
|
+
mode: S0
|
|
877
877
|
}
|
|
878
|
-
}, kA =
|
|
878
|
+
}, kA = Se((t, A) => ({
|
|
879
879
|
layers: {},
|
|
880
880
|
setLayer: (e, r) => t((n) => {
|
|
881
881
|
const i = {
|
|
@@ -918,10 +918,10 @@ const mA = "lassoLayer", QA = "maskLayer", x0 = {
|
|
|
918
918
|
})), ce = ["click", "keyup", "panstart", "panmove", "panend", "pointermove"], Fe = {
|
|
919
919
|
multipan: [oe, {
|
|
920
920
|
threshold: 10,
|
|
921
|
-
direction:
|
|
921
|
+
direction: bt.Vertical,
|
|
922
922
|
pointers: 2
|
|
923
923
|
}],
|
|
924
|
-
pinch: [
|
|
924
|
+
pinch: [Et, {}, null, ["multipan"]],
|
|
925
925
|
click: [se, {
|
|
926
926
|
event: "click"
|
|
927
927
|
}, null, ["dblclick"]],
|
|
@@ -945,13 +945,13 @@ function Re(t) {
|
|
|
945
945
|
A[2] !== e ? (o = (d) => d.maps[e]?.isLoaded, A[2] = e, A[3] = o) : o = A[3];
|
|
946
946
|
const s = I(o), a = I(L0), l = kA(T0), {
|
|
947
947
|
type: c
|
|
948
|
-
} = _A[i], f = c ===
|
|
948
|
+
} = _A[i], f = c === uA.googleMaps;
|
|
949
949
|
let h, p;
|
|
950
950
|
A[4] !== a || A[5] !== f || A[6] !== s || A[7] !== r || A[8] !== e || A[9] !== l ? (h = () => {
|
|
951
951
|
let d = null;
|
|
952
952
|
if (f && s) {
|
|
953
953
|
const w = a(e);
|
|
954
|
-
d = new
|
|
954
|
+
d = new vt(w.getDiv(), {
|
|
955
955
|
recognizers: Object.keys(Fe).map(P0)
|
|
956
956
|
});
|
|
957
957
|
}
|
|
@@ -962,7 +962,7 @@ function Re(t) {
|
|
|
962
962
|
}), () => {
|
|
963
963
|
d?.destroy(), d = null;
|
|
964
964
|
};
|
|
965
|
-
}, p = [a, f, s, r, e, l], A[4] = a, A[5] = f, A[6] = s, A[7] = r, A[8] = e, A[9] = l, A[10] = h, A[11] = p) : (h = A[10], p = A[11]),
|
|
965
|
+
}, p = [a, f, s, r, e, l], A[4] = a, A[5] = f, A[6] = s, A[7] = r, A[8] = e, A[9] = l, A[10] = h, A[11] = p) : (h = A[10], p = A[11]), K(h, p);
|
|
966
966
|
}
|
|
967
967
|
function P0(t) {
|
|
968
968
|
const [A, e, r, n] = Fe[t], i = {
|
|
@@ -981,7 +981,7 @@ function T0(t) {
|
|
|
981
981
|
function L0(t) {
|
|
982
982
|
return t.getOverlayInstance;
|
|
983
983
|
}
|
|
984
|
-
class Ae extends
|
|
984
|
+
class Ae extends ht {
|
|
985
985
|
updateState({
|
|
986
986
|
props: A,
|
|
987
987
|
oldProps: e,
|
|
@@ -1158,11 +1158,11 @@ function F0(t) {
|
|
|
1158
1158
|
} = t;
|
|
1159
1159
|
let n;
|
|
1160
1160
|
A[0] !== r ? (n = () => O0(r), A[0] = r, A[1] = n) : n = A[1];
|
|
1161
|
-
const [i] =
|
|
1161
|
+
const [i] = cA(n);
|
|
1162
1162
|
let o;
|
|
1163
|
-
return A[2] !== e || A[3] !== i ? (o = /* @__PURE__ */
|
|
1163
|
+
return A[2] !== e || A[3] !== i ? (o = /* @__PURE__ */ Y(Ne.Provider, { value: i, children: e }), A[2] = e, A[3] = i, A[4] = o) : o = A[4], o;
|
|
1164
1164
|
}
|
|
1165
|
-
function
|
|
1165
|
+
function W(t) {
|
|
1166
1166
|
const A = $A(Ne);
|
|
1167
1167
|
if (!Object.keys(A).length)
|
|
1168
1168
|
throw new Error("Missing LassoToolsProvider in the tree");
|
|
@@ -1175,24 +1175,24 @@ function R0(t) {
|
|
|
1175
1175
|
} = t;
|
|
1176
1176
|
let n;
|
|
1177
1177
|
A[0] !== e ? (n = (C) => C.data[e]?.enabled, A[0] = e, A[1] = n) : n = A[1];
|
|
1178
|
-
const i =
|
|
1178
|
+
const i = W(n), o = W(H0);
|
|
1179
1179
|
let s;
|
|
1180
1180
|
A[2] !== e ? (s = (C) => C.data[e]?.values, A[2] = e, A[3] = s) : s = A[3];
|
|
1181
|
-
const a =
|
|
1181
|
+
const a = W(s), l = W(V0), c = W(j0);
|
|
1182
1182
|
let f;
|
|
1183
1183
|
A[4] !== e ? (f = (C) => C.data[e]?.modeSelected, A[4] = e, A[5] = f) : f = A[5];
|
|
1184
|
-
const h =
|
|
1184
|
+
const h = W(f), p = W(z0);
|
|
1185
1185
|
let d;
|
|
1186
1186
|
A[6] !== e ? (d = (C) => C.data[e]?.modes, A[6] = e, A[7] = d) : d = A[7];
|
|
1187
|
-
const w =
|
|
1187
|
+
const w = W(d), b = W(G0);
|
|
1188
1188
|
let u, g;
|
|
1189
1189
|
A[8] !== i || A[9] !== e || A[10] !== h || A[11] !== w || A[12] !== b ? (u = () => {
|
|
1190
1190
|
const C = w[h];
|
|
1191
1191
|
if (C && i) {
|
|
1192
|
-
const
|
|
1193
|
-
b(e, new
|
|
1192
|
+
const S = C.mode;
|
|
1193
|
+
b(e, new S());
|
|
1194
1194
|
}
|
|
1195
|
-
}, 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]),
|
|
1195
|
+
}, 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);
|
|
1196
1196
|
const m = U0;
|
|
1197
1197
|
let v;
|
|
1198
1198
|
A[15] !== a ? (v = [Object.values(a).filter(N0).map(m)], A[15] = a, A[16] = v) : v = A[16];
|
|
@@ -1202,14 +1202,14 @@ function R0(t) {
|
|
|
1202
1202
|
o(e, !!C), p(e, C);
|
|
1203
1203
|
}, A[17] = e, A[18] = o, A[19] = p, A[20] = k) : k = A[20];
|
|
1204
1204
|
const B = k;
|
|
1205
|
-
let
|
|
1205
|
+
let M;
|
|
1206
1206
|
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) {
|
|
1207
1207
|
let C;
|
|
1208
1208
|
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];
|
|
1209
|
-
let
|
|
1210
|
-
A[35] !== e || A[36] !== o ? (
|
|
1209
|
+
let S;
|
|
1210
|
+
A[35] !== e || A[36] !== o ? (S = (D) => o(e, D), A[35] = e, A[36] = o, A[37] = S) : S = A[37];
|
|
1211
1211
|
let P;
|
|
1212
|
-
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],
|
|
1212
|
+
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({
|
|
1213
1213
|
mapId: e,
|
|
1214
1214
|
enabled: i,
|
|
1215
1215
|
modes: w,
|
|
@@ -1218,13 +1218,13 @@ function R0(t) {
|
|
|
1218
1218
|
mask: y
|
|
1219
1219
|
},
|
|
1220
1220
|
setValue: C,
|
|
1221
|
-
setEnabled:
|
|
1221
|
+
setEnabled: S,
|
|
1222
1222
|
setVisibility: P,
|
|
1223
1223
|
setModeSelected: B
|
|
1224
|
-
}), 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] =
|
|
1224
|
+
}), 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;
|
|
1225
1225
|
} else
|
|
1226
|
-
|
|
1227
|
-
return
|
|
1226
|
+
M = A[31];
|
|
1227
|
+
return M;
|
|
1228
1228
|
}
|
|
1229
1229
|
function N0(t) {
|
|
1230
1230
|
return t.type === "mask";
|
|
@@ -1258,9 +1258,9 @@ function ee({
|
|
|
1258
1258
|
return Object.values(t ?? {}).filter((A) => A.type === "mask");
|
|
1259
1259
|
}
|
|
1260
1260
|
const Y0 = Le({
|
|
1261
|
-
length:
|
|
1261
|
+
length: Qt
|
|
1262
1262
|
}), q0 = Le({
|
|
1263
|
-
area:
|
|
1263
|
+
area: Ot
|
|
1264
1264
|
});
|
|
1265
1265
|
function W0(t) {
|
|
1266
1266
|
if (!(t in LA)) {
|
|
@@ -1348,7 +1348,7 @@ function Ue(t, A, e) {
|
|
|
1348
1348
|
}
|
|
1349
1349
|
return [];
|
|
1350
1350
|
}
|
|
1351
|
-
class K0 extends
|
|
1351
|
+
class K0 extends gt {
|
|
1352
1352
|
_isMeasuringSessionFinished = !1;
|
|
1353
1353
|
area = 0;
|
|
1354
1354
|
tooltips = [];
|
|
@@ -1360,7 +1360,7 @@ class K0 extends ht {
|
|
|
1360
1360
|
this._isMeasuringSessionFinished && (this._isMeasuringSessionFinished = !1, this.resetClickSequence(), this.area = 0);
|
|
1361
1361
|
const {
|
|
1362
1362
|
picks: r
|
|
1363
|
-
} = A, n =
|
|
1363
|
+
} = A, n = pt(r), i = this.getClickSequence();
|
|
1364
1364
|
let o = !1;
|
|
1365
1365
|
!n && !this.allowOverlapping(e) && (this.addClickSequence(A), o = !0);
|
|
1366
1366
|
const s = this.getClickSequence(), a = [...s, s[0]];
|
|
@@ -1419,7 +1419,7 @@ class K0 extends ht {
|
|
|
1419
1419
|
type: "LineString",
|
|
1420
1420
|
coordinates: [...r.slice(0, r.length - 1)]
|
|
1421
1421
|
};
|
|
1422
|
-
|
|
1422
|
+
Ct(n, i).features.length > 0 && (e = !0);
|
|
1423
1423
|
}
|
|
1424
1424
|
return e;
|
|
1425
1425
|
}
|
|
@@ -1541,7 +1541,7 @@ class $0 extends De {
|
|
|
1541
1541
|
});
|
|
1542
1542
|
}
|
|
1543
1543
|
}
|
|
1544
|
-
class Ge extends
|
|
1544
|
+
class Ge extends dt {
|
|
1545
1545
|
handleClick(A, e) {
|
|
1546
1546
|
super.handleClick(A, e), e.onEdit({
|
|
1547
1547
|
// data is the same
|
|
@@ -1752,11 +1752,11 @@ function rr({
|
|
|
1752
1752
|
layerProps: n = {},
|
|
1753
1753
|
defaultType: i = "mask"
|
|
1754
1754
|
}) {
|
|
1755
|
-
const o = I((E) => E.getController), s = I((E) => E.setController), a =
|
|
1755
|
+
const o = I((E) => E.getController), s = I((E) => E.setController), a = W((E) => E.data[A]?.enabled), l = W((E) => E.setEnabled), c = W((E) => E.data[A]?.values), f = W((E) => E.setValue), h = W((E) => E.data[A]?.modeInstance), p = W((E) => E.data[A]?.modeSelected), d = kA((E) => E.setLayer), w = I((E) => E.addLayers), b = I((E) => E.removeLayers), u = I(IA((E) => E.maps[A]?.layers.filter((_) => !tr.includes(_)))), g = I((E) => E.getDeckInstance), m = TA({});
|
|
1756
1756
|
Re({
|
|
1757
1757
|
mapId: A,
|
|
1758
1758
|
layerId: mA
|
|
1759
|
-
}),
|
|
1759
|
+
}), K(() => {
|
|
1760
1760
|
const E = o(A);
|
|
1761
1761
|
return a && s(A, {
|
|
1762
1762
|
doubleClickZoom: !1,
|
|
@@ -1775,22 +1775,22 @@ function rr({
|
|
|
1775
1775
|
properties: E.properties,
|
|
1776
1776
|
id: E.id
|
|
1777
1777
|
}))
|
|
1778
|
-
}), [v]), k = RA(() => v.filter((E) => E.properties.visible).map((E) => E.id), [v]), [B,
|
|
1778
|
+
}), [v]), k = RA(() => v.filter((E) => E.properties.visible).map((E) => E.id), [v]), [B, M] = cA(y), [C, S] = cA([]), P = vA(() => {
|
|
1779
1779
|
const E = {
|
|
1780
1780
|
...y,
|
|
1781
1781
|
features: y.features.filter((_) => _.properties?.visible)
|
|
1782
1782
|
};
|
|
1783
|
-
|
|
1783
|
+
M(E);
|
|
1784
1784
|
}, [y]);
|
|
1785
|
-
|
|
1785
|
+
K(() => {
|
|
1786
1786
|
P();
|
|
1787
1787
|
}, [P]);
|
|
1788
1788
|
const D = TA(v.length);
|
|
1789
|
-
|
|
1789
|
+
K(() => (w(A, [mA]), () => {
|
|
1790
1790
|
b(A, [mA]);
|
|
1791
1791
|
}), [w, A, b]);
|
|
1792
1792
|
const x = vA(() => {
|
|
1793
|
-
P(),
|
|
1793
|
+
P(), S([]), l(A, !1);
|
|
1794
1794
|
}, [A, P, l]), R = vA((E) => {
|
|
1795
1795
|
E.forEach((_, T) => {
|
|
1796
1796
|
_.properties.label ??= `${r?.mask} ${D.current}`, _.properties.index = T, _.properties.visible = _.properties.visible ?? !0;
|
|
@@ -1809,9 +1809,9 @@ function rr({
|
|
|
1809
1809
|
x();
|
|
1810
1810
|
return;
|
|
1811
1811
|
}
|
|
1812
|
-
|
|
1812
|
+
M(_), E !== rA.updateTentativeFeature && E === rA.addFeature && (p !== "edit" && (D.current = D.current + 1), R(_.features), x());
|
|
1813
1813
|
}, [R, x, p]);
|
|
1814
|
-
return
|
|
1814
|
+
return K(() => {
|
|
1815
1815
|
const E = a, {
|
|
1816
1816
|
border: _,
|
|
1817
1817
|
point: T,
|
|
@@ -1830,7 +1830,7 @@ function rr({
|
|
|
1830
1830
|
},
|
|
1831
1831
|
onClick: (U) => {
|
|
1832
1832
|
const V = U;
|
|
1833
|
-
V.isGuide ||
|
|
1833
|
+
V.isGuide || S([V.index]);
|
|
1834
1834
|
}
|
|
1835
1835
|
},
|
|
1836
1836
|
getLineColor: (U) => C[0] === U.properties.index ? _ : O,
|
|
@@ -1840,10 +1840,10 @@ function rr({
|
|
|
1840
1840
|
outline: _
|
|
1841
1841
|
},
|
|
1842
1842
|
onEdit: N,
|
|
1843
|
-
mode: E ? h : new
|
|
1843
|
+
mode: E ? h : new mt()
|
|
1844
1844
|
});
|
|
1845
1845
|
d(mA, G);
|
|
1846
|
-
}, [B, a, n.mask, k, h, N, C, d, e.colors.editing, e.colors.finished]),
|
|
1846
|
+
}, [B, a, n.mask, k, h, N, C, d, e.colors.editing, e.colors.finished]), K(() => {
|
|
1847
1847
|
const E = {
|
|
1848
1848
|
...PA,
|
|
1849
1849
|
data: y,
|
|
@@ -1853,14 +1853,14 @@ function rr({
|
|
|
1853
1853
|
}
|
|
1854
1854
|
};
|
|
1855
1855
|
return d(PA.id, {
|
|
1856
|
-
type:
|
|
1856
|
+
type: kt,
|
|
1857
1857
|
props: E
|
|
1858
1858
|
}), w(A, [PA.id]), () => {
|
|
1859
1859
|
b(A, [PA.id]);
|
|
1860
1860
|
};
|
|
1861
|
-
}, [w, A, y, k, b, d]),
|
|
1861
|
+
}, [w, A, y, k, b, d]), K(() => {
|
|
1862
1862
|
!a && C.length && B.features.length && (R(B.features), x());
|
|
1863
|
-
}, [B.features, a, R, x, C.length]),
|
|
1863
|
+
}, [B.features, a, R, x, C.length]), K(() => {
|
|
1864
1864
|
u?.forEach((E) => {
|
|
1865
1865
|
const _ = g(A)?.props.layers.find((L) => L.props.id === E);
|
|
1866
1866
|
if (!_) return;
|
|
@@ -1869,7 +1869,7 @@ function rr({
|
|
|
1869
1869
|
d(E, {
|
|
1870
1870
|
props: {
|
|
1871
1871
|
pickable: T,
|
|
1872
|
-
extensions: [new
|
|
1872
|
+
extensions: [new yt()],
|
|
1873
1873
|
maskId: !a && k.length ? QA : void 0
|
|
1874
1874
|
}
|
|
1875
1875
|
});
|
|
@@ -2075,9 +2075,9 @@ function sr(t) {
|
|
|
2075
2075
|
} = t;
|
|
2076
2076
|
let n;
|
|
2077
2077
|
A[0] !== r ? (n = or(r), A[0] = r, A[1] = n) : n = A[1];
|
|
2078
|
-
const [i] =
|
|
2078
|
+
const [i] = cA(n);
|
|
2079
2079
|
let o;
|
|
2080
|
-
return A[2] !== e || A[3] !== i ? (o = /* @__PURE__ */
|
|
2080
|
+
return A[2] !== e || A[3] !== i ? (o = /* @__PURE__ */ Y(ze.Provider, { value: i, children: e }), A[2] = e, A[3] = i, A[4] = o) : o = A[4], o;
|
|
2081
2081
|
}
|
|
2082
2082
|
function H(t) {
|
|
2083
2083
|
const A = $A(ze);
|
|
@@ -2118,11 +2118,11 @@ function je(t) {
|
|
|
2118
2118
|
g(!!Q), y(e, Q);
|
|
2119
2119
|
}, A[18] = y, A[19] = e, A[20] = g, A[21] = k) : k = A[21];
|
|
2120
2120
|
const B = k;
|
|
2121
|
-
let
|
|
2122
|
-
A[22] !== e ? (
|
|
2123
|
-
const C = H(
|
|
2121
|
+
let M;
|
|
2122
|
+
A[22] !== e ? (M = (Q) => Q.measurements[e].finished, A[22] = e, A[23] = M) : M = A[23];
|
|
2123
|
+
const C = H(M), S = H(fr);
|
|
2124
2124
|
let P;
|
|
2125
|
-
A[24] !==
|
|
2125
|
+
A[24] !== S || A[25] !== e ? (P = (Q) => S(e, Q), A[24] = S, A[25] = e, A[26] = P) : P = A[26];
|
|
2126
2126
|
const D = P;
|
|
2127
2127
|
let x;
|
|
2128
2128
|
A[27] !== e ? (x = (Q) => Q.measurements[e].locale, A[27] = e, A[28] = x) : x = A[28];
|
|
@@ -2138,13 +2138,13 @@ function je(t) {
|
|
|
2138
2138
|
const G = z;
|
|
2139
2139
|
let U;
|
|
2140
2140
|
A[37] !== e ? (U = (Q) => Q.measurements[e].positions, A[37] = e, A[38] = U) : U = A[38];
|
|
2141
|
-
const V = H(U),
|
|
2141
|
+
const V = H(U), q = H(ar);
|
|
2142
2142
|
let nA;
|
|
2143
|
-
A[39] !==
|
|
2143
|
+
A[39] !== q || A[40] !== e ? (nA = (Q) => q(e, Q), A[39] = q, A[40] = e, A[41] = nA) : nA = A[41];
|
|
2144
2144
|
const J = nA;
|
|
2145
|
-
let
|
|
2146
|
-
A[42] !== e ? (
|
|
2147
|
-
const X = H(
|
|
2145
|
+
let aA;
|
|
2146
|
+
A[42] !== e ? (aA = (Q) => Q.measurements[e].unit, A[42] = e, A[43] = aA) : aA = A[43];
|
|
2147
|
+
const X = H(aA), eA = H(lr);
|
|
2148
2148
|
let Z;
|
|
2149
2149
|
A[44] !== eA || A[45] !== e ? (Z = (Q) => eA(e, Q), A[44] = eA, A[45] = e, A[46] = Z) : Z = A[46];
|
|
2150
2150
|
const $ = Z;
|
|
@@ -2153,11 +2153,11 @@ function je(t) {
|
|
|
2153
2153
|
L?.resetClickSequence(), J([]);
|
|
2154
2154
|
}, A[47] = L, A[48] = J, A[49] = AA) : AA = A[49];
|
|
2155
2155
|
const oA = AA;
|
|
2156
|
-
let
|
|
2157
|
-
A[50] !== g ? (
|
|
2156
|
+
let SA;
|
|
2157
|
+
A[50] !== g ? (SA = (Q) => {
|
|
2158
2158
|
g(Q);
|
|
2159
|
-
}, A[50] = g, A[51] =
|
|
2160
|
-
const FA =
|
|
2159
|
+
}, A[50] = g, A[51] = SA) : SA = A[51];
|
|
2160
|
+
const FA = SA;
|
|
2161
2161
|
let xA;
|
|
2162
2162
|
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 = {
|
|
2163
2163
|
modes: n,
|
|
@@ -2236,9 +2236,9 @@ function dr(t) {
|
|
|
2236
2236
|
positions: y,
|
|
2237
2237
|
setPositions: k,
|
|
2238
2238
|
unit: B,
|
|
2239
|
-
setUnit:
|
|
2239
|
+
setUnit: M,
|
|
2240
2240
|
clearLayer: C,
|
|
2241
|
-
toggleLayer:
|
|
2241
|
+
toggleLayer: S
|
|
2242
2242
|
} = je(i);
|
|
2243
2243
|
let P;
|
|
2244
2244
|
A[2] !== f || A[3] !== o || A[4] !== v || A[5] !== k ? (P = () => {
|
|
@@ -2251,14 +2251,14 @@ function dr(t) {
|
|
|
2251
2251
|
};
|
|
2252
2252
|
}, A[2] = f, A[3] = o, A[4] = v, A[5] = k, A[6] = P) : P = A[6];
|
|
2253
2253
|
let D;
|
|
2254
|
-
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],
|
|
2254
|
+
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);
|
|
2255
2255
|
let x;
|
|
2256
|
-
A[13] !==
|
|
2257
|
-
_ && (c || !w) && C(),
|
|
2258
|
-
}, A[13] =
|
|
2256
|
+
A[13] !== S || A[14] !== C || A[15] !== c || A[16] !== w ? (x = (_) => {
|
|
2257
|
+
_ && (c || !w) && C(), S(_);
|
|
2258
|
+
}, A[13] = S, A[14] = C, A[15] = c, A[16] = w, A[17] = x) : x = A[17];
|
|
2259
2259
|
const R = x, N = !!c;
|
|
2260
2260
|
let E;
|
|
2261
|
-
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] !==
|
|
2261
|
+
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({
|
|
2262
2262
|
mapId: e,
|
|
2263
2263
|
distance: a,
|
|
2264
2264
|
enabled: p,
|
|
@@ -2282,11 +2282,11 @@ function dr(t) {
|
|
|
2282
2282
|
setFinished: b,
|
|
2283
2283
|
setLocale: g,
|
|
2284
2284
|
setPositions: k,
|
|
2285
|
-
setUnit:
|
|
2285
|
+
setUnit: M,
|
|
2286
2286
|
setEnabled: d,
|
|
2287
2287
|
toggleLayer: R,
|
|
2288
2288
|
clearLayer: C
|
|
2289
|
-
}), 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] =
|
|
2289
|
+
}), 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;
|
|
2290
2290
|
}
|
|
2291
2291
|
const mr = [fA];
|
|
2292
2292
|
function wr(t) {
|
|
@@ -2318,9 +2318,9 @@ function wr(t) {
|
|
|
2318
2318
|
unit: u,
|
|
2319
2319
|
modeInstance: g
|
|
2320
2320
|
} = je(c), m = kA(Br), v = I(Cr), y = I(kr), k = I(Er), B = I(vr);
|
|
2321
|
-
let
|
|
2322
|
-
A[4] !== r ? (
|
|
2323
|
-
const C = I(IA(
|
|
2321
|
+
let M;
|
|
2322
|
+
A[4] !== r ? (M = (G) => G.maps[r]?.layers.filter(br), A[4] = r, A[5] = M) : M = A[5];
|
|
2323
|
+
const C = I(IA(M)), S = I(yr);
|
|
2324
2324
|
let P;
|
|
2325
2325
|
A[6] === Symbol.for("react.memo_cache_sentinel") ? (P = {}, A[6] = P) : P = A[6];
|
|
2326
2326
|
const D = TA(P);
|
|
@@ -2337,11 +2337,11 @@ function wr(t) {
|
|
|
2337
2337
|
})), () => {
|
|
2338
2338
|
B(r, [fA]), y(r, G);
|
|
2339
2339
|
};
|
|
2340
|
-
}, 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]),
|
|
2340
|
+
}, 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);
|
|
2341
2341
|
let E, _;
|
|
2342
|
-
A[17] !== h || A[18] !==
|
|
2342
|
+
A[17] !== h || A[18] !== S || A[19] !== r || A[20] !== C || A[21] !== m ? (E = () => {
|
|
2343
2343
|
C?.forEach((G) => {
|
|
2344
|
-
const U =
|
|
2344
|
+
const U = S(r)?.props.layers.find((q) => q.props.id === G);
|
|
2345
2345
|
if (!U)
|
|
2346
2346
|
return;
|
|
2347
2347
|
h && (D.current[G] = U?.props.pickable);
|
|
@@ -2352,7 +2352,7 @@ function wr(t) {
|
|
|
2352
2352
|
}
|
|
2353
2353
|
});
|
|
2354
2354
|
});
|
|
2355
|
-
}, _ = [h,
|
|
2355
|
+
}, _ = [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, _);
|
|
2356
2356
|
let T;
|
|
2357
2357
|
A[24] !== g || A[25] !== f || A[26] !== d || A[27] !== b ? (T = (G) => {
|
|
2358
2358
|
const {
|
|
@@ -2364,8 +2364,8 @@ function wr(t) {
|
|
|
2364
2364
|
return;
|
|
2365
2365
|
}
|
|
2366
2366
|
U === rA.addPosition && f(V.distance), d(!!V.finished);
|
|
2367
|
-
const
|
|
2368
|
-
|
|
2367
|
+
const q = V.positions;
|
|
2368
|
+
q?.length && b(q);
|
|
2369
2369
|
}, A[24] = g, A[25] = f, A[26] = d, A[27] = b, A[28] = T) : T = A[28];
|
|
2370
2370
|
const L = T;
|
|
2371
2371
|
let O, z;
|
|
@@ -2385,7 +2385,7 @@ function wr(t) {
|
|
|
2385
2385
|
textOptions: o
|
|
2386
2386
|
});
|
|
2387
2387
|
m(fA, V);
|
|
2388
|
-
}, z = [p, g, i, w, L, m, l.colors.editing, l.colors.finished, l.colors.point, o, u, h], A[29] = h, A[30] = p, A[31] = i, A[32] = w, A[33] = g, A[34] = L, A[35] = m, A[36] = l.colors.editing, A[37] = l.colors.finished, A[38] = l.colors.point, A[39] = o, A[40] = u, A[41] = O, A[42] = z) : (O = A[41], z = A[42]),
|
|
2388
|
+
}, z = [p, g, i, w, L, m, l.colors.editing, l.colors.finished, l.colors.point, o, u, h], A[29] = h, A[30] = p, A[31] = i, A[32] = w, A[33] = g, A[34] = L, A[35] = m, A[36] = l.colors.editing, A[37] = l.colors.finished, A[38] = l.colors.point, A[39] = o, A[40] = u, A[41] = O, A[42] = z) : (O = A[41], z = A[42]), K(O, z), e;
|
|
2389
2389
|
}
|
|
2390
2390
|
function yr(t) {
|
|
2391
2391
|
return t.getDeckInstance;
|
|
@@ -2417,19 +2417,19 @@ function _r(t) {
|
|
|
2417
2417
|
A[0] !== e ? (r = (a) => a.maps[e], A[0] = e, A[1] = r) : r = A[1];
|
|
2418
2418
|
const {
|
|
2419
2419
|
layers: n
|
|
2420
|
-
} = I(r), i = kA(
|
|
2420
|
+
} = I(r), i = kA(Sr);
|
|
2421
2421
|
let o;
|
|
2422
2422
|
if (A[2] !== i || A[3] !== n) {
|
|
2423
2423
|
let a;
|
|
2424
|
-
A[5] !== i ? (a = (l) => i[l], A[5] = i, A[6] = a) : a = A[6], o = n.map(a).filter(
|
|
2424
|
+
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;
|
|
2425
2425
|
} else
|
|
2426
2426
|
o = A[4];
|
|
2427
2427
|
return o;
|
|
2428
2428
|
}
|
|
2429
|
-
function
|
|
2429
|
+
function Mr(t) {
|
|
2430
2430
|
return !!t;
|
|
2431
2431
|
}
|
|
2432
|
-
function
|
|
2432
|
+
function Sr(t) {
|
|
2433
2433
|
return t.layers;
|
|
2434
2434
|
}
|
|
2435
2435
|
const we = [QA, mA, fA];
|
|
@@ -2467,11 +2467,11 @@ function bi(t) {
|
|
|
2467
2467
|
mapId: e
|
|
2468
2468
|
}, A[15] = e, A[16] = k) : k = A[16];
|
|
2469
2469
|
const B = _r(k);
|
|
2470
|
-
let S;
|
|
2471
|
-
A[17] !== B ? (S = Ve(B), A[17] = B, A[18] = S) : S = A[18];
|
|
2472
|
-
const C = S;
|
|
2473
2470
|
let M;
|
|
2474
|
-
A[
|
|
2471
|
+
A[17] !== B ? (M = Ve(B), A[17] = B, A[18] = M) : M = A[18];
|
|
2472
|
+
const C = M;
|
|
2473
|
+
let S;
|
|
2474
|
+
A[19] !== e || A[20] !== n || A[21] !== g || A[22] !== y ? (S = (O) => {
|
|
2475
2475
|
const z = g;
|
|
2476
2476
|
if (h.current && clearInterval(h.current), h.current = setTimeout(() => {
|
|
2477
2477
|
y(e);
|
|
@@ -2480,8 +2480,8 @@ function bi(t) {
|
|
|
2480
2480
|
return;
|
|
2481
2481
|
}
|
|
2482
2482
|
z(e, O.viewState);
|
|
2483
|
-
}, A[19] = e, A[20] = n, A[21] = g, A[22] = y, A[23] =
|
|
2484
|
-
const P =
|
|
2483
|
+
}, A[19] = e, A[20] = n, A[21] = g, A[22] = y, A[23] = S) : S = A[23];
|
|
2484
|
+
const P = S;
|
|
2485
2485
|
let D;
|
|
2486
2486
|
A[24] !== e || A[25] !== r || A[26] !== m || A[27] !== y ? (D = (O) => {
|
|
2487
2487
|
m(e, O), r?.(O), y(e);
|
|
@@ -2500,7 +2500,7 @@ function bi(t) {
|
|
|
2500
2500
|
}, A[34] = E, A[35] = e, A[36] = y, A[37] = _) : _ = A[37];
|
|
2501
2501
|
const T = _;
|
|
2502
2502
|
let L;
|
|
2503
|
-
return A[38] !== s || A[39] !== C || A[40] !== b || A[41] !== N || A[42] !== T || A[43] !== x || A[44] !== P || A[45] !== e || A[46] !== l || A[47] !== f || A[48] !== i || A[49] !== d ? (L = /* @__PURE__ */
|
|
2503
|
+
return A[38] !== s || A[39] !== C || A[40] !== b || A[41] !== N || A[42] !== T || A[43] !== x || A[44] !== P || A[45] !== e || A[46] !== l || A[47] !== f || A[48] !== i || A[49] !== d ? (L = /* @__PURE__ */ Y(f0, { ...i, controller: b, id: e, layers: C, instanceRef: l, overlayRef: f, basemap: s, initialViewState: d, onLoad: x, onViewStateChange: P, onAfterRender: N, onDragEnd: T }), A[38] = s, A[39] = C, A[40] = b, A[41] = N, A[42] = T, A[43] = x, A[44] = P, A[45] = e, A[46] = l, A[47] = f, A[48] = i, A[49] = d, A[50] = L) : L = A[50], L;
|
|
2504
2504
|
}
|
|
2505
2505
|
function Dr(t) {
|
|
2506
2506
|
return t?.isLoaded;
|
|
@@ -2721,7 +2721,7 @@ function Hr({
|
|
|
2721
2721
|
class Yr extends Qe {
|
|
2722
2722
|
features = [];
|
|
2723
2723
|
_filterFeaturesBySpatial(A) {
|
|
2724
|
-
return A ? this.features.filter((e) =>
|
|
2724
|
+
return A ? this.features.filter((e) => Bt(e, _t(A))) : this.features;
|
|
2725
2725
|
}
|
|
2726
2726
|
/**
|
|
2727
2727
|
* Loads features as GeoJSON.
|
|
@@ -2767,7 +2767,7 @@ class Yr extends Qe {
|
|
|
2767
2767
|
spatialFilter: s
|
|
2768
2768
|
}) {
|
|
2769
2769
|
const a = this._getFilteredFeatures(s, i, o);
|
|
2770
|
-
return a.length ? (pA(a, r), Promise.resolve(
|
|
2770
|
+
return a.length ? (pA(a, r), Promise.resolve(Ft({
|
|
2771
2771
|
data: a,
|
|
2772
2772
|
valuesColumns: bA(r),
|
|
2773
2773
|
joinOperation: n,
|
|
@@ -2791,7 +2791,7 @@ class Yr extends Qe {
|
|
|
2791
2791
|
if (!f.length)
|
|
2792
2792
|
return Promise.resolve([]);
|
|
2793
2793
|
pA(f, A, r);
|
|
2794
|
-
const h =
|
|
2794
|
+
const h = Rt({
|
|
2795
2795
|
data: f,
|
|
2796
2796
|
valuesColumns: bA(r ?? A),
|
|
2797
2797
|
joinOperation: n,
|
|
@@ -2801,7 +2801,7 @@ class Yr extends Qe {
|
|
|
2801
2801
|
orderBy: l
|
|
2802
2802
|
});
|
|
2803
2803
|
return c ? Promise.resolve(h) : a ? Promise.resolve([...h?.rows ?? [], {
|
|
2804
|
-
name:
|
|
2804
|
+
name: Nt,
|
|
2805
2805
|
value: h?.metadata?.others ?? 0
|
|
2806
2806
|
}]) : Promise.resolve(h?.rows ?? []);
|
|
2807
2807
|
}
|
|
@@ -2815,7 +2815,7 @@ class Yr extends Qe {
|
|
|
2815
2815
|
spatialFilter: s
|
|
2816
2816
|
}) {
|
|
2817
2817
|
const a = this._getFilteredFeatures(s, i, o);
|
|
2818
|
-
return a.length ? (pA(a, A, e), Promise.resolve(
|
|
2818
|
+
return a.length ? (pA(a, A, e), Promise.resolve(Ut({
|
|
2819
2819
|
data: a,
|
|
2820
2820
|
xAxisColumns: bA(A),
|
|
2821
2821
|
xAxisJoinOperation: r,
|
|
@@ -2843,7 +2843,7 @@ class Yr extends Qe {
|
|
|
2843
2843
|
totalCount: 0
|
|
2844
2844
|
});
|
|
2845
2845
|
e && r && (console.warn('WidgetGeoJsonSource: "searchFilterText" is deprecated, use "filters" and FilterType.STRING_SEARCH instead.'), h = h.filter((w) => w[e] && String(w[e]).toLowerCase().includes(String(r).toLowerCase())));
|
|
2846
|
-
let p =
|
|
2846
|
+
let p = Gt(h, {
|
|
2847
2847
|
sortBy: n,
|
|
2848
2848
|
sortByDirection: i,
|
|
2849
2849
|
sortByColumnType: o
|
|
@@ -2876,7 +2876,7 @@ class Yr extends Qe {
|
|
|
2876
2876
|
rows: []
|
|
2877
2877
|
});
|
|
2878
2878
|
pA(l, A, n), BA(r !== "custom", "Custom operation not supported for geojson");
|
|
2879
|
-
const c =
|
|
2879
|
+
const c = zt({
|
|
2880
2880
|
data: l,
|
|
2881
2881
|
valuesColumns: bA(n ?? A),
|
|
2882
2882
|
keysColumn: A,
|
|
@@ -2930,7 +2930,7 @@ class Yr extends Qe {
|
|
|
2930
2930
|
}
|
|
2931
2931
|
/** @experimental */
|
|
2932
2932
|
getExtent() {
|
|
2933
|
-
const A =
|
|
2933
|
+
const A = Mt(St(this.features));
|
|
2934
2934
|
return Promise.resolve({
|
|
2935
2935
|
bbox: A
|
|
2936
2936
|
});
|
|
@@ -2940,7 +2940,7 @@ class Yr extends Qe {
|
|
|
2940
2940
|
*/
|
|
2941
2941
|
_getFilteredFeatures(A, e, r) {
|
|
2942
2942
|
const n = this._filterFeaturesBySpatial(A);
|
|
2943
|
-
return
|
|
2943
|
+
return jt(n.map((i) => i.properties ?? {}), Vt(r, e ?? this.props.filters), this.props.filtersLogicalOperator ?? "and");
|
|
2944
2944
|
}
|
|
2945
2945
|
}
|
|
2946
2946
|
function BA(t, A) {
|
|
@@ -3107,7 +3107,7 @@ class qr extends Qe {
|
|
|
3107
3107
|
return this._executeWorkerMethod(iA.GET_EXTENT, [e], A);
|
|
3108
3108
|
}
|
|
3109
3109
|
}
|
|
3110
|
-
const ie =
|
|
3110
|
+
const ie = Se()(Xt((t, A) => ({
|
|
3111
3111
|
sources: {},
|
|
3112
3112
|
filters: {},
|
|
3113
3113
|
setSource: (e, r) => t((n) => {
|
|
@@ -3154,7 +3154,7 @@ const ie = Me()(Jt((t, A) => ({
|
|
|
3154
3154
|
if (!o)
|
|
3155
3155
|
return i;
|
|
3156
3156
|
let s = {};
|
|
3157
|
-
return r && (s =
|
|
3157
|
+
return r && (s = Ht(o, {
|
|
3158
3158
|
column: r,
|
|
3159
3159
|
owner: n
|
|
3160
3160
|
})), {
|
|
@@ -3246,7 +3246,7 @@ function Zr({
|
|
|
3246
3246
|
} = $r(t), r = {
|
|
3247
3247
|
query: () => {
|
|
3248
3248
|
const o = t;
|
|
3249
|
-
return new
|
|
3249
|
+
return new $t({
|
|
3250
3250
|
...o,
|
|
3251
3251
|
accessToken: "",
|
|
3252
3252
|
sqlQuery: o.data,
|
|
@@ -3256,7 +3256,7 @@ function Zr({
|
|
|
3256
3256
|
},
|
|
3257
3257
|
table: () => {
|
|
3258
3258
|
const o = t;
|
|
3259
|
-
return new
|
|
3259
|
+
return new Kt({
|
|
3260
3260
|
...o,
|
|
3261
3261
|
accessToken: "",
|
|
3262
3262
|
tableName: o.data,
|
|
@@ -3266,11 +3266,11 @@ function Zr({
|
|
|
3266
3266
|
},
|
|
3267
3267
|
tileset: () => {
|
|
3268
3268
|
const o = t;
|
|
3269
|
-
return o.spatialDataBounds ? new
|
|
3269
|
+
return o.spatialDataBounds ? new qt({
|
|
3270
3270
|
...o,
|
|
3271
3271
|
accessToken: "",
|
|
3272
3272
|
tableName: o.data,
|
|
3273
|
-
tileFormat: o.tileFormat ??
|
|
3273
|
+
tileFormat: o.tileFormat ?? Wt.BINARY,
|
|
3274
3274
|
spatialDataType: A,
|
|
3275
3275
|
spatialDataColumn: e,
|
|
3276
3276
|
spatialDataBounds: o.spatialDataBounds
|
|
@@ -3278,7 +3278,7 @@ function Zr({
|
|
|
3278
3278
|
},
|
|
3279
3279
|
raster: () => {
|
|
3280
3280
|
const o = t;
|
|
3281
|
-
return !o.rasterMetadata || !o.spatialDataBounds ? null : new
|
|
3281
|
+
return !o.rasterMetadata || !o.spatialDataBounds ? null : new Yt({
|
|
3282
3282
|
...o,
|
|
3283
3283
|
accessToken: "",
|
|
3284
3284
|
tableName: o.data,
|
|
@@ -3502,11 +3502,11 @@ function sn(t) {
|
|
|
3502
3502
|
let u;
|
|
3503
3503
|
if (A[9] !== d || A[10] !== o) {
|
|
3504
3504
|
let B;
|
|
3505
|
-
A[12] !== d.length || A[13] !== o ? (B = (
|
|
3506
|
-
const
|
|
3505
|
+
A[12] !== d.length || A[13] !== o ? (B = (M, C) => {
|
|
3506
|
+
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 = {
|
|
3507
3507
|
...o,
|
|
3508
3508
|
..."column" in o && {
|
|
3509
|
-
column:
|
|
3509
|
+
column: S
|
|
3510
3510
|
},
|
|
3511
3511
|
...P !== void 0 && {
|
|
3512
3512
|
operationExp: P
|
|
@@ -3523,21 +3523,21 @@ function sn(t) {
|
|
|
3523
3523
|
let m;
|
|
3524
3524
|
if (A[15] !== d || A[16] !== b || A[17] !== g) {
|
|
3525
3525
|
let B;
|
|
3526
|
-
A[19] !== b || A[20] !== g ? (B = (
|
|
3527
|
-
const
|
|
3526
|
+
A[19] !== b || A[20] !== g ? (B = (M, C) => {
|
|
3527
|
+
const S = g[C], P = [...M, S], D = b?.[C];
|
|
3528
3528
|
return D && P.push(D), P;
|
|
3529
3529
|
}, 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;
|
|
3530
3530
|
} else
|
|
3531
3531
|
m = A[18];
|
|
3532
3532
|
const v = m;
|
|
3533
3533
|
if (a) {
|
|
3534
|
-
const B = f?.[0],
|
|
3535
|
-
let
|
|
3536
|
-
return A[22] !== B || A[23] !==
|
|
3534
|
+
const B = f?.[0], M = h[0] ?? null, C = v[0];
|
|
3535
|
+
let S;
|
|
3536
|
+
return A[22] !== B || A[23] !== M || A[24] !== C ? (S = {
|
|
3537
3537
|
mergedFilters: B,
|
|
3538
|
-
widgetModel:
|
|
3538
|
+
widgetModel: M,
|
|
3539
3539
|
queryKey: C
|
|
3540
|
-
}, A[22] = B, A[23] =
|
|
3540
|
+
}, A[22] = B, A[23] = M, A[24] = C, A[25] = S) : S = A[25], S;
|
|
3541
3541
|
}
|
|
3542
3542
|
let y;
|
|
3543
3543
|
A[26] !== f ? (y = f ?? [], A[26] = f, A[27] = y) : y = A[27];
|
|
@@ -3551,7 +3551,7 @@ function sn(t) {
|
|
|
3551
3551
|
function ln(t) {
|
|
3552
3552
|
return t ? JSON.stringify(t) : void 0;
|
|
3553
3553
|
}
|
|
3554
|
-
function
|
|
3554
|
+
function lA({
|
|
3555
3555
|
queryKeyPrefix: t,
|
|
3556
3556
|
getWidgetMethod: A
|
|
3557
3557
|
}) {
|
|
@@ -3598,7 +3598,7 @@ function cA({
|
|
|
3598
3598
|
const L = y?.[T];
|
|
3599
3599
|
if (!L)
|
|
3600
3600
|
return Promise.reject(new Error("widgetModel is not available"));
|
|
3601
|
-
const O = A(L), z = "column" in l ? $e(l.column, T, u.length) : void 0, G = "operationExp" in l ? EA(l.operationExp, T, u.length, "operationExp") : void 0, U = "operationColumn" in l ? EA(l.operationColumn, T, u.length, "operationColumn") : void 0, V = "spatialFilter" in l ? EA(l.spatialFilter, T, u.length, "spatialFilter") : void 0,
|
|
3601
|
+
const O = A(L), z = "column" in l ? $e(l.column, T, u.length) : void 0, G = "operationExp" in l ? EA(l.operationExp, T, u.length, "operationExp") : void 0, U = "operationColumn" in l ? EA(l.operationColumn, T, u.length, "operationColumn") : void 0, V = "spatialFilter" in l ? EA(l.spatialFilter, T, u.length, "spatialFilter") : void 0, q = {
|
|
3602
3602
|
...l,
|
|
3603
3603
|
..."column" in l && {
|
|
3604
3604
|
column: z
|
|
@@ -3614,7 +3614,7 @@ function cA({
|
|
|
3614
3614
|
}
|
|
3615
3615
|
};
|
|
3616
3616
|
return O({
|
|
3617
|
-
...
|
|
3617
|
+
...q,
|
|
3618
3618
|
filters: m?.[T],
|
|
3619
3619
|
signal: D
|
|
3620
3620
|
});
|
|
@@ -3634,14 +3634,14 @@ function cA({
|
|
|
3634
3634
|
throw E;
|
|
3635
3635
|
return s ? N.at(0) : N;
|
|
3636
3636
|
}, i[15] = u, i[16] = m, i[17] = s, i[18] = y, i[19] = l, i[20] = B) : B = i[20];
|
|
3637
|
-
const
|
|
3637
|
+
const M = !!y.length && w;
|
|
3638
3638
|
let C;
|
|
3639
|
-
return i[21] !== k || i[22] !== B || i[23] !==
|
|
3639
|
+
return i[21] !== k || i[22] !== B || i[23] !== M || i[24] !== d ? (C = {
|
|
3640
3640
|
queryKey: k,
|
|
3641
3641
|
queryFn: B,
|
|
3642
|
-
enabled:
|
|
3642
|
+
enabled: M,
|
|
3643
3643
|
...d
|
|
3644
|
-
}, i[21] = k, i[22] = B, i[23] =
|
|
3644
|
+
}, i[21] = k, i[22] = B, i[23] = M, i[24] = d, i[25] = C) : C = i[25], Ie(C);
|
|
3645
3645
|
}
|
|
3646
3646
|
function r(n) {
|
|
3647
3647
|
const i = F(3), o = e(n);
|
|
@@ -3656,7 +3656,7 @@ function cA({
|
|
|
3656
3656
|
const {
|
|
3657
3657
|
useModelHook: ki,
|
|
3658
3658
|
ModelComponent: Ci
|
|
3659
|
-
} =
|
|
3659
|
+
} = lA({
|
|
3660
3660
|
queryKeyPrefix: ["aggregations"],
|
|
3661
3661
|
getWidgetMethod: (t) => (A) => {
|
|
3662
3662
|
const e = A.aggregations;
|
|
@@ -3697,53 +3697,59 @@ function an(t) {
|
|
|
3697
3697
|
const {
|
|
3698
3698
|
useModelHook: Bi,
|
|
3699
3699
|
ModelComponent: _i
|
|
3700
|
-
} =
|
|
3700
|
+
} = lA({
|
|
3701
3701
|
queryKeyPrefix: ["categories"],
|
|
3702
3702
|
getWidgetMethod: (t) => (A) => t.getCategories(A)
|
|
3703
3703
|
}), {
|
|
3704
|
-
useModelHook:
|
|
3705
|
-
ModelComponent:
|
|
3706
|
-
} =
|
|
3704
|
+
useModelHook: Mi,
|
|
3705
|
+
ModelComponent: Si
|
|
3706
|
+
} = lA({
|
|
3707
3707
|
queryKeyPrefix: ["features"],
|
|
3708
3708
|
getWidgetMethod: (t) => (A) => t.getFeatures(A)
|
|
3709
3709
|
}), {
|
|
3710
3710
|
useModelHook: xi,
|
|
3711
3711
|
ModelComponent: Di
|
|
3712
|
-
} =
|
|
3712
|
+
} = lA({
|
|
3713
3713
|
queryKeyPrefix: ["formula"],
|
|
3714
3714
|
getWidgetMethod: (t) => (A) => t.getFormula(A)
|
|
3715
3715
|
}), {
|
|
3716
3716
|
useModelHook: Pi,
|
|
3717
3717
|
ModelComponent: Ti
|
|
3718
|
-
} =
|
|
3718
|
+
} = lA({
|
|
3719
3719
|
queryKeyPrefix: ["histogram"],
|
|
3720
3720
|
getWidgetMethod: (t) => (A) => t.getHistogram(A)
|
|
3721
3721
|
}), {
|
|
3722
3722
|
useModelHook: Li,
|
|
3723
3723
|
ModelComponent: Ii
|
|
3724
|
-
} =
|
|
3724
|
+
} = lA({
|
|
3725
3725
|
queryKeyPrefix: ["range"],
|
|
3726
3726
|
getWidgetMethod: (t) => (A) => t.getRange(A)
|
|
3727
3727
|
}), {
|
|
3728
3728
|
useModelHook: Qi,
|
|
3729
3729
|
ModelComponent: Oi
|
|
3730
|
-
} =
|
|
3730
|
+
} = lA({
|
|
3731
3731
|
queryKeyPrefix: ["scatter"],
|
|
3732
3732
|
getWidgetMethod: (t) => (A) => t.getScatter(A)
|
|
3733
3733
|
}), {
|
|
3734
3734
|
useModelHook: Fi,
|
|
3735
3735
|
ModelComponent: Ri
|
|
3736
|
-
} =
|
|
3737
|
-
queryKeyPrefix: ["
|
|
3738
|
-
getWidgetMethod: (t) => (A) => t.
|
|
3736
|
+
} = lA({
|
|
3737
|
+
queryKeyPrefix: ["spread"],
|
|
3738
|
+
getWidgetMethod: (t) => (A) => t.getRange(A)
|
|
3739
3739
|
}), {
|
|
3740
3740
|
useModelHook: Ni,
|
|
3741
3741
|
ModelComponent: Ui
|
|
3742
|
-
} =
|
|
3742
|
+
} = lA({
|
|
3743
|
+
queryKeyPrefix: ["table"],
|
|
3744
|
+
getWidgetMethod: (t) => (A) => t.getTable(A)
|
|
3745
|
+
}), {
|
|
3746
|
+
useModelHook: Gi,
|
|
3747
|
+
ModelComponent: zi
|
|
3748
|
+
} = lA({
|
|
3743
3749
|
queryKeyPrefix: ["timeSeries"],
|
|
3744
3750
|
getWidgetMethod: (t) => (A) => t.getTimeSeries(A)
|
|
3745
|
-
}),
|
|
3746
|
-
function
|
|
3751
|
+
}), ji = "ps";
|
|
3752
|
+
function Vi(t) {
|
|
3747
3753
|
const A = F(13), {
|
|
3748
3754
|
children: e,
|
|
3749
3755
|
maps: r,
|
|
@@ -3757,13 +3763,13 @@ function zi(t) {
|
|
|
3757
3763
|
A[2] !== i ? (a = i === void 0 ? [] : i, A[2] = i, A[3] = a) : a = A[3];
|
|
3758
3764
|
const l = a;
|
|
3759
3765
|
let c;
|
|
3760
|
-
A[4] !== e || A[5] !== l ? (c = /* @__PURE__ */
|
|
3766
|
+
A[4] !== e || A[5] !== l ? (c = /* @__PURE__ */ Y(sr, { values: l, children: e }), A[4] = e, A[5] = l, A[6] = c) : c = A[6];
|
|
3761
3767
|
let f;
|
|
3762
|
-
A[7] !== s || A[8] !== c ? (f = /* @__PURE__ */
|
|
3768
|
+
A[7] !== s || A[8] !== c ? (f = /* @__PURE__ */ Y(F0, { values: s, children: c }), A[7] = s, A[8] = c, A[9] = f) : f = A[9];
|
|
3763
3769
|
let h;
|
|
3764
|
-
return A[10] !== r || A[11] !== f ? (h = /* @__PURE__ */
|
|
3770
|
+
return A[10] !== r || A[11] !== f ? (h = /* @__PURE__ */ Y(_0, { values: r, children: f }), A[10] = r, A[11] = f, A[12] = h) : h = A[12], h;
|
|
3765
3771
|
}
|
|
3766
|
-
function
|
|
3772
|
+
function Hi(t, A) {
|
|
3767
3773
|
const e = F(19), r = kA(fn), n = kA(cn);
|
|
3768
3774
|
let i;
|
|
3769
3775
|
if (e[0] !== r || e[1] !== t) {
|
|
@@ -3833,12 +3839,12 @@ function cn(t) {
|
|
|
3833
3839
|
function fn(t) {
|
|
3834
3840
|
return t.layers;
|
|
3835
3841
|
}
|
|
3836
|
-
function
|
|
3842
|
+
function Yi({
|
|
3837
3843
|
mapId: t
|
|
3838
3844
|
}) {
|
|
3839
|
-
const [A, e] =
|
|
3845
|
+
const [A, e] = cA(void 0), [r, n] = cA(!1), [i, o] = cA(void 0), s = I((u) => u.maps[t]?.basemap), a = I((u) => u.getDeckInstance), l = I((u) => u.getOverlayInstance), c = I((u) => u.areLayersLoaded[t]), h = I((u) => u.maps[t]?.isLoaded) && c, {
|
|
3840
3846
|
type: p
|
|
3841
|
-
} = _A[s], d = p ===
|
|
3847
|
+
} = _A[s], d = p === uA.googleMaps, w = vA(async () => {
|
|
3842
3848
|
const u = a(t), g = l(t);
|
|
3843
3849
|
try {
|
|
3844
3850
|
const m = document.createElement("canvas");
|
|
@@ -3848,7 +3854,7 @@ function Vi({
|
|
|
3848
3854
|
const k = g;
|
|
3849
3855
|
if (k.getRenderingType() !== "RASTER")
|
|
3850
3856
|
throw new Error("Only raster type is supported for Google Maps");
|
|
3851
|
-
const B = await
|
|
3857
|
+
const B = await A0(k.getDiv(), {
|
|
3852
3858
|
useCORS: !0
|
|
3853
3859
|
});
|
|
3854
3860
|
v?.drawImage(B, 0, 0, u.width, u.height);
|
|
@@ -3874,7 +3880,7 @@ function Vi({
|
|
|
3874
3880
|
error: i
|
|
3875
3881
|
};
|
|
3876
3882
|
}
|
|
3877
|
-
function
|
|
3883
|
+
function qi(t) {
|
|
3878
3884
|
const A = F(11), {
|
|
3879
3885
|
mapId: e
|
|
3880
3886
|
} = t;
|
|
@@ -3915,7 +3921,7 @@ function Ze(t) {
|
|
|
3915
3921
|
break A;
|
|
3916
3922
|
}
|
|
3917
3923
|
let o;
|
|
3918
|
-
A[2] !== n ? (o =
|
|
3924
|
+
A[2] !== n ? (o = Zt(n.getBounds()), A[2] = n, A[3] = o) : o = A[3], i = o;
|
|
3919
3925
|
}
|
|
3920
3926
|
return i;
|
|
3921
3927
|
}
|
|
@@ -3925,7 +3931,7 @@ function hn(t) {
|
|
|
3925
3931
|
} = t;
|
|
3926
3932
|
let r;
|
|
3927
3933
|
A[0] !== e ? (r = (o) => o.data[e]?.values, A[0] = e, A[1] = r) : r = A[1];
|
|
3928
|
-
const n =
|
|
3934
|
+
const n = W(r);
|
|
3929
3935
|
let i;
|
|
3930
3936
|
if (A[2] !== n) {
|
|
3931
3937
|
A: {
|
|
@@ -3936,7 +3942,7 @@ function hn(t) {
|
|
|
3936
3942
|
i = void 0;
|
|
3937
3943
|
break A;
|
|
3938
3944
|
}
|
|
3939
|
-
i =
|
|
3945
|
+
i = MA(o.map(gn)).geometry;
|
|
3940
3946
|
}
|
|
3941
3947
|
A[2] = n, A[3] = i;
|
|
3942
3948
|
} else
|
|
@@ -3965,7 +3971,7 @@ function dn(t) {
|
|
|
3965
3971
|
let o;
|
|
3966
3972
|
if (A[2] !== n) {
|
|
3967
3973
|
const s = Object.values(n).filter(wn).flatMap(mn);
|
|
3968
|
-
o =
|
|
3974
|
+
o = MA(s), A[2] = n, A[3] = o;
|
|
3969
3975
|
} else
|
|
3970
3976
|
o = A[3];
|
|
3971
3977
|
i = o.geometry;
|
|
@@ -3978,7 +3984,7 @@ function mn(t) {
|
|
|
3978
3984
|
function wn(t) {
|
|
3979
3985
|
return t != null;
|
|
3980
3986
|
}
|
|
3981
|
-
function
|
|
3987
|
+
function Wi(t) {
|
|
3982
3988
|
const A = F(13), {
|
|
3983
3989
|
mapId: e
|
|
3984
3990
|
} = t;
|
|
@@ -4016,7 +4022,7 @@ function yn(t) {
|
|
|
4016
4022
|
} = t;
|
|
4017
4023
|
let n;
|
|
4018
4024
|
A[0] !== e ? (n = (l) => l.data[e]?.values, A[0] = e, A[1] = n) : n = A[1];
|
|
4019
|
-
const i =
|
|
4025
|
+
const i = W(n);
|
|
4020
4026
|
let o;
|
|
4021
4027
|
if (A[2] !== i) {
|
|
4022
4028
|
A: {
|
|
@@ -4049,7 +4055,7 @@ function yn(t) {
|
|
|
4049
4055
|
const d = s[p];
|
|
4050
4056
|
if (d && d.length > 0) {
|
|
4051
4057
|
const w = d.map(En).join("|"), b = `${p}:${w}`;
|
|
4052
|
-
l.has(b) || l.set(b,
|
|
4058
|
+
l.has(b) || l.set(b, MA(d.map(vn)).geometry), a.push(l.get(b));
|
|
4053
4059
|
}
|
|
4054
4060
|
}
|
|
4055
4061
|
const h = new Set(c.filter((p) => {
|
|
@@ -4121,8 +4127,8 @@ function _n(t) {
|
|
|
4121
4127
|
if (d && d.length > 0) {
|
|
4122
4128
|
const w = d.map(xn).join("|"), b = `static:${p}:${w}`;
|
|
4123
4129
|
if (!l.has(b)) {
|
|
4124
|
-
const u = d.flatMap(
|
|
4125
|
-
l.set(b,
|
|
4130
|
+
const u = d.flatMap(Sn);
|
|
4131
|
+
l.set(b, MA(u).geometry);
|
|
4126
4132
|
}
|
|
4127
4133
|
a.push(l.get(b));
|
|
4128
4134
|
}
|
|
@@ -4131,7 +4137,7 @@ function _n(t) {
|
|
|
4131
4137
|
const d = s[p];
|
|
4132
4138
|
return d && d.length > 0;
|
|
4133
4139
|
}).map((p) => {
|
|
4134
|
-
const w = s[p].map(
|
|
4140
|
+
const w = s[p].map(Mn).join("|");
|
|
4135
4141
|
return `static:${p}:${w}`;
|
|
4136
4142
|
}));
|
|
4137
4143
|
for (const p of l.keys())
|
|
@@ -4141,10 +4147,10 @@ function _n(t) {
|
|
|
4141
4147
|
a = A[8];
|
|
4142
4148
|
return a;
|
|
4143
4149
|
}
|
|
4144
|
-
function
|
|
4150
|
+
function Mn(t) {
|
|
4145
4151
|
return `${t.type}:${JSON.stringify(t.coordinates).length}`;
|
|
4146
4152
|
}
|
|
4147
|
-
function
|
|
4153
|
+
function Sn(t) {
|
|
4148
4154
|
return t.type === "Polygon" ? [t.coordinates] : t.coordinates;
|
|
4149
4155
|
}
|
|
4150
4156
|
function xn(t) {
|
|
@@ -4167,7 +4173,7 @@ const dA = {
|
|
|
4167
4173
|
}, Be = {
|
|
4168
4174
|
[dA.currency]: {
|
|
4169
4175
|
type: dA.currency,
|
|
4170
|
-
format: (t, A) =>
|
|
4176
|
+
format: (t, A) => It(t, A)
|
|
4171
4177
|
},
|
|
4172
4178
|
[dA.number]: {
|
|
4173
4179
|
type: dA.number,
|
|
@@ -4178,7 +4184,7 @@ const dA = {
|
|
|
4178
4184
|
format: (t) => t.toLocaleString()
|
|
4179
4185
|
}
|
|
4180
4186
|
};
|
|
4181
|
-
function
|
|
4187
|
+
function Ki({
|
|
4182
4188
|
properties: t,
|
|
4183
4189
|
formatters: A = {},
|
|
4184
4190
|
includeColumns: e = Object.keys(t),
|
|
@@ -4215,7 +4221,7 @@ function On(t) {
|
|
|
4215
4221
|
function Fn(t) {
|
|
4216
4222
|
return `<strong>${t}</strong>: `;
|
|
4217
4223
|
}
|
|
4218
|
-
function
|
|
4224
|
+
function $i(t) {
|
|
4219
4225
|
return {
|
|
4220
4226
|
collapsed: t.legend?.collapsed,
|
|
4221
4227
|
collapsible: t.legend?.collapsible,
|
|
@@ -4232,19 +4238,19 @@ function Wi(t) {
|
|
|
4232
4238
|
};
|
|
4233
4239
|
}
|
|
4234
4240
|
const Rn = {
|
|
4235
|
-
Point: (t) =>
|
|
4236
|
-
LineString: (t) =>
|
|
4237
|
-
Polygon: (t) =>
|
|
4238
|
-
MultiPoint: (t) =>
|
|
4239
|
-
MultiLineString: (t) =>
|
|
4240
|
-
MultiPolygon: (t) =>
|
|
4241
|
+
Point: (t) => Lt(t.coordinates),
|
|
4242
|
+
LineString: (t) => Tt(t.coordinates),
|
|
4243
|
+
Polygon: (t) => Pt(t.coordinates),
|
|
4244
|
+
MultiPoint: (t) => Dt(t.coordinates),
|
|
4245
|
+
MultiLineString: (t) => xt(t.coordinates),
|
|
4246
|
+
MultiPolygon: (t) => MA(t.coordinates)
|
|
4241
4247
|
};
|
|
4242
|
-
function
|
|
4248
|
+
function Zi(t) {
|
|
4243
4249
|
const A = Rn[t.type], e = A?.(t);
|
|
4244
4250
|
if (e)
|
|
4245
4251
|
return Pe(e).geometry.coordinates;
|
|
4246
4252
|
}
|
|
4247
|
-
function
|
|
4253
|
+
function Ji(t) {
|
|
4248
4254
|
const A = F(22), {
|
|
4249
4255
|
children: e,
|
|
4250
4256
|
mapId: r
|
|
@@ -4341,7 +4347,7 @@ async function jn({
|
|
|
4341
4347
|
...s
|
|
4342
4348
|
});
|
|
4343
4349
|
}
|
|
4344
|
-
function
|
|
4350
|
+
function Xi(t) {
|
|
4345
4351
|
const A = F(22), {
|
|
4346
4352
|
source: e,
|
|
4347
4353
|
attribute: r,
|
|
@@ -4445,7 +4451,7 @@ async function Hn({
|
|
|
4445
4451
|
target: e,
|
|
4446
4452
|
attribute: r
|
|
4447
4453
|
}) {
|
|
4448
|
-
const n = await
|
|
4454
|
+
const n = await Jt({
|
|
4449
4455
|
connectionName: t.connectionName,
|
|
4450
4456
|
apiBaseUrl: t.apiBaseUrl,
|
|
4451
4457
|
accessToken: A,
|
|
@@ -4527,7 +4533,7 @@ export {
|
|
|
4527
4533
|
UA as CartoBasemapURL,
|
|
4528
4534
|
sA as CartoBasemaps,
|
|
4529
4535
|
_i as CategoriesModel,
|
|
4530
|
-
|
|
4536
|
+
S0 as CustomCompositeEditMode,
|
|
4531
4537
|
Ae as CustomEditableGeojsonLayer,
|
|
4532
4538
|
K0 as CustomMeasureAreaMode,
|
|
4533
4539
|
$0 as CustomMeasureBufferMode,
|
|
@@ -4542,7 +4548,7 @@ export {
|
|
|
4542
4548
|
VA as DEFAULT_MEASURE_COLORS,
|
|
4543
4549
|
f0 as DeckGLComponent,
|
|
4544
4550
|
rA as EditableEditType,
|
|
4545
|
-
|
|
4551
|
+
Si as FeaturesModel,
|
|
4546
4552
|
Di as FormulaModel,
|
|
4547
4553
|
NA as GmapsBasemap,
|
|
4548
4554
|
Ti as HistogramModel,
|
|
@@ -4560,49 +4566,50 @@ export {
|
|
|
4560
4566
|
qA as MapMeasurementUnitAuto,
|
|
4561
4567
|
J0 as MapMeasurementUnitTurf,
|
|
4562
4568
|
_0 as MapProvider,
|
|
4563
|
-
|
|
4564
|
-
|
|
4569
|
+
Vi as MapsProvider,
|
|
4570
|
+
uA as MapsTypes,
|
|
4565
4571
|
wr as MeasurementTools,
|
|
4566
4572
|
sr as MeasurementToolsProvider,
|
|
4567
4573
|
Ii as RangeModel,
|
|
4568
4574
|
Oi as ScatterModel,
|
|
4569
|
-
Ri as
|
|
4570
|
-
Ui as
|
|
4571
|
-
|
|
4572
|
-
|
|
4575
|
+
Ri as SpreadModel,
|
|
4576
|
+
Ui as TableModel,
|
|
4577
|
+
zi as TimeSeriesModel,
|
|
4578
|
+
Ji as ZoomControls,
|
|
4579
|
+
ji as clientID,
|
|
4573
4580
|
fe as convertMetersTo,
|
|
4574
4581
|
O0 as createLassoToolsStore,
|
|
4575
4582
|
B0 as createMapStore,
|
|
4576
4583
|
or as createMeasurementToolsStore,
|
|
4577
4584
|
dA as formatterTypes,
|
|
4578
|
-
|
|
4579
|
-
|
|
4585
|
+
Zi as getCentroid,
|
|
4586
|
+
e0 as getCursorDefault,
|
|
4580
4587
|
yi as getDeckController,
|
|
4581
4588
|
Ei as getFilterValues,
|
|
4582
4589
|
I0 as getLassoToolsLayer,
|
|
4583
4590
|
nr as getMeasurementToolsLayer,
|
|
4584
4591
|
OA as getTextLayerFormattedDistance,
|
|
4585
|
-
|
|
4586
|
-
|
|
4587
|
-
|
|
4592
|
+
t0 as getTooltipDefault,
|
|
4593
|
+
$i as mappingLegendMeridian,
|
|
4594
|
+
Ki as objectToHtml,
|
|
4588
4595
|
Ve as sortLayers,
|
|
4589
4596
|
p0 as transitionFlyConfig,
|
|
4590
4597
|
ki as useAggregations,
|
|
4591
4598
|
Bi as useCategories,
|
|
4592
4599
|
Re as useEventManager,
|
|
4593
|
-
|
|
4600
|
+
Mi as useFeatures,
|
|
4594
4601
|
We as useFilters,
|
|
4595
4602
|
xi as useFormula,
|
|
4596
4603
|
yn as useGroupedLassoToolsSpatialFilters,
|
|
4597
|
-
|
|
4604
|
+
Wi as useGroupedSpatialFilter,
|
|
4598
4605
|
_n as useGroupedStaticSpatialFilters,
|
|
4599
4606
|
Pi as useHistogram,
|
|
4600
4607
|
hn as useLassoToolsSpatialFilter,
|
|
4601
|
-
|
|
4608
|
+
W as useLassoToolsState,
|
|
4602
4609
|
kA as useLayerStore,
|
|
4603
4610
|
_r as useLayers,
|
|
4604
|
-
|
|
4605
|
-
|
|
4611
|
+
Hi as useLegend,
|
|
4612
|
+
Yi as useMapScreenshot,
|
|
4606
4613
|
I as useMapStore,
|
|
4607
4614
|
H as useMeasurementToolsState,
|
|
4608
4615
|
Li as useRange,
|
|
@@ -4610,10 +4617,11 @@ export {
|
|
|
4610
4617
|
Wr as useSource,
|
|
4611
4618
|
ie as useSourceStore,
|
|
4612
4619
|
vi as useSourceWithFilters,
|
|
4613
|
-
|
|
4614
|
-
|
|
4615
|
-
|
|
4616
|
-
Ni as
|
|
4620
|
+
qi as useSpatialFilter,
|
|
4621
|
+
Fi as useSpread,
|
|
4622
|
+
Xi as useStats,
|
|
4623
|
+
Ni as useTable,
|
|
4624
|
+
Gi as useTimeSeries,
|
|
4617
4625
|
Ze as useViewportSpatialFilter,
|
|
4618
4626
|
en as useWidgetModel
|
|
4619
4627
|
};
|