@carto/ps-react-maps 4.7.0 → 4.7.2
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 +239 -228
- 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/providers/map/types.d.ts +3 -3
- 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 Se, Map as
|
|
7
|
-
import { GoogleMapsOverlay 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 Se, Map as rt, APIProvider as nt } from "@vis.gl/react-google-maps";
|
|
7
|
+
import { GoogleMapsOverlay as it } from "@deck.gl/google-maps";
|
|
8
8
|
import { createStore as ZA, useStore as JA, create as Me } from "zustand";
|
|
9
|
-
import { FlyToInterpolator as
|
|
10
|
-
import { CompositeMode as
|
|
11
|
-
import { DataFilterExtension as
|
|
12
|
-
import { Pan as oe, InputDirection as
|
|
13
|
-
import { GeoJsonLayer as
|
|
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 St, featureCollection as Mt, multiPolygon as SA, 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 S;
|
|
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 ? (S = /* @__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] = S) : S = A[42], S;
|
|
125
125
|
}
|
|
126
126
|
function n0(t) {
|
|
127
127
|
const {
|
|
@@ -138,14 +138,14 @@ 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
151
|
const r = e, n = Se();
|
|
@@ -154,11 +154,11 @@ const s0 = (t) => {
|
|
|
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);
|
|
@@ -274,7 +274,7 @@ function l0(t) {
|
|
|
274
274
|
}, A[38] = S, 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] !== M || 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__ */
|
|
293
|
+
A[56] !== w || A[57] !== e || A[58] !== M || 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: M, onZoomChanged: M, scrollwheel: O, gestureHandling: z, disableDoubleClickZoom: G, children: [
|
|
294
294
|
U,
|
|
295
295
|
nA
|
|
296
296
|
] }) }), A[56] = w, A[57] = e, A[58] = M, 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
|
|
298
|
-
return A[73] !== d || A[74] !== b || A[75] !== J ? (
|
|
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 {
|
|
@@ -335,13 +335,13 @@ 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, S] =
|
|
341
|
+
const [B, S] = cA(k), {
|
|
342
342
|
url: C,
|
|
343
343
|
type: M
|
|
344
|
-
} = _A[d], P = M ===
|
|
344
|
+
} = _A[d], P = M === 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;
|
|
@@ -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
|
};
|
|
@@ -611,16 +611,19 @@ const gA = /* @__PURE__ */ d0(w0), y0 = (t) => {
|
|
|
611
611
|
return ((e, r) => ({
|
|
612
612
|
viewports: A.viewports,
|
|
613
613
|
initialViewStates: A.initialViewStates,
|
|
614
|
-
updateViewPort: (n) => {
|
|
615
|
-
const
|
|
616
|
-
if (!
|
|
617
|
-
const
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
614
|
+
updateViewPort: (n, i) => {
|
|
615
|
+
const o = r();
|
|
616
|
+
if (!o.maps[n]?.isLoaded) return;
|
|
617
|
+
const s = {
|
|
618
|
+
...o.getViewState(n),
|
|
619
|
+
...i
|
|
620
|
+
};
|
|
621
|
+
if (!s) return;
|
|
622
|
+
const a = new xe(s);
|
|
623
|
+
e((l) => ({
|
|
621
624
|
viewports: {
|
|
622
|
-
...
|
|
623
|
-
[n]:
|
|
625
|
+
...l.viewports,
|
|
626
|
+
[n]: a
|
|
624
627
|
}
|
|
625
628
|
}));
|
|
626
629
|
},
|
|
@@ -671,7 +674,7 @@ const gA = /* @__PURE__ */ d0(w0), y0 = (t) => {
|
|
|
671
674
|
}, E0 = ((t, A) => ({
|
|
672
675
|
fitBounds: (e, r, n) => {
|
|
673
676
|
const i = A(), o = i.getBounds(e, r, n);
|
|
674
|
-
o && (i.setViewState(e, o), i.updateViewPort(e));
|
|
677
|
+
o && (i.setViewState(e, o), i.updateViewPort(e, o));
|
|
675
678
|
},
|
|
676
679
|
flyTo: (e, r, n = {}) => {
|
|
677
680
|
const i = A(), o = {
|
|
@@ -681,7 +684,7 @@ const gA = /* @__PURE__ */ d0(w0), y0 = (t) => {
|
|
|
681
684
|
...r,
|
|
682
685
|
...o
|
|
683
686
|
};
|
|
684
|
-
i.setViewState(e, s), i.updateViewPort(e);
|
|
687
|
+
console.log("finalViewState", s), i.setViewState(e, s), i.updateViewPort(e, s);
|
|
685
688
|
},
|
|
686
689
|
loadInitialViewState: (e, r) => {
|
|
687
690
|
const n = A();
|
|
@@ -760,9 +763,9 @@ function _0(t) {
|
|
|
760
763
|
} = t;
|
|
761
764
|
let n;
|
|
762
765
|
A[0] !== r ? (n = B0(r), A[0] = r, A[1] = n) : n = A[1];
|
|
763
|
-
const [i] =
|
|
766
|
+
const [i] = cA(n);
|
|
764
767
|
let o;
|
|
765
|
-
return A[2] !== e || A[3] !== i ? (o = /* @__PURE__ */
|
|
768
|
+
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
769
|
}
|
|
767
770
|
function I(t) {
|
|
768
771
|
const A = $A(Oe);
|
|
@@ -800,9 +803,9 @@ const rA = {
|
|
|
800
803
|
finish: "finish",
|
|
801
804
|
addPosition: "addPosition"
|
|
802
805
|
};
|
|
803
|
-
class M0 extends
|
|
806
|
+
class M0 extends st {
|
|
804
807
|
constructor() {
|
|
805
|
-
super([new
|
|
808
|
+
super([new lt(), new at()]);
|
|
806
809
|
}
|
|
807
810
|
handleKeyUp(A, e) {
|
|
808
811
|
super.handleKeyUp(A, e), A.key === "Enter" && (this.resetClickSequence(), e.onEdit({
|
|
@@ -845,7 +848,7 @@ const mA = "lassoLayer", QA = "maskLayer", x0 = {
|
|
|
845
848
|
labels: {
|
|
846
849
|
mask: "Mask"
|
|
847
850
|
}
|
|
848
|
-
}, D0 = [new
|
|
851
|
+
}, D0 = [new wt({
|
|
849
852
|
filterSize: 1
|
|
850
853
|
})], PA = {
|
|
851
854
|
id: QA,
|
|
@@ -857,11 +860,11 @@ const mA = "lassoLayer", QA = "maskLayer", x0 = {
|
|
|
857
860
|
}, jA = {
|
|
858
861
|
polygon: {
|
|
859
862
|
value: "polygon",
|
|
860
|
-
mode:
|
|
863
|
+
mode: ft
|
|
861
864
|
},
|
|
862
865
|
rectangle: {
|
|
863
866
|
value: "rectangle",
|
|
864
|
-
mode:
|
|
867
|
+
mode: ct
|
|
865
868
|
},
|
|
866
869
|
circle: {
|
|
867
870
|
value: "circle",
|
|
@@ -869,7 +872,7 @@ const mA = "lassoLayer", QA = "maskLayer", x0 = {
|
|
|
869
872
|
},
|
|
870
873
|
lasso: {
|
|
871
874
|
value: "lasso",
|
|
872
|
-
mode:
|
|
875
|
+
mode: ut
|
|
873
876
|
},
|
|
874
877
|
edit: {
|
|
875
878
|
value: "edit",
|
|
@@ -918,10 +921,10 @@ const mA = "lassoLayer", QA = "maskLayer", x0 = {
|
|
|
918
921
|
})), ce = ["click", "keyup", "panstart", "panmove", "panend", "pointermove"], Fe = {
|
|
919
922
|
multipan: [oe, {
|
|
920
923
|
threshold: 10,
|
|
921
|
-
direction:
|
|
924
|
+
direction: bt.Vertical,
|
|
922
925
|
pointers: 2
|
|
923
926
|
}],
|
|
924
|
-
pinch: [
|
|
927
|
+
pinch: [Et, {}, null, ["multipan"]],
|
|
925
928
|
click: [se, {
|
|
926
929
|
event: "click"
|
|
927
930
|
}, null, ["dblclick"]],
|
|
@@ -945,13 +948,13 @@ function Re(t) {
|
|
|
945
948
|
A[2] !== e ? (o = (d) => d.maps[e]?.isLoaded, A[2] = e, A[3] = o) : o = A[3];
|
|
946
949
|
const s = I(o), a = I(L0), l = kA(T0), {
|
|
947
950
|
type: c
|
|
948
|
-
} = _A[i], f = c ===
|
|
951
|
+
} = _A[i], f = c === uA.googleMaps;
|
|
949
952
|
let h, p;
|
|
950
953
|
A[4] !== a || A[5] !== f || A[6] !== s || A[7] !== r || A[8] !== e || A[9] !== l ? (h = () => {
|
|
951
954
|
let d = null;
|
|
952
955
|
if (f && s) {
|
|
953
956
|
const w = a(e);
|
|
954
|
-
d = new
|
|
957
|
+
d = new vt(w.getDiv(), {
|
|
955
958
|
recognizers: Object.keys(Fe).map(P0)
|
|
956
959
|
});
|
|
957
960
|
}
|
|
@@ -962,7 +965,7 @@ function Re(t) {
|
|
|
962
965
|
}), () => {
|
|
963
966
|
d?.destroy(), d = null;
|
|
964
967
|
};
|
|
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]),
|
|
968
|
+
}, 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
969
|
}
|
|
967
970
|
function P0(t) {
|
|
968
971
|
const [A, e, r, n] = Fe[t], i = {
|
|
@@ -981,7 +984,7 @@ function T0(t) {
|
|
|
981
984
|
function L0(t) {
|
|
982
985
|
return t.getOverlayInstance;
|
|
983
986
|
}
|
|
984
|
-
class Ae extends
|
|
987
|
+
class Ae extends ht {
|
|
985
988
|
updateState({
|
|
986
989
|
props: A,
|
|
987
990
|
oldProps: e,
|
|
@@ -1158,11 +1161,11 @@ function F0(t) {
|
|
|
1158
1161
|
} = t;
|
|
1159
1162
|
let n;
|
|
1160
1163
|
A[0] !== r ? (n = () => O0(r), A[0] = r, A[1] = n) : n = A[1];
|
|
1161
|
-
const [i] =
|
|
1164
|
+
const [i] = cA(n);
|
|
1162
1165
|
let o;
|
|
1163
|
-
return A[2] !== e || A[3] !== i ? (o = /* @__PURE__ */
|
|
1166
|
+
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
1167
|
}
|
|
1165
|
-
function
|
|
1168
|
+
function W(t) {
|
|
1166
1169
|
const A = $A(Ne);
|
|
1167
1170
|
if (!Object.keys(A).length)
|
|
1168
1171
|
throw new Error("Missing LassoToolsProvider in the tree");
|
|
@@ -1175,16 +1178,16 @@ function R0(t) {
|
|
|
1175
1178
|
} = t;
|
|
1176
1179
|
let n;
|
|
1177
1180
|
A[0] !== e ? (n = (C) => C.data[e]?.enabled, A[0] = e, A[1] = n) : n = A[1];
|
|
1178
|
-
const i =
|
|
1181
|
+
const i = W(n), o = W(H0);
|
|
1179
1182
|
let s;
|
|
1180
1183
|
A[2] !== e ? (s = (C) => C.data[e]?.values, A[2] = e, A[3] = s) : s = A[3];
|
|
1181
|
-
const a =
|
|
1184
|
+
const a = W(s), l = W(V0), c = W(j0);
|
|
1182
1185
|
let f;
|
|
1183
1186
|
A[4] !== e ? (f = (C) => C.data[e]?.modeSelected, A[4] = e, A[5] = f) : f = A[5];
|
|
1184
|
-
const h =
|
|
1187
|
+
const h = W(f), p = W(z0);
|
|
1185
1188
|
let d;
|
|
1186
1189
|
A[6] !== e ? (d = (C) => C.data[e]?.modes, A[6] = e, A[7] = d) : d = A[7];
|
|
1187
|
-
const w =
|
|
1190
|
+
const w = W(d), b = W(G0);
|
|
1188
1191
|
let u, g;
|
|
1189
1192
|
A[8] !== i || A[9] !== e || A[10] !== h || A[11] !== w || A[12] !== b ? (u = () => {
|
|
1190
1193
|
const C = w[h];
|
|
@@ -1192,7 +1195,7 @@ function R0(t) {
|
|
|
1192
1195
|
const M = C.mode;
|
|
1193
1196
|
b(e, new M());
|
|
1194
1197
|
}
|
|
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]),
|
|
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);
|
|
1196
1199
|
const m = U0;
|
|
1197
1200
|
let v;
|
|
1198
1201
|
A[15] !== a ? (v = [Object.values(a).filter(N0).map(m)], A[15] = a, A[16] = v) : v = A[16];
|
|
@@ -1258,9 +1261,9 @@ function ee({
|
|
|
1258
1261
|
return Object.values(t ?? {}).filter((A) => A.type === "mask");
|
|
1259
1262
|
}
|
|
1260
1263
|
const Y0 = Le({
|
|
1261
|
-
length:
|
|
1264
|
+
length: Qt
|
|
1262
1265
|
}), q0 = Le({
|
|
1263
|
-
area:
|
|
1266
|
+
area: Ot
|
|
1264
1267
|
});
|
|
1265
1268
|
function W0(t) {
|
|
1266
1269
|
if (!(t in LA)) {
|
|
@@ -1348,7 +1351,7 @@ function Ue(t, A, e) {
|
|
|
1348
1351
|
}
|
|
1349
1352
|
return [];
|
|
1350
1353
|
}
|
|
1351
|
-
class K0 extends
|
|
1354
|
+
class K0 extends gt {
|
|
1352
1355
|
_isMeasuringSessionFinished = !1;
|
|
1353
1356
|
area = 0;
|
|
1354
1357
|
tooltips = [];
|
|
@@ -1360,7 +1363,7 @@ class K0 extends ht {
|
|
|
1360
1363
|
this._isMeasuringSessionFinished && (this._isMeasuringSessionFinished = !1, this.resetClickSequence(), this.area = 0);
|
|
1361
1364
|
const {
|
|
1362
1365
|
picks: r
|
|
1363
|
-
} = A, n =
|
|
1366
|
+
} = A, n = pt(r), i = this.getClickSequence();
|
|
1364
1367
|
let o = !1;
|
|
1365
1368
|
!n && !this.allowOverlapping(e) && (this.addClickSequence(A), o = !0);
|
|
1366
1369
|
const s = this.getClickSequence(), a = [...s, s[0]];
|
|
@@ -1419,7 +1422,7 @@ class K0 extends ht {
|
|
|
1419
1422
|
type: "LineString",
|
|
1420
1423
|
coordinates: [...r.slice(0, r.length - 1)]
|
|
1421
1424
|
};
|
|
1422
|
-
|
|
1425
|
+
Ct(n, i).features.length > 0 && (e = !0);
|
|
1423
1426
|
}
|
|
1424
1427
|
return e;
|
|
1425
1428
|
}
|
|
@@ -1541,7 +1544,7 @@ class $0 extends De {
|
|
|
1541
1544
|
});
|
|
1542
1545
|
}
|
|
1543
1546
|
}
|
|
1544
|
-
class Ge extends
|
|
1547
|
+
class Ge extends dt {
|
|
1545
1548
|
handleClick(A, e) {
|
|
1546
1549
|
super.handleClick(A, e), e.onEdit({
|
|
1547
1550
|
// data is the same
|
|
@@ -1752,11 +1755,11 @@ function rr({
|
|
|
1752
1755
|
layerProps: n = {},
|
|
1753
1756
|
defaultType: i = "mask"
|
|
1754
1757
|
}) {
|
|
1755
|
-
const o = I((E) => E.getController), s = I((E) => E.setController), a =
|
|
1758
|
+
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
1759
|
Re({
|
|
1757
1760
|
mapId: A,
|
|
1758
1761
|
layerId: mA
|
|
1759
|
-
}),
|
|
1762
|
+
}), K(() => {
|
|
1760
1763
|
const E = o(A);
|
|
1761
1764
|
return a && s(A, {
|
|
1762
1765
|
doubleClickZoom: !1,
|
|
@@ -1775,18 +1778,18 @@ function rr({
|
|
|
1775
1778
|
properties: E.properties,
|
|
1776
1779
|
id: E.id
|
|
1777
1780
|
}))
|
|
1778
|
-
}), [v]), k = RA(() => v.filter((E) => E.properties.visible).map((E) => E.id), [v]), [B, S] =
|
|
1781
|
+
}), [v]), k = RA(() => v.filter((E) => E.properties.visible).map((E) => E.id), [v]), [B, S] = cA(y), [C, M] = cA([]), P = vA(() => {
|
|
1779
1782
|
const E = {
|
|
1780
1783
|
...y,
|
|
1781
1784
|
features: y.features.filter((_) => _.properties?.visible)
|
|
1782
1785
|
};
|
|
1783
1786
|
S(E);
|
|
1784
1787
|
}, [y]);
|
|
1785
|
-
|
|
1788
|
+
K(() => {
|
|
1786
1789
|
P();
|
|
1787
1790
|
}, [P]);
|
|
1788
1791
|
const D = TA(v.length);
|
|
1789
|
-
|
|
1792
|
+
K(() => (w(A, [mA]), () => {
|
|
1790
1793
|
b(A, [mA]);
|
|
1791
1794
|
}), [w, A, b]);
|
|
1792
1795
|
const x = vA(() => {
|
|
@@ -1811,7 +1814,7 @@ function rr({
|
|
|
1811
1814
|
}
|
|
1812
1815
|
S(_), E !== rA.updateTentativeFeature && E === rA.addFeature && (p !== "edit" && (D.current = D.current + 1), R(_.features), x());
|
|
1813
1816
|
}, [R, x, p]);
|
|
1814
|
-
return
|
|
1817
|
+
return K(() => {
|
|
1815
1818
|
const E = a, {
|
|
1816
1819
|
border: _,
|
|
1817
1820
|
point: T,
|
|
@@ -1840,10 +1843,10 @@ function rr({
|
|
|
1840
1843
|
outline: _
|
|
1841
1844
|
},
|
|
1842
1845
|
onEdit: N,
|
|
1843
|
-
mode: E ? h : new
|
|
1846
|
+
mode: E ? h : new mt()
|
|
1844
1847
|
});
|
|
1845
1848
|
d(mA, G);
|
|
1846
|
-
}, [B, a, n.mask, k, h, N, C, d, e.colors.editing, e.colors.finished]),
|
|
1849
|
+
}, [B, a, n.mask, k, h, N, C, d, e.colors.editing, e.colors.finished]), K(() => {
|
|
1847
1850
|
const E = {
|
|
1848
1851
|
...PA,
|
|
1849
1852
|
data: y,
|
|
@@ -1853,14 +1856,14 @@ function rr({
|
|
|
1853
1856
|
}
|
|
1854
1857
|
};
|
|
1855
1858
|
return d(PA.id, {
|
|
1856
|
-
type:
|
|
1859
|
+
type: kt,
|
|
1857
1860
|
props: E
|
|
1858
1861
|
}), w(A, [PA.id]), () => {
|
|
1859
1862
|
b(A, [PA.id]);
|
|
1860
1863
|
};
|
|
1861
|
-
}, [w, A, y, k, b, d]),
|
|
1864
|
+
}, [w, A, y, k, b, d]), K(() => {
|
|
1862
1865
|
!a && C.length && B.features.length && (R(B.features), x());
|
|
1863
|
-
}, [B.features, a, R, x, C.length]),
|
|
1866
|
+
}, [B.features, a, R, x, C.length]), K(() => {
|
|
1864
1867
|
u?.forEach((E) => {
|
|
1865
1868
|
const _ = g(A)?.props.layers.find((L) => L.props.id === E);
|
|
1866
1869
|
if (!_) return;
|
|
@@ -1869,7 +1872,7 @@ function rr({
|
|
|
1869
1872
|
d(E, {
|
|
1870
1873
|
props: {
|
|
1871
1874
|
pickable: T,
|
|
1872
|
-
extensions: [new
|
|
1875
|
+
extensions: [new yt()],
|
|
1873
1876
|
maskId: !a && k.length ? QA : void 0
|
|
1874
1877
|
}
|
|
1875
1878
|
});
|
|
@@ -2075,9 +2078,9 @@ function sr(t) {
|
|
|
2075
2078
|
} = t;
|
|
2076
2079
|
let n;
|
|
2077
2080
|
A[0] !== r ? (n = or(r), A[0] = r, A[1] = n) : n = A[1];
|
|
2078
|
-
const [i] =
|
|
2081
|
+
const [i] = cA(n);
|
|
2079
2082
|
let o;
|
|
2080
|
-
return A[2] !== e || A[3] !== i ? (o = /* @__PURE__ */
|
|
2083
|
+
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
2084
|
}
|
|
2082
2085
|
function H(t) {
|
|
2083
2086
|
const A = $A(ze);
|
|
@@ -2138,13 +2141,13 @@ function je(t) {
|
|
|
2138
2141
|
const G = z;
|
|
2139
2142
|
let U;
|
|
2140
2143
|
A[37] !== e ? (U = (Q) => Q.measurements[e].positions, A[37] = e, A[38] = U) : U = A[38];
|
|
2141
|
-
const V = H(U),
|
|
2144
|
+
const V = H(U), q = H(ar);
|
|
2142
2145
|
let nA;
|
|
2143
|
-
A[39] !==
|
|
2146
|
+
A[39] !== q || A[40] !== e ? (nA = (Q) => q(e, Q), A[39] = q, A[40] = e, A[41] = nA) : nA = A[41];
|
|
2144
2147
|
const J = nA;
|
|
2145
|
-
let
|
|
2146
|
-
A[42] !== e ? (
|
|
2147
|
-
const X = H(
|
|
2148
|
+
let aA;
|
|
2149
|
+
A[42] !== e ? (aA = (Q) => Q.measurements[e].unit, A[42] = e, A[43] = aA) : aA = A[43];
|
|
2150
|
+
const X = H(aA), eA = H(lr);
|
|
2148
2151
|
let Z;
|
|
2149
2152
|
A[44] !== eA || A[45] !== e ? (Z = (Q) => eA(e, Q), A[44] = eA, A[45] = e, A[46] = Z) : Z = A[46];
|
|
2150
2153
|
const $ = Z;
|
|
@@ -2251,7 +2254,7 @@ function dr(t) {
|
|
|
2251
2254
|
};
|
|
2252
2255
|
}, A[2] = f, A[3] = o, A[4] = v, A[5] = k, A[6] = P) : P = A[6];
|
|
2253
2256
|
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],
|
|
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);
|
|
2255
2258
|
let x;
|
|
2256
2259
|
A[13] !== M || A[14] !== C || A[15] !== c || A[16] !== w ? (x = (_) => {
|
|
2257
2260
|
_ && (c || !w) && C(), M(_);
|
|
@@ -2337,11 +2340,11 @@ function wr(t) {
|
|
|
2337
2340
|
})), () => {
|
|
2338
2341
|
B(r, [fA]), y(r, G);
|
|
2339
2342
|
};
|
|
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]),
|
|
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);
|
|
2341
2344
|
let E, _;
|
|
2342
2345
|
A[17] !== h || A[18] !== M || A[19] !== r || A[20] !== C || A[21] !== m ? (E = () => {
|
|
2343
2346
|
C?.forEach((G) => {
|
|
2344
|
-
const U = M(r)?.props.layers.find((
|
|
2347
|
+
const U = M(r)?.props.layers.find((q) => q.props.id === G);
|
|
2345
2348
|
if (!U)
|
|
2346
2349
|
return;
|
|
2347
2350
|
h && (D.current[G] = U?.props.pickable);
|
|
@@ -2352,7 +2355,7 @@ function wr(t) {
|
|
|
2352
2355
|
}
|
|
2353
2356
|
});
|
|
2354
2357
|
});
|
|
2355
|
-
}, _ = [h, M, r, C, m], A[17] = h, A[18] = M, A[19] = r, A[20] = C, A[21] = m, A[22] = E, A[23] = _) : (E = A[22], _ = A[23]),
|
|
2358
|
+
}, _ = [h, M, r, C, m], A[17] = h, A[18] = M, A[19] = r, A[20] = C, A[21] = m, A[22] = E, A[23] = _) : (E = A[22], _ = A[23]), K(E, _);
|
|
2356
2359
|
let T;
|
|
2357
2360
|
A[24] !== g || A[25] !== f || A[26] !== d || A[27] !== b ? (T = (G) => {
|
|
2358
2361
|
const {
|
|
@@ -2364,8 +2367,8 @@ function wr(t) {
|
|
|
2364
2367
|
return;
|
|
2365
2368
|
}
|
|
2366
2369
|
U === rA.addPosition && f(V.distance), d(!!V.finished);
|
|
2367
|
-
const
|
|
2368
|
-
|
|
2370
|
+
const q = V.positions;
|
|
2371
|
+
q?.length && b(q);
|
|
2369
2372
|
}, A[24] = g, A[25] = f, A[26] = d, A[27] = b, A[28] = T) : T = A[28];
|
|
2370
2373
|
const L = T;
|
|
2371
2374
|
let O, z;
|
|
@@ -2385,7 +2388,7 @@ function wr(t) {
|
|
|
2385
2388
|
textOptions: o
|
|
2386
2389
|
});
|
|
2387
2390
|
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]),
|
|
2391
|
+
}, 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
2392
|
}
|
|
2390
2393
|
function yr(t) {
|
|
2391
2394
|
return t.getDeckInstance;
|
|
@@ -2500,7 +2503,7 @@ function bi(t) {
|
|
|
2500
2503
|
}, A[34] = E, A[35] = e, A[36] = y, A[37] = _) : _ = A[37];
|
|
2501
2504
|
const T = _;
|
|
2502
2505
|
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__ */
|
|
2506
|
+
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
2507
|
}
|
|
2505
2508
|
function Dr(t) {
|
|
2506
2509
|
return t?.isLoaded;
|
|
@@ -2721,7 +2724,7 @@ function Hr({
|
|
|
2721
2724
|
class Yr extends Qe {
|
|
2722
2725
|
features = [];
|
|
2723
2726
|
_filterFeaturesBySpatial(A) {
|
|
2724
|
-
return A ? this.features.filter((e) =>
|
|
2727
|
+
return A ? this.features.filter((e) => Bt(e, _t(A))) : this.features;
|
|
2725
2728
|
}
|
|
2726
2729
|
/**
|
|
2727
2730
|
* Loads features as GeoJSON.
|
|
@@ -2767,7 +2770,7 @@ class Yr extends Qe {
|
|
|
2767
2770
|
spatialFilter: s
|
|
2768
2771
|
}) {
|
|
2769
2772
|
const a = this._getFilteredFeatures(s, i, o);
|
|
2770
|
-
return a.length ? (pA(a, r), Promise.resolve(
|
|
2773
|
+
return a.length ? (pA(a, r), Promise.resolve(Ft({
|
|
2771
2774
|
data: a,
|
|
2772
2775
|
valuesColumns: bA(r),
|
|
2773
2776
|
joinOperation: n,
|
|
@@ -2791,7 +2794,7 @@ class Yr extends Qe {
|
|
|
2791
2794
|
if (!f.length)
|
|
2792
2795
|
return Promise.resolve([]);
|
|
2793
2796
|
pA(f, A, r);
|
|
2794
|
-
const h =
|
|
2797
|
+
const h = Rt({
|
|
2795
2798
|
data: f,
|
|
2796
2799
|
valuesColumns: bA(r ?? A),
|
|
2797
2800
|
joinOperation: n,
|
|
@@ -2801,7 +2804,7 @@ class Yr extends Qe {
|
|
|
2801
2804
|
orderBy: l
|
|
2802
2805
|
});
|
|
2803
2806
|
return c ? Promise.resolve(h) : a ? Promise.resolve([...h?.rows ?? [], {
|
|
2804
|
-
name:
|
|
2807
|
+
name: Nt,
|
|
2805
2808
|
value: h?.metadata?.others ?? 0
|
|
2806
2809
|
}]) : Promise.resolve(h?.rows ?? []);
|
|
2807
2810
|
}
|
|
@@ -2815,7 +2818,7 @@ class Yr extends Qe {
|
|
|
2815
2818
|
spatialFilter: s
|
|
2816
2819
|
}) {
|
|
2817
2820
|
const a = this._getFilteredFeatures(s, i, o);
|
|
2818
|
-
return a.length ? (pA(a, A, e), Promise.resolve(
|
|
2821
|
+
return a.length ? (pA(a, A, e), Promise.resolve(Ut({
|
|
2819
2822
|
data: a,
|
|
2820
2823
|
xAxisColumns: bA(A),
|
|
2821
2824
|
xAxisJoinOperation: r,
|
|
@@ -2843,7 +2846,7 @@ class Yr extends Qe {
|
|
|
2843
2846
|
totalCount: 0
|
|
2844
2847
|
});
|
|
2845
2848
|
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 =
|
|
2849
|
+
let p = Gt(h, {
|
|
2847
2850
|
sortBy: n,
|
|
2848
2851
|
sortByDirection: i,
|
|
2849
2852
|
sortByColumnType: o
|
|
@@ -2876,7 +2879,7 @@ class Yr extends Qe {
|
|
|
2876
2879
|
rows: []
|
|
2877
2880
|
});
|
|
2878
2881
|
pA(l, A, n), BA(r !== "custom", "Custom operation not supported for geojson");
|
|
2879
|
-
const c =
|
|
2882
|
+
const c = zt({
|
|
2880
2883
|
data: l,
|
|
2881
2884
|
valuesColumns: bA(n ?? A),
|
|
2882
2885
|
keysColumn: A,
|
|
@@ -2930,7 +2933,7 @@ class Yr extends Qe {
|
|
|
2930
2933
|
}
|
|
2931
2934
|
/** @experimental */
|
|
2932
2935
|
getExtent() {
|
|
2933
|
-
const A =
|
|
2936
|
+
const A = St(Mt(this.features));
|
|
2934
2937
|
return Promise.resolve({
|
|
2935
2938
|
bbox: A
|
|
2936
2939
|
});
|
|
@@ -2940,7 +2943,7 @@ class Yr extends Qe {
|
|
|
2940
2943
|
*/
|
|
2941
2944
|
_getFilteredFeatures(A, e, r) {
|
|
2942
2945
|
const n = this._filterFeaturesBySpatial(A);
|
|
2943
|
-
return
|
|
2946
|
+
return jt(n.map((i) => i.properties ?? {}), Vt(r, e ?? this.props.filters), this.props.filtersLogicalOperator ?? "and");
|
|
2944
2947
|
}
|
|
2945
2948
|
}
|
|
2946
2949
|
function BA(t, A) {
|
|
@@ -3107,7 +3110,7 @@ class qr extends Qe {
|
|
|
3107
3110
|
return this._executeWorkerMethod(iA.GET_EXTENT, [e], A);
|
|
3108
3111
|
}
|
|
3109
3112
|
}
|
|
3110
|
-
const ie = Me()(
|
|
3113
|
+
const ie = Me()(Xt((t, A) => ({
|
|
3111
3114
|
sources: {},
|
|
3112
3115
|
filters: {},
|
|
3113
3116
|
setSource: (e, r) => t((n) => {
|
|
@@ -3154,7 +3157,7 @@ const ie = Me()(Jt((t, A) => ({
|
|
|
3154
3157
|
if (!o)
|
|
3155
3158
|
return i;
|
|
3156
3159
|
let s = {};
|
|
3157
|
-
return r && (s =
|
|
3160
|
+
return r && (s = Ht(o, {
|
|
3158
3161
|
column: r,
|
|
3159
3162
|
owner: n
|
|
3160
3163
|
})), {
|
|
@@ -3246,7 +3249,7 @@ function Zr({
|
|
|
3246
3249
|
} = $r(t), r = {
|
|
3247
3250
|
query: () => {
|
|
3248
3251
|
const o = t;
|
|
3249
|
-
return new
|
|
3252
|
+
return new $t({
|
|
3250
3253
|
...o,
|
|
3251
3254
|
accessToken: "",
|
|
3252
3255
|
sqlQuery: o.data,
|
|
@@ -3256,7 +3259,7 @@ function Zr({
|
|
|
3256
3259
|
},
|
|
3257
3260
|
table: () => {
|
|
3258
3261
|
const o = t;
|
|
3259
|
-
return new
|
|
3262
|
+
return new Kt({
|
|
3260
3263
|
...o,
|
|
3261
3264
|
accessToken: "",
|
|
3262
3265
|
tableName: o.data,
|
|
@@ -3266,11 +3269,11 @@ function Zr({
|
|
|
3266
3269
|
},
|
|
3267
3270
|
tileset: () => {
|
|
3268
3271
|
const o = t;
|
|
3269
|
-
return o.spatialDataBounds ? new
|
|
3272
|
+
return o.spatialDataBounds ? new qt({
|
|
3270
3273
|
...o,
|
|
3271
3274
|
accessToken: "",
|
|
3272
3275
|
tableName: o.data,
|
|
3273
|
-
tileFormat: o.tileFormat ??
|
|
3276
|
+
tileFormat: o.tileFormat ?? Wt.BINARY,
|
|
3274
3277
|
spatialDataType: A,
|
|
3275
3278
|
spatialDataColumn: e,
|
|
3276
3279
|
spatialDataBounds: o.spatialDataBounds
|
|
@@ -3278,7 +3281,7 @@ function Zr({
|
|
|
3278
3281
|
},
|
|
3279
3282
|
raster: () => {
|
|
3280
3283
|
const o = t;
|
|
3281
|
-
return !o.rasterMetadata || !o.spatialDataBounds ? null : new
|
|
3284
|
+
return !o.rasterMetadata || !o.spatialDataBounds ? null : new Yt({
|
|
3282
3285
|
...o,
|
|
3283
3286
|
accessToken: "",
|
|
3284
3287
|
tableName: o.data,
|
|
@@ -3551,7 +3554,7 @@ function sn(t) {
|
|
|
3551
3554
|
function ln(t) {
|
|
3552
3555
|
return t ? JSON.stringify(t) : void 0;
|
|
3553
3556
|
}
|
|
3554
|
-
function
|
|
3557
|
+
function lA({
|
|
3555
3558
|
queryKeyPrefix: t,
|
|
3556
3559
|
getWidgetMethod: A
|
|
3557
3560
|
}) {
|
|
@@ -3598,7 +3601,7 @@ function cA({
|
|
|
3598
3601
|
const L = y?.[T];
|
|
3599
3602
|
if (!L)
|
|
3600
3603
|
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,
|
|
3604
|
+
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
3605
|
...l,
|
|
3603
3606
|
..."column" in l && {
|
|
3604
3607
|
column: z
|
|
@@ -3614,7 +3617,7 @@ function cA({
|
|
|
3614
3617
|
}
|
|
3615
3618
|
};
|
|
3616
3619
|
return O({
|
|
3617
|
-
...
|
|
3620
|
+
...q,
|
|
3618
3621
|
filters: m?.[T],
|
|
3619
3622
|
signal: D
|
|
3620
3623
|
});
|
|
@@ -3656,7 +3659,7 @@ function cA({
|
|
|
3656
3659
|
const {
|
|
3657
3660
|
useModelHook: ki,
|
|
3658
3661
|
ModelComponent: Ci
|
|
3659
|
-
} =
|
|
3662
|
+
} = lA({
|
|
3660
3663
|
queryKeyPrefix: ["aggregations"],
|
|
3661
3664
|
getWidgetMethod: (t) => (A) => {
|
|
3662
3665
|
const e = A.aggregations;
|
|
@@ -3697,53 +3700,59 @@ function an(t) {
|
|
|
3697
3700
|
const {
|
|
3698
3701
|
useModelHook: Bi,
|
|
3699
3702
|
ModelComponent: _i
|
|
3700
|
-
} =
|
|
3703
|
+
} = lA({
|
|
3701
3704
|
queryKeyPrefix: ["categories"],
|
|
3702
3705
|
getWidgetMethod: (t) => (A) => t.getCategories(A)
|
|
3703
3706
|
}), {
|
|
3704
3707
|
useModelHook: Si,
|
|
3705
3708
|
ModelComponent: Mi
|
|
3706
|
-
} =
|
|
3709
|
+
} = lA({
|
|
3707
3710
|
queryKeyPrefix: ["features"],
|
|
3708
3711
|
getWidgetMethod: (t) => (A) => t.getFeatures(A)
|
|
3709
3712
|
}), {
|
|
3710
3713
|
useModelHook: xi,
|
|
3711
3714
|
ModelComponent: Di
|
|
3712
|
-
} =
|
|
3715
|
+
} = lA({
|
|
3713
3716
|
queryKeyPrefix: ["formula"],
|
|
3714
3717
|
getWidgetMethod: (t) => (A) => t.getFormula(A)
|
|
3715
3718
|
}), {
|
|
3716
3719
|
useModelHook: Pi,
|
|
3717
3720
|
ModelComponent: Ti
|
|
3718
|
-
} =
|
|
3721
|
+
} = lA({
|
|
3719
3722
|
queryKeyPrefix: ["histogram"],
|
|
3720
3723
|
getWidgetMethod: (t) => (A) => t.getHistogram(A)
|
|
3721
3724
|
}), {
|
|
3722
3725
|
useModelHook: Li,
|
|
3723
3726
|
ModelComponent: Ii
|
|
3724
|
-
} =
|
|
3727
|
+
} = lA({
|
|
3725
3728
|
queryKeyPrefix: ["range"],
|
|
3726
3729
|
getWidgetMethod: (t) => (A) => t.getRange(A)
|
|
3727
3730
|
}), {
|
|
3728
3731
|
useModelHook: Qi,
|
|
3729
3732
|
ModelComponent: Oi
|
|
3730
|
-
} =
|
|
3733
|
+
} = lA({
|
|
3731
3734
|
queryKeyPrefix: ["scatter"],
|
|
3732
3735
|
getWidgetMethod: (t) => (A) => t.getScatter(A)
|
|
3733
3736
|
}), {
|
|
3734
3737
|
useModelHook: Fi,
|
|
3735
3738
|
ModelComponent: Ri
|
|
3736
|
-
} =
|
|
3737
|
-
queryKeyPrefix: ["
|
|
3738
|
-
getWidgetMethod: (t) => (A) => t.
|
|
3739
|
+
} = lA({
|
|
3740
|
+
queryKeyPrefix: ["spread"],
|
|
3741
|
+
getWidgetMethod: (t) => (A) => t.getRange(A)
|
|
3739
3742
|
}), {
|
|
3740
3743
|
useModelHook: Ni,
|
|
3741
3744
|
ModelComponent: Ui
|
|
3742
|
-
} =
|
|
3745
|
+
} = lA({
|
|
3746
|
+
queryKeyPrefix: ["table"],
|
|
3747
|
+
getWidgetMethod: (t) => (A) => t.getTable(A)
|
|
3748
|
+
}), {
|
|
3749
|
+
useModelHook: Gi,
|
|
3750
|
+
ModelComponent: zi
|
|
3751
|
+
} = lA({
|
|
3743
3752
|
queryKeyPrefix: ["timeSeries"],
|
|
3744
3753
|
getWidgetMethod: (t) => (A) => t.getTimeSeries(A)
|
|
3745
|
-
}),
|
|
3746
|
-
function
|
|
3754
|
+
}), ji = "ps";
|
|
3755
|
+
function Vi(t) {
|
|
3747
3756
|
const A = F(13), {
|
|
3748
3757
|
children: e,
|
|
3749
3758
|
maps: r,
|
|
@@ -3757,13 +3766,13 @@ function zi(t) {
|
|
|
3757
3766
|
A[2] !== i ? (a = i === void 0 ? [] : i, A[2] = i, A[3] = a) : a = A[3];
|
|
3758
3767
|
const l = a;
|
|
3759
3768
|
let c;
|
|
3760
|
-
A[4] !== e || A[5] !== l ? (c = /* @__PURE__ */
|
|
3769
|
+
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
3770
|
let f;
|
|
3762
|
-
A[7] !== s || A[8] !== c ? (f = /* @__PURE__ */
|
|
3771
|
+
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
3772
|
let h;
|
|
3764
|
-
return A[10] !== r || A[11] !== f ? (h = /* @__PURE__ */
|
|
3773
|
+
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
3774
|
}
|
|
3766
|
-
function
|
|
3775
|
+
function Hi(t, A) {
|
|
3767
3776
|
const e = F(19), r = kA(fn), n = kA(cn);
|
|
3768
3777
|
let i;
|
|
3769
3778
|
if (e[0] !== r || e[1] !== t) {
|
|
@@ -3833,12 +3842,12 @@ function cn(t) {
|
|
|
3833
3842
|
function fn(t) {
|
|
3834
3843
|
return t.layers;
|
|
3835
3844
|
}
|
|
3836
|
-
function
|
|
3845
|
+
function Yi({
|
|
3837
3846
|
mapId: t
|
|
3838
3847
|
}) {
|
|
3839
|
-
const [A, e] =
|
|
3848
|
+
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
3849
|
type: p
|
|
3841
|
-
} = _A[s], d = p ===
|
|
3850
|
+
} = _A[s], d = p === uA.googleMaps, w = vA(async () => {
|
|
3842
3851
|
const u = a(t), g = l(t);
|
|
3843
3852
|
try {
|
|
3844
3853
|
const m = document.createElement("canvas");
|
|
@@ -3848,7 +3857,7 @@ function Vi({
|
|
|
3848
3857
|
const k = g;
|
|
3849
3858
|
if (k.getRenderingType() !== "RASTER")
|
|
3850
3859
|
throw new Error("Only raster type is supported for Google Maps");
|
|
3851
|
-
const B = await
|
|
3860
|
+
const B = await A0(k.getDiv(), {
|
|
3852
3861
|
useCORS: !0
|
|
3853
3862
|
});
|
|
3854
3863
|
v?.drawImage(B, 0, 0, u.width, u.height);
|
|
@@ -3874,7 +3883,7 @@ function Vi({
|
|
|
3874
3883
|
error: i
|
|
3875
3884
|
};
|
|
3876
3885
|
}
|
|
3877
|
-
function
|
|
3886
|
+
function qi(t) {
|
|
3878
3887
|
const A = F(11), {
|
|
3879
3888
|
mapId: e
|
|
3880
3889
|
} = t;
|
|
@@ -3915,7 +3924,7 @@ function Ze(t) {
|
|
|
3915
3924
|
break A;
|
|
3916
3925
|
}
|
|
3917
3926
|
let o;
|
|
3918
|
-
A[2] !== n ? (o =
|
|
3927
|
+
A[2] !== n ? (o = Zt(n.getBounds()), A[2] = n, A[3] = o) : o = A[3], i = o;
|
|
3919
3928
|
}
|
|
3920
3929
|
return i;
|
|
3921
3930
|
}
|
|
@@ -3925,7 +3934,7 @@ function hn(t) {
|
|
|
3925
3934
|
} = t;
|
|
3926
3935
|
let r;
|
|
3927
3936
|
A[0] !== e ? (r = (o) => o.data[e]?.values, A[0] = e, A[1] = r) : r = A[1];
|
|
3928
|
-
const n =
|
|
3937
|
+
const n = W(r);
|
|
3929
3938
|
let i;
|
|
3930
3939
|
if (A[2] !== n) {
|
|
3931
3940
|
A: {
|
|
@@ -3978,7 +3987,7 @@ function mn(t) {
|
|
|
3978
3987
|
function wn(t) {
|
|
3979
3988
|
return t != null;
|
|
3980
3989
|
}
|
|
3981
|
-
function
|
|
3990
|
+
function Wi(t) {
|
|
3982
3991
|
const A = F(13), {
|
|
3983
3992
|
mapId: e
|
|
3984
3993
|
} = t;
|
|
@@ -4016,7 +4025,7 @@ function yn(t) {
|
|
|
4016
4025
|
} = t;
|
|
4017
4026
|
let n;
|
|
4018
4027
|
A[0] !== e ? (n = (l) => l.data[e]?.values, A[0] = e, A[1] = n) : n = A[1];
|
|
4019
|
-
const i =
|
|
4028
|
+
const i = W(n);
|
|
4020
4029
|
let o;
|
|
4021
4030
|
if (A[2] !== i) {
|
|
4022
4031
|
A: {
|
|
@@ -4167,7 +4176,7 @@ const dA = {
|
|
|
4167
4176
|
}, Be = {
|
|
4168
4177
|
[dA.currency]: {
|
|
4169
4178
|
type: dA.currency,
|
|
4170
|
-
format: (t, A) =>
|
|
4179
|
+
format: (t, A) => It(t, A)
|
|
4171
4180
|
},
|
|
4172
4181
|
[dA.number]: {
|
|
4173
4182
|
type: dA.number,
|
|
@@ -4178,7 +4187,7 @@ const dA = {
|
|
|
4178
4187
|
format: (t) => t.toLocaleString()
|
|
4179
4188
|
}
|
|
4180
4189
|
};
|
|
4181
|
-
function
|
|
4190
|
+
function Ki({
|
|
4182
4191
|
properties: t,
|
|
4183
4192
|
formatters: A = {},
|
|
4184
4193
|
includeColumns: e = Object.keys(t),
|
|
@@ -4215,7 +4224,7 @@ function On(t) {
|
|
|
4215
4224
|
function Fn(t) {
|
|
4216
4225
|
return `<strong>${t}</strong>: `;
|
|
4217
4226
|
}
|
|
4218
|
-
function
|
|
4227
|
+
function $i(t) {
|
|
4219
4228
|
return {
|
|
4220
4229
|
collapsed: t.legend?.collapsed,
|
|
4221
4230
|
collapsible: t.legend?.collapsible,
|
|
@@ -4232,19 +4241,19 @@ function Wi(t) {
|
|
|
4232
4241
|
};
|
|
4233
4242
|
}
|
|
4234
4243
|
const Rn = {
|
|
4235
|
-
Point: (t) =>
|
|
4236
|
-
LineString: (t) =>
|
|
4237
|
-
Polygon: (t) =>
|
|
4238
|
-
MultiPoint: (t) =>
|
|
4239
|
-
MultiLineString: (t) =>
|
|
4244
|
+
Point: (t) => Lt(t.coordinates),
|
|
4245
|
+
LineString: (t) => Tt(t.coordinates),
|
|
4246
|
+
Polygon: (t) => Pt(t.coordinates),
|
|
4247
|
+
MultiPoint: (t) => Dt(t.coordinates),
|
|
4248
|
+
MultiLineString: (t) => xt(t.coordinates),
|
|
4240
4249
|
MultiPolygon: (t) => SA(t.coordinates)
|
|
4241
4250
|
};
|
|
4242
|
-
function
|
|
4251
|
+
function Zi(t) {
|
|
4243
4252
|
const A = Rn[t.type], e = A?.(t);
|
|
4244
4253
|
if (e)
|
|
4245
4254
|
return Pe(e).geometry.coordinates;
|
|
4246
4255
|
}
|
|
4247
|
-
function
|
|
4256
|
+
function Ji(t) {
|
|
4248
4257
|
const A = F(22), {
|
|
4249
4258
|
children: e,
|
|
4250
4259
|
mapId: r
|
|
@@ -4341,7 +4350,7 @@ async function jn({
|
|
|
4341
4350
|
...s
|
|
4342
4351
|
});
|
|
4343
4352
|
}
|
|
4344
|
-
function
|
|
4353
|
+
function Xi(t) {
|
|
4345
4354
|
const A = F(22), {
|
|
4346
4355
|
source: e,
|
|
4347
4356
|
attribute: r,
|
|
@@ -4445,7 +4454,7 @@ async function Hn({
|
|
|
4445
4454
|
target: e,
|
|
4446
4455
|
attribute: r
|
|
4447
4456
|
}) {
|
|
4448
|
-
const n = await
|
|
4457
|
+
const n = await Jt({
|
|
4449
4458
|
connectionName: t.connectionName,
|
|
4450
4459
|
apiBaseUrl: t.apiBaseUrl,
|
|
4451
4460
|
accessToken: A,
|
|
@@ -4560,31 +4569,32 @@ export {
|
|
|
4560
4569
|
qA as MapMeasurementUnitAuto,
|
|
4561
4570
|
J0 as MapMeasurementUnitTurf,
|
|
4562
4571
|
_0 as MapProvider,
|
|
4563
|
-
|
|
4564
|
-
|
|
4572
|
+
Vi as MapsProvider,
|
|
4573
|
+
uA as MapsTypes,
|
|
4565
4574
|
wr as MeasurementTools,
|
|
4566
4575
|
sr as MeasurementToolsProvider,
|
|
4567
4576
|
Ii as RangeModel,
|
|
4568
4577
|
Oi as ScatterModel,
|
|
4569
|
-
Ri as
|
|
4570
|
-
Ui as
|
|
4571
|
-
|
|
4572
|
-
|
|
4578
|
+
Ri as SpreadModel,
|
|
4579
|
+
Ui as TableModel,
|
|
4580
|
+
zi as TimeSeriesModel,
|
|
4581
|
+
Ji as ZoomControls,
|
|
4582
|
+
ji as clientID,
|
|
4573
4583
|
fe as convertMetersTo,
|
|
4574
4584
|
O0 as createLassoToolsStore,
|
|
4575
4585
|
B0 as createMapStore,
|
|
4576
4586
|
or as createMeasurementToolsStore,
|
|
4577
4587
|
dA as formatterTypes,
|
|
4578
|
-
|
|
4579
|
-
|
|
4588
|
+
Zi as getCentroid,
|
|
4589
|
+
e0 as getCursorDefault,
|
|
4580
4590
|
yi as getDeckController,
|
|
4581
4591
|
Ei as getFilterValues,
|
|
4582
4592
|
I0 as getLassoToolsLayer,
|
|
4583
4593
|
nr as getMeasurementToolsLayer,
|
|
4584
4594
|
OA as getTextLayerFormattedDistance,
|
|
4585
|
-
|
|
4586
|
-
|
|
4587
|
-
|
|
4595
|
+
t0 as getTooltipDefault,
|
|
4596
|
+
$i as mappingLegendMeridian,
|
|
4597
|
+
Ki as objectToHtml,
|
|
4588
4598
|
Ve as sortLayers,
|
|
4589
4599
|
p0 as transitionFlyConfig,
|
|
4590
4600
|
ki as useAggregations,
|
|
@@ -4594,15 +4604,15 @@ export {
|
|
|
4594
4604
|
We as useFilters,
|
|
4595
4605
|
xi as useFormula,
|
|
4596
4606
|
yn as useGroupedLassoToolsSpatialFilters,
|
|
4597
|
-
|
|
4607
|
+
Wi as useGroupedSpatialFilter,
|
|
4598
4608
|
_n as useGroupedStaticSpatialFilters,
|
|
4599
4609
|
Pi as useHistogram,
|
|
4600
4610
|
hn as useLassoToolsSpatialFilter,
|
|
4601
|
-
|
|
4611
|
+
W as useLassoToolsState,
|
|
4602
4612
|
kA as useLayerStore,
|
|
4603
4613
|
_r as useLayers,
|
|
4604
|
-
|
|
4605
|
-
|
|
4614
|
+
Hi as useLegend,
|
|
4615
|
+
Yi as useMapScreenshot,
|
|
4606
4616
|
I as useMapStore,
|
|
4607
4617
|
H as useMeasurementToolsState,
|
|
4608
4618
|
Li as useRange,
|
|
@@ -4610,10 +4620,11 @@ export {
|
|
|
4610
4620
|
Wr as useSource,
|
|
4611
4621
|
ie as useSourceStore,
|
|
4612
4622
|
vi as useSourceWithFilters,
|
|
4613
|
-
|
|
4614
|
-
|
|
4615
|
-
|
|
4616
|
-
Ni as
|
|
4623
|
+
qi as useSpatialFilter,
|
|
4624
|
+
Fi as useSpread,
|
|
4625
|
+
Xi as useStats,
|
|
4626
|
+
Ni as useTable,
|
|
4627
|
+
Gi as useTimeSeries,
|
|
4617
4628
|
Ze as useViewportSpatialFilter,
|
|
4618
4629
|
en as useWidgetModel
|
|
4619
4630
|
};
|