@carto/ps-react-maps 3.11.9 → 3.11.11
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 +752 -710
- package/dist/index.js.map +1 -1
- package/dist/types/editable/measurement-tools/const.d.ts +10 -0
- package/dist/types/editable/measurement-tools/modes/custom-measurement-area.class.d.ts +3 -1
- package/dist/types/editable/measurement-tools/utils.d.ts +3 -2
- package/dist/types/providers/sources/types.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,26 +1,27 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as K, jsxs as pt } from "react/jsx-runtime";
|
|
2
2
|
import { c as O } from "react/compiler-runtime";
|
|
3
|
-
import { useImperativeHandle as
|
|
4
|
-
import { MapProvider as
|
|
5
|
-
import
|
|
6
|
-
import { useMap as
|
|
7
|
-
import { GoogleMapsOverlay as
|
|
8
|
-
import { createStore as
|
|
9
|
-
import { FlyToInterpolator as
|
|
10
|
-
import { CompositeMode as
|
|
11
|
-
import { DataFilterExtension as
|
|
12
|
-
import { EventManager as
|
|
13
|
-
import { GeoJsonLayer as
|
|
14
|
-
import { useShallow as
|
|
15
|
-
import { area as
|
|
16
|
-
import { formatNumber as
|
|
17
|
-
import
|
|
18
|
-
import
|
|
3
|
+
import { useImperativeHandle as Ne, useEffect as Q, useMemo as te, useCallback as W, useState as se, createContext as He, useContext as Ge, useRef as Ee } from "react";
|
|
4
|
+
import { MapProvider as $t, Map as xt, useMap as qt } from "react-map-gl/maplibre";
|
|
5
|
+
import Ut from "@deck.gl/react";
|
|
6
|
+
import { useMap as mt, APIProvider as Vt, Map as jt } from "@vis.gl/react-google-maps";
|
|
7
|
+
import { GoogleMapsOverlay as Bt } from "@deck.gl/google-maps";
|
|
8
|
+
import { createStore as Ke, useStore as Ze, create as yt } from "zustand";
|
|
9
|
+
import { FlyToInterpolator as It, WebMercatorViewport as ht } from "@deck.gl/core";
|
|
10
|
+
import { CompositeMode as Nt, TranslateMode as Ht, ModifyMode as Gt, DrawPolygonByDraggingMode as Kt, DrawCircleFromCenterMode as gt, DrawRectangleMode as Zt, DrawPolygonMode as zt, EditableGeoJsonLayer as Qt, MeasureAreaMode as Wt, getPickedEditHandle as Yt, MeasureDistanceMode as Jt, ViewMode as Xt } from "@deck.gl-community/editable-layers";
|
|
11
|
+
import { DataFilterExtension as es, MaskExtension as ts } from "@deck.gl/extensions";
|
|
12
|
+
import { EventManager as ss } from "mjolnir.js";
|
|
13
|
+
import { GeoJsonLayer as ns } from "@deck.gl/layers";
|
|
14
|
+
import { useShallow as bt } from "zustand/shallow";
|
|
15
|
+
import { area as Ye, centroid as rs, lineIntersect as os, multiPolygon as vt } from "@turf/turf";
|
|
16
|
+
import { formatNumber as St, formatCurrency as is } from "@carto/ps-utils";
|
|
17
|
+
import wt from "convert-units";
|
|
18
|
+
import as from "convert-units/definitions/length";
|
|
19
|
+
import ls from "convert-units/definitions/area";
|
|
19
20
|
import { useQuery as ne } from "@tanstack/react-query";
|
|
20
|
-
import { removeFilter as
|
|
21
|
-
import { devtools as
|
|
22
|
-
import
|
|
23
|
-
const
|
|
21
|
+
import { removeFilter as Je, addFilter as _t, WidgetRasterSource as cs, WidgetTilesetSource as us, TileFormat as ds, WidgetTableSource as fs, WidgetQuerySource as ps, createViewportSpatialFilter as ms, vectorTilesetSource as ys } from "@carto/api-client";
|
|
22
|
+
import { devtools as hs } from "zustand/middleware";
|
|
23
|
+
import gs from "html2canvas";
|
|
24
|
+
const De = {
|
|
24
25
|
roadmap: "roadmap",
|
|
25
26
|
satellite: "satellite",
|
|
26
27
|
hybrid: "hybrid"
|
|
@@ -28,44 +29,44 @@ const Ae = {
|
|
|
28
29
|
darkMatter: "darkMatter",
|
|
29
30
|
positron: "positron",
|
|
30
31
|
voyager: "voyager"
|
|
31
|
-
},
|
|
32
|
+
}, $e = {
|
|
32
33
|
[X.positron]: "https://basemaps.cartocdn.com/gl/positron-gl-style/style.json",
|
|
33
34
|
[X.voyager]: "https://basemaps.cartocdn.com/gl/voyager-gl-style/style.json",
|
|
34
35
|
[X.darkMatter]: "https://basemaps.cartocdn.com/gl/dark-matter-gl-style/style.json"
|
|
35
36
|
}, ee = {
|
|
36
37
|
maplibre: "maplibre",
|
|
37
38
|
googleMaps: "google-maps"
|
|
38
|
-
},
|
|
39
|
+
}, me = {
|
|
39
40
|
[X.positron]: {
|
|
40
|
-
url:
|
|
41
|
+
url: $e[X.positron],
|
|
41
42
|
type: ee.maplibre
|
|
42
43
|
},
|
|
43
44
|
[X.voyager]: {
|
|
44
|
-
url:
|
|
45
|
+
url: $e[X.voyager],
|
|
45
46
|
type: ee.maplibre
|
|
46
47
|
},
|
|
47
48
|
[X.darkMatter]: {
|
|
48
|
-
url:
|
|
49
|
+
url: $e[X.darkMatter],
|
|
49
50
|
type: ee.maplibre,
|
|
50
51
|
dark: !0
|
|
51
52
|
},
|
|
52
|
-
[
|
|
53
|
+
[De.roadmap]: {
|
|
53
54
|
type: ee.googleMaps
|
|
54
55
|
},
|
|
55
|
-
[
|
|
56
|
+
[De.satellite]: {
|
|
56
57
|
type: ee.googleMaps
|
|
57
58
|
},
|
|
58
|
-
[
|
|
59
|
+
[De.hybrid]: {
|
|
59
60
|
type: ee.googleMaps
|
|
60
61
|
}
|
|
61
62
|
};
|
|
62
|
-
function
|
|
63
|
+
function bs({
|
|
63
64
|
isDragging: r,
|
|
64
65
|
isHovering: e
|
|
65
66
|
}) {
|
|
66
67
|
return r ? "grabbing" : e ? "pointer" : "grab";
|
|
67
68
|
}
|
|
68
|
-
function
|
|
69
|
+
function vs(r) {
|
|
69
70
|
return r.html ? {
|
|
70
71
|
html: `<div class='map-tooltip__content'>${r.html}</div>`,
|
|
71
72
|
style: {
|
|
@@ -74,7 +75,7 @@ function ys(r) {
|
|
|
74
75
|
}
|
|
75
76
|
} : null;
|
|
76
77
|
}
|
|
77
|
-
function
|
|
78
|
+
function Ss(r) {
|
|
78
79
|
const e = O(39);
|
|
79
80
|
let t, s, n, o, i, a, c, l, y, h, g, p;
|
|
80
81
|
e[0] !== r ? ({
|
|
@@ -92,7 +93,7 @@ function hs(r) {
|
|
|
92
93
|
...p
|
|
93
94
|
} = r, e[0] = r, e[1] = t, e[2] = s, e[3] = n, e[4] = o, e[5] = i, e[6] = a, e[7] = c, e[8] = l, e[9] = y, e[10] = h, e[11] = g, e[12] = p) : (t = e[1], s = e[2], n = e[3], o = e[4], i = e[5], a = e[6], c = e[7], l = e[8], y = e[9], h = e[10], g = e[11], p = e[12]);
|
|
94
95
|
let v, m;
|
|
95
|
-
e[13] !== a ? (m = a.filter(
|
|
96
|
+
e[13] !== a ? (m = a.filter(Ms).map(_s), e[13] = a, e[14] = m) : m = e[14], v = m;
|
|
96
97
|
const w = v, u = i;
|
|
97
98
|
let f;
|
|
98
99
|
e[15] !== l ? (f = () => l({
|
|
@@ -105,51 +106,51 @@ function hs(r) {
|
|
|
105
106
|
...g
|
|
106
107
|
}, e[17] = g, e[18] = b) : b = e[18];
|
|
107
108
|
let _;
|
|
108
|
-
e[19] !== h ? (_ = /* @__PURE__ */
|
|
109
|
+
e[19] !== h ? (_ = /* @__PURE__ */ K(Es, { overlayRef: h }), e[19] = h, e[20] = _) : _ = e[20];
|
|
109
110
|
let M;
|
|
110
111
|
e[21] !== l ? (M = () => l({
|
|
111
112
|
type: "load",
|
|
112
113
|
value: !0
|
|
113
114
|
}), e[21] = l, e[22] = M) : M = e[22];
|
|
114
115
|
let P;
|
|
115
|
-
e[23] !== c || e[24] !== M ? (P = /* @__PURE__ */
|
|
116
|
+
e[23] !== c || e[24] !== M ? (P = /* @__PURE__ */ K(xt, { reuseMaps: !1, mapStyle: c, onLoad: M, onRender: ws }), e[23] = c, e[24] = M, e[25] = P) : P = e[25];
|
|
116
117
|
let D;
|
|
117
|
-
return e[26] !== w || e[27] !== t || e[28] !== s || e[29] !== n || e[30] !== o || e[31] !== y || e[32] !== p || e[33] !== u || e[34] !== f || e[35] !== b || e[36] !== _ || e[37] !== P ? (D = /* @__PURE__ */
|
|
118
|
+
return e[26] !== w || e[27] !== t || e[28] !== s || e[29] !== n || e[30] !== o || e[31] !== y || e[32] !== p || e[33] !== u || e[34] !== f || e[35] !== b || e[36] !== _ || e[37] !== P ? (D = /* @__PURE__ */ K($t, { children: /* @__PURE__ */ K("div", { className: "deckgl-map", children: /* @__PURE__ */ pt(Ut, { controller: t, id: o, ref: u, layers: w, getCursor: s, getTooltip: n, onLoad: f, onViewStateChange: y, parameters: b, ...p, children: [
|
|
118
119
|
_,
|
|
119
120
|
P
|
|
120
121
|
] }) }) }), e[26] = w, e[27] = t, e[28] = s, e[29] = n, e[30] = o, e[31] = y, e[32] = p, e[33] = u, e[34] = f, e[35] = b, e[36] = _, e[37] = P, e[38] = D) : D = e[38], D;
|
|
121
122
|
}
|
|
122
|
-
function
|
|
123
|
+
function ws() {
|
|
123
124
|
document.querySelector(".maplibregl-compact-show")?.classList.remove("maplibregl-compact-show");
|
|
124
125
|
}
|
|
125
|
-
function
|
|
126
|
+
function _s(r) {
|
|
126
127
|
const {
|
|
127
128
|
type: e,
|
|
128
129
|
props: t
|
|
129
130
|
} = r;
|
|
130
131
|
return new e(t);
|
|
131
132
|
}
|
|
132
|
-
function
|
|
133
|
+
function Ms(r) {
|
|
133
134
|
return !!r?.type;
|
|
134
135
|
}
|
|
135
|
-
function
|
|
136
|
+
function Es(r) {
|
|
136
137
|
const e = O(3), {
|
|
137
138
|
overlayRef: t
|
|
138
139
|
} = r, {
|
|
139
140
|
default: s
|
|
140
|
-
} =
|
|
141
|
+
} = qt();
|
|
141
142
|
let n, o;
|
|
142
|
-
return e[0] !== s ? (n = () => s, o = [s], e[0] = s, e[1] = n, e[2] = o) : (n = e[1], o = e[2]),
|
|
143
|
+
return e[0] !== s ? (n = () => s, o = [s], e[0] = s, e[1] = n, e[2] = o) : (n = e[1], o = e[2]), Ne(t, n, o), null;
|
|
143
144
|
}
|
|
144
|
-
const
|
|
145
|
+
const Ts = (r) => {
|
|
145
146
|
const e = O(9);
|
|
146
147
|
let t, s;
|
|
147
|
-
e[0] === Symbol.for("react.memo_cache_sentinel") ? (s = new
|
|
148
|
+
e[0] === Symbol.for("react.memo_cache_sentinel") ? (s = new Bt({
|
|
148
149
|
interleaved: !0
|
|
149
150
|
}), e[0] = s) : s = e[0], t = s;
|
|
150
|
-
const n = t, o =
|
|
151
|
+
const n = t, o = mt();
|
|
151
152
|
let i, a;
|
|
152
|
-
e[1] === Symbol.for("react.memo_cache_sentinel") ? (i = () => n, a = [n], e[1] = i, e[2] = a) : (i = e[1], a = e[2]),
|
|
153
|
+
e[1] === Symbol.for("react.memo_cache_sentinel") ? (i = () => n, a = [n], e[1] = i, e[2] = a) : (i = e[1], a = e[2]), Ne(r.instanceRef, i, a);
|
|
153
154
|
let c, l;
|
|
154
155
|
e[3] !== o ? (c = () => (n.setMap(o), () => {
|
|
155
156
|
n.finalize();
|
|
@@ -159,7 +160,7 @@ const ws = (r) => {
|
|
|
159
160
|
n.setProps(r);
|
|
160
161
|
}, h = [n, r], e[6] = r, e[7] = y, e[8] = h) : (y = e[7], h = e[8]), Q(y, h), null;
|
|
161
162
|
};
|
|
162
|
-
function
|
|
163
|
+
function Ls({
|
|
163
164
|
id: r,
|
|
164
165
|
instanceRef: e,
|
|
165
166
|
basemap: t,
|
|
@@ -229,7 +230,7 @@ function _s({
|
|
|
229
230
|
}
|
|
230
231
|
});
|
|
231
232
|
}, [e, h]);
|
|
232
|
-
return /* @__PURE__ */
|
|
233
|
+
return /* @__PURE__ */ K(Vt, { apiKey: n, ...o, children: /* @__PURE__ */ K("div", { className: "deckgl-map", children: /* @__PURE__ */ pt(jt, { id: r, mapTypeId: t, disableDefaultUI: !0, ...i, center: {
|
|
233
234
|
lat: g.initialViewState?.latitude ?? 0,
|
|
234
235
|
lng: g.initialViewState?.longitude ?? 0
|
|
235
236
|
}, zoom: (g.initialViewState?.zoom ?? 0) + 1, tilt: g.initialViewState?.pitch, heading: g.initialViewState?.bearing, onTilesLoaded: () => {
|
|
@@ -238,8 +239,8 @@ function _s({
|
|
|
238
239
|
value: !0
|
|
239
240
|
}), w(g.initialViewState);
|
|
240
241
|
}, onBoundsChanged: (u) => w(m(u)), onZoomChanged: (u) => w(m(u)), scrollwheel: typeof p.scrollZoom == "boolean" ? p.scrollZoom : !!p.scrollZoom, gestureHandling: p.dragPan ? "greedy" : "none", disableDoubleClickZoom: !p.doubleClickZoom, children: [
|
|
241
|
-
/* @__PURE__ */
|
|
242
|
-
/* @__PURE__ */
|
|
242
|
+
/* @__PURE__ */ K(Ps, { id: r, overlayRef: a }),
|
|
243
|
+
/* @__PURE__ */ K(Ts, { id: r, instanceRef: e, layers: v, onLoad: () => {
|
|
243
244
|
y({
|
|
244
245
|
type: "deckgl",
|
|
245
246
|
value: !0
|
|
@@ -251,15 +252,15 @@ function _s({
|
|
|
251
252
|
}, ...g })
|
|
252
253
|
] }) }) });
|
|
253
254
|
}
|
|
254
|
-
function
|
|
255
|
+
function Ps(r) {
|
|
255
256
|
const e = O(3), {
|
|
256
257
|
id: t,
|
|
257
258
|
overlayRef: s
|
|
258
|
-
} = r, n =
|
|
259
|
+
} = r, n = mt(t);
|
|
259
260
|
let o, i;
|
|
260
|
-
return e[0] !== n ? (o = () => n, i = [n], e[0] = n, e[1] = o, e[2] = i) : (o = e[1], i = e[2]),
|
|
261
|
+
return e[0] !== n ? (o = () => n, i = [n], e[0] = n, e[1] = o, e[2] = i) : (o = e[1], i = e[2]), Ne(s, o, i), null;
|
|
261
262
|
}
|
|
262
|
-
function
|
|
263
|
+
function ks(r) {
|
|
263
264
|
const e = O(46);
|
|
264
265
|
let t, s, n, o, i, a, c, l, y, h, g, p;
|
|
265
266
|
e[0] !== r ? ({
|
|
@@ -279,19 +280,19 @@ function Es(r) {
|
|
|
279
280
|
const v = a === void 0 ? X.positron : a, m = c === void 0 ? !0 : c, w = l === void 0 ? "deck-gl-map" : l;
|
|
280
281
|
let u;
|
|
281
282
|
e[13] !== y ? (u = y === void 0 ? [] : y, e[13] = y, e[14] = u) : u = e[14];
|
|
282
|
-
const f = u, b = h === void 0 ?
|
|
283
|
+
const f = u, b = h === void 0 ? bs : h, _ = g === void 0 ? vs : g, M = p === void 0 ? Os : p;
|
|
283
284
|
let P;
|
|
284
285
|
e[15] === Symbol.for("react.memo_cache_sentinel") ? (P = [!1, !1], e[15] = P) : P = e[15];
|
|
285
|
-
const [D,
|
|
286
|
+
const [D, N] = se(P), {
|
|
286
287
|
url: $,
|
|
287
|
-
type:
|
|
288
|
-
} =
|
|
289
|
-
let
|
|
290
|
-
e[16] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
288
|
+
type: U
|
|
289
|
+
} = me[v], B = U === ee.googleMaps;
|
|
290
|
+
let q;
|
|
291
|
+
e[16] === Symbol.for("react.memo_cache_sentinel") ? (q = (k) => {
|
|
291
292
|
const L = k.type === "deckgl" ? 0 : 1;
|
|
292
|
-
|
|
293
|
-
}, e[16] =
|
|
294
|
-
const E =
|
|
293
|
+
N((R) => R.map((j, H) => H === L ? k.value : j));
|
|
294
|
+
}, e[16] = q) : q = e[16];
|
|
295
|
+
const E = q;
|
|
295
296
|
let F, d;
|
|
296
297
|
e[17] === Symbol.for("react.memo_cache_sentinel") ? (F = () => () => {
|
|
297
298
|
E({
|
|
@@ -304,35 +305,35 @@ function Es(r) {
|
|
|
304
305
|
}, d = [E], e[17] = F, e[18] = d) : (F = e[17], d = e[18]), Q(F, d);
|
|
305
306
|
let S, T;
|
|
306
307
|
if (e[19] !== D || e[20] !== n ? (S = () => {
|
|
307
|
-
const k = D.every(
|
|
308
|
+
const k = D.every(Cs);
|
|
308
309
|
n?.(k);
|
|
309
|
-
}, T = [D, n], e[19] = D, e[20] = n, e[21] = S, e[22] = T) : (S = e[21], T = e[22]), Q(S, T),
|
|
310
|
+
}, T = [D, n], e[19] = D, e[20] = n, e[21] = S, e[22] = T) : (S = e[21], T = e[22]), Q(S, T), B) {
|
|
310
311
|
let k;
|
|
311
|
-
return e[23] !== v || e[24] !== m || e[25] !== b || e[26] !== _ || e[27] !== t || e[28] !== w || e[29] !== s || e[30] !== f || e[31] !== M || e[32] !== o || e[33] !== i ? (k = /* @__PURE__ */
|
|
312
|
+
return e[23] !== v || e[24] !== m || e[25] !== b || e[26] !== _ || e[27] !== t || e[28] !== w || e[29] !== s || e[30] !== f || e[31] !== M || e[32] !== o || e[33] !== i ? (k = /* @__PURE__ */ K(Ls, { instanceRef: s, overlayRef: o, controller: m, id: w, basemap: v, layers: f, gmapsProps: t, getCursor: b, getTooltip: _, onLoad: E, onViewStateChange: M, ...i }), e[23] = v, e[24] = m, e[25] = b, e[26] = _, e[27] = t, e[28] = w, e[29] = s, e[30] = f, e[31] = M, e[32] = o, e[33] = i, e[34] = k) : k = e[34], k;
|
|
312
313
|
}
|
|
313
314
|
let C;
|
|
314
|
-
return e[35] !== m || e[36] !== b || e[37] !== _ || e[38] !== w || e[39] !== s || e[40] !== f || e[41] !== $ || e[42] !== M || e[43] !== o || e[44] !== i ? (C = /* @__PURE__ */
|
|
315
|
+
return e[35] !== m || e[36] !== b || e[37] !== _ || e[38] !== w || e[39] !== s || e[40] !== f || e[41] !== $ || e[42] !== M || e[43] !== o || e[44] !== i ? (C = /* @__PURE__ */ K(Ss, { instanceRef: s, overlayRef: o, controller: m, id: w, layers: f, mapStyle: $, getCursor: b, getTooltip: _, onLoad: E, onViewStateChange: M, ...i }), e[35] = m, e[36] = b, e[37] = _, e[38] = w, e[39] = s, e[40] = f, e[41] = $, e[42] = M, e[43] = o, e[44] = i, e[45] = C) : C = e[45], C;
|
|
315
316
|
}
|
|
316
|
-
function
|
|
317
|
+
function Cs(r) {
|
|
317
318
|
return r;
|
|
318
319
|
}
|
|
319
|
-
function
|
|
320
|
+
function Os() {
|
|
320
321
|
return null;
|
|
321
322
|
}
|
|
322
|
-
const
|
|
323
|
+
const Fs = {
|
|
323
324
|
transitionDuration: "auto",
|
|
324
|
-
transitionInterpolator: new
|
|
325
|
+
transitionInterpolator: new It({
|
|
325
326
|
curve: 2
|
|
326
327
|
})
|
|
327
328
|
};
|
|
328
|
-
var
|
|
329
|
-
function
|
|
329
|
+
var we = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
330
|
+
function Mt(r) {
|
|
330
331
|
return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
|
|
331
332
|
}
|
|
332
|
-
var
|
|
333
|
-
function
|
|
334
|
-
if (
|
|
335
|
-
|
|
333
|
+
var xe, Xe;
|
|
334
|
+
function As() {
|
|
335
|
+
if (Xe) return xe;
|
|
336
|
+
Xe = 1;
|
|
336
337
|
var r = function(f) {
|
|
337
338
|
return e(f) && !t(f);
|
|
338
339
|
};
|
|
@@ -403,10 +404,10 @@ function ks() {
|
|
|
403
404
|
}, {});
|
|
404
405
|
};
|
|
405
406
|
var w = m;
|
|
406
|
-
return
|
|
407
|
+
return xe = w, xe;
|
|
407
408
|
}
|
|
408
|
-
var
|
|
409
|
-
const
|
|
409
|
+
var Rs = As();
|
|
410
|
+
const ie = /* @__PURE__ */ Mt(Rs), Ds = (r) => {
|
|
410
411
|
const e = r.reduce((t, s) => {
|
|
411
412
|
const {
|
|
412
413
|
id: n,
|
|
@@ -430,9 +431,9 @@ const oe = /* @__PURE__ */ vt(Cs), Os = (r) => {
|
|
|
430
431
|
setBasemap: (n, o) => t((i) => {
|
|
431
432
|
const {
|
|
432
433
|
type: a
|
|
433
|
-
} =
|
|
434
|
+
} = me[i.maps[n].basemap], {
|
|
434
435
|
type: c
|
|
435
|
-
} =
|
|
436
|
+
} = me[o], l = a === c && !!i.maps[n]?.isLoaded;
|
|
436
437
|
return {
|
|
437
438
|
maps: {
|
|
438
439
|
...i.maps,
|
|
@@ -469,7 +470,7 @@ const oe = /* @__PURE__ */ vt(Cs), Os = (r) => {
|
|
|
469
470
|
if (!a.maps?.[n]?.isLoaded) return;
|
|
470
471
|
const c = a.getViewState(n);
|
|
471
472
|
if (!c) return;
|
|
472
|
-
const y = new
|
|
473
|
+
const y = new ht(c).fitBounds(o, i?.boundsOptions);
|
|
473
474
|
return {
|
|
474
475
|
latitude: y.latitude,
|
|
475
476
|
longitude: y.longitude,
|
|
@@ -500,7 +501,7 @@ const oe = /* @__PURE__ */ vt(Cs), Os = (r) => {
|
|
|
500
501
|
};
|
|
501
502
|
}),
|
|
502
503
|
setController: (n, o) => t((i) => {
|
|
503
|
-
const a = i.maps[n]?.controller ?? {}, l = !o || typeof o == "boolean" ? o :
|
|
504
|
+
const a = i.maps[n]?.controller ?? {}, l = !o || typeof o == "boolean" ? o : ie(typeof a == "boolean" ? {} : a, o);
|
|
504
505
|
return {
|
|
505
506
|
maps: {
|
|
506
507
|
...i.maps,
|
|
@@ -512,7 +513,7 @@ const oe = /* @__PURE__ */ vt(Cs), Os = (r) => {
|
|
|
512
513
|
};
|
|
513
514
|
})
|
|
514
515
|
});
|
|
515
|
-
},
|
|
516
|
+
}, $s = (r) => {
|
|
516
517
|
const e = r.reduce((t, s) => {
|
|
517
518
|
const {
|
|
518
519
|
id: n
|
|
@@ -528,7 +529,7 @@ const oe = /* @__PURE__ */ vt(Cs), Os = (r) => {
|
|
|
528
529
|
}
|
|
529
530
|
}))
|
|
530
531
|
});
|
|
531
|
-
},
|
|
532
|
+
}, xs = (r) => {
|
|
532
533
|
const e = r.reduce((t, s) => {
|
|
533
534
|
const n = s.initialViewState ?? s.viewState;
|
|
534
535
|
return t.initialViewStates[s.id] = n, t.viewStates[s.id] = n, t.viewports[s.id] = null, t;
|
|
@@ -543,7 +544,7 @@ const oe = /* @__PURE__ */ vt(Cs), Os = (r) => {
|
|
|
543
544
|
updateViewPort: (n) => {
|
|
544
545
|
const o = s();
|
|
545
546
|
if (!o.maps[n]?.isLoaded) return;
|
|
546
|
-
const i = new
|
|
547
|
+
const i = new ht(o.viewStates[n]);
|
|
547
548
|
t((a) => ({
|
|
548
549
|
viewports: {
|
|
549
550
|
...a.viewports,
|
|
@@ -595,14 +596,14 @@ const oe = /* @__PURE__ */ vt(Cs), Os = (r) => {
|
|
|
595
596
|
}
|
|
596
597
|
}))
|
|
597
598
|
});
|
|
598
|
-
},
|
|
599
|
+
}, qs = (r, e) => ({
|
|
599
600
|
fitBounds: (t, s, n) => {
|
|
600
601
|
const o = e(), i = o.getBounds(t, s, n);
|
|
601
602
|
i && (o.setViewState(t, i), o.updateViewPort(t));
|
|
602
603
|
},
|
|
603
604
|
flyTo: (t, s, n = {}) => {
|
|
604
605
|
const o = e(), i = {
|
|
605
|
-
...
|
|
606
|
+
...Fs,
|
|
606
607
|
...n?.viewStateOptions
|
|
607
608
|
}, a = {
|
|
608
609
|
...s,
|
|
@@ -622,7 +623,7 @@ const oe = /* @__PURE__ */ vt(Cs), Os = (r) => {
|
|
|
622
623
|
const s = e(), n = s.initialViewStates;
|
|
623
624
|
n[t] && s.flyTo(t, n[t]);
|
|
624
625
|
}
|
|
625
|
-
}),
|
|
626
|
+
}), Us = (r) => {
|
|
626
627
|
const e = r.reduce((t, s) => (t[s.id] = s.spatialFilter ?? {}, t), {});
|
|
627
628
|
return (t) => ({
|
|
628
629
|
spatialFilter: e,
|
|
@@ -638,31 +639,31 @@ const oe = /* @__PURE__ */ vt(Cs), Os = (r) => {
|
|
|
638
639
|
});
|
|
639
640
|
}
|
|
640
641
|
});
|
|
641
|
-
},
|
|
642
|
-
...Os(r)(...e),
|
|
643
|
-
...Fs(r)(...e),
|
|
644
|
-
...As(r)(...e),
|
|
642
|
+
}, Vs = (r) => Ke()((...e) => ({
|
|
645
643
|
...Ds(r)(...e),
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
644
|
+
...$s(r)(...e),
|
|
645
|
+
...xs(r)(...e),
|
|
646
|
+
...Us(r)(...e),
|
|
647
|
+
...qs(...e)
|
|
648
|
+
})), Et = He({});
|
|
649
|
+
function js(r) {
|
|
649
650
|
const e = O(5), {
|
|
650
651
|
children: t,
|
|
651
652
|
values: s
|
|
652
653
|
} = r;
|
|
653
654
|
let n;
|
|
654
|
-
e[0] !== s ? (n =
|
|
655
|
+
e[0] !== s ? (n = Vs(s), e[0] = s, e[1] = n) : n = e[1];
|
|
655
656
|
const [o] = se(n);
|
|
656
657
|
let i;
|
|
657
|
-
return e[2] !== t || e[3] !== o ? (i = /* @__PURE__ */
|
|
658
|
+
return e[2] !== t || e[3] !== o ? (i = /* @__PURE__ */ K(Et.Provider, { value: o, children: t }), e[2] = t, e[3] = o, e[4] = i) : i = e[4], i;
|
|
658
659
|
}
|
|
659
660
|
function x(r) {
|
|
660
|
-
const e =
|
|
661
|
+
const e = Ge(Et);
|
|
661
662
|
if (!Object.keys(e).length)
|
|
662
663
|
throw new Error("Missing MapProvider in the tree");
|
|
663
|
-
return
|
|
664
|
+
return Ze(e, r);
|
|
664
665
|
}
|
|
665
|
-
function
|
|
666
|
+
function oo(r) {
|
|
666
667
|
const e = O(9), {
|
|
667
668
|
children: t,
|
|
668
669
|
mapId: s
|
|
@@ -671,7 +672,7 @@ function Jr(r) {
|
|
|
671
672
|
e[0] !== s ? (n = (y) => y.maps[s], e[0] = s, e[1] = n) : n = e[1];
|
|
672
673
|
const {
|
|
673
674
|
basemap: o
|
|
674
|
-
} = x(n), i = x(
|
|
675
|
+
} = x(n), i = x(Bs);
|
|
675
676
|
let a;
|
|
676
677
|
e[2] !== s || e[3] !== i ? (a = (y) => i(s, y), e[2] = s, e[3] = i, e[4] = a) : a = e[4];
|
|
677
678
|
const c = a;
|
|
@@ -681,7 +682,7 @@ function Jr(r) {
|
|
|
681
682
|
setBasemap: c
|
|
682
683
|
}), e[5] = o, e[6] = t, e[7] = c, e[8] = l) : l = e[8], l;
|
|
683
684
|
}
|
|
684
|
-
function
|
|
685
|
+
function Bs(r) {
|
|
685
686
|
return r.setBasemap;
|
|
686
687
|
}
|
|
687
688
|
const J = {
|
|
@@ -692,9 +693,9 @@ const J = {
|
|
|
692
693
|
finish: "finish",
|
|
693
694
|
addPosition: "addPosition"
|
|
694
695
|
};
|
|
695
|
-
class
|
|
696
|
+
class Is extends Nt {
|
|
696
697
|
constructor() {
|
|
697
|
-
super([new
|
|
698
|
+
super([new Ht(), new Gt()]);
|
|
698
699
|
}
|
|
699
700
|
handleKeyUp(e, t) {
|
|
700
701
|
super.handleKeyUp(e, t), e.key === "Enter" && (this.resetClickSequence(), t.onEdit({
|
|
@@ -704,8 +705,8 @@ class qs extends Vt {
|
|
|
704
705
|
}));
|
|
705
706
|
}
|
|
706
707
|
}
|
|
707
|
-
const
|
|
708
|
-
id:
|
|
708
|
+
const ce = "lassoLayer", Pe = "maskLayer", Ns = {
|
|
709
|
+
id: ce,
|
|
709
710
|
billboard: !1,
|
|
710
711
|
editHandlePointRadiusUnits: "pixels",
|
|
711
712
|
editHandlePointRadiusMinPixels: 1,
|
|
@@ -717,7 +718,7 @@ const le = "lassoLayer", Te = "maskLayer", Vs = {
|
|
|
717
718
|
lineWidthUnits: "pixels",
|
|
718
719
|
getLineWidth: 2,
|
|
719
720
|
lineWidthMinPixels: 2
|
|
720
|
-
},
|
|
721
|
+
}, et = {
|
|
721
722
|
editing: {
|
|
722
723
|
border: [3, 111, 226, 255],
|
|
723
724
|
fill: [3, 111, 226, 20.4],
|
|
@@ -727,47 +728,47 @@ const le = "lassoLayer", Te = "maskLayer", Vs = {
|
|
|
727
728
|
border: [71, 219, 153, 255],
|
|
728
729
|
fill: [71, 219, 153, 0]
|
|
729
730
|
}
|
|
730
|
-
},
|
|
731
|
+
}, qe = {
|
|
731
732
|
styles: {
|
|
732
733
|
colors: {
|
|
733
|
-
editing:
|
|
734
|
-
finished:
|
|
734
|
+
editing: et.editing,
|
|
735
|
+
finished: et.finished
|
|
735
736
|
}
|
|
736
737
|
},
|
|
737
738
|
labels: {
|
|
738
739
|
mask: "Mask"
|
|
739
740
|
}
|
|
740
|
-
},
|
|
741
|
+
}, Hs = [new es({
|
|
741
742
|
filterSize: 1
|
|
742
|
-
})],
|
|
743
|
-
id:
|
|
743
|
+
})], _e = {
|
|
744
|
+
id: Pe,
|
|
744
745
|
operation: "mask",
|
|
745
746
|
pickable: !1,
|
|
746
747
|
visible: !0,
|
|
747
|
-
extensions:
|
|
748
|
+
extensions: Hs,
|
|
748
749
|
filterRange: [1, 1]
|
|
749
|
-
},
|
|
750
|
+
}, Ue = {
|
|
750
751
|
polygon: {
|
|
751
752
|
value: "polygon",
|
|
752
|
-
mode:
|
|
753
|
+
mode: zt
|
|
753
754
|
},
|
|
754
755
|
rectangle: {
|
|
755
756
|
value: "rectangle",
|
|
756
|
-
mode:
|
|
757
|
+
mode: Zt
|
|
757
758
|
},
|
|
758
759
|
circle: {
|
|
759
760
|
value: "circle",
|
|
760
|
-
mode:
|
|
761
|
+
mode: gt
|
|
761
762
|
},
|
|
762
763
|
lasso: {
|
|
763
764
|
value: "lasso",
|
|
764
|
-
mode:
|
|
765
|
+
mode: Kt
|
|
765
766
|
},
|
|
766
767
|
edit: {
|
|
767
768
|
value: "edit",
|
|
768
|
-
mode:
|
|
769
|
+
mode: Is
|
|
769
770
|
}
|
|
770
|
-
},
|
|
771
|
+
}, fe = yt((r) => ({
|
|
771
772
|
layers: {},
|
|
772
773
|
setLayer: (e, t) => r((s) => {
|
|
773
774
|
const n = {
|
|
@@ -810,8 +811,8 @@ const le = "lassoLayer", Te = "maskLayer", Vs = {
|
|
|
810
811
|
layers: s
|
|
811
812
|
};
|
|
812
813
|
})
|
|
813
|
-
})),
|
|
814
|
-
class
|
|
814
|
+
})), tt = ["anyclick", "pointermove", "panstart", "panmove", "panend", "keyup"];
|
|
815
|
+
class Tt extends Qt {
|
|
815
816
|
updateState({
|
|
816
817
|
props: e,
|
|
817
818
|
oldProps: t,
|
|
@@ -829,7 +830,7 @@ class wt extends Gt {
|
|
|
829
830
|
const e = this._getEventManager(), {
|
|
830
831
|
eventHandler: t
|
|
831
832
|
} = this.state._editableLayerState;
|
|
832
|
-
for (const s of
|
|
833
|
+
for (const s of tt)
|
|
833
834
|
e.on(s, t, {
|
|
834
835
|
// give nebula a higher priority so that it can stop propagation to deck.gl's map panning handlers
|
|
835
836
|
priority: 100
|
|
@@ -839,7 +840,7 @@ class wt extends Gt {
|
|
|
839
840
|
const t = e ?? this._getEventManager(), {
|
|
840
841
|
eventHandler: s
|
|
841
842
|
} = this.state._editableLayerState;
|
|
842
|
-
for (const n of
|
|
843
|
+
for (const n of tt)
|
|
843
844
|
t.off(n, s);
|
|
844
845
|
}
|
|
845
846
|
_getEventManager() {
|
|
@@ -847,27 +848,27 @@ class wt extends Gt {
|
|
|
847
848
|
this.context.deck.eventManager;
|
|
848
849
|
}
|
|
849
850
|
}
|
|
850
|
-
function
|
|
851
|
+
function Gs({
|
|
851
852
|
mode: r,
|
|
852
853
|
...e
|
|
853
854
|
}) {
|
|
854
|
-
const t =
|
|
855
|
+
const t = Ks(e);
|
|
855
856
|
return {
|
|
856
|
-
type:
|
|
857
|
+
type: Tt,
|
|
857
858
|
props: {
|
|
858
859
|
...t,
|
|
859
860
|
mode: r
|
|
860
861
|
}
|
|
861
862
|
};
|
|
862
863
|
}
|
|
863
|
-
function
|
|
864
|
+
function Ks({
|
|
864
865
|
layerProps: r,
|
|
865
866
|
onEdit: e,
|
|
866
867
|
getLineColor: t,
|
|
867
868
|
getFillColor: s,
|
|
868
869
|
pointColor: n
|
|
869
870
|
}) {
|
|
870
|
-
const o =
|
|
871
|
+
const o = ie(r, {
|
|
871
872
|
modeConfig: {
|
|
872
873
|
// // We force distance due to conversion is addressed at feature getText level
|
|
873
874
|
// formatTooltip: (_distance: number) => {
|
|
@@ -876,7 +877,7 @@ function Is({
|
|
|
876
877
|
preventOverlappingLines: !0
|
|
877
878
|
},
|
|
878
879
|
onEdit: e
|
|
879
|
-
}), i =
|
|
880
|
+
}), i = ie(Ns, {
|
|
880
881
|
getTentativeLineColor: t,
|
|
881
882
|
getTentativeFillColor: s,
|
|
882
883
|
getLineColor: t,
|
|
@@ -885,16 +886,16 @@ function Is({
|
|
|
885
886
|
getEditHandlePointOutlineColor: n.outline,
|
|
886
887
|
dataComparator: (c, l) => c.features[0] === l.features[0]
|
|
887
888
|
});
|
|
888
|
-
return
|
|
889
|
+
return ie(i, o);
|
|
889
890
|
}
|
|
890
|
-
const
|
|
891
|
+
const Zs = (r) => Ke()((e) => ({
|
|
891
892
|
data: r.reduce((s, n) => {
|
|
892
893
|
const {
|
|
893
894
|
enabled: o = !1,
|
|
894
895
|
mapId: i,
|
|
895
|
-
modeInstance: a = new
|
|
896
|
-
modes: c =
|
|
897
|
-
modeSelected: l =
|
|
896
|
+
modeInstance: a = new Ue.polygon.mode(),
|
|
897
|
+
modes: c = Ue,
|
|
898
|
+
modeSelected: l = Ue.polygon.value,
|
|
898
899
|
values: y = {}
|
|
899
900
|
} = n;
|
|
900
901
|
return s[i] = {
|
|
@@ -980,29 +981,29 @@ const Ns = (r) => He()((e) => ({
|
|
|
980
981
|
}
|
|
981
982
|
}));
|
|
982
983
|
}
|
|
983
|
-
})),
|
|
984
|
-
function
|
|
984
|
+
})), Lt = He({});
|
|
985
|
+
function zs(r) {
|
|
985
986
|
const e = O(5), {
|
|
986
987
|
children: t,
|
|
987
988
|
values: s
|
|
988
989
|
} = r;
|
|
989
990
|
let n;
|
|
990
|
-
e[0] !== s ? (n = () =>
|
|
991
|
+
e[0] !== s ? (n = () => Zs(s), e[0] = s, e[1] = n) : n = e[1];
|
|
991
992
|
const [o] = se(n);
|
|
992
993
|
let i;
|
|
993
|
-
return e[2] !== t || e[3] !== o ? (i = /* @__PURE__ */
|
|
994
|
+
return e[2] !== t || e[3] !== o ? (i = /* @__PURE__ */ K(Lt.Provider, { value: o, children: t }), e[2] = t, e[3] = o, e[4] = i) : i = e[4], i;
|
|
994
995
|
}
|
|
995
|
-
function
|
|
996
|
-
const e =
|
|
996
|
+
function z(r) {
|
|
997
|
+
const e = Ge(Lt);
|
|
997
998
|
if (!Object.keys(e).length)
|
|
998
999
|
throw new Error("Missing LassoToolsProvider in the tree");
|
|
999
|
-
return
|
|
1000
|
+
return Ze(e, r);
|
|
1000
1001
|
}
|
|
1001
|
-
function
|
|
1002
|
+
function Qs({
|
|
1002
1003
|
mapId: r,
|
|
1003
1004
|
children: e
|
|
1004
1005
|
}) {
|
|
1005
|
-
const t =
|
|
1006
|
+
const t = z((p) => p.data[r]?.enabled), s = z((p) => p.setEnabled), n = z((p) => p.data[r]?.values), o = z((p) => p.setValue), i = z((p) => p.setVisibility), a = z((p) => p.data[r]?.modeSelected), c = z((p) => p.setModeSelected), l = z((p) => p.data[r]?.modes), y = z((p) => p.setModeInstance);
|
|
1006
1007
|
Q(() => {
|
|
1007
1008
|
const p = l[a];
|
|
1008
1009
|
if (p && t) {
|
|
@@ -1041,19 +1042,39 @@ function Gs({
|
|
|
1041
1042
|
setModeSelected: g
|
|
1042
1043
|
});
|
|
1043
1044
|
}
|
|
1044
|
-
function
|
|
1045
|
+
function Pt({
|
|
1045
1046
|
values: r
|
|
1046
1047
|
}) {
|
|
1047
1048
|
return Object.values(r ?? {}).filter((e) => e.type === "mask");
|
|
1048
1049
|
}
|
|
1049
|
-
const
|
|
1050
|
-
length:
|
|
1050
|
+
const Ws = wt({
|
|
1051
|
+
length: as
|
|
1052
|
+
}), Ys = wt({
|
|
1053
|
+
area: ls
|
|
1051
1054
|
});
|
|
1052
|
-
function
|
|
1053
|
-
|
|
1055
|
+
function Js(r) {
|
|
1056
|
+
if (!(r in Te)) {
|
|
1057
|
+
const e = Object.keys(Te);
|
|
1058
|
+
throw new Error(`Unit "${r}" cannot be converted to area. Valid units are: ${e.join(", ")}`);
|
|
1059
|
+
}
|
|
1054
1060
|
}
|
|
1055
|
-
|
|
1056
|
-
|
|
1061
|
+
function st(r, e, t) {
|
|
1062
|
+
switch (t) {
|
|
1063
|
+
case "length": {
|
|
1064
|
+
const s = ot[I.meter], n = ot[e];
|
|
1065
|
+
return Ws(r).from(s).to(n);
|
|
1066
|
+
}
|
|
1067
|
+
case "area": {
|
|
1068
|
+
Js(e);
|
|
1069
|
+
const s = it[Te[I.meter]], n = it[Te[e]];
|
|
1070
|
+
return Ys(r).from(s).to(n);
|
|
1071
|
+
}
|
|
1072
|
+
default:
|
|
1073
|
+
throw new Error(`Invalid dimension: ${t}, valid dimensions are: length, area`);
|
|
1074
|
+
}
|
|
1075
|
+
}
|
|
1076
|
+
const nt = 1e4;
|
|
1077
|
+
function ke({
|
|
1057
1078
|
meters: r,
|
|
1058
1079
|
unit: e,
|
|
1059
1080
|
locale: t,
|
|
@@ -1061,20 +1082,21 @@ function Le({
|
|
|
1061
1082
|
autoSplitNumber: s,
|
|
1062
1083
|
...n
|
|
1063
1084
|
} = {
|
|
1064
|
-
autoSplitNumber:
|
|
1065
|
-
}
|
|
1085
|
+
autoSplitNumber: nt
|
|
1086
|
+
},
|
|
1087
|
+
dimension: o = "length"
|
|
1066
1088
|
}) {
|
|
1067
|
-
const
|
|
1068
|
-
let
|
|
1069
|
-
if (
|
|
1070
|
-
const
|
|
1071
|
-
let
|
|
1072
|
-
|
|
1089
|
+
const i = e === Ie["m-km"], a = e === Ie["ft-mi"], c = i || a;
|
|
1090
|
+
let l, y;
|
|
1091
|
+
if (c) {
|
|
1092
|
+
const h = r < (s ?? nt);
|
|
1093
|
+
let g = h ? I.meter : I.kilometer;
|
|
1094
|
+
l = h ? pe.meter : pe.kilometer, a && (l = h ? pe.feet : pe.mile, g = h ? I.feet : I.mile), y = st(r, g, o);
|
|
1073
1095
|
} else
|
|
1074
|
-
|
|
1075
|
-
return `${
|
|
1096
|
+
l = pe[e], y = st(r, e, o);
|
|
1097
|
+
return `${St(y, t, {
|
|
1076
1098
|
style: "unit",
|
|
1077
|
-
unit:
|
|
1099
|
+
unit: l,
|
|
1078
1100
|
unitDisplay: "short",
|
|
1079
1101
|
notation: "standard",
|
|
1080
1102
|
minimumFractionDigits: 2,
|
|
@@ -1082,7 +1104,7 @@ function Le({
|
|
|
1082
1104
|
...n
|
|
1083
1105
|
})}`;
|
|
1084
1106
|
}
|
|
1085
|
-
function
|
|
1107
|
+
function io(r, {
|
|
1086
1108
|
hasDoubleClickZoom: e
|
|
1087
1109
|
}) {
|
|
1088
1110
|
return typeof r == "boolean" ? {
|
|
@@ -1092,7 +1114,7 @@ function Xr(r, {
|
|
|
1092
1114
|
doubleClickZoom: e
|
|
1093
1115
|
};
|
|
1094
1116
|
}
|
|
1095
|
-
function
|
|
1117
|
+
function kt(r, e, t) {
|
|
1096
1118
|
if (r > 0) {
|
|
1097
1119
|
const {
|
|
1098
1120
|
formatTooltip: s,
|
|
@@ -1114,7 +1136,7 @@ function Et(r, e, t) {
|
|
|
1114
1136
|
}
|
|
1115
1137
|
return [];
|
|
1116
1138
|
}
|
|
1117
|
-
class
|
|
1139
|
+
class Xs extends Wt {
|
|
1118
1140
|
_isMeasuringSessionFinished = !1;
|
|
1119
1141
|
area = 0;
|
|
1120
1142
|
tooltips = [];
|
|
@@ -1126,11 +1148,13 @@ class zs extends Zt {
|
|
|
1126
1148
|
this._isMeasuringSessionFinished && (this._isMeasuringSessionFinished = !1, this.resetClickSequence(), this.area = 0);
|
|
1127
1149
|
const {
|
|
1128
1150
|
picks: s
|
|
1129
|
-
} = e, n =
|
|
1151
|
+
} = e, n = Yt(s), o = this.getClickSequence();
|
|
1130
1152
|
let i = !1;
|
|
1131
|
-
!n && !this.allowOverlapping(t) && (this.addClickSequence(e), i = !0)
|
|
1153
|
+
!n && !this.allowOverlapping(t) && (this.addClickSequence(e), i = !0);
|
|
1154
|
+
const a = this.getClickSequence(), c = [...a, a[0]];
|
|
1155
|
+
this.area = Ye({
|
|
1132
1156
|
type: "Polygon",
|
|
1133
|
-
coordinates: [
|
|
1157
|
+
coordinates: [c]
|
|
1134
1158
|
}), this.isFinalizedEdition(o, n) ? this.finalizeEdition(t) : i && t.onEdit({
|
|
1135
1159
|
// data is the same
|
|
1136
1160
|
updatedData: t.data,
|
|
@@ -1143,15 +1167,16 @@ class zs extends Zt {
|
|
|
1143
1167
|
handleKeyUp(e, t) {
|
|
1144
1168
|
e.key === "Enter" ? this.getClickSequence().length > 2 ? this.finalizeEdition(t) : this.resetEdition(t) : e.key === "Escape" && this.resetEdition(t);
|
|
1145
1169
|
}
|
|
1170
|
+
updateTooltip(e, t) {
|
|
1171
|
+
const s = rs(e);
|
|
1172
|
+
this.area = Ye(e), this.tooltips = kt(this.area, s.geometry.coordinates, t.modeConfig);
|
|
1173
|
+
}
|
|
1146
1174
|
handlePointerMove(e, t) {
|
|
1147
1175
|
if (this._isMeasuringSessionFinished)
|
|
1148
1176
|
return;
|
|
1149
1177
|
super.handlePointerMove(e, t);
|
|
1150
1178
|
const s = this.getTentativeGuide(t);
|
|
1151
|
-
|
|
1152
|
-
const n = es(s);
|
|
1153
|
-
this.area = Qe(s), this.tooltips = Et(this.area, n.geometry.coordinates, t.modeConfig);
|
|
1154
|
-
}
|
|
1179
|
+
s && s.geometry.type === "Polygon" && this.updateTooltip(s, t);
|
|
1155
1180
|
}
|
|
1156
1181
|
resetClickSequence() {
|
|
1157
1182
|
super.resetClickSequence(), this.tooltips = [], this._isMeasuringSessionFinished = !1, this.area = 0;
|
|
@@ -1182,7 +1207,7 @@ class zs extends Zt {
|
|
|
1182
1207
|
type: "LineString",
|
|
1183
1208
|
coordinates: [...s.slice(0, s.length - 1)]
|
|
1184
1209
|
};
|
|
1185
|
-
|
|
1210
|
+
os(n, o).features.length > 0 && (t = !0);
|
|
1186
1211
|
}
|
|
1187
1212
|
return t;
|
|
1188
1213
|
}
|
|
@@ -1205,7 +1230,7 @@ class zs extends Zt {
|
|
|
1205
1230
|
positions: this.getClickSequence(),
|
|
1206
1231
|
finished: this._isMeasuringSessionFinished
|
|
1207
1232
|
}
|
|
1208
|
-
}));
|
|
1233
|
+
})), this.updateTooltip(s, e);
|
|
1209
1234
|
}
|
|
1210
1235
|
resetEdition(e) {
|
|
1211
1236
|
this.resetClickSequence(), e.onEdit({
|
|
@@ -1221,15 +1246,16 @@ class zs extends Zt {
|
|
|
1221
1246
|
unit: s,
|
|
1222
1247
|
options: n
|
|
1223
1248
|
}) {
|
|
1224
|
-
return
|
|
1249
|
+
return ke({
|
|
1225
1250
|
meters: e,
|
|
1226
1251
|
locale: t,
|
|
1227
1252
|
unit: s,
|
|
1228
|
-
options: n
|
|
1253
|
+
options: n,
|
|
1254
|
+
dimension: "area"
|
|
1229
1255
|
}) + "2";
|
|
1230
1256
|
}
|
|
1231
1257
|
}
|
|
1232
|
-
class
|
|
1258
|
+
class en extends gt {
|
|
1233
1259
|
_isMeasuringSessionFinished = !1;
|
|
1234
1260
|
_currentArea = 0;
|
|
1235
1261
|
resultPolygon = {
|
|
@@ -1241,7 +1267,7 @@ class Ks extends mt {
|
|
|
1241
1267
|
this._isMeasuringSessionFinished && (this._isMeasuringSessionFinished = !1, this.resetClickSequence(), this._currentArea = 0), super.handleClick(e, t);
|
|
1242
1268
|
}
|
|
1243
1269
|
handlePointerMove(e, t) {
|
|
1244
|
-
this._isMeasuringSessionFinished || (super.handlePointerMove(e, t), this.tooltips =
|
|
1270
|
+
this._isMeasuringSessionFinished || (super.handlePointerMove(e, t), this.tooltips = kt(this.areaCircle, this.position, t.modeConfig));
|
|
1245
1271
|
}
|
|
1246
1272
|
checkAndFinishPolygon(e) {
|
|
1247
1273
|
const t = this.getClickSequence(), s = this.getTentativeGuide(e);
|
|
@@ -1294,7 +1320,7 @@ class Ks extends mt {
|
|
|
1294
1320
|
unit: s,
|
|
1295
1321
|
options: n
|
|
1296
1322
|
}) {
|
|
1297
|
-
return
|
|
1323
|
+
return ke({
|
|
1298
1324
|
meters: e,
|
|
1299
1325
|
locale: t,
|
|
1300
1326
|
unit: s,
|
|
@@ -1302,7 +1328,7 @@ class Ks extends mt {
|
|
|
1302
1328
|
}) + "2";
|
|
1303
1329
|
}
|
|
1304
1330
|
}
|
|
1305
|
-
class
|
|
1331
|
+
class Ct extends Jt {
|
|
1306
1332
|
handleClick(e, t) {
|
|
1307
1333
|
super.handleClick(e, t), t.onEdit({
|
|
1308
1334
|
// data is the same
|
|
@@ -1353,7 +1379,7 @@ class Tt extends Kt {
|
|
|
1353
1379
|
unit: s,
|
|
1354
1380
|
options: n
|
|
1355
1381
|
}) {
|
|
1356
|
-
return
|
|
1382
|
+
return ke({
|
|
1357
1383
|
meters: e,
|
|
1358
1384
|
locale: t,
|
|
1359
1385
|
unit: s,
|
|
@@ -1361,7 +1387,7 @@ class Tt extends Kt {
|
|
|
1361
1387
|
});
|
|
1362
1388
|
}
|
|
1363
1389
|
}
|
|
1364
|
-
const re = "mapMeasureLayer",
|
|
1390
|
+
const re = "mapMeasureLayer", tn = {
|
|
1365
1391
|
id: re,
|
|
1366
1392
|
pickable: !1,
|
|
1367
1393
|
billboard: !1,
|
|
@@ -1386,19 +1412,19 @@ const re = "mapMeasureLayer", Qs = {
|
|
|
1386
1412
|
getLineWidth: 2
|
|
1387
1413
|
}
|
|
1388
1414
|
}
|
|
1389
|
-
},
|
|
1415
|
+
}, Ve = {
|
|
1390
1416
|
editing: [23, 102, 214, 255],
|
|
1391
1417
|
finished: [71, 219, 153, 255],
|
|
1392
1418
|
point: [255, 255, 255, 255]
|
|
1393
|
-
},
|
|
1419
|
+
}, rt = {
|
|
1394
1420
|
styles: {
|
|
1395
1421
|
colors: {
|
|
1396
|
-
editing:
|
|
1397
|
-
finished:
|
|
1398
|
-
point:
|
|
1422
|
+
editing: Ve.editing,
|
|
1423
|
+
finished: Ve.finished,
|
|
1424
|
+
point: Ve.point
|
|
1399
1425
|
}
|
|
1400
1426
|
}
|
|
1401
|
-
},
|
|
1427
|
+
}, I = {
|
|
1402
1428
|
kilometer: "kilometer",
|
|
1403
1429
|
meter: "meter",
|
|
1404
1430
|
centimeter: "centimeter",
|
|
@@ -1406,30 +1432,45 @@ const re = "mapMeasureLayer", Qs = {
|
|
|
1406
1432
|
mile: "mile",
|
|
1407
1433
|
yard: "yard",
|
|
1408
1434
|
feet: "feet"
|
|
1409
|
-
},
|
|
1435
|
+
}, oe = {
|
|
1436
|
+
squareMeter: "squareMeter",
|
|
1437
|
+
squareKilometer: "squareKilometer",
|
|
1438
|
+
squareMile: "squareMile",
|
|
1439
|
+
squareFeet: "squareFeet"
|
|
1440
|
+
}, Ie = {
|
|
1410
1441
|
"m-km": "m-km",
|
|
1411
1442
|
"ft-mi": "ft-mi",
|
|
1412
|
-
...
|
|
1413
|
-
},
|
|
1443
|
+
...I
|
|
1444
|
+
}, sn = {
|
|
1414
1445
|
meters: "meters",
|
|
1415
1446
|
kilometer: "kilometers",
|
|
1416
1447
|
mile: "miles"
|
|
1417
|
-
},
|
|
1418
|
-
[
|
|
1419
|
-
[
|
|
1420
|
-
[
|
|
1421
|
-
[
|
|
1422
|
-
[
|
|
1423
|
-
[
|
|
1424
|
-
[
|
|
1425
|
-
},
|
|
1426
|
-
[
|
|
1427
|
-
[
|
|
1428
|
-
[
|
|
1429
|
-
[
|
|
1430
|
-
|
|
1431
|
-
[
|
|
1432
|
-
[
|
|
1448
|
+
}, ot = {
|
|
1449
|
+
[I.kilometer]: "km",
|
|
1450
|
+
[I.meter]: "m",
|
|
1451
|
+
[I.centimeter]: "cm",
|
|
1452
|
+
[I.milimeter]: "mm",
|
|
1453
|
+
[I.mile]: "mi",
|
|
1454
|
+
[I.yard]: "yd",
|
|
1455
|
+
[I.feet]: "ft"
|
|
1456
|
+
}, it = {
|
|
1457
|
+
[oe.squareMeter]: "m2",
|
|
1458
|
+
[oe.squareKilometer]: "km2",
|
|
1459
|
+
[oe.squareMile]: "mi2",
|
|
1460
|
+
[oe.squareFeet]: "ft2"
|
|
1461
|
+
}, Te = {
|
|
1462
|
+
[I.meter]: oe.squareMeter,
|
|
1463
|
+
[I.kilometer]: oe.squareKilometer,
|
|
1464
|
+
[I.mile]: oe.squareMile,
|
|
1465
|
+
[I.feet]: oe.squareFeet
|
|
1466
|
+
}, pe = {
|
|
1467
|
+
[I.kilometer]: "kilometer",
|
|
1468
|
+
[I.meter]: "meter",
|
|
1469
|
+
[I.centimeter]: "centimeter",
|
|
1470
|
+
[I.milimeter]: "millimeter",
|
|
1471
|
+
[I.mile]: "mile",
|
|
1472
|
+
[I.yard]: "yard",
|
|
1473
|
+
[I.feet]: "foot"
|
|
1433
1474
|
}, Y = {
|
|
1434
1475
|
"m-km": {
|
|
1435
1476
|
value: "m-km",
|
|
@@ -1467,25 +1508,25 @@ const re = "mapMeasureLayer", Qs = {
|
|
|
1467
1508
|
value: "feet",
|
|
1468
1509
|
system: "imperial"
|
|
1469
1510
|
}
|
|
1470
|
-
},
|
|
1511
|
+
}, at = [Y["m-km"], Y.kilometer, Y.meter, Y["ft-mi"], Y.mile, Y.feet], nn = [Y["m-km"], Y.kilometer, Y.meter, Y["ft-mi"], Y.mile, Y.feet], rn = {
|
|
1471
1512
|
distance: {
|
|
1472
1513
|
value: "distance",
|
|
1473
|
-
mode:
|
|
1514
|
+
mode: Ct
|
|
1474
1515
|
},
|
|
1475
1516
|
buffer: {
|
|
1476
1517
|
value: "buffer",
|
|
1477
|
-
mode:
|
|
1518
|
+
mode: en
|
|
1478
1519
|
},
|
|
1479
1520
|
area: {
|
|
1480
1521
|
value: "area",
|
|
1481
|
-
mode:
|
|
1522
|
+
mode: Xs
|
|
1482
1523
|
}
|
|
1483
|
-
},
|
|
1484
|
-
distance:
|
|
1485
|
-
buffer:
|
|
1486
|
-
area:
|
|
1524
|
+
}, on = {
|
|
1525
|
+
distance: at,
|
|
1526
|
+
buffer: at,
|
|
1527
|
+
area: nn
|
|
1487
1528
|
};
|
|
1488
|
-
function
|
|
1529
|
+
function Ot(r) {
|
|
1489
1530
|
const e = O(12), {
|
|
1490
1531
|
mapId: t,
|
|
1491
1532
|
layerId: s
|
|
@@ -1495,15 +1536,15 @@ function Lt(r) {
|
|
|
1495
1536
|
const o = x(n);
|
|
1496
1537
|
let i;
|
|
1497
1538
|
e[2] !== t ? (i = (v) => v.maps[t]?.isLoaded, e[2] = t, e[3] = i) : i = e[3];
|
|
1498
|
-
const a = x(i), c = x(
|
|
1539
|
+
const a = x(i), c = x(ln), l = fe(an), {
|
|
1499
1540
|
type: y
|
|
1500
|
-
} =
|
|
1541
|
+
} = me[o], h = y === ee.googleMaps;
|
|
1501
1542
|
let g, p;
|
|
1502
1543
|
e[4] !== c || e[5] !== h || e[6] !== a || e[7] !== s || e[8] !== t || e[9] !== l ? (g = () => {
|
|
1503
1544
|
let v = null;
|
|
1504
1545
|
if (h && a) {
|
|
1505
1546
|
const m = c(t);
|
|
1506
|
-
v = new
|
|
1547
|
+
v = new ss(m.getDiv(), {});
|
|
1507
1548
|
}
|
|
1508
1549
|
l(s, {
|
|
1509
1550
|
props: {
|
|
@@ -1512,32 +1553,32 @@ function Lt(r) {
|
|
|
1512
1553
|
});
|
|
1513
1554
|
}, p = [c, h, a, s, t, l], e[4] = c, e[5] = h, e[6] = a, e[7] = s, e[8] = t, e[9] = l, e[10] = g, e[11] = p) : (g = e[10], p = e[11]), Q(g, p);
|
|
1514
1555
|
}
|
|
1515
|
-
function
|
|
1556
|
+
function an(r) {
|
|
1516
1557
|
return r.setLayer;
|
|
1517
1558
|
}
|
|
1518
|
-
function
|
|
1559
|
+
function ln(r) {
|
|
1519
1560
|
return r.getOverlayInstance;
|
|
1520
1561
|
}
|
|
1521
|
-
const
|
|
1522
|
-
function
|
|
1562
|
+
const cn = [ce, Pe, re];
|
|
1563
|
+
function un({
|
|
1523
1564
|
children: r,
|
|
1524
1565
|
mapId: e,
|
|
1525
1566
|
defaultProps: {
|
|
1526
|
-
styles: t =
|
|
1567
|
+
styles: t = qe.styles,
|
|
1527
1568
|
labels: s
|
|
1528
1569
|
} = {
|
|
1529
|
-
styles:
|
|
1530
|
-
labels:
|
|
1570
|
+
styles: qe.styles,
|
|
1571
|
+
labels: qe.labels
|
|
1531
1572
|
},
|
|
1532
1573
|
layerProps: n = {},
|
|
1533
1574
|
defaultType: o = "mask"
|
|
1534
1575
|
}) {
|
|
1535
|
-
const i =
|
|
1536
|
-
|
|
1576
|
+
const i = z((E) => E.data[e]?.enabled), a = z((E) => E.setEnabled), c = z((E) => E.data[e]?.values), l = z((E) => E.setValue), y = z((E) => E.data[e]?.modeInstance), h = z((E) => E.data[e]?.modeSelected), g = fe((E) => E.setLayer), p = x((E) => E.addLayers), v = x((E) => E.removeLayers), m = x(bt((E) => E.maps[e]?.layers.filter((F) => !cn.includes(F)))), w = x((E) => E.getDeckInstance), u = Ee({});
|
|
1577
|
+
Ot({
|
|
1537
1578
|
mapId: e,
|
|
1538
|
-
layerId:
|
|
1579
|
+
layerId: ce
|
|
1539
1580
|
});
|
|
1540
|
-
const f = te(() =>
|
|
1581
|
+
const f = te(() => Pt({
|
|
1541
1582
|
values: c
|
|
1542
1583
|
}), [c]), b = te(() => ({
|
|
1543
1584
|
type: "FeatureCollection",
|
|
@@ -1547,7 +1588,7 @@ function nn({
|
|
|
1547
1588
|
properties: E.properties,
|
|
1548
1589
|
id: E.id
|
|
1549
1590
|
}))
|
|
1550
|
-
}), [f]), _ = te(() => f.filter((E) => E.properties.visible).map((E) => E.id), [f]), [M, P] = se(b), [D,
|
|
1591
|
+
}), [f]), _ = te(() => f.filter((E) => E.properties.visible).map((E) => E.id), [f]), [M, P] = se(b), [D, N] = se([]), $ = W(() => {
|
|
1551
1592
|
const E = {
|
|
1552
1593
|
...b,
|
|
1553
1594
|
features: b.features.filter((F) => F.properties?.visible)
|
|
@@ -1557,22 +1598,22 @@ function nn({
|
|
|
1557
1598
|
Q(() => {
|
|
1558
1599
|
$();
|
|
1559
1600
|
}, [$]);
|
|
1560
|
-
const
|
|
1561
|
-
Q(() => (p(e, [
|
|
1562
|
-
v(e, [
|
|
1601
|
+
const U = Ee(f.length);
|
|
1602
|
+
Q(() => (p(e, [ce]), () => {
|
|
1603
|
+
v(e, [ce]);
|
|
1563
1604
|
}), [p, e, v]);
|
|
1564
|
-
const
|
|
1565
|
-
$(),
|
|
1566
|
-
}, [e, $, a]),
|
|
1605
|
+
const B = W(() => {
|
|
1606
|
+
$(), N([]), a(e, !1);
|
|
1607
|
+
}, [e, $, a]), q = W(({
|
|
1567
1608
|
editType: E,
|
|
1568
1609
|
updatedData: F
|
|
1569
1610
|
}) => {
|
|
1570
1611
|
if (E === J.cancel) {
|
|
1571
|
-
|
|
1612
|
+
B();
|
|
1572
1613
|
return;
|
|
1573
1614
|
}
|
|
1574
|
-
P(F), E !== J.updateTentativeFeature && E === J.addFeature && (h !== "edit" && (
|
|
1575
|
-
d.properties.label ??= `${s?.mask} ${
|
|
1615
|
+
P(F), E !== J.updateTentativeFeature && E === J.addFeature && (h !== "edit" && (U.current = U.current + 1), F.features.forEach((d, S) => {
|
|
1616
|
+
d.properties.label ??= `${s?.mask} ${U.current}`, d.properties.index = S, d.properties.visible = d.properties.visible ?? !0;
|
|
1576
1617
|
const T = d.id ?? crypto.randomUUID();
|
|
1577
1618
|
l(e, T, {
|
|
1578
1619
|
geometry: d.geometry,
|
|
@@ -1580,8 +1621,8 @@ function nn({
|
|
|
1580
1621
|
// visible: true,
|
|
1581
1622
|
type: o
|
|
1582
1623
|
});
|
|
1583
|
-
}),
|
|
1584
|
-
}, [o,
|
|
1624
|
+
}), B());
|
|
1625
|
+
}, [o, B, s?.mask, e, h, l]);
|
|
1585
1626
|
return Q(() => {
|
|
1586
1627
|
const E = i, {
|
|
1587
1628
|
border: F,
|
|
@@ -1590,7 +1631,7 @@ function nn({
|
|
|
1590
1631
|
} = t.colors.editing, {
|
|
1591
1632
|
border: T,
|
|
1592
1633
|
fill: C
|
|
1593
|
-
} = t.colors.finished, k =
|
|
1634
|
+
} = t.colors.finished, k = Gs({
|
|
1594
1635
|
layerProps: {
|
|
1595
1636
|
...n.mask,
|
|
1596
1637
|
pickable: E,
|
|
@@ -1601,7 +1642,7 @@ function nn({
|
|
|
1601
1642
|
},
|
|
1602
1643
|
onClick: (L) => {
|
|
1603
1644
|
const R = L;
|
|
1604
|
-
R.isGuide ||
|
|
1645
|
+
R.isGuide || N([R.index]);
|
|
1605
1646
|
}
|
|
1606
1647
|
},
|
|
1607
1648
|
getLineColor: (L) => D[0] === L.properties.index ? F : T,
|
|
@@ -1610,24 +1651,24 @@ function nn({
|
|
|
1610
1651
|
fill: d,
|
|
1611
1652
|
outline: F
|
|
1612
1653
|
},
|
|
1613
|
-
onEdit:
|
|
1614
|
-
mode: E ? y : new
|
|
1654
|
+
onEdit: q,
|
|
1655
|
+
mode: E ? y : new Xt()
|
|
1615
1656
|
});
|
|
1616
|
-
g(
|
|
1617
|
-
}, [M, i, n.mask, _, y,
|
|
1657
|
+
g(ce, k);
|
|
1658
|
+
}, [M, i, n.mask, _, y, q, D, g, t.colors.editing, t.colors.finished]), Q(() => {
|
|
1618
1659
|
const E = {
|
|
1619
|
-
...
|
|
1660
|
+
..._e,
|
|
1620
1661
|
data: b,
|
|
1621
1662
|
getFilterValue: (F) => Number(_.includes(F.id)),
|
|
1622
1663
|
updateTriggers: {
|
|
1623
1664
|
getFilterValue: _
|
|
1624
1665
|
}
|
|
1625
1666
|
};
|
|
1626
|
-
return g(
|
|
1627
|
-
type:
|
|
1667
|
+
return g(_e.id, {
|
|
1668
|
+
type: ns,
|
|
1628
1669
|
props: E
|
|
1629
|
-
}), p(e, [
|
|
1630
|
-
v(e, [
|
|
1670
|
+
}), p(e, [_e.id]), () => {
|
|
1671
|
+
v(e, [_e.id]);
|
|
1631
1672
|
};
|
|
1632
1673
|
}, [p, e, b, _, v, g]), Q(() => {
|
|
1633
1674
|
m?.forEach((E) => {
|
|
@@ -1637,24 +1678,24 @@ function nn({
|
|
|
1637
1678
|
g(E, {
|
|
1638
1679
|
props: {
|
|
1639
1680
|
pickable: d,
|
|
1640
|
-
extensions: [new
|
|
1641
|
-
maskId: !i && _.length ?
|
|
1681
|
+
extensions: [new ts()],
|
|
1682
|
+
maskId: !i && _.length ? Pe : void 0
|
|
1642
1683
|
}
|
|
1643
1684
|
});
|
|
1644
1685
|
});
|
|
1645
1686
|
}, [i, w, e, m, _.length, g]), r;
|
|
1646
1687
|
}
|
|
1647
|
-
|
|
1648
|
-
function
|
|
1688
|
+
un.Controls = Qs;
|
|
1689
|
+
function dn({
|
|
1649
1690
|
mode: r,
|
|
1650
1691
|
...e
|
|
1651
1692
|
}) {
|
|
1652
|
-
const t =
|
|
1693
|
+
const t = fn({
|
|
1653
1694
|
mode: r,
|
|
1654
1695
|
...e
|
|
1655
1696
|
});
|
|
1656
1697
|
return {
|
|
1657
|
-
type:
|
|
1698
|
+
type: Tt,
|
|
1658
1699
|
props: {
|
|
1659
1700
|
...t,
|
|
1660
1701
|
mode: r,
|
|
@@ -1662,7 +1703,7 @@ function rn({
|
|
|
1662
1703
|
}
|
|
1663
1704
|
};
|
|
1664
1705
|
}
|
|
1665
|
-
function
|
|
1706
|
+
function fn({
|
|
1666
1707
|
mode: r,
|
|
1667
1708
|
layerProps: e,
|
|
1668
1709
|
locale: t,
|
|
@@ -1673,14 +1714,14 @@ function on({
|
|
|
1673
1714
|
pointColor: a,
|
|
1674
1715
|
textOptions: c
|
|
1675
1716
|
}) {
|
|
1676
|
-
const l =
|
|
1717
|
+
const l = ie(e, {
|
|
1677
1718
|
visible: s,
|
|
1678
1719
|
pickable: s,
|
|
1679
1720
|
modeConfig: {
|
|
1680
1721
|
// We force distance due to conversion is addressed at feature getText level
|
|
1681
1722
|
formatTooltip: (g) => g,
|
|
1682
1723
|
turfOptions: {
|
|
1683
|
-
units:
|
|
1724
|
+
units: sn.meters
|
|
1684
1725
|
}
|
|
1685
1726
|
},
|
|
1686
1727
|
...s && {
|
|
@@ -1706,7 +1747,7 @@ function on({
|
|
|
1706
1747
|
}
|
|
1707
1748
|
}
|
|
1708
1749
|
}
|
|
1709
|
-
}), y =
|
|
1750
|
+
}), y = ie(tn, {
|
|
1710
1751
|
_subLayerProps: {
|
|
1711
1752
|
guides: {
|
|
1712
1753
|
getLineColor: i,
|
|
@@ -1716,21 +1757,21 @@ function on({
|
|
|
1716
1757
|
getEditHandlePointColor: a,
|
|
1717
1758
|
getEditHandlePointOutlineColor: i
|
|
1718
1759
|
});
|
|
1719
|
-
return
|
|
1760
|
+
return ie(y, l);
|
|
1720
1761
|
}
|
|
1721
|
-
const
|
|
1762
|
+
const pn = (r) => Ke()((e) => ({
|
|
1722
1763
|
measurements: r.reduce((s, n) => {
|
|
1723
1764
|
const {
|
|
1724
1765
|
mapId: o,
|
|
1725
1766
|
modeSelected: i,
|
|
1726
|
-
modes: a =
|
|
1727
|
-
units: c =
|
|
1767
|
+
modes: a = rn,
|
|
1768
|
+
units: c = on,
|
|
1728
1769
|
distance: l = 0,
|
|
1729
1770
|
finished: y = !1,
|
|
1730
1771
|
locale: h = "en",
|
|
1731
1772
|
positions: g = [],
|
|
1732
1773
|
clearLayerOnStart: p = !1,
|
|
1733
|
-
unit: v =
|
|
1774
|
+
unit: v = Ie["m-km"],
|
|
1734
1775
|
enabled: m = !1
|
|
1735
1776
|
} = n;
|
|
1736
1777
|
return s[o] = {
|
|
@@ -1746,7 +1787,7 @@ const an = (r) => He()((e) => ({
|
|
|
1746
1787
|
enabled: m
|
|
1747
1788
|
}, s;
|
|
1748
1789
|
}, {}),
|
|
1749
|
-
mode:
|
|
1790
|
+
mode: Ct,
|
|
1750
1791
|
setModeInstance: (s, n) => {
|
|
1751
1792
|
e((o) => ({
|
|
1752
1793
|
measurements: {
|
|
@@ -1835,25 +1876,25 @@ const an = (r) => He()((e) => ({
|
|
|
1835
1876
|
}
|
|
1836
1877
|
}));
|
|
1837
1878
|
}
|
|
1838
|
-
})),
|
|
1839
|
-
function
|
|
1879
|
+
})), Ft = He({});
|
|
1880
|
+
function mn(r) {
|
|
1840
1881
|
const e = O(5), {
|
|
1841
1882
|
children: t,
|
|
1842
1883
|
values: s
|
|
1843
1884
|
} = r;
|
|
1844
1885
|
let n;
|
|
1845
|
-
e[0] !== s ? (n =
|
|
1886
|
+
e[0] !== s ? (n = pn(s), e[0] = s, e[1] = n) : n = e[1];
|
|
1846
1887
|
const [o] = se(n);
|
|
1847
1888
|
let i;
|
|
1848
|
-
return e[2] !== t || e[3] !== o ? (i = /* @__PURE__ */
|
|
1889
|
+
return e[2] !== t || e[3] !== o ? (i = /* @__PURE__ */ K(Ft.Provider, { value: o, children: t }), e[2] = t, e[3] = o, e[4] = i) : i = e[4], i;
|
|
1849
1890
|
}
|
|
1850
1891
|
function G(r) {
|
|
1851
|
-
const e =
|
|
1892
|
+
const e = Ge(Ft);
|
|
1852
1893
|
if (!Object.keys(e).length)
|
|
1853
1894
|
throw new Error("Missing MeasurementToolsProvider in the tree");
|
|
1854
|
-
return
|
|
1895
|
+
return Ze(e, r);
|
|
1855
1896
|
}
|
|
1856
|
-
function
|
|
1897
|
+
function At(r) {
|
|
1857
1898
|
const e = O(74), {
|
|
1858
1899
|
mapId: t
|
|
1859
1900
|
} = r;
|
|
@@ -1865,7 +1906,7 @@ function kt(r) {
|
|
|
1865
1906
|
const i = G(o);
|
|
1866
1907
|
let a;
|
|
1867
1908
|
e[4] !== t ? (a = (A) => A.measurements[t].distance, e[4] = t, e[5] = a) : a = e[5];
|
|
1868
|
-
const c = G(a), l = G(
|
|
1909
|
+
const c = G(a), l = G(_n);
|
|
1869
1910
|
let y;
|
|
1870
1911
|
e[6] !== l || e[7] !== t ? (y = (A) => l(t, A), e[6] = l, e[7] = t, e[8] = y) : y = e[8];
|
|
1871
1912
|
const h = y;
|
|
@@ -1874,60 +1915,60 @@ function kt(r) {
|
|
|
1874
1915
|
const p = G(g);
|
|
1875
1916
|
let v;
|
|
1876
1917
|
e[11] !== t ? (v = (A) => A.measurements[t].enabled, e[11] = t, e[12] = v) : v = e[12];
|
|
1877
|
-
const m = G(v), w = G(
|
|
1918
|
+
const m = G(v), w = G(wn);
|
|
1878
1919
|
let u;
|
|
1879
1920
|
e[13] !== w || e[14] !== t ? (u = (A) => w(t, A), e[13] = w, e[14] = t, e[15] = u) : u = e[15];
|
|
1880
1921
|
const f = u;
|
|
1881
1922
|
let b;
|
|
1882
1923
|
e[16] !== t ? (b = (A) => A.measurements[t].modeSelected, e[16] = t, e[17] = b) : b = e[17];
|
|
1883
|
-
const _ = G(b), M = G(
|
|
1924
|
+
const _ = G(b), M = G(Sn);
|
|
1884
1925
|
let P;
|
|
1885
1926
|
e[18] !== M || e[19] !== t || e[20] !== f ? (P = (A) => {
|
|
1886
1927
|
f(!!A), M(t, A);
|
|
1887
1928
|
}, e[18] = M, e[19] = t, e[20] = f, e[21] = P) : P = e[21];
|
|
1888
1929
|
const D = P;
|
|
1889
|
-
let
|
|
1890
|
-
e[22] !== t ? (
|
|
1891
|
-
const $ = G(
|
|
1892
|
-
let
|
|
1893
|
-
e[24] !==
|
|
1894
|
-
const
|
|
1930
|
+
let N;
|
|
1931
|
+
e[22] !== t ? (N = (A) => A.measurements[t].finished, e[22] = t, e[23] = N) : N = e[23];
|
|
1932
|
+
const $ = G(N), U = G(vn);
|
|
1933
|
+
let B;
|
|
1934
|
+
e[24] !== U || e[25] !== t ? (B = (A) => U(t, A), e[24] = U, e[25] = t, e[26] = B) : B = e[26];
|
|
1935
|
+
const q = B;
|
|
1895
1936
|
let E;
|
|
1896
1937
|
e[27] !== t ? (E = (A) => A.measurements[t].locale, e[27] = t, e[28] = E) : E = e[28];
|
|
1897
|
-
const F = G(E), d = G(
|
|
1938
|
+
const F = G(E), d = G(bn);
|
|
1898
1939
|
let S;
|
|
1899
1940
|
e[29] !== d || e[30] !== t ? (S = (A) => d(t, A), e[29] = d, e[30] = t, e[31] = S) : S = e[31];
|
|
1900
1941
|
const T = S;
|
|
1901
1942
|
let C;
|
|
1902
1943
|
e[32] !== t ? (C = (A) => A.measurements[t].modeInstance, e[32] = t, e[33] = C) : C = e[33];
|
|
1903
|
-
const k = G(C), L = G(
|
|
1944
|
+
const k = G(C), L = G(gn);
|
|
1904
1945
|
let R;
|
|
1905
1946
|
e[34] !== L || e[35] !== t ? (R = (A) => L(t, A), e[34] = L, e[35] = t, e[36] = R) : R = e[36];
|
|
1906
|
-
const
|
|
1947
|
+
const j = R;
|
|
1907
1948
|
let H;
|
|
1908
1949
|
e[37] !== t ? (H = (A) => A.measurements[t].positions, e[37] = t, e[38] = H) : H = e[38];
|
|
1909
|
-
const V = G(H),
|
|
1910
|
-
let me;
|
|
1911
|
-
e[39] !== z || e[40] !== t ? (me = (A) => z(t, A), e[39] = z, e[40] = t, e[41] = me) : me = e[41];
|
|
1912
|
-
const ue = me;
|
|
1950
|
+
const V = G(H), Z = G(hn);
|
|
1913
1951
|
let ye;
|
|
1914
|
-
e[
|
|
1915
|
-
const
|
|
1952
|
+
e[39] !== Z || e[40] !== t ? (ye = (A) => Z(t, A), e[39] = Z, e[40] = t, e[41] = ye) : ye = e[41];
|
|
1953
|
+
const de = ye;
|
|
1916
1954
|
let he;
|
|
1917
|
-
e[
|
|
1918
|
-
const Ce = he;
|
|
1955
|
+
e[42] !== t ? (he = (A) => A.measurements[t].unit, e[42] = t, e[43] = he) : he = e[43];
|
|
1956
|
+
const Ce = G(he), Oe = G(yn);
|
|
1919
1957
|
let ge;
|
|
1920
|
-
e[
|
|
1921
|
-
|
|
1922
|
-
}, e[47] = k, e[48] = ue, e[49] = ge) : ge = e[49];
|
|
1923
|
-
const Oe = ge;
|
|
1958
|
+
e[44] !== Oe || e[45] !== t ? (ge = (A) => Oe(t, A), e[44] = Oe, e[45] = t, e[46] = ge) : ge = e[46];
|
|
1959
|
+
const Fe = ge;
|
|
1924
1960
|
let be;
|
|
1925
|
-
e[
|
|
1926
|
-
|
|
1927
|
-
}, e[
|
|
1928
|
-
const
|
|
1961
|
+
e[47] !== k || e[48] !== de ? (be = () => {
|
|
1962
|
+
k?.resetClickSequence(), de([]);
|
|
1963
|
+
}, e[47] = k, e[48] = de, e[49] = be) : be = e[49];
|
|
1964
|
+
const Ae = be;
|
|
1929
1965
|
let ve;
|
|
1930
|
-
|
|
1966
|
+
e[50] !== f ? (ve = (A) => {
|
|
1967
|
+
f(A);
|
|
1968
|
+
}, e[50] = f, e[51] = ve) : ve = e[51];
|
|
1969
|
+
const Re = ve;
|
|
1970
|
+
let Se;
|
|
1971
|
+
return e[52] !== Ae || e[53] !== p || e[54] !== c || e[55] !== m || e[56] !== $ || e[57] !== F || e[58] !== k || e[59] !== _ || e[60] !== n || e[61] !== V || e[62] !== h || e[63] !== f || e[64] !== q || e[65] !== T || e[66] !== j || e[67] !== D || e[68] !== de || e[69] !== Fe || e[70] !== Re || e[71] !== Ce || e[72] !== i ? (Se = {
|
|
1931
1972
|
modes: n,
|
|
1932
1973
|
units: i,
|
|
1933
1974
|
distance: c,
|
|
@@ -1938,44 +1979,44 @@ function kt(r) {
|
|
|
1938
1979
|
locale: F,
|
|
1939
1980
|
modeInstance: k,
|
|
1940
1981
|
positions: V,
|
|
1941
|
-
unit:
|
|
1982
|
+
unit: Ce,
|
|
1942
1983
|
setDistance: h,
|
|
1943
1984
|
setModeSelected: D,
|
|
1944
|
-
setFinished:
|
|
1985
|
+
setFinished: q,
|
|
1945
1986
|
setLocale: T,
|
|
1946
|
-
setPositions:
|
|
1947
|
-
setUnit:
|
|
1987
|
+
setPositions: de,
|
|
1988
|
+
setUnit: Fe,
|
|
1948
1989
|
setEnabled: f,
|
|
1949
|
-
toggleLayer:
|
|
1950
|
-
clearLayer:
|
|
1951
|
-
setModeInstance:
|
|
1952
|
-
}, e[52] =
|
|
1990
|
+
toggleLayer: Re,
|
|
1991
|
+
clearLayer: Ae,
|
|
1992
|
+
setModeInstance: j
|
|
1993
|
+
}, e[52] = Ae, e[53] = p, e[54] = c, e[55] = m, e[56] = $, e[57] = F, e[58] = k, e[59] = _, e[60] = n, e[61] = V, e[62] = h, e[63] = f, e[64] = q, e[65] = T, e[66] = j, e[67] = D, e[68] = de, e[69] = Fe, e[70] = Re, e[71] = Ce, e[72] = i, e[73] = Se) : Se = e[73], Se;
|
|
1953
1994
|
}
|
|
1954
|
-
function
|
|
1995
|
+
function yn(r) {
|
|
1955
1996
|
return r.setUnit;
|
|
1956
1997
|
}
|
|
1957
|
-
function
|
|
1998
|
+
function hn(r) {
|
|
1958
1999
|
return r.setPositions;
|
|
1959
2000
|
}
|
|
1960
|
-
function
|
|
2001
|
+
function gn(r) {
|
|
1961
2002
|
return r.setModeInstance;
|
|
1962
2003
|
}
|
|
1963
|
-
function
|
|
2004
|
+
function bn(r) {
|
|
1964
2005
|
return r.setLocale;
|
|
1965
2006
|
}
|
|
1966
|
-
function
|
|
2007
|
+
function vn(r) {
|
|
1967
2008
|
return r.setFinished;
|
|
1968
2009
|
}
|
|
1969
|
-
function
|
|
2010
|
+
function Sn(r) {
|
|
1970
2011
|
return r.setModeSelected;
|
|
1971
2012
|
}
|
|
1972
|
-
function
|
|
2013
|
+
function wn(r) {
|
|
1973
2014
|
return r.setEnabled;
|
|
1974
2015
|
}
|
|
1975
|
-
function
|
|
2016
|
+
function _n(r) {
|
|
1976
2017
|
return r.setDistance;
|
|
1977
2018
|
}
|
|
1978
|
-
function
|
|
2019
|
+
function Mn(r) {
|
|
1979
2020
|
const e = O(42), {
|
|
1980
2021
|
mapId: t,
|
|
1981
2022
|
textOptions: s,
|
|
@@ -2004,12 +2045,12 @@ function gn(r) {
|
|
|
2004
2045
|
positions: M,
|
|
2005
2046
|
setPositions: P,
|
|
2006
2047
|
unit: D,
|
|
2007
|
-
setUnit:
|
|
2048
|
+
setUnit: N,
|
|
2008
2049
|
clearLayer: $,
|
|
2009
|
-
toggleLayer:
|
|
2010
|
-
} =
|
|
2011
|
-
let
|
|
2012
|
-
e[2] !== h || e[3] !== i || e[4] !== _ || e[5] !== P ? (
|
|
2050
|
+
toggleLayer: U
|
|
2051
|
+
} = At(o);
|
|
2052
|
+
let B;
|
|
2053
|
+
e[2] !== h || e[3] !== i || e[4] !== _ || e[5] !== P ? (B = () => {
|
|
2013
2054
|
if (h && i[h]) {
|
|
2014
2055
|
const T = i[h].mode;
|
|
2015
2056
|
_(new T());
|
|
@@ -2017,16 +2058,16 @@ function gn(r) {
|
|
|
2017
2058
|
return () => {
|
|
2018
2059
|
P([]);
|
|
2019
2060
|
};
|
|
2020
|
-
}, e[2] = h, e[3] = i, e[4] = _, e[5] = P, e[6] =
|
|
2021
|
-
let
|
|
2022
|
-
e[7] !== h || e[8] !== i || e[9] !== v || e[10] !== _ || e[11] !== P ? (
|
|
2061
|
+
}, e[2] = h, e[3] = i, e[4] = _, e[5] = P, e[6] = B) : B = e[6];
|
|
2062
|
+
let q;
|
|
2063
|
+
e[7] !== h || e[8] !== i || e[9] !== v || e[10] !== _ || e[11] !== P ? (q = [i, h, P, _, v], e[7] = h, e[8] = i, e[9] = v, e[10] = _, e[11] = P, e[12] = q) : q = e[12], Q(B, q);
|
|
2023
2064
|
let E;
|
|
2024
|
-
e[13] !==
|
|
2025
|
-
T && (y || !m) && $(),
|
|
2026
|
-
}, e[13] =
|
|
2065
|
+
e[13] !== U || e[14] !== $ || e[15] !== y || e[16] !== m ? (E = (T) => {
|
|
2066
|
+
T && (y || !m) && $(), U(T);
|
|
2067
|
+
}, e[13] = U, e[14] = $, e[15] = y, e[16] = m, e[17] = E) : E = e[17];
|
|
2027
2068
|
const F = E, d = !!y;
|
|
2028
2069
|
let S;
|
|
2029
|
-
return e[18] !== n || e[19] !== $ || e[20] !== c || e[21] !== p || e[22] !== m || e[23] !== u || e[24] !== t || e[25] !== b || e[26] !== h || e[27] !== i || e[28] !== M || e[29] !== l || e[30] !== v || e[31] !== w || e[32] !== f || e[33] !== g || e[34] !== P || e[35] !==
|
|
2070
|
+
return e[18] !== n || e[19] !== $ || e[20] !== c || e[21] !== p || e[22] !== m || e[23] !== u || e[24] !== t || e[25] !== b || e[26] !== h || e[27] !== i || e[28] !== M || e[29] !== l || e[30] !== v || e[31] !== w || e[32] !== f || e[33] !== g || e[34] !== P || e[35] !== N || e[36] !== d || e[37] !== s || e[38] !== F || e[39] !== D || e[40] !== a ? (S = n({
|
|
2030
2071
|
mapId: t,
|
|
2031
2072
|
distance: c,
|
|
2032
2073
|
enabled: p,
|
|
@@ -2038,7 +2079,7 @@ function gn(r) {
|
|
|
2038
2079
|
modeSelected: h,
|
|
2039
2080
|
modes: i,
|
|
2040
2081
|
units: a,
|
|
2041
|
-
value:
|
|
2082
|
+
value: ke({
|
|
2042
2083
|
meters: c,
|
|
2043
2084
|
unit: D,
|
|
2044
2085
|
locale: u,
|
|
@@ -2050,14 +2091,14 @@ function gn(r) {
|
|
|
2050
2091
|
setFinished: w,
|
|
2051
2092
|
setLocale: f,
|
|
2052
2093
|
setPositions: P,
|
|
2053
|
-
setUnit:
|
|
2094
|
+
setUnit: N,
|
|
2054
2095
|
setEnabled: v,
|
|
2055
2096
|
toggleLayer: F,
|
|
2056
2097
|
clearLayer: $
|
|
2057
|
-
}), e[18] = n, e[19] = $, e[20] = c, e[21] = p, e[22] = m, e[23] = u, e[24] = t, e[25] = b, e[26] = h, e[27] = i, e[28] = M, e[29] = l, e[30] = v, e[31] = w, e[32] = f, e[33] = g, e[34] = P, e[35] =
|
|
2098
|
+
}), e[18] = n, e[19] = $, e[20] = c, e[21] = p, e[22] = m, e[23] = u, e[24] = t, e[25] = b, e[26] = h, e[27] = i, e[28] = M, e[29] = l, e[30] = v, e[31] = w, e[32] = f, e[33] = g, e[34] = P, e[35] = N, e[36] = d, e[37] = s, e[38] = F, e[39] = D, e[40] = a, e[41] = S) : S = e[41], S;
|
|
2058
2099
|
}
|
|
2059
|
-
const
|
|
2060
|
-
function
|
|
2100
|
+
const En = [re];
|
|
2101
|
+
function Tn(r) {
|
|
2061
2102
|
const e = O(50), {
|
|
2062
2103
|
children: t,
|
|
2063
2104
|
mapId: s,
|
|
@@ -2067,11 +2108,11 @@ function vn(r) {
|
|
|
2067
2108
|
} = r;
|
|
2068
2109
|
let a;
|
|
2069
2110
|
e[0] !== n ? (a = n === void 0 ? {
|
|
2070
|
-
styles:
|
|
2111
|
+
styles: rt.styles
|
|
2071
2112
|
} : n, e[0] = n, e[1] = a) : a = e[1];
|
|
2072
2113
|
const {
|
|
2073
2114
|
styles: c
|
|
2074
|
-
} = a, l = c === void 0 ?
|
|
2115
|
+
} = a, l = c === void 0 ? rt.styles : c;
|
|
2075
2116
|
let y;
|
|
2076
2117
|
e[2] !== s ? (y = {
|
|
2077
2118
|
mapId: s
|
|
@@ -2086,66 +2127,66 @@ function vn(r) {
|
|
|
2086
2127
|
setPositions: u,
|
|
2087
2128
|
unit: f,
|
|
2088
2129
|
modeInstance: b
|
|
2089
|
-
} =
|
|
2090
|
-
let
|
|
2091
|
-
e[4] !== s ? (
|
|
2092
|
-
const $ = x(
|
|
2093
|
-
let
|
|
2094
|
-
e[6] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
2095
|
-
const
|
|
2130
|
+
} = At(y), _ = fe(Fn), M = x(On), P = x(Cn), D = x(kn);
|
|
2131
|
+
let N;
|
|
2132
|
+
e[4] !== s ? (N = (j) => j.maps[s]?.layers.filter(Pn), e[4] = s, e[5] = N) : N = e[5];
|
|
2133
|
+
const $ = x(bt(N)), U = x(Ln);
|
|
2134
|
+
let B;
|
|
2135
|
+
e[6] === Symbol.for("react.memo_cache_sentinel") ? (B = {}, e[6] = B) : B = e[6];
|
|
2136
|
+
const q = Ee(B);
|
|
2096
2137
|
let E;
|
|
2097
2138
|
e[7] !== s ? (E = {
|
|
2098
2139
|
mapId: s,
|
|
2099
2140
|
layerId: re
|
|
2100
|
-
}, e[7] = s, e[8] = E) : E = e[8],
|
|
2141
|
+
}, e[7] = s, e[8] = E) : E = e[8], Ot(E);
|
|
2101
2142
|
let F;
|
|
2102
|
-
e[9] !== P || e[10] !== p || e[11] !==
|
|
2103
|
-
const
|
|
2143
|
+
e[9] !== P || e[10] !== p || e[11] !== U || e[12] !== s || e[13] !== D || e[14] !== M ? (F = () => {
|
|
2144
|
+
const j = U(s)?.props.controller;
|
|
2104
2145
|
return p && (P(s, [re]), M(s, {
|
|
2105
2146
|
doubleClickZoom: !1
|
|
2106
2147
|
})), () => {
|
|
2107
|
-
D(s, [re]), M(s,
|
|
2148
|
+
D(s, [re]), M(s, j);
|
|
2108
2149
|
};
|
|
2109
|
-
}, e[9] = P, e[10] = p, e[11] =
|
|
2150
|
+
}, e[9] = P, e[10] = p, e[11] = U, e[12] = s, e[13] = D, e[14] = M, e[15] = F) : F = e[15];
|
|
2110
2151
|
let d;
|
|
2111
|
-
e[16] !== P || e[17] !== g || e[18] !== p || e[19] !==
|
|
2152
|
+
e[16] !== P || e[17] !== g || e[18] !== p || e[19] !== U || e[20] !== s || e[21] !== D || e[22] !== M ? (d = [P, g, s, D, p, U, M], e[16] = P, e[17] = g, e[18] = p, e[19] = U, e[20] = s, e[21] = D, e[22] = M, e[23] = d) : d = e[23], Q(F, d);
|
|
2112
2153
|
let S, T;
|
|
2113
|
-
e[24] !== p || e[25] !==
|
|
2114
|
-
$?.forEach((
|
|
2115
|
-
const H =
|
|
2116
|
-
p && (
|
|
2117
|
-
const V = !p && (
|
|
2118
|
-
_(
|
|
2154
|
+
e[24] !== p || e[25] !== U || e[26] !== s || e[27] !== $ || e[28] !== _ ? (S = () => {
|
|
2155
|
+
$?.forEach((j) => {
|
|
2156
|
+
const H = U(s)?.props.layers.find((Z) => Z.props.id === j);
|
|
2157
|
+
p && (q.current[j] = H?.props.pickable);
|
|
2158
|
+
const V = !p && (q.current[j] ?? H?.props.pickable);
|
|
2159
|
+
_(j, {
|
|
2119
2160
|
props: {
|
|
2120
2161
|
pickable: V
|
|
2121
2162
|
}
|
|
2122
2163
|
});
|
|
2123
2164
|
});
|
|
2124
|
-
}, T = [p,
|
|
2165
|
+
}, T = [p, U, s, $, _], e[24] = p, e[25] = U, e[26] = s, e[27] = $, e[28] = _, e[29] = S, e[30] = T) : (S = e[29], T = e[30]), Q(S, T);
|
|
2125
2166
|
let C;
|
|
2126
|
-
e[31] !== b || e[32] !== h || e[33] !== m || e[34] !== u ? (C = (
|
|
2167
|
+
e[31] !== b || e[32] !== h || e[33] !== m || e[34] !== u ? (C = (j) => {
|
|
2127
2168
|
const {
|
|
2128
2169
|
editType: H,
|
|
2129
2170
|
editContext: V
|
|
2130
|
-
} =
|
|
2171
|
+
} = j;
|
|
2131
2172
|
if (H === J.cancel) {
|
|
2132
2173
|
b.resetClickSequence();
|
|
2133
2174
|
return;
|
|
2134
2175
|
}
|
|
2135
2176
|
H === J.addPosition && h(V.distance), m(!!V.finished);
|
|
2136
|
-
const
|
|
2137
|
-
|
|
2177
|
+
const Z = V.positions;
|
|
2178
|
+
Z?.length && u(Z);
|
|
2138
2179
|
}, e[31] = b, e[32] = h, e[33] = m, e[34] = u, e[35] = C) : C = e[35];
|
|
2139
2180
|
const k = C;
|
|
2140
2181
|
let L, R;
|
|
2141
2182
|
return e[36] !== p || e[37] !== v || e[38] !== o || e[39] !== w || e[40] !== b || e[41] !== k || e[42] !== _ || e[43] !== l.colors.editing || e[44] !== l.colors.finished || e[45] !== l.colors.point || e[46] !== i || e[47] !== f ? (L = () => {
|
|
2142
|
-
const
|
|
2183
|
+
const j = v ? l.colors.finished : l.colors.editing, H = v ? l.colors.finished : l.colors.point, V = dn({
|
|
2143
2184
|
layerProps: {
|
|
2144
2185
|
...o,
|
|
2145
2186
|
pickable: o?.pickable ?? !v
|
|
2146
2187
|
},
|
|
2147
2188
|
enabled: p,
|
|
2148
|
-
guideColor:
|
|
2189
|
+
guideColor: j,
|
|
2149
2190
|
pointColor: H,
|
|
2150
2191
|
locale: w,
|
|
2151
2192
|
onEdit: k,
|
|
@@ -2156,26 +2197,26 @@ function vn(r) {
|
|
|
2156
2197
|
_(re, V);
|
|
2157
2198
|
}, R = [v, b, o, w, k, _, l.colors.editing, l.colors.finished, l.colors.point, i, f, p], e[36] = p, e[37] = v, e[38] = o, e[39] = w, e[40] = b, e[41] = k, e[42] = _, e[43] = l.colors.editing, e[44] = l.colors.finished, e[45] = l.colors.point, e[46] = i, e[47] = f, e[48] = L, e[49] = R) : (L = e[48], R = e[49]), Q(L, R), t;
|
|
2158
2199
|
}
|
|
2159
|
-
function
|
|
2200
|
+
function Ln(r) {
|
|
2160
2201
|
return r.getDeckInstance;
|
|
2161
2202
|
}
|
|
2162
|
-
function
|
|
2163
|
-
return !
|
|
2203
|
+
function Pn(r) {
|
|
2204
|
+
return !En.includes(r);
|
|
2164
2205
|
}
|
|
2165
|
-
function
|
|
2206
|
+
function kn(r) {
|
|
2166
2207
|
return r.removeLayers;
|
|
2167
2208
|
}
|
|
2168
|
-
function
|
|
2209
|
+
function Cn(r) {
|
|
2169
2210
|
return r.addLayers;
|
|
2170
2211
|
}
|
|
2171
|
-
function
|
|
2212
|
+
function On(r) {
|
|
2172
2213
|
return r.setController;
|
|
2173
2214
|
}
|
|
2174
|
-
function
|
|
2215
|
+
function Fn(r) {
|
|
2175
2216
|
return r.setLayer;
|
|
2176
2217
|
}
|
|
2177
|
-
|
|
2178
|
-
function
|
|
2218
|
+
Tn.Controls = Mn;
|
|
2219
|
+
function An(r) {
|
|
2179
2220
|
const e = O(7), {
|
|
2180
2221
|
mapId: t
|
|
2181
2222
|
} = r;
|
|
@@ -2183,28 +2224,28 @@ function Ln(r) {
|
|
|
2183
2224
|
e[0] !== t ? (s = (l) => l.maps[t], e[0] = t, e[1] = s) : s = e[1];
|
|
2184
2225
|
const {
|
|
2185
2226
|
layers: n
|
|
2186
|
-
} = x(s), o =
|
|
2227
|
+
} = x(s), o = fe(Dn);
|
|
2187
2228
|
let i, a;
|
|
2188
2229
|
if (e[2] !== o || e[3] !== n) {
|
|
2189
2230
|
let l;
|
|
2190
|
-
e[5] !== o ? (l = (y) => o[y], e[5] = o, e[6] = l) : l = e[6], a = n.map(l).filter(
|
|
2231
|
+
e[5] !== o ? (l = (y) => o[y], e[5] = o, e[6] = l) : l = e[6], a = n.map(l).filter(Rn), e[2] = o, e[3] = n, e[4] = a;
|
|
2191
2232
|
} else
|
|
2192
2233
|
a = e[4];
|
|
2193
2234
|
return i = a, i;
|
|
2194
2235
|
}
|
|
2195
|
-
function
|
|
2236
|
+
function Rn(r) {
|
|
2196
2237
|
return !!r;
|
|
2197
2238
|
}
|
|
2198
|
-
function
|
|
2239
|
+
function Dn(r) {
|
|
2199
2240
|
return r.layers;
|
|
2200
2241
|
}
|
|
2201
|
-
const
|
|
2202
|
-
function
|
|
2203
|
-
const e = r.filter((s) => !
|
|
2242
|
+
const lt = [Pe, ce, re];
|
|
2243
|
+
function Rt(r) {
|
|
2244
|
+
const e = r.filter((s) => !lt.includes(s.props.id)).sort((s, n) => (s.order ?? 1 / 0) - (n.order ?? 1 / 0)), t = lt.map((s) => r.find((n) => n.props.id === s)).filter((s) => !!s);
|
|
2204
2245
|
return [...e, ...t];
|
|
2205
2246
|
}
|
|
2206
|
-
const
|
|
2207
|
-
function
|
|
2247
|
+
const $n = 200;
|
|
2248
|
+
function ao(r) {
|
|
2208
2249
|
const e = O(51);
|
|
2209
2250
|
let t, s, n, o;
|
|
2210
2251
|
e[0] !== r ? ({
|
|
@@ -2221,33 +2262,33 @@ function eo(r) {
|
|
|
2221
2262
|
const l = x(c);
|
|
2222
2263
|
let y;
|
|
2223
2264
|
e[9] !== t ? (y = (R) => R.maps[t].overlayRef, e[9] = t, e[10] = y) : y = e[10];
|
|
2224
|
-
const h = x(y), g =
|
|
2265
|
+
const h = x(y), g = Ee(null);
|
|
2225
2266
|
let p;
|
|
2226
2267
|
e[11] !== t ? (p = (R) => R.viewStates[t], e[11] = t, e[12] = p) : p = e[12];
|
|
2227
2268
|
const v = x(p);
|
|
2228
2269
|
let m;
|
|
2229
2270
|
e[13] !== t ? (m = (R) => R.maps[t].controller, e[13] = t, e[14] = m) : m = e[14];
|
|
2230
|
-
const w = x(m), u = x(
|
|
2271
|
+
const w = x(m), u = x(Bn), f = x(jn), b = x(Vn), _ = x(Un), M = x(qn);
|
|
2231
2272
|
let P;
|
|
2232
2273
|
e[15] !== t ? (P = {
|
|
2233
2274
|
mapId: t
|
|
2234
2275
|
}, e[15] = t, e[16] = P) : P = e[16];
|
|
2235
|
-
const D =
|
|
2236
|
-
let
|
|
2237
|
-
e[17] !== D ? ($ =
|
|
2238
|
-
const
|
|
2239
|
-
let
|
|
2240
|
-
e[19] !== t || e[20] !== n || e[21] !== f || e[22] !== M ? (
|
|
2241
|
-
const
|
|
2276
|
+
const D = An(P);
|
|
2277
|
+
let N, $;
|
|
2278
|
+
e[17] !== D ? ($ = Rt(D), e[17] = D, e[18] = $) : $ = e[18], N = $;
|
|
2279
|
+
const U = N;
|
|
2280
|
+
let B;
|
|
2281
|
+
e[19] !== t || e[20] !== n || e[21] !== f || e[22] !== M ? (B = (R) => {
|
|
2282
|
+
const j = f;
|
|
2242
2283
|
if (g.current && clearInterval(g.current), g.current = setTimeout(() => {
|
|
2243
2284
|
M(t);
|
|
2244
|
-
},
|
|
2245
|
-
n(R,
|
|
2285
|
+
}, $n), n) {
|
|
2286
|
+
n(R, j);
|
|
2246
2287
|
return;
|
|
2247
2288
|
}
|
|
2248
|
-
|
|
2249
|
-
}, e[19] = t, e[20] = n, e[21] = f, e[22] = M, e[23] =
|
|
2250
|
-
const
|
|
2289
|
+
j(t, R.viewState);
|
|
2290
|
+
}, e[19] = t, e[20] = n, e[21] = f, e[22] = M, e[23] = B) : B = e[23];
|
|
2291
|
+
const q = B;
|
|
2251
2292
|
let E;
|
|
2252
2293
|
e[24] !== t || e[25] !== s || e[26] !== b || e[27] !== M ? (E = (R) => {
|
|
2253
2294
|
b(t, R), s?.(R), M(t);
|
|
@@ -2255,41 +2296,41 @@ function eo(r) {
|
|
|
2255
2296
|
const F = E;
|
|
2256
2297
|
let d;
|
|
2257
2298
|
e[29] !== u || e[30] !== t || e[31] !== o || e[32] !== _ ? (d = (R) => {
|
|
2258
|
-
const H = !!u(t)?.props.layers?.every(
|
|
2299
|
+
const H = !!u(t)?.props.layers?.every(xn);
|
|
2259
2300
|
_(t, H), o.onAfterRender?.(R);
|
|
2260
2301
|
}, e[29] = u, e[30] = t, e[31] = o, e[32] = _, e[33] = d) : d = e[33];
|
|
2261
2302
|
const S = d, T = o.onDragEnd;
|
|
2262
2303
|
let C;
|
|
2263
2304
|
e[34] !== T || e[35] !== t || e[36] !== M ? (C = (...R) => {
|
|
2264
|
-
const
|
|
2265
|
-
M(t), T && T(...
|
|
2305
|
+
const j = R;
|
|
2306
|
+
M(t), T && T(...j);
|
|
2266
2307
|
}, e[34] = T, e[35] = t, e[36] = M, e[37] = C) : C = e[37];
|
|
2267
2308
|
const k = C;
|
|
2268
2309
|
let L;
|
|
2269
|
-
return e[38] !== a || e[39] !==
|
|
2310
|
+
return e[38] !== a || e[39] !== U || e[40] !== w || e[41] !== S || e[42] !== k || e[43] !== F || e[44] !== q || e[45] !== t || e[46] !== l || e[47] !== h || e[48] !== o || e[49] !== v ? (L = /* @__PURE__ */ K(ks, { ...o, controller: w, id: t, layers: U, instanceRef: l, overlayRef: h, basemap: a, initialViewState: v, onLoad: F, onViewStateChange: q, onAfterRender: S, onDragEnd: k }), e[38] = a, e[39] = U, e[40] = w, e[41] = S, e[42] = k, e[43] = F, e[44] = q, e[45] = t, e[46] = l, e[47] = h, e[48] = o, e[49] = v, e[50] = L) : L = e[50], L;
|
|
2270
2311
|
}
|
|
2271
|
-
function
|
|
2312
|
+
function xn(r) {
|
|
2272
2313
|
return r?.isLoaded;
|
|
2273
2314
|
}
|
|
2274
|
-
function
|
|
2315
|
+
function qn(r) {
|
|
2275
2316
|
return r.updateViewPort;
|
|
2276
2317
|
}
|
|
2277
|
-
function
|
|
2318
|
+
function Un(r) {
|
|
2278
2319
|
return r.setLayersLoad;
|
|
2279
2320
|
}
|
|
2280
|
-
function
|
|
2321
|
+
function Vn(r) {
|
|
2281
2322
|
return r.setLoad;
|
|
2282
2323
|
}
|
|
2283
|
-
function
|
|
2324
|
+
function jn(r) {
|
|
2284
2325
|
return r.setViewState;
|
|
2285
2326
|
}
|
|
2286
|
-
function
|
|
2327
|
+
function Bn(r) {
|
|
2287
2328
|
return r.getDeckInstance;
|
|
2288
2329
|
}
|
|
2289
|
-
var
|
|
2290
|
-
function
|
|
2291
|
-
return
|
|
2292
|
-
var t = typeof globalThis < "u" && globalThis || typeof self < "u" && self || typeof
|
|
2330
|
+
var Me = { exports: {} }, ct;
|
|
2331
|
+
function In() {
|
|
2332
|
+
return ct || (ct = 1, function(r, e) {
|
|
2333
|
+
var t = typeof globalThis < "u" && globalThis || typeof self < "u" && self || typeof we < "u" && we, s = function() {
|
|
2293
2334
|
function o() {
|
|
2294
2335
|
this.fetch = !1, this.DOMException = t.DOMException;
|
|
2295
2336
|
}
|
|
@@ -2298,7 +2339,7 @@ function xn() {
|
|
|
2298
2339
|
(function(o) {
|
|
2299
2340
|
(function(i) {
|
|
2300
2341
|
var a = typeof o < "u" && o || typeof self < "u" && self || // eslint-disable-next-line no-undef
|
|
2301
|
-
typeof
|
|
2342
|
+
typeof we < "u" && we || {}, c = {
|
|
2302
2343
|
searchParams: "URLSearchParams" in a,
|
|
2303
2344
|
iterable: "Symbol" in a && "iterator" in Symbol,
|
|
2304
2345
|
blob: "FileReader" in a && "Blob" in a && function() {
|
|
@@ -2464,13 +2505,13 @@ function xn() {
|
|
|
2464
2505
|
throw new Error("could not read FormData body as text");
|
|
2465
2506
|
return Promise.resolve(this._bodyText);
|
|
2466
2507
|
}, c.formData && (this.formData = function() {
|
|
2467
|
-
return this.text().then(
|
|
2508
|
+
return this.text().then(U);
|
|
2468
2509
|
}), this.json = function() {
|
|
2469
2510
|
return this.text().then(JSON.parse);
|
|
2470
2511
|
}, this;
|
|
2471
2512
|
}
|
|
2472
2513
|
var D = ["CONNECT", "DELETE", "GET", "HEAD", "OPTIONS", "PATCH", "POST", "PUT", "TRACE"];
|
|
2473
|
-
function
|
|
2514
|
+
function N(d) {
|
|
2474
2515
|
var S = d.toUpperCase();
|
|
2475
2516
|
return D.indexOf(S) > -1 ? S : d;
|
|
2476
2517
|
}
|
|
@@ -2485,7 +2526,7 @@ function xn() {
|
|
|
2485
2526
|
this.url = d.url, this.credentials = d.credentials, S.headers || (this.headers = new m(d.headers)), this.method = d.method, this.mode = d.mode, this.signal = d.signal, !T && d._bodyInit != null && (T = d._bodyInit, d.bodyUsed = !0);
|
|
2486
2527
|
} else
|
|
2487
2528
|
this.url = String(d);
|
|
2488
|
-
if (this.credentials = S.credentials || this.credentials || "same-origin", (S.headers || !this.headers) && (this.headers = new m(S.headers)), this.method =
|
|
2529
|
+
if (this.credentials = S.credentials || this.credentials || "same-origin", (S.headers || !this.headers) && (this.headers = new m(S.headers)), this.method = N(S.method || this.method || "GET"), this.mode = S.mode || this.mode || null, this.signal = S.signal || this.signal || function() {
|
|
2489
2530
|
if ("AbortController" in a) {
|
|
2490
2531
|
var L = new AbortController();
|
|
2491
2532
|
return L.signal;
|
|
@@ -2505,7 +2546,7 @@ function xn() {
|
|
|
2505
2546
|
$.prototype.clone = function() {
|
|
2506
2547
|
return new $(this, { body: this._bodyInit });
|
|
2507
2548
|
};
|
|
2508
|
-
function
|
|
2549
|
+
function U(d) {
|
|
2509
2550
|
var S = new FormData();
|
|
2510
2551
|
return d.trim().split("&").forEach(function(T) {
|
|
2511
2552
|
if (T) {
|
|
@@ -2514,7 +2555,7 @@ function xn() {
|
|
|
2514
2555
|
}
|
|
2515
2556
|
}), S;
|
|
2516
2557
|
}
|
|
2517
|
-
function
|
|
2558
|
+
function B(d) {
|
|
2518
2559
|
var S = new m(), T = d.replace(/\r?\n[\t ]+/g, " ");
|
|
2519
2560
|
return T.split("\r").map(function(C) {
|
|
2520
2561
|
return C.indexOf(`
|
|
@@ -2525,36 +2566,36 @@ function xn() {
|
|
|
2525
2566
|
var R = k.join(":").trim();
|
|
2526
2567
|
try {
|
|
2527
2568
|
S.append(L, R);
|
|
2528
|
-
} catch (
|
|
2529
|
-
console.warn("Response " +
|
|
2569
|
+
} catch (j) {
|
|
2570
|
+
console.warn("Response " + j.message);
|
|
2530
2571
|
}
|
|
2531
2572
|
}
|
|
2532
2573
|
}), S;
|
|
2533
2574
|
}
|
|
2534
2575
|
P.call($.prototype);
|
|
2535
|
-
function
|
|
2536
|
-
if (!(this instanceof
|
|
2576
|
+
function q(d, S) {
|
|
2577
|
+
if (!(this instanceof q))
|
|
2537
2578
|
throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');
|
|
2538
2579
|
if (S || (S = {}), this.type = "default", this.status = S.status === void 0 ? 200 : S.status, this.status < 200 || this.status > 599)
|
|
2539
2580
|
throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");
|
|
2540
2581
|
this.ok = this.status >= 200 && this.status < 300, this.statusText = S.statusText === void 0 ? "" : "" + S.statusText, this.headers = new m(S.headers), this.url = S.url || "", this._initBody(d);
|
|
2541
2582
|
}
|
|
2542
|
-
P.call(
|
|
2543
|
-
return new
|
|
2583
|
+
P.call(q.prototype), q.prototype.clone = function() {
|
|
2584
|
+
return new q(this._bodyInit, {
|
|
2544
2585
|
status: this.status,
|
|
2545
2586
|
statusText: this.statusText,
|
|
2546
2587
|
headers: new m(this.headers),
|
|
2547
2588
|
url: this.url
|
|
2548
2589
|
});
|
|
2549
|
-
},
|
|
2550
|
-
var d = new
|
|
2590
|
+
}, q.error = function() {
|
|
2591
|
+
var d = new q(null, { status: 200, statusText: "" });
|
|
2551
2592
|
return d.ok = !1, d.status = 0, d.type = "error", d;
|
|
2552
2593
|
};
|
|
2553
2594
|
var E = [301, 302, 303, 307, 308];
|
|
2554
|
-
|
|
2595
|
+
q.redirect = function(d, S) {
|
|
2555
2596
|
if (E.indexOf(S) === -1)
|
|
2556
2597
|
throw new RangeError("Invalid status code");
|
|
2557
|
-
return new
|
|
2598
|
+
return new q(null, { status: S, headers: { location: d } });
|
|
2558
2599
|
}, i.DOMException = a.DOMException;
|
|
2559
2600
|
try {
|
|
2560
2601
|
new i.DOMException();
|
|
@@ -2577,12 +2618,12 @@ function xn() {
|
|
|
2577
2618
|
L.onload = function() {
|
|
2578
2619
|
var V = {
|
|
2579
2620
|
statusText: L.statusText,
|
|
2580
|
-
headers:
|
|
2621
|
+
headers: B(L.getAllResponseHeaders() || "")
|
|
2581
2622
|
};
|
|
2582
2623
|
k.url.indexOf("file://") === 0 && (L.status < 200 || L.status > 599) ? V.status = 200 : V.status = L.status, V.url = "responseURL" in L ? L.responseURL : V.headers.get("X-Request-URL");
|
|
2583
|
-
var
|
|
2624
|
+
var Z = "response" in L ? L.response : L.responseText;
|
|
2584
2625
|
setTimeout(function() {
|
|
2585
|
-
T(new
|
|
2626
|
+
T(new q(Z, V));
|
|
2586
2627
|
}, 0);
|
|
2587
2628
|
}, L.onerror = function() {
|
|
2588
2629
|
setTimeout(function() {
|
|
@@ -2597,59 +2638,59 @@ function xn() {
|
|
|
2597
2638
|
C(new i.DOMException("Aborted", "AbortError"));
|
|
2598
2639
|
}, 0);
|
|
2599
2640
|
};
|
|
2600
|
-
function
|
|
2641
|
+
function j(V) {
|
|
2601
2642
|
try {
|
|
2602
2643
|
return V === "" && a.location.href ? a.location.href : V;
|
|
2603
2644
|
} catch {
|
|
2604
2645
|
return V;
|
|
2605
2646
|
}
|
|
2606
2647
|
}
|
|
2607
|
-
if (L.open(k.method,
|
|
2648
|
+
if (L.open(k.method, j(k.url), !0), k.credentials === "include" ? L.withCredentials = !0 : k.credentials === "omit" && (L.withCredentials = !1), "responseType" in L && (c.blob ? L.responseType = "blob" : c.arrayBuffer && (L.responseType = "arraybuffer")), S && typeof S.headers == "object" && !(S.headers instanceof m || a.Headers && S.headers instanceof a.Headers)) {
|
|
2608
2649
|
var H = [];
|
|
2609
2650
|
Object.getOwnPropertyNames(S.headers).forEach(function(V) {
|
|
2610
2651
|
H.push(g(V)), L.setRequestHeader(V, p(S.headers[V]));
|
|
2611
|
-
}), k.headers.forEach(function(V,
|
|
2612
|
-
H.indexOf(
|
|
2652
|
+
}), k.headers.forEach(function(V, Z) {
|
|
2653
|
+
H.indexOf(Z) === -1 && L.setRequestHeader(Z, V);
|
|
2613
2654
|
});
|
|
2614
2655
|
} else
|
|
2615
|
-
k.headers.forEach(function(V,
|
|
2616
|
-
L.setRequestHeader(
|
|
2656
|
+
k.headers.forEach(function(V, Z) {
|
|
2657
|
+
L.setRequestHeader(Z, V);
|
|
2617
2658
|
});
|
|
2618
2659
|
k.signal && (k.signal.addEventListener("abort", R), L.onreadystatechange = function() {
|
|
2619
2660
|
L.readyState === 4 && k.signal.removeEventListener("abort", R);
|
|
2620
2661
|
}), L.send(typeof k._bodyInit > "u" ? null : k._bodyInit);
|
|
2621
2662
|
});
|
|
2622
2663
|
}
|
|
2623
|
-
return F.polyfill = !0, a.fetch || (a.fetch = F, a.Headers = m, a.Request = $, a.Response =
|
|
2664
|
+
return F.polyfill = !0, a.fetch || (a.fetch = F, a.Headers = m, a.Request = $, a.Response = q), i.Headers = m, i.Request = $, i.Response = q, i.fetch = F, i;
|
|
2624
2665
|
})({});
|
|
2625
2666
|
})(s), s.fetch.ponyfill = !0, delete s.fetch.polyfill;
|
|
2626
2667
|
var n = t.fetch ? t : s;
|
|
2627
2668
|
e = n.fetch, e.default = n.fetch, e.fetch = n.fetch, e.Headers = n.Headers, e.Request = n.Request, e.Response = n.Response, r.exports = e;
|
|
2628
|
-
}(
|
|
2669
|
+
}(Me, Me.exports)), Me.exports;
|
|
2629
2670
|
}
|
|
2630
|
-
var
|
|
2631
|
-
const
|
|
2671
|
+
var Nn = In();
|
|
2672
|
+
const Hn = /* @__PURE__ */ Mt(Nn), ze = "https://gcp-us-east1.api.carto.com", Qe = "v3", Gn = "ps", ue = {
|
|
2632
2673
|
get: "GET",
|
|
2633
2674
|
post: "POST"
|
|
2634
2675
|
};
|
|
2635
|
-
function
|
|
2676
|
+
function Kn(r, e) {
|
|
2636
2677
|
return Array.isArray(e) ? `${r}=${encodeURIComponent(JSON.stringify(e))}` : e == null || e === "" ? "" : typeof e == "object" ? `${r}=${encodeURIComponent(JSON.stringify(e))}` : `${r}=${encodeURIComponent(e)}`;
|
|
2637
2678
|
}
|
|
2638
|
-
function
|
|
2679
|
+
function Zn({
|
|
2639
2680
|
params: r,
|
|
2640
2681
|
url: e
|
|
2641
2682
|
}) {
|
|
2642
2683
|
if (!r) return e;
|
|
2643
|
-
const t = Object.entries(r).map(([s, n]) =>
|
|
2684
|
+
const t = Object.entries(r).map(([s, n]) => Kn(s, n));
|
|
2644
2685
|
return `${e}?${t.filter(Boolean).join("&")}`;
|
|
2645
2686
|
}
|
|
2646
|
-
function
|
|
2687
|
+
function zn(r) {
|
|
2647
2688
|
return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
|
|
2648
2689
|
}
|
|
2649
|
-
var
|
|
2650
|
-
function
|
|
2651
|
-
if (
|
|
2652
|
-
|
|
2690
|
+
var je, ut;
|
|
2691
|
+
function Qn() {
|
|
2692
|
+
if (ut) return je;
|
|
2693
|
+
ut = 1;
|
|
2653
2694
|
var r = function(u) {
|
|
2654
2695
|
return e(u) && !t(u);
|
|
2655
2696
|
};
|
|
@@ -2718,21 +2759,21 @@ function Nn() {
|
|
|
2718
2759
|
}, {});
|
|
2719
2760
|
};
|
|
2720
2761
|
var w = m;
|
|
2721
|
-
return
|
|
2762
|
+
return je = w, je;
|
|
2722
2763
|
}
|
|
2723
|
-
var
|
|
2724
|
-
const
|
|
2725
|
-
function
|
|
2726
|
-
return
|
|
2727
|
-
method:
|
|
2764
|
+
var Wn = Qn();
|
|
2765
|
+
const We = /* @__PURE__ */ zn(Wn);
|
|
2766
|
+
function dt(r) {
|
|
2767
|
+
return We({
|
|
2768
|
+
method: ue.get,
|
|
2728
2769
|
headers: {
|
|
2729
2770
|
Accept: "application/json"
|
|
2730
2771
|
}
|
|
2731
2772
|
}, r);
|
|
2732
2773
|
}
|
|
2733
|
-
function
|
|
2734
|
-
return
|
|
2735
|
-
method:
|
|
2774
|
+
function Be(r, e) {
|
|
2775
|
+
return We({
|
|
2776
|
+
method: ue.post,
|
|
2736
2777
|
headers: {
|
|
2737
2778
|
Accept: "application/json",
|
|
2738
2779
|
"Content-Type": "application/json"
|
|
@@ -2740,21 +2781,21 @@ function Ve(r, e) {
|
|
|
2740
2781
|
body: JSON.stringify(e)
|
|
2741
2782
|
}, r);
|
|
2742
2783
|
}
|
|
2743
|
-
const
|
|
2744
|
-
GET:
|
|
2745
|
-
POST:
|
|
2746
|
-
PUT:
|
|
2747
|
-
PATCH:
|
|
2748
|
-
DELETE:
|
|
2784
|
+
const Yn = {
|
|
2785
|
+
GET: dt,
|
|
2786
|
+
POST: Be,
|
|
2787
|
+
PUT: Be,
|
|
2788
|
+
PATCH: Be,
|
|
2789
|
+
DELETE: dt
|
|
2749
2790
|
};
|
|
2750
|
-
function
|
|
2791
|
+
function Jn({
|
|
2751
2792
|
body: r,
|
|
2752
2793
|
accessToken: e,
|
|
2753
2794
|
method: t,
|
|
2754
2795
|
...s
|
|
2755
2796
|
}) {
|
|
2756
2797
|
let n = e;
|
|
2757
|
-
return n && !n.includes("Bearer") && (n = "Bearer " + n),
|
|
2798
|
+
return n && !n.includes("Bearer") && (n = "Bearer " + n), Yn[t](We({
|
|
2758
2799
|
method: t,
|
|
2759
2800
|
headers: {
|
|
2760
2801
|
...!!n && {
|
|
@@ -2763,42 +2804,42 @@ function Zn({
|
|
|
2763
2804
|
}
|
|
2764
2805
|
}, s), r);
|
|
2765
2806
|
}
|
|
2766
|
-
const
|
|
2767
|
-
async function
|
|
2807
|
+
const Xn = 6144;
|
|
2808
|
+
async function Dt({
|
|
2768
2809
|
signal: r,
|
|
2769
2810
|
body: e,
|
|
2770
2811
|
accessToken: t,
|
|
2771
2812
|
credentials: s,
|
|
2772
|
-
method: n =
|
|
2813
|
+
method: n = ue.get,
|
|
2773
2814
|
params: o,
|
|
2774
2815
|
url: i,
|
|
2775
2816
|
requestOptions: {
|
|
2776
2817
|
getMaxUrlLength: a
|
|
2777
2818
|
} = {
|
|
2778
|
-
getMaxUrlLength:
|
|
2819
|
+
getMaxUrlLength: Xn
|
|
2779
2820
|
},
|
|
2780
2821
|
...c
|
|
2781
2822
|
}) {
|
|
2782
|
-
let l =
|
|
2823
|
+
let l = Zn({
|
|
2783
2824
|
url: i,
|
|
2784
2825
|
params: o
|
|
2785
2826
|
}), y = e, h = n;
|
|
2786
|
-
n ===
|
|
2787
|
-
const g =
|
|
2827
|
+
n === ue.get && l.length > a && (y = o, h = ue.post, l = i);
|
|
2828
|
+
const g = Jn({
|
|
2788
2829
|
body: y,
|
|
2789
2830
|
accessToken: t ?? s?.accessToken,
|
|
2790
2831
|
method: h,
|
|
2791
2832
|
...c
|
|
2792
2833
|
});
|
|
2793
2834
|
r && (g.signal = r);
|
|
2794
|
-
const p = await
|
|
2835
|
+
const p = await Hn(l, g);
|
|
2795
2836
|
if (!p.ok) {
|
|
2796
2837
|
const v = await p.text();
|
|
2797
2838
|
throw new Error(v);
|
|
2798
2839
|
}
|
|
2799
2840
|
return p.status === 204 ? Promise.resolve() : await p.json();
|
|
2800
2841
|
}
|
|
2801
|
-
const
|
|
2842
|
+
const Le = yt()(hs((r, e) => ({
|
|
2802
2843
|
sources: {},
|
|
2803
2844
|
filters: {},
|
|
2804
2845
|
setSource: (t, s) => r((n) => {
|
|
@@ -2810,12 +2851,12 @@ const Ee = ft()(fs((r, e) => ({
|
|
|
2810
2851
|
sources: o
|
|
2811
2852
|
};
|
|
2812
2853
|
const a = o[t], c = {
|
|
2813
|
-
apiBaseUrl:
|
|
2814
|
-
clientId:
|
|
2815
|
-
apiVersion:
|
|
2854
|
+
apiBaseUrl: ze,
|
|
2855
|
+
clientId: Gn,
|
|
2856
|
+
apiVersion: Qe,
|
|
2816
2857
|
...a,
|
|
2817
2858
|
...s
|
|
2818
|
-
}, l =
|
|
2859
|
+
}, l = nr({
|
|
2819
2860
|
source: c
|
|
2820
2861
|
});
|
|
2821
2862
|
return c.widgets = l, o[t] = c, {
|
|
@@ -2833,7 +2874,7 @@ const Ee = ft()(fs((r, e) => ({
|
|
|
2833
2874
|
setFilters: (t, s) => r((n) => {
|
|
2834
2875
|
let o = {};
|
|
2835
2876
|
const i = n.filters[t] ?? {};
|
|
2836
|
-
return s.length !== 0 && (o = s.reduce((a, c) => !("values" in c) || !c.values?.length ?
|
|
2877
|
+
return s.length !== 0 && (o = s.reduce((a, c) => !("values" in c) || !c.values?.length ? Je(a, c) : _t(a, c), i)), {
|
|
2837
2878
|
filters: {
|
|
2838
2879
|
...n.filters,
|
|
2839
2880
|
[t]: {
|
|
@@ -2848,7 +2889,7 @@ const Ee = ft()(fs((r, e) => ({
|
|
|
2848
2889
|
if (!i)
|
|
2849
2890
|
return o;
|
|
2850
2891
|
let a = {};
|
|
2851
|
-
return s && (a =
|
|
2892
|
+
return s && (a = Je(i, {
|
|
2852
2893
|
column: s,
|
|
2853
2894
|
owner: n
|
|
2854
2895
|
})), {
|
|
@@ -2862,40 +2903,41 @@ const Ee = ft()(fs((r, e) => ({
|
|
|
2862
2903
|
};
|
|
2863
2904
|
}, void 0, "removeFilters"),
|
|
2864
2905
|
invalidateSourcesCache: (t, {
|
|
2865
|
-
timeout: s = 500
|
|
2906
|
+
timeout: s = 500,
|
|
2907
|
+
maxAge: n = 10
|
|
2866
2908
|
} = {}) => {
|
|
2867
|
-
t.forEach((
|
|
2868
|
-
e().setSource(
|
|
2909
|
+
t.forEach((o) => {
|
|
2910
|
+
e().setSource(o, {
|
|
2869
2911
|
headers: {
|
|
2870
|
-
"Cache-Control":
|
|
2912
|
+
"Cache-Control": `no-cache, max-age=${n}`
|
|
2871
2913
|
}
|
|
2872
2914
|
});
|
|
2873
2915
|
}), setTimeout(() => {
|
|
2874
|
-
t.forEach((
|
|
2875
|
-
const
|
|
2876
|
-
|
|
2916
|
+
t.forEach((o) => {
|
|
2917
|
+
const i = e().sources[o];
|
|
2918
|
+
i && (delete i.headers, e().setSource(o, i));
|
|
2877
2919
|
});
|
|
2878
2920
|
}, s);
|
|
2879
2921
|
}
|
|
2880
2922
|
})));
|
|
2881
|
-
function
|
|
2923
|
+
function er(r) {
|
|
2882
2924
|
const e = O(2);
|
|
2883
2925
|
let t;
|
|
2884
|
-
return e[0] !== r ? (t = (s) => s.sources[r], e[0] = r, e[1] = t) : t = e[1],
|
|
2926
|
+
return e[0] !== r ? (t = (s) => s.sources[r], e[0] = r, e[1] = t) : t = e[1], Le(t);
|
|
2885
2927
|
}
|
|
2886
|
-
function
|
|
2928
|
+
function tr(r) {
|
|
2887
2929
|
const e = O(2);
|
|
2888
2930
|
let t;
|
|
2889
|
-
return e[0] !== r ? (t = (s) => s.filters[r], e[0] = r, e[1] = t) : t = e[1],
|
|
2931
|
+
return e[0] !== r ? (t = (s) => s.filters[r], e[0] = r, e[1] = t) : t = e[1], Le(t);
|
|
2890
2932
|
}
|
|
2891
|
-
function
|
|
2933
|
+
function lo(r) {
|
|
2892
2934
|
const e = O(9);
|
|
2893
2935
|
let t;
|
|
2894
2936
|
e[0] !== r ? (t = (a) => a.sources[r], e[0] = r, e[1] = t) : t = e[1];
|
|
2895
|
-
const s =
|
|
2937
|
+
const s = Le(t);
|
|
2896
2938
|
let n;
|
|
2897
2939
|
e[2] !== r ? (n = (a) => a.filters[r], e[2] = r, e[3] = n) : n = e[3];
|
|
2898
|
-
const o =
|
|
2940
|
+
const o = Le(n);
|
|
2899
2941
|
let i;
|
|
2900
2942
|
e: {
|
|
2901
2943
|
if (!s) {
|
|
@@ -2912,29 +2954,29 @@ function to(r) {
|
|
|
2912
2954
|
}
|
|
2913
2955
|
return i;
|
|
2914
2956
|
}
|
|
2915
|
-
function
|
|
2957
|
+
function co(r, {
|
|
2916
2958
|
column: e,
|
|
2917
2959
|
type: t
|
|
2918
2960
|
}) {
|
|
2919
2961
|
return r?.[e]?.[t]?.values ?? [];
|
|
2920
2962
|
}
|
|
2921
|
-
function
|
|
2963
|
+
function sr(r) {
|
|
2922
2964
|
const [, e] = r.type.split("+", 2);
|
|
2923
2965
|
return {
|
|
2924
2966
|
spatialDataType: r.spatialDataType ?? e ?? "geo",
|
|
2925
2967
|
spatialDataColumn: r.spatialDataColumn ?? e ?? "geom"
|
|
2926
2968
|
};
|
|
2927
2969
|
}
|
|
2928
|
-
function
|
|
2970
|
+
function nr({
|
|
2929
2971
|
source: r
|
|
2930
2972
|
}) {
|
|
2931
2973
|
const {
|
|
2932
2974
|
spatialDataType: e,
|
|
2933
2975
|
spatialDataColumn: t
|
|
2934
|
-
} =
|
|
2976
|
+
} = sr(r), s = {
|
|
2935
2977
|
query: () => {
|
|
2936
2978
|
const i = r;
|
|
2937
|
-
return new
|
|
2979
|
+
return new ps({
|
|
2938
2980
|
...i,
|
|
2939
2981
|
accessToken: "",
|
|
2940
2982
|
sqlQuery: i.data,
|
|
@@ -2944,7 +2986,7 @@ function Yn({
|
|
|
2944
2986
|
},
|
|
2945
2987
|
table: () => {
|
|
2946
2988
|
const i = r;
|
|
2947
|
-
return new
|
|
2989
|
+
return new fs({
|
|
2948
2990
|
...i,
|
|
2949
2991
|
accessToken: "",
|
|
2950
2992
|
tableName: i.data,
|
|
@@ -2954,18 +2996,18 @@ function Yn({
|
|
|
2954
2996
|
},
|
|
2955
2997
|
tileset: () => {
|
|
2956
2998
|
const i = r;
|
|
2957
|
-
return new
|
|
2999
|
+
return new us({
|
|
2958
3000
|
...i,
|
|
2959
3001
|
accessToken: "",
|
|
2960
3002
|
tableName: i.data,
|
|
2961
|
-
tileFormat: i.tileFormat ??
|
|
3003
|
+
tileFormat: i.tileFormat ?? ds.BINARY,
|
|
2962
3004
|
spatialDataType: e,
|
|
2963
3005
|
spatialDataColumn: t
|
|
2964
3006
|
});
|
|
2965
3007
|
},
|
|
2966
3008
|
raster: () => {
|
|
2967
3009
|
const i = r;
|
|
2968
|
-
return i.rasterMetadata ? new
|
|
3010
|
+
return i.rasterMetadata ? new cs({
|
|
2969
3011
|
...i,
|
|
2970
3012
|
accessToken: "",
|
|
2971
3013
|
tableName: i.data,
|
|
@@ -2977,8 +3019,8 @@ function Yn({
|
|
|
2977
3019
|
}, n = r.type.split("+")[0], o = s[n];
|
|
2978
3020
|
return o?.();
|
|
2979
3021
|
}
|
|
2980
|
-
function
|
|
2981
|
-
const t = O(5), s =
|
|
3022
|
+
function rr(r, e) {
|
|
3023
|
+
const t = O(5), s = tr(r);
|
|
2982
3024
|
let n;
|
|
2983
3025
|
e: {
|
|
2984
3026
|
if (!e?.length) {
|
|
@@ -2987,41 +3029,41 @@ function Jn(r, e) {
|
|
|
2987
3029
|
}
|
|
2988
3030
|
let o;
|
|
2989
3031
|
if (t[0] !== e || t[1] !== s) {
|
|
2990
|
-
const i = e.reduce(
|
|
3032
|
+
const i = e.reduce(or, {});
|
|
2991
3033
|
let a;
|
|
2992
|
-
t[3] !== s ? (a = s ?? {}, t[3] = s, t[4] = a) : a = t[4], o =
|
|
3034
|
+
t[3] !== s ? (a = s ?? {}, t[3] = s, t[4] = a) : a = t[4], o = ie(a, i), t[0] = e, t[1] = s, t[2] = o;
|
|
2993
3035
|
} else
|
|
2994
3036
|
o = t[2];
|
|
2995
3037
|
n = o;
|
|
2996
3038
|
}
|
|
2997
3039
|
return n;
|
|
2998
3040
|
}
|
|
2999
|
-
function
|
|
3000
|
-
return
|
|
3041
|
+
function or(r, e) {
|
|
3042
|
+
return _t(r, e);
|
|
3001
3043
|
}
|
|
3002
|
-
function
|
|
3003
|
-
const t =
|
|
3044
|
+
function ir(r, e) {
|
|
3045
|
+
const t = er(e);
|
|
3004
3046
|
return te(() => {
|
|
3005
3047
|
const s = t?.widgets;
|
|
3006
3048
|
return !s || !r ? null : (s.props.accessToken = r, s);
|
|
3007
3049
|
}, [r, t]);
|
|
3008
3050
|
}
|
|
3009
|
-
const
|
|
3010
|
-
function
|
|
3051
|
+
const ar = ["authorization", "cache-control"];
|
|
3052
|
+
function lr(r) {
|
|
3011
3053
|
if (!r || typeof r != "object")
|
|
3012
3054
|
return "";
|
|
3013
|
-
const e = Object.fromEntries(Object.entries(r).filter(([t]) =>
|
|
3055
|
+
const e = Object.fromEntries(Object.entries(r).filter(([t]) => ar.includes(t.toLowerCase())));
|
|
3014
3056
|
return JSON.stringify(e);
|
|
3015
3057
|
}
|
|
3016
|
-
function
|
|
3058
|
+
function ae(r) {
|
|
3017
3059
|
const e = O(13), {
|
|
3018
3060
|
accessToken: t,
|
|
3019
3061
|
sourceId: s,
|
|
3020
3062
|
widgetProps: n,
|
|
3021
3063
|
additionalFilter: o
|
|
3022
|
-
} = r, i =
|
|
3064
|
+
} = r, i = rr(s, o), a = ir(t, s), c = a?.props.queryParameters, l = a?.props.headers;
|
|
3023
3065
|
let y;
|
|
3024
|
-
e[0] !== l ? (y =
|
|
3066
|
+
e[0] !== l ? (y = lr(l), e[0] = l, e[1] = y) : y = e[1];
|
|
3025
3067
|
let h;
|
|
3026
3068
|
e[2] !== t || e[3] !== i || e[4] !== s || e[5] !== c || e[6] !== y || e[7] !== n ? (h = [s, t, n, c, i, y], e[2] = t, e[3] = i, e[4] = s, e[5] = c, e[6] = y, e[7] = n, e[8] = h) : h = e[8];
|
|
3027
3069
|
const g = h;
|
|
@@ -3032,7 +3074,7 @@ function ie(r) {
|
|
|
3032
3074
|
queryKey: g
|
|
3033
3075
|
}, e[9] = i, e[10] = g, e[11] = a, e[12] = p) : p = e[12], p;
|
|
3034
3076
|
}
|
|
3035
|
-
function
|
|
3077
|
+
function cr(r) {
|
|
3036
3078
|
const e = O(21), {
|
|
3037
3079
|
accessToken: t,
|
|
3038
3080
|
sourceId: s,
|
|
@@ -3059,7 +3101,7 @@ function nr(r) {
|
|
|
3059
3101
|
mergedFilters: g,
|
|
3060
3102
|
queryKey: p,
|
|
3061
3103
|
widgetModel: v
|
|
3062
|
-
} =
|
|
3104
|
+
} = ae(h);
|
|
3063
3105
|
let m;
|
|
3064
3106
|
e[10] !== p ? (m = ["categories", ...p], e[10] = p, e[11] = m) : m = e[11];
|
|
3065
3107
|
let w;
|
|
@@ -3082,18 +3124,18 @@ function nr(r) {
|
|
|
3082
3124
|
...l
|
|
3083
3125
|
}, e[16] = m, e[17] = w, e[18] = u, e[19] = l, e[20] = f) : f = e[20], ne(f);
|
|
3084
3126
|
}
|
|
3085
|
-
function
|
|
3127
|
+
function uo(r) {
|
|
3086
3128
|
const e = O(6);
|
|
3087
3129
|
let t, s;
|
|
3088
3130
|
e[0] !== r ? ({
|
|
3089
3131
|
children: t,
|
|
3090
3132
|
...s
|
|
3091
3133
|
} = r, e[0] = r, e[1] = t, e[2] = s) : (t = e[1], s = e[2]);
|
|
3092
|
-
const n =
|
|
3134
|
+
const n = cr(s);
|
|
3093
3135
|
let o;
|
|
3094
3136
|
return e[3] !== t || e[4] !== n ? (o = t(n), e[3] = t, e[4] = n, e[5] = o) : o = e[5], o;
|
|
3095
3137
|
}
|
|
3096
|
-
function
|
|
3138
|
+
function ur(r) {
|
|
3097
3139
|
const e = O(21), {
|
|
3098
3140
|
accessToken: t,
|
|
3099
3141
|
sourceId: s,
|
|
@@ -3120,7 +3162,7 @@ function rr(r) {
|
|
|
3120
3162
|
mergedFilters: g,
|
|
3121
3163
|
queryKey: p,
|
|
3122
3164
|
widgetModel: v
|
|
3123
|
-
} =
|
|
3165
|
+
} = ae(h);
|
|
3124
3166
|
let m;
|
|
3125
3167
|
e[10] !== p ? (m = ["features", ...p], e[10] = p, e[11] = m) : m = e[11];
|
|
3126
3168
|
let w;
|
|
@@ -3143,18 +3185,18 @@ function rr(r) {
|
|
|
3143
3185
|
...l
|
|
3144
3186
|
}, e[16] = m, e[17] = w, e[18] = u, e[19] = l, e[20] = f) : f = e[20], ne(f);
|
|
3145
3187
|
}
|
|
3146
|
-
function
|
|
3188
|
+
function fo(r) {
|
|
3147
3189
|
const e = O(6);
|
|
3148
3190
|
let t, s;
|
|
3149
3191
|
e[0] !== r ? ({
|
|
3150
3192
|
children: t,
|
|
3151
3193
|
...s
|
|
3152
3194
|
} = r, e[0] = r, e[1] = t, e[2] = s) : (t = e[1], s = e[2]);
|
|
3153
|
-
const n =
|
|
3195
|
+
const n = ur(s);
|
|
3154
3196
|
let o;
|
|
3155
3197
|
return e[3] !== t || e[4] !== n ? (o = t(n), e[3] = t, e[4] = n, e[5] = o) : o = e[5], o;
|
|
3156
3198
|
}
|
|
3157
|
-
function
|
|
3199
|
+
function dr(r) {
|
|
3158
3200
|
const e = O(21), {
|
|
3159
3201
|
accessToken: t,
|
|
3160
3202
|
sourceId: s,
|
|
@@ -3181,7 +3223,7 @@ function or(r) {
|
|
|
3181
3223
|
mergedFilters: g,
|
|
3182
3224
|
queryKey: p,
|
|
3183
3225
|
widgetModel: v
|
|
3184
|
-
} =
|
|
3226
|
+
} = ae(h);
|
|
3185
3227
|
let m;
|
|
3186
3228
|
e[10] !== p ? (m = ["formula", ...p], e[10] = p, e[11] = m) : m = e[11];
|
|
3187
3229
|
let w;
|
|
@@ -3204,18 +3246,18 @@ function or(r) {
|
|
|
3204
3246
|
...l
|
|
3205
3247
|
}, e[16] = m, e[17] = w, e[18] = u, e[19] = l, e[20] = f) : f = e[20], ne(f);
|
|
3206
3248
|
}
|
|
3207
|
-
function
|
|
3249
|
+
function po(r) {
|
|
3208
3250
|
const e = O(6);
|
|
3209
3251
|
let t, s;
|
|
3210
3252
|
e[0] !== r ? ({
|
|
3211
3253
|
children: t,
|
|
3212
3254
|
...s
|
|
3213
3255
|
} = r, e[0] = r, e[1] = t, e[2] = s) : (t = e[1], s = e[2]);
|
|
3214
|
-
const n =
|
|
3256
|
+
const n = dr(s);
|
|
3215
3257
|
let o;
|
|
3216
3258
|
return e[3] !== t || e[4] !== n ? (o = t(n), e[3] = t, e[4] = n, e[5] = o) : o = e[5], o;
|
|
3217
3259
|
}
|
|
3218
|
-
function
|
|
3260
|
+
function fr(r) {
|
|
3219
3261
|
const e = O(21), {
|
|
3220
3262
|
accessToken: t,
|
|
3221
3263
|
sourceId: s,
|
|
@@ -3242,7 +3284,7 @@ function ir(r) {
|
|
|
3242
3284
|
mergedFilters: g,
|
|
3243
3285
|
queryKey: p,
|
|
3244
3286
|
widgetModel: v
|
|
3245
|
-
} =
|
|
3287
|
+
} = ae(h);
|
|
3246
3288
|
let m;
|
|
3247
3289
|
e[10] !== p ? (m = ["histogram", ...p], e[10] = p, e[11] = m) : m = e[11];
|
|
3248
3290
|
let w;
|
|
@@ -3265,18 +3307,18 @@ function ir(r) {
|
|
|
3265
3307
|
...l
|
|
3266
3308
|
}, e[16] = m, e[17] = w, e[18] = u, e[19] = l, e[20] = f) : f = e[20], ne(f);
|
|
3267
3309
|
}
|
|
3268
|
-
function
|
|
3310
|
+
function mo(r) {
|
|
3269
3311
|
const e = O(6);
|
|
3270
3312
|
let t, s;
|
|
3271
3313
|
e[0] !== r ? ({
|
|
3272
3314
|
children: t,
|
|
3273
3315
|
...s
|
|
3274
3316
|
} = r, e[0] = r, e[1] = t, e[2] = s) : (t = e[1], s = e[2]);
|
|
3275
|
-
const n =
|
|
3317
|
+
const n = fr(s);
|
|
3276
3318
|
let o;
|
|
3277
3319
|
return e[3] !== t || e[4] !== n ? (o = t(n), e[3] = t, e[4] = n, e[5] = o) : o = e[5], o;
|
|
3278
3320
|
}
|
|
3279
|
-
function
|
|
3321
|
+
function pr(r) {
|
|
3280
3322
|
const e = O(21), {
|
|
3281
3323
|
accessToken: t,
|
|
3282
3324
|
sourceId: s,
|
|
@@ -3303,7 +3345,7 @@ function ar(r) {
|
|
|
3303
3345
|
mergedFilters: g,
|
|
3304
3346
|
queryKey: p,
|
|
3305
3347
|
widgetModel: v
|
|
3306
|
-
} =
|
|
3348
|
+
} = ae(h);
|
|
3307
3349
|
let m;
|
|
3308
3350
|
e[10] !== p ? (m = ["range", ...p], e[10] = p, e[11] = m) : m = e[11];
|
|
3309
3351
|
let w;
|
|
@@ -3326,18 +3368,18 @@ function ar(r) {
|
|
|
3326
3368
|
...l
|
|
3327
3369
|
}, e[16] = m, e[17] = w, e[18] = u, e[19] = l, e[20] = f) : f = e[20], ne(f);
|
|
3328
3370
|
}
|
|
3329
|
-
function
|
|
3371
|
+
function yo(r) {
|
|
3330
3372
|
const e = O(6);
|
|
3331
3373
|
let t, s;
|
|
3332
3374
|
e[0] !== r ? ({
|
|
3333
3375
|
children: t,
|
|
3334
3376
|
...s
|
|
3335
3377
|
} = r, e[0] = r, e[1] = t, e[2] = s) : (t = e[1], s = e[2]);
|
|
3336
|
-
const n =
|
|
3378
|
+
const n = pr(s);
|
|
3337
3379
|
let o;
|
|
3338
3380
|
return e[3] !== t || e[4] !== n ? (o = t(n), e[3] = t, e[4] = n, e[5] = o) : o = e[5], o;
|
|
3339
3381
|
}
|
|
3340
|
-
function
|
|
3382
|
+
function mr(r) {
|
|
3341
3383
|
const e = O(21), {
|
|
3342
3384
|
accessToken: t,
|
|
3343
3385
|
sourceId: s,
|
|
@@ -3364,7 +3406,7 @@ function lr(r) {
|
|
|
3364
3406
|
mergedFilters: g,
|
|
3365
3407
|
queryKey: p,
|
|
3366
3408
|
widgetModel: v
|
|
3367
|
-
} =
|
|
3409
|
+
} = ae(h);
|
|
3368
3410
|
let m;
|
|
3369
3411
|
e[10] !== p ? (m = ["scatter", ...p], e[10] = p, e[11] = m) : m = e[11];
|
|
3370
3412
|
let w;
|
|
@@ -3387,18 +3429,18 @@ function lr(r) {
|
|
|
3387
3429
|
...l
|
|
3388
3430
|
}, e[16] = m, e[17] = w, e[18] = u, e[19] = l, e[20] = f) : f = e[20], ne(f);
|
|
3389
3431
|
}
|
|
3390
|
-
function
|
|
3432
|
+
function ho(r) {
|
|
3391
3433
|
const e = O(6);
|
|
3392
3434
|
let t, s;
|
|
3393
3435
|
e[0] !== r ? ({
|
|
3394
3436
|
children: t,
|
|
3395
3437
|
...s
|
|
3396
3438
|
} = r, e[0] = r, e[1] = t, e[2] = s) : (t = e[1], s = e[2]);
|
|
3397
|
-
const n =
|
|
3439
|
+
const n = mr(s);
|
|
3398
3440
|
let o;
|
|
3399
3441
|
return e[3] !== t || e[4] !== n ? (o = t(n), e[3] = t, e[4] = n, e[5] = o) : o = e[5], o;
|
|
3400
3442
|
}
|
|
3401
|
-
function
|
|
3443
|
+
function yr(r) {
|
|
3402
3444
|
const e = O(21), {
|
|
3403
3445
|
accessToken: t,
|
|
3404
3446
|
sourceId: s,
|
|
@@ -3425,7 +3467,7 @@ function cr(r) {
|
|
|
3425
3467
|
mergedFilters: g,
|
|
3426
3468
|
queryKey: p,
|
|
3427
3469
|
widgetModel: v
|
|
3428
|
-
} =
|
|
3470
|
+
} = ae(h);
|
|
3429
3471
|
let m;
|
|
3430
3472
|
e[10] !== p ? (m = ["table", ...p], e[10] = p, e[11] = m) : m = e[11];
|
|
3431
3473
|
let w;
|
|
@@ -3448,18 +3490,18 @@ function cr(r) {
|
|
|
3448
3490
|
...l
|
|
3449
3491
|
}, e[16] = m, e[17] = w, e[18] = u, e[19] = l, e[20] = f) : f = e[20], ne(f);
|
|
3450
3492
|
}
|
|
3451
|
-
function
|
|
3493
|
+
function go(r) {
|
|
3452
3494
|
const e = O(6);
|
|
3453
3495
|
let t, s;
|
|
3454
3496
|
e[0] !== r ? ({
|
|
3455
3497
|
children: t,
|
|
3456
3498
|
...s
|
|
3457
3499
|
} = r, e[0] = r, e[1] = t, e[2] = s) : (t = e[1], s = e[2]);
|
|
3458
|
-
const n =
|
|
3500
|
+
const n = yr(s);
|
|
3459
3501
|
let o;
|
|
3460
3502
|
return e[3] !== t || e[4] !== n ? (o = t(n), e[3] = t, e[4] = n, e[5] = o) : o = e[5], o;
|
|
3461
3503
|
}
|
|
3462
|
-
function
|
|
3504
|
+
function hr(r) {
|
|
3463
3505
|
const e = O(21), {
|
|
3464
3506
|
accessToken: t,
|
|
3465
3507
|
sourceId: s,
|
|
@@ -3486,7 +3528,7 @@ function ur(r) {
|
|
|
3486
3528
|
mergedFilters: g,
|
|
3487
3529
|
queryKey: p,
|
|
3488
3530
|
widgetModel: v
|
|
3489
|
-
} =
|
|
3531
|
+
} = ae(h);
|
|
3490
3532
|
let m;
|
|
3491
3533
|
e[10] !== p ? (m = ["timeSeries", ...p], e[10] = p, e[11] = m) : m = e[11];
|
|
3492
3534
|
let w;
|
|
@@ -3509,19 +3551,19 @@ function ur(r) {
|
|
|
3509
3551
|
...l
|
|
3510
3552
|
}, e[16] = m, e[17] = w, e[18] = u, e[19] = l, e[20] = f) : f = e[20], ne(f);
|
|
3511
3553
|
}
|
|
3512
|
-
function
|
|
3554
|
+
function bo(r) {
|
|
3513
3555
|
const e = O(6);
|
|
3514
3556
|
let t, s;
|
|
3515
3557
|
e[0] !== r ? ({
|
|
3516
3558
|
children: t,
|
|
3517
3559
|
...s
|
|
3518
3560
|
} = r, e[0] = r, e[1] = t, e[2] = s) : (t = e[1], s = e[2]);
|
|
3519
|
-
const n =
|
|
3561
|
+
const n = hr(s);
|
|
3520
3562
|
let o;
|
|
3521
3563
|
return e[3] !== t || e[4] !== n ? (o = t(n), e[3] = t, e[4] = n, e[5] = o) : o = e[5], o;
|
|
3522
3564
|
}
|
|
3523
|
-
const
|
|
3524
|
-
function
|
|
3565
|
+
const vo = "ps";
|
|
3566
|
+
function So(r) {
|
|
3525
3567
|
const e = O(13), {
|
|
3526
3568
|
children: t,
|
|
3527
3569
|
maps: s,
|
|
@@ -3535,14 +3577,14 @@ function po(r) {
|
|
|
3535
3577
|
e[2] !== o ? (c = o === void 0 ? [] : o, e[2] = o, e[3] = c) : c = e[3];
|
|
3536
3578
|
const l = c;
|
|
3537
3579
|
let y;
|
|
3538
|
-
e[4] !== t || e[5] !== l ? (y = /* @__PURE__ */
|
|
3580
|
+
e[4] !== t || e[5] !== l ? (y = /* @__PURE__ */ K(mn, { values: l, children: t }), e[4] = t, e[5] = l, e[6] = y) : y = e[6];
|
|
3539
3581
|
let h;
|
|
3540
|
-
e[7] !== a || e[8] !== y ? (h = /* @__PURE__ */
|
|
3582
|
+
e[7] !== a || e[8] !== y ? (h = /* @__PURE__ */ K(zs, { values: a, children: y }), e[7] = a, e[8] = y, e[9] = h) : h = e[9];
|
|
3541
3583
|
let g;
|
|
3542
|
-
return e[10] !== s || e[11] !== h ? (g = /* @__PURE__ */
|
|
3584
|
+
return e[10] !== s || e[11] !== h ? (g = /* @__PURE__ */ K(js, { values: s, children: h }), e[10] = s, e[11] = h, e[12] = g) : g = e[12], g;
|
|
3543
3585
|
}
|
|
3544
|
-
function
|
|
3545
|
-
const t =
|
|
3586
|
+
function wo(r, e) {
|
|
3587
|
+
const t = fe((l) => l.layers), s = fe((l) => l.setLayer), n = te(() => Rt(r.map((l) => t[l]).filter((l) => !!l?.legend)).toReversed(), [t, r]), o = te(() => n.map(e), [e, n]), i = W(({
|
|
3546
3588
|
id: l,
|
|
3547
3589
|
visible: y,
|
|
3548
3590
|
...h
|
|
@@ -3579,12 +3621,12 @@ function mo(r, e) {
|
|
|
3579
3621
|
onChangeRowCollapse: a
|
|
3580
3622
|
};
|
|
3581
3623
|
}
|
|
3582
|
-
function
|
|
3624
|
+
function _o({
|
|
3583
3625
|
mapId: r
|
|
3584
3626
|
}) {
|
|
3585
3627
|
const [e, t] = se(void 0), [s, n] = se(!1), [o, i] = se(void 0), a = x((u) => u.maps[r]?.basemap), c = x((u) => u.getDeckInstance), l = x((u) => u.getOverlayInstance), y = x((u) => u.areLayersLoaded[r]), g = x((u) => u.maps[r]?.isLoaded) && y, {
|
|
3586
3628
|
type: p
|
|
3587
|
-
} =
|
|
3629
|
+
} = me[a], v = p === ee.googleMaps, m = W(async () => {
|
|
3588
3630
|
const u = c(r), f = l(r);
|
|
3589
3631
|
try {
|
|
3590
3632
|
const b = document.createElement("canvas");
|
|
@@ -3594,7 +3636,7 @@ function yo({
|
|
|
3594
3636
|
const P = f;
|
|
3595
3637
|
if (P.getRenderingType() !== "RASTER")
|
|
3596
3638
|
throw new Error("Only raster type is supported for Google Maps");
|
|
3597
|
-
const D = await
|
|
3639
|
+
const D = await gs(P.getDiv(), {
|
|
3598
3640
|
useCORS: !0
|
|
3599
3641
|
});
|
|
3600
3642
|
_?.drawImage(D, 0, 0, u.width, u.height);
|
|
@@ -3620,7 +3662,7 @@ function yo({
|
|
|
3620
3662
|
error: o
|
|
3621
3663
|
};
|
|
3622
3664
|
}
|
|
3623
|
-
function
|
|
3665
|
+
function Mo(r) {
|
|
3624
3666
|
const e = O(11), {
|
|
3625
3667
|
mapId: t
|
|
3626
3668
|
} = r;
|
|
@@ -3628,17 +3670,17 @@ function ho(r) {
|
|
|
3628
3670
|
e[0] !== t ? (s = {
|
|
3629
3671
|
mapId: t
|
|
3630
3672
|
}, e[0] = t, e[1] = s) : s = e[1];
|
|
3631
|
-
const n =
|
|
3673
|
+
const n = gr(s);
|
|
3632
3674
|
let o;
|
|
3633
3675
|
e[2] !== t ? (o = {
|
|
3634
3676
|
mapId: t
|
|
3635
3677
|
}, e[2] = t, e[3] = o) : o = e[3];
|
|
3636
|
-
const i =
|
|
3678
|
+
const i = br(o);
|
|
3637
3679
|
let a;
|
|
3638
3680
|
e[4] !== t ? (a = {
|
|
3639
3681
|
mapId: t
|
|
3640
3682
|
}, e[4] = t, e[5] = a) : a = e[5];
|
|
3641
|
-
const c =
|
|
3683
|
+
const c = wr(a), l = i ?? c ?? n;
|
|
3642
3684
|
let y;
|
|
3643
3685
|
return e[6] !== i || e[7] !== c || e[8] !== l || e[9] !== n ? (y = {
|
|
3644
3686
|
spatialFilter: l,
|
|
@@ -3647,7 +3689,7 @@ function ho(r) {
|
|
|
3647
3689
|
viewportSpatialFilter: n
|
|
3648
3690
|
}, e[6] = i, e[7] = c, e[8] = l, e[9] = n, e[10] = y) : y = e[10], y;
|
|
3649
3691
|
}
|
|
3650
|
-
function
|
|
3692
|
+
function gr(r) {
|
|
3651
3693
|
const e = O(4), {
|
|
3652
3694
|
mapId: t
|
|
3653
3695
|
} = r;
|
|
@@ -3661,42 +3703,42 @@ function dr(r) {
|
|
|
3661
3703
|
break e;
|
|
3662
3704
|
}
|
|
3663
3705
|
let i;
|
|
3664
|
-
e[2] !== n ? (i =
|
|
3706
|
+
e[2] !== n ? (i = ms(n.getBounds()), e[2] = n, e[3] = i) : i = e[3], o = i;
|
|
3665
3707
|
}
|
|
3666
3708
|
return o;
|
|
3667
3709
|
}
|
|
3668
|
-
function
|
|
3710
|
+
function br(r) {
|
|
3669
3711
|
const e = O(5), {
|
|
3670
3712
|
mapId: t
|
|
3671
3713
|
} = r;
|
|
3672
3714
|
let s;
|
|
3673
3715
|
e[0] !== t ? (s = (i) => i.data[t]?.values, e[0] = t, e[1] = s) : s = e[1];
|
|
3674
|
-
const n =
|
|
3716
|
+
const n = z(s);
|
|
3675
3717
|
let o;
|
|
3676
3718
|
e: {
|
|
3677
3719
|
let i;
|
|
3678
3720
|
if (e[2] !== n) {
|
|
3679
|
-
const a =
|
|
3721
|
+
const a = Pt({
|
|
3680
3722
|
values: n
|
|
3681
|
-
}).filter(
|
|
3723
|
+
}).filter(Sr);
|
|
3682
3724
|
if (!a?.length) {
|
|
3683
3725
|
o = void 0;
|
|
3684
3726
|
break e;
|
|
3685
3727
|
}
|
|
3686
|
-
i =
|
|
3728
|
+
i = vt(a.map(vr)), e[2] = n, e[3] = i, e[4] = o;
|
|
3687
3729
|
} else
|
|
3688
3730
|
i = e[3], o = e[4];
|
|
3689
3731
|
o = i.geometry;
|
|
3690
3732
|
}
|
|
3691
3733
|
return o;
|
|
3692
3734
|
}
|
|
3693
|
-
function
|
|
3735
|
+
function vr(r) {
|
|
3694
3736
|
return r.geometry.coordinates;
|
|
3695
3737
|
}
|
|
3696
|
-
function
|
|
3738
|
+
function Sr(r) {
|
|
3697
3739
|
return r.properties.visible;
|
|
3698
3740
|
}
|
|
3699
|
-
function
|
|
3741
|
+
function wr(r) {
|
|
3700
3742
|
const e = O(4), {
|
|
3701
3743
|
mapId: t
|
|
3702
3744
|
} = r;
|
|
@@ -3711,49 +3753,49 @@ function yr(r) {
|
|
|
3711
3753
|
}
|
|
3712
3754
|
let i;
|
|
3713
3755
|
if (e[2] !== n) {
|
|
3714
|
-
const a = Object.values(n).filter(
|
|
3715
|
-
i =
|
|
3756
|
+
const a = Object.values(n).filter(Mr).flatMap(_r);
|
|
3757
|
+
i = vt(a), e[2] = n, e[3] = i;
|
|
3716
3758
|
} else
|
|
3717
3759
|
i = e[3];
|
|
3718
3760
|
o = i.geometry;
|
|
3719
3761
|
}
|
|
3720
3762
|
return o;
|
|
3721
3763
|
}
|
|
3722
|
-
function
|
|
3764
|
+
function _r(r) {
|
|
3723
3765
|
return r.type === "Polygon" ? [r.coordinates] : r.coordinates;
|
|
3724
3766
|
}
|
|
3725
|
-
function
|
|
3767
|
+
function Mr(r) {
|
|
3726
3768
|
return r != null;
|
|
3727
3769
|
}
|
|
3728
|
-
const
|
|
3770
|
+
const le = {
|
|
3729
3771
|
currency: "CURRENCY",
|
|
3730
3772
|
default: "DEFAULT",
|
|
3731
3773
|
number: "NUMBER"
|
|
3732
|
-
},
|
|
3733
|
-
[
|
|
3734
|
-
type:
|
|
3735
|
-
format: (r, e) =>
|
|
3774
|
+
}, ft = {
|
|
3775
|
+
[le.currency]: {
|
|
3776
|
+
type: le.currency,
|
|
3777
|
+
format: (r, e) => is(r, e)
|
|
3736
3778
|
},
|
|
3737
|
-
[
|
|
3738
|
-
type:
|
|
3739
|
-
format: (r, e) =>
|
|
3779
|
+
[le.number]: {
|
|
3780
|
+
type: le.number,
|
|
3781
|
+
format: (r, e) => St(r, e)
|
|
3740
3782
|
},
|
|
3741
|
-
[
|
|
3742
|
-
type:
|
|
3783
|
+
[le.default]: {
|
|
3784
|
+
type: le.default,
|
|
3743
3785
|
format: (r) => r.toLocaleString()
|
|
3744
3786
|
}
|
|
3745
3787
|
};
|
|
3746
|
-
function
|
|
3788
|
+
function Eo({
|
|
3747
3789
|
properties: r,
|
|
3748
3790
|
formatters: e = {},
|
|
3749
3791
|
includeColumns: t = Object.keys(r),
|
|
3750
3792
|
locale: s = "en-US",
|
|
3751
3793
|
showColumnName: n = !0,
|
|
3752
3794
|
title: o,
|
|
3753
|
-
getColumnName: i =
|
|
3754
|
-
getFieldHtml: a =
|
|
3755
|
-
getTitle: c =
|
|
3756
|
-
getValue: l =
|
|
3795
|
+
getColumnName: i = kr,
|
|
3796
|
+
getFieldHtml: a = Tr,
|
|
3797
|
+
getTitle: c = Er,
|
|
3798
|
+
getValue: l = Lr
|
|
3757
3799
|
}) {
|
|
3758
3800
|
const y = o ? c(o) : "", g = t.reduce((p, v) => {
|
|
3759
3801
|
const m = e[v], w = r[v], u = l(w, s, m), f = n ? i(v) : "";
|
|
@@ -3761,26 +3803,26 @@ function go({
|
|
|
3761
3803
|
}, "");
|
|
3762
3804
|
return y + g;
|
|
3763
3805
|
}
|
|
3764
|
-
function
|
|
3806
|
+
function Er(r) {
|
|
3765
3807
|
return `<h3 style="margin: 0"><strong>${r}</strong></h3></br>`;
|
|
3766
3808
|
}
|
|
3767
|
-
function
|
|
3809
|
+
function Tr(r, e) {
|
|
3768
3810
|
return `${r}${e}</br>`;
|
|
3769
3811
|
}
|
|
3770
|
-
function
|
|
3812
|
+
function Lr(r, e, t) {
|
|
3771
3813
|
try {
|
|
3772
|
-
return
|
|
3814
|
+
return Pr(t)(r, e);
|
|
3773
3815
|
} catch {
|
|
3774
3816
|
return r;
|
|
3775
3817
|
}
|
|
3776
3818
|
}
|
|
3777
|
-
function
|
|
3778
|
-
return typeof r == "function" ? r : ((r &&
|
|
3819
|
+
function Pr(r) {
|
|
3820
|
+
return typeof r == "function" ? r : ((r && ft[r]) ?? ft[le.default]).format;
|
|
3779
3821
|
}
|
|
3780
|
-
function
|
|
3822
|
+
function kr(r) {
|
|
3781
3823
|
return `<strong>${r}</strong>: `;
|
|
3782
3824
|
}
|
|
3783
|
-
function
|
|
3825
|
+
function To(r) {
|
|
3784
3826
|
return {
|
|
3785
3827
|
collapsed: r.legend?.collapsed,
|
|
3786
3828
|
collapsible: r.legend?.collapsible,
|
|
@@ -3796,7 +3838,7 @@ function bo(r) {
|
|
|
3796
3838
|
visible: r.props.visible ?? !0
|
|
3797
3839
|
};
|
|
3798
3840
|
}
|
|
3799
|
-
function
|
|
3841
|
+
function Lo(r) {
|
|
3800
3842
|
const e = O(22), {
|
|
3801
3843
|
children: t,
|
|
3802
3844
|
mapId: s
|
|
@@ -3810,7 +3852,7 @@ function vo(r) {
|
|
|
3810
3852
|
} = x(n);
|
|
3811
3853
|
let c;
|
|
3812
3854
|
e[2] !== s ? (c = (M) => M.areLayersLoaded[s], e[2] = s, e[3] = c) : c = e[3];
|
|
3813
|
-
const l = x(c), y = x(
|
|
3855
|
+
const l = x(c), y = x(Fr), h = x(Or), g = x(Cr), p = !l;
|
|
3814
3856
|
let v;
|
|
3815
3857
|
e[4] !== s || e[5] !== y ? (v = (M) => y(s, M), e[4] = s, e[5] = y, e[6] = v) : v = e[6];
|
|
3816
3858
|
const m = v;
|
|
@@ -3831,17 +3873,17 @@ function vo(r) {
|
|
|
3831
3873
|
resetViewState: b
|
|
3832
3874
|
}), e[13] = t, e[14] = i, e[15] = a, e[16] = p, e[17] = m, e[18] = u, e[19] = b, e[20] = o, e[21] = _) : _ = e[21], _;
|
|
3833
3875
|
}
|
|
3834
|
-
function
|
|
3876
|
+
function Cr(r) {
|
|
3835
3877
|
return r.resetViewState;
|
|
3836
3878
|
}
|
|
3837
|
-
function
|
|
3879
|
+
function Or(r) {
|
|
3838
3880
|
return r.flyTo;
|
|
3839
3881
|
}
|
|
3840
|
-
function
|
|
3882
|
+
function Fr(r) {
|
|
3841
3883
|
return r.setZoom;
|
|
3842
3884
|
}
|
|
3843
|
-
async function
|
|
3844
|
-
baseUrl: r =
|
|
3885
|
+
async function Ar({
|
|
3886
|
+
baseUrl: r = ze,
|
|
3845
3887
|
connection: e,
|
|
3846
3888
|
accessToken: t,
|
|
3847
3889
|
query: s,
|
|
@@ -3852,14 +3894,14 @@ async function Lr({
|
|
|
3852
3894
|
} = {},
|
|
3853
3895
|
queryParameters: a,
|
|
3854
3896
|
params: c,
|
|
3855
|
-
apiVersion: l =
|
|
3897
|
+
apiVersion: l = Qe
|
|
3856
3898
|
}) {
|
|
3857
3899
|
const y = `${r}/${l}/stats/${e}/${n}`;
|
|
3858
|
-
return
|
|
3900
|
+
return Dt({
|
|
3859
3901
|
accessToken: t,
|
|
3860
3902
|
signal: o,
|
|
3861
3903
|
url: y,
|
|
3862
|
-
method:
|
|
3904
|
+
method: ue.get,
|
|
3863
3905
|
params: {
|
|
3864
3906
|
q: s,
|
|
3865
3907
|
...a,
|
|
@@ -3868,8 +3910,8 @@ async function Lr({
|
|
|
3868
3910
|
...i
|
|
3869
3911
|
});
|
|
3870
3912
|
}
|
|
3871
|
-
async function
|
|
3872
|
-
baseUrl: r =
|
|
3913
|
+
async function Rr({
|
|
3914
|
+
baseUrl: r = ze,
|
|
3873
3915
|
connection: e,
|
|
3874
3916
|
accessToken: t,
|
|
3875
3917
|
table: s,
|
|
@@ -3879,21 +3921,21 @@ async function Pr({
|
|
|
3879
3921
|
signal: i,
|
|
3880
3922
|
...a
|
|
3881
3923
|
} = {},
|
|
3882
|
-
apiVersion: c =
|
|
3924
|
+
apiVersion: c = Qe
|
|
3883
3925
|
}) {
|
|
3884
3926
|
const l = `${r}/${c}/stats/${e}/${s}/${n}`;
|
|
3885
|
-
return
|
|
3927
|
+
return Dt({
|
|
3886
3928
|
accessToken: t,
|
|
3887
3929
|
signal: i,
|
|
3888
3930
|
url: l,
|
|
3889
|
-
method:
|
|
3931
|
+
method: ue.get,
|
|
3890
3932
|
params: {
|
|
3891
3933
|
...o
|
|
3892
3934
|
},
|
|
3893
3935
|
...a
|
|
3894
3936
|
});
|
|
3895
3937
|
}
|
|
3896
|
-
function
|
|
3938
|
+
function Po(r) {
|
|
3897
3939
|
const e = O(20), {
|
|
3898
3940
|
source: t,
|
|
3899
3941
|
attribute: s,
|
|
@@ -3913,7 +3955,7 @@ function So(r) {
|
|
|
3913
3955
|
let g;
|
|
3914
3956
|
e[5] !== s || e[6] !== t ? (g = [t, s], e[5] = s, e[6] = t, e[7] = g) : g = e[7];
|
|
3915
3957
|
let p;
|
|
3916
|
-
e[8] !== n || e[9] !== s || e[10] !== i || e[11] !== o || e[12] !== t ? (p = () =>
|
|
3958
|
+
e[8] !== n || e[9] !== s || e[10] !== i || e[11] !== o || e[12] !== t ? (p = () => Dr({
|
|
3917
3959
|
source: t,
|
|
3918
3960
|
params: o,
|
|
3919
3961
|
attribute: s,
|
|
@@ -3934,7 +3976,7 @@ function So(r) {
|
|
|
3934
3976
|
...y
|
|
3935
3977
|
}, e[14] = h, e[15] = t, e[16] = g, e[17] = p, e[18] = y, e[19] = v) : v = e[19], ne(v);
|
|
3936
3978
|
}
|
|
3937
|
-
function
|
|
3979
|
+
function Dr({
|
|
3938
3980
|
source: r,
|
|
3939
3981
|
params: e,
|
|
3940
3982
|
attribute: t,
|
|
@@ -3942,7 +3984,7 @@ function kr({
|
|
|
3942
3984
|
fetcherOptions: n
|
|
3943
3985
|
}) {
|
|
3944
3986
|
if (r.type.startsWith("query"))
|
|
3945
|
-
return
|
|
3987
|
+
return Ar({
|
|
3946
3988
|
connection: r.connectionName,
|
|
3947
3989
|
baseUrl: r.apiBaseUrl,
|
|
3948
3990
|
apiVersion: r.apiVersion,
|
|
@@ -3954,7 +3996,7 @@ function kr({
|
|
|
3954
3996
|
fetcherOptions: n
|
|
3955
3997
|
});
|
|
3956
3998
|
if (r.type.startsWith("table"))
|
|
3957
|
-
return
|
|
3999
|
+
return Rr({
|
|
3958
4000
|
connection: r.connectionName,
|
|
3959
4001
|
baseUrl: r.apiBaseUrl,
|
|
3960
4002
|
apiVersion: r.apiVersion,
|
|
@@ -3965,7 +4007,7 @@ function kr({
|
|
|
3965
4007
|
fetcherOptions: n
|
|
3966
4008
|
});
|
|
3967
4009
|
if (r.type.startsWith("tileset"))
|
|
3968
|
-
return
|
|
4010
|
+
return $r({
|
|
3969
4011
|
source: r,
|
|
3970
4012
|
accessToken: s,
|
|
3971
4013
|
target: r.data,
|
|
@@ -3973,13 +4015,13 @@ function kr({
|
|
|
3973
4015
|
});
|
|
3974
4016
|
throw new Error(`Unsupported source type: ${r.type}`);
|
|
3975
4017
|
}
|
|
3976
|
-
async function
|
|
4018
|
+
async function $r({
|
|
3977
4019
|
source: r,
|
|
3978
4020
|
accessToken: e,
|
|
3979
4021
|
target: t,
|
|
3980
4022
|
attribute: s
|
|
3981
4023
|
}) {
|
|
3982
|
-
const n = await
|
|
4024
|
+
const n = await ys({
|
|
3983
4025
|
connectionName: r.connectionName,
|
|
3984
4026
|
apiBaseUrl: r.apiBaseUrl,
|
|
3985
4027
|
accessToken: e,
|
|
@@ -3994,94 +4036,94 @@ async function Cr({
|
|
|
3994
4036
|
return i;
|
|
3995
4037
|
}
|
|
3996
4038
|
export {
|
|
3997
|
-
|
|
3998
|
-
|
|
3999
|
-
|
|
4039
|
+
oo as BasemapsControls,
|
|
4040
|
+
ot as CONVERSIONS_UNITS,
|
|
4041
|
+
$e as CartoBasemapURL,
|
|
4000
4042
|
X as CartoBasemaps,
|
|
4001
|
-
|
|
4002
|
-
|
|
4003
|
-
|
|
4004
|
-
|
|
4005
|
-
|
|
4006
|
-
|
|
4007
|
-
|
|
4008
|
-
|
|
4009
|
-
|
|
4010
|
-
|
|
4011
|
-
|
|
4012
|
-
|
|
4013
|
-
|
|
4014
|
-
|
|
4015
|
-
|
|
4043
|
+
uo as CategoriesModel,
|
|
4044
|
+
Is as CustomCompositeEditMode,
|
|
4045
|
+
Tt as CustomEditableGeojsonLayer,
|
|
4046
|
+
Xs as CustomMeasureAreaMode,
|
|
4047
|
+
en as CustomMeasureBufferMode,
|
|
4048
|
+
Ct as CustomMeasureDistanceMode,
|
|
4049
|
+
et as DEFAULT_LASSO_TOOLS_COLORS,
|
|
4050
|
+
Ns as DEFAULT_LASSO_TOOLS_LAYER_PROPS,
|
|
4051
|
+
Ue as DEFAULT_LASSO_TOOLS_MODES,
|
|
4052
|
+
qe as DEFAULT_LASSO_TOOLS_PROPS,
|
|
4053
|
+
_e as DEFAULT_MASK_LAYER_PROPS,
|
|
4054
|
+
rn as DEFAULT_MEASUREMENT_TOOLS_MODES,
|
|
4055
|
+
on as DEFAULT_MEASUREMENT_TOOLS_UNITS,
|
|
4056
|
+
Ve as DEFAULT_MEASURE_COLORS,
|
|
4057
|
+
ks as DeckGLComponent,
|
|
4016
4058
|
J as EditableEditType,
|
|
4017
|
-
|
|
4018
|
-
|
|
4019
|
-
|
|
4020
|
-
|
|
4021
|
-
|
|
4022
|
-
|
|
4023
|
-
|
|
4024
|
-
|
|
4025
|
-
|
|
4026
|
-
|
|
4059
|
+
fo as FeaturesModel,
|
|
4060
|
+
po as FormulaModel,
|
|
4061
|
+
De as GmapsBasemap,
|
|
4062
|
+
mo as HistogramModel,
|
|
4063
|
+
pe as INTL_UNITS,
|
|
4064
|
+
un as LassoTools,
|
|
4065
|
+
zs as LassoToolsProvider,
|
|
4066
|
+
me as MAPS_BASEMAP,
|
|
4067
|
+
ce as MAP_LASSO_TOOLS_LAYER_ID,
|
|
4068
|
+
Pe as MAP_MASK_LAYER_ID,
|
|
4027
4069
|
re as MAP_MEASURE_LAYER_ID,
|
|
4028
|
-
|
|
4029
|
-
|
|
4070
|
+
nn as MEASUREMENT_TOOLS_UNITS_AREA,
|
|
4071
|
+
at as MEASUREMENT_TOOLS_UNITS_DISTANCE,
|
|
4030
4072
|
Y as MEASUREMENT_TOOLS_UNITS_DISTANCE_VALUES,
|
|
4031
|
-
|
|
4032
|
-
|
|
4033
|
-
|
|
4034
|
-
|
|
4035
|
-
|
|
4073
|
+
ao as MapComponent,
|
|
4074
|
+
Ie as MapMeasurementUnitAuto,
|
|
4075
|
+
sn as MapMeasurementUnitTurf,
|
|
4076
|
+
js as MapProvider,
|
|
4077
|
+
So as MapsProvider,
|
|
4036
4078
|
ee as MapsTypes,
|
|
4037
|
-
|
|
4038
|
-
|
|
4039
|
-
|
|
4040
|
-
|
|
4041
|
-
|
|
4042
|
-
|
|
4043
|
-
|
|
4044
|
-
|
|
4045
|
-
|
|
4046
|
-
|
|
4047
|
-
|
|
4048
|
-
|
|
4049
|
-
|
|
4050
|
-
|
|
4051
|
-
|
|
4052
|
-
|
|
4053
|
-
|
|
4054
|
-
|
|
4055
|
-
|
|
4056
|
-
|
|
4057
|
-
|
|
4058
|
-
|
|
4059
|
-
|
|
4060
|
-
|
|
4061
|
-
|
|
4062
|
-
|
|
4063
|
-
|
|
4064
|
-
|
|
4065
|
-
|
|
4066
|
-
|
|
4067
|
-
|
|
4068
|
-
|
|
4069
|
-
|
|
4070
|
-
|
|
4071
|
-
|
|
4072
|
-
|
|
4079
|
+
Tn as MeasurementTools,
|
|
4080
|
+
mn as MeasurementToolsProvider,
|
|
4081
|
+
yo as RangeModel,
|
|
4082
|
+
ho as ScatterModel,
|
|
4083
|
+
go as TableModel,
|
|
4084
|
+
bo as TimeSeriesModel,
|
|
4085
|
+
Lo as ZoomControls,
|
|
4086
|
+
vo as clientID,
|
|
4087
|
+
st as convertMetersTo,
|
|
4088
|
+
Zs as createLassoToolsStore,
|
|
4089
|
+
Vs as createMapStore,
|
|
4090
|
+
pn as createMeasurementToolsStore,
|
|
4091
|
+
le as formatterTypes,
|
|
4092
|
+
bs as getCursorDefault,
|
|
4093
|
+
io as getDeckController,
|
|
4094
|
+
co as getFilterValues,
|
|
4095
|
+
Gs as getLassoToolsLayer,
|
|
4096
|
+
dn as getMeasurementToolsLayer,
|
|
4097
|
+
ke as getTextLayerFormattedDistance,
|
|
4098
|
+
vs as getTooltipDefault,
|
|
4099
|
+
To as mappingLegendMeridian,
|
|
4100
|
+
Eo as objectToHtml,
|
|
4101
|
+
Rt as sortLayers,
|
|
4102
|
+
Fs as transitionFlyConfig,
|
|
4103
|
+
cr as useCategories,
|
|
4104
|
+
Ot as useEventManager,
|
|
4105
|
+
ur as useFeatures,
|
|
4106
|
+
tr as useFilters,
|
|
4107
|
+
dr as useFormula,
|
|
4108
|
+
fr as useHistogram,
|
|
4109
|
+
br as useLassoToolsSpatialFilter,
|
|
4110
|
+
z as useLassoToolsState,
|
|
4111
|
+
fe as useLayerStore,
|
|
4112
|
+
An as useLayers,
|
|
4113
|
+
wo as useLegend,
|
|
4114
|
+
_o as useMapScreenshot,
|
|
4073
4115
|
x as useMapStore,
|
|
4074
4116
|
G as useMeasurementToolsState,
|
|
4075
|
-
|
|
4076
|
-
|
|
4077
|
-
|
|
4078
|
-
|
|
4079
|
-
|
|
4080
|
-
|
|
4081
|
-
|
|
4082
|
-
|
|
4083
|
-
|
|
4084
|
-
|
|
4085
|
-
|
|
4117
|
+
pr as useRange,
|
|
4118
|
+
mr as useScatter,
|
|
4119
|
+
er as useSource,
|
|
4120
|
+
Le as useSourceStore,
|
|
4121
|
+
lo as useSourceWithFilters,
|
|
4122
|
+
Mo as useSpatialFilter,
|
|
4123
|
+
Po as useStats,
|
|
4124
|
+
yr as useTable,
|
|
4125
|
+
hr as useTimeSeries,
|
|
4126
|
+
gr as useViewportSpatialFilter,
|
|
4127
|
+
ir as useWidgetModel
|
|
4086
4128
|
};
|
|
4087
4129
|
//# sourceMappingURL=index.js.map
|