@carto/ps-react-maps 3.11.10 → 3.11.12
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 -708
- 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/types.d.ts +1 -0
- package/dist/types/editable/measurement-tools/utils.d.ts +3 -2
- 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,48 +1042,71 @@ 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,
|
|
1060
1081
|
options: {
|
|
1061
1082
|
autoSplitNumber: s,
|
|
1062
|
-
|
|
1083
|
+
customFormatter: n,
|
|
1084
|
+
...o
|
|
1063
1085
|
} = {
|
|
1064
|
-
autoSplitNumber:
|
|
1065
|
-
}
|
|
1086
|
+
autoSplitNumber: nt
|
|
1087
|
+
},
|
|
1088
|
+
dimension: i = "length"
|
|
1066
1089
|
}) {
|
|
1067
|
-
const
|
|
1068
|
-
let
|
|
1069
|
-
if (
|
|
1070
|
-
const
|
|
1071
|
-
let
|
|
1072
|
-
|
|
1090
|
+
const a = e === Ie["m-km"], c = e === Ie["ft-mi"], l = a || c;
|
|
1091
|
+
let y, h;
|
|
1092
|
+
if (l) {
|
|
1093
|
+
const p = r < (s ?? nt);
|
|
1094
|
+
let v = p ? I.meter : I.kilometer;
|
|
1095
|
+
y = p ? pe.meter : pe.kilometer, c && (y = p ? pe.feet : pe.mile, v = p ? I.feet : I.mile), h = st(r, v, i);
|
|
1073
1096
|
} else
|
|
1074
|
-
|
|
1075
|
-
|
|
1097
|
+
y = pe[e], h = st(r, e, i);
|
|
1098
|
+
let g = `${St(h, t, {
|
|
1076
1099
|
style: "unit",
|
|
1077
|
-
unit:
|
|
1100
|
+
unit: y,
|
|
1078
1101
|
unitDisplay: "short",
|
|
1079
1102
|
notation: "standard",
|
|
1080
1103
|
minimumFractionDigits: 2,
|
|
1081
1104
|
maximumFractionDigits: 2,
|
|
1082
|
-
...
|
|
1105
|
+
...o
|
|
1083
1106
|
})}`;
|
|
1107
|
+
return i === "area" && (g += "2"), n ? n(g) : g;
|
|
1084
1108
|
}
|
|
1085
|
-
function
|
|
1109
|
+
function io(r, {
|
|
1086
1110
|
hasDoubleClickZoom: e
|
|
1087
1111
|
}) {
|
|
1088
1112
|
return typeof r == "boolean" ? {
|
|
@@ -1092,7 +1116,7 @@ function Xr(r, {
|
|
|
1092
1116
|
doubleClickZoom: e
|
|
1093
1117
|
};
|
|
1094
1118
|
}
|
|
1095
|
-
function
|
|
1119
|
+
function kt(r, e, t) {
|
|
1096
1120
|
if (r > 0) {
|
|
1097
1121
|
const {
|
|
1098
1122
|
formatTooltip: s,
|
|
@@ -1114,7 +1138,7 @@ function Et(r, e, t) {
|
|
|
1114
1138
|
}
|
|
1115
1139
|
return [];
|
|
1116
1140
|
}
|
|
1117
|
-
class
|
|
1141
|
+
class Xs extends Wt {
|
|
1118
1142
|
_isMeasuringSessionFinished = !1;
|
|
1119
1143
|
area = 0;
|
|
1120
1144
|
tooltips = [];
|
|
@@ -1126,11 +1150,13 @@ class zs extends Zt {
|
|
|
1126
1150
|
this._isMeasuringSessionFinished && (this._isMeasuringSessionFinished = !1, this.resetClickSequence(), this.area = 0);
|
|
1127
1151
|
const {
|
|
1128
1152
|
picks: s
|
|
1129
|
-
} = e, n =
|
|
1153
|
+
} = e, n = Yt(s), o = this.getClickSequence();
|
|
1130
1154
|
let i = !1;
|
|
1131
|
-
!n && !this.allowOverlapping(t) && (this.addClickSequence(e), i = !0)
|
|
1155
|
+
!n && !this.allowOverlapping(t) && (this.addClickSequence(e), i = !0);
|
|
1156
|
+
const a = this.getClickSequence(), c = [...a, a[0]];
|
|
1157
|
+
this.area = Ye({
|
|
1132
1158
|
type: "Polygon",
|
|
1133
|
-
coordinates: [
|
|
1159
|
+
coordinates: [c]
|
|
1134
1160
|
}), this.isFinalizedEdition(o, n) ? this.finalizeEdition(t) : i && t.onEdit({
|
|
1135
1161
|
// data is the same
|
|
1136
1162
|
updatedData: t.data,
|
|
@@ -1143,15 +1169,16 @@ class zs extends Zt {
|
|
|
1143
1169
|
handleKeyUp(e, t) {
|
|
1144
1170
|
e.key === "Enter" ? this.getClickSequence().length > 2 ? this.finalizeEdition(t) : this.resetEdition(t) : e.key === "Escape" && this.resetEdition(t);
|
|
1145
1171
|
}
|
|
1172
|
+
updateTooltip(e, t) {
|
|
1173
|
+
const s = rs(e);
|
|
1174
|
+
this.area = Ye(e), this.tooltips = kt(this.area, s.geometry.coordinates, t.modeConfig);
|
|
1175
|
+
}
|
|
1146
1176
|
handlePointerMove(e, t) {
|
|
1147
1177
|
if (this._isMeasuringSessionFinished)
|
|
1148
1178
|
return;
|
|
1149
1179
|
super.handlePointerMove(e, t);
|
|
1150
1180
|
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
|
-
}
|
|
1181
|
+
s && s.geometry.type === "Polygon" && this.updateTooltip(s, t);
|
|
1155
1182
|
}
|
|
1156
1183
|
resetClickSequence() {
|
|
1157
1184
|
super.resetClickSequence(), this.tooltips = [], this._isMeasuringSessionFinished = !1, this.area = 0;
|
|
@@ -1182,7 +1209,7 @@ class zs extends Zt {
|
|
|
1182
1209
|
type: "LineString",
|
|
1183
1210
|
coordinates: [...s.slice(0, s.length - 1)]
|
|
1184
1211
|
};
|
|
1185
|
-
|
|
1212
|
+
os(n, o).features.length > 0 && (t = !0);
|
|
1186
1213
|
}
|
|
1187
1214
|
return t;
|
|
1188
1215
|
}
|
|
@@ -1205,7 +1232,7 @@ class zs extends Zt {
|
|
|
1205
1232
|
positions: this.getClickSequence(),
|
|
1206
1233
|
finished: this._isMeasuringSessionFinished
|
|
1207
1234
|
}
|
|
1208
|
-
}));
|
|
1235
|
+
})), this.updateTooltip(s, e);
|
|
1209
1236
|
}
|
|
1210
1237
|
resetEdition(e) {
|
|
1211
1238
|
this.resetClickSequence(), e.onEdit({
|
|
@@ -1221,15 +1248,16 @@ class zs extends Zt {
|
|
|
1221
1248
|
unit: s,
|
|
1222
1249
|
options: n
|
|
1223
1250
|
}) {
|
|
1224
|
-
return
|
|
1251
|
+
return ke({
|
|
1225
1252
|
meters: e,
|
|
1226
1253
|
locale: t,
|
|
1227
1254
|
unit: s,
|
|
1228
|
-
options: n
|
|
1229
|
-
|
|
1255
|
+
options: n,
|
|
1256
|
+
dimension: "area"
|
|
1257
|
+
});
|
|
1230
1258
|
}
|
|
1231
1259
|
}
|
|
1232
|
-
class
|
|
1260
|
+
class en extends gt {
|
|
1233
1261
|
_isMeasuringSessionFinished = !1;
|
|
1234
1262
|
_currentArea = 0;
|
|
1235
1263
|
resultPolygon = {
|
|
@@ -1241,7 +1269,7 @@ class Ks extends mt {
|
|
|
1241
1269
|
this._isMeasuringSessionFinished && (this._isMeasuringSessionFinished = !1, this.resetClickSequence(), this._currentArea = 0), super.handleClick(e, t);
|
|
1242
1270
|
}
|
|
1243
1271
|
handlePointerMove(e, t) {
|
|
1244
|
-
this._isMeasuringSessionFinished || (super.handlePointerMove(e, t), this.tooltips =
|
|
1272
|
+
this._isMeasuringSessionFinished || (super.handlePointerMove(e, t), this.tooltips = kt(this.areaCircle, this.position, t.modeConfig));
|
|
1245
1273
|
}
|
|
1246
1274
|
checkAndFinishPolygon(e) {
|
|
1247
1275
|
const t = this.getClickSequence(), s = this.getTentativeGuide(e);
|
|
@@ -1294,15 +1322,16 @@ class Ks extends mt {
|
|
|
1294
1322
|
unit: s,
|
|
1295
1323
|
options: n
|
|
1296
1324
|
}) {
|
|
1297
|
-
return
|
|
1325
|
+
return ke({
|
|
1298
1326
|
meters: e,
|
|
1299
1327
|
locale: t,
|
|
1300
1328
|
unit: s,
|
|
1301
|
-
options: n
|
|
1302
|
-
|
|
1329
|
+
options: n,
|
|
1330
|
+
dimension: "area"
|
|
1331
|
+
});
|
|
1303
1332
|
}
|
|
1304
1333
|
}
|
|
1305
|
-
class
|
|
1334
|
+
class Ct extends Jt {
|
|
1306
1335
|
handleClick(e, t) {
|
|
1307
1336
|
super.handleClick(e, t), t.onEdit({
|
|
1308
1337
|
// data is the same
|
|
@@ -1353,7 +1382,7 @@ class Tt extends Kt {
|
|
|
1353
1382
|
unit: s,
|
|
1354
1383
|
options: n
|
|
1355
1384
|
}) {
|
|
1356
|
-
return
|
|
1385
|
+
return ke({
|
|
1357
1386
|
meters: e,
|
|
1358
1387
|
locale: t,
|
|
1359
1388
|
unit: s,
|
|
@@ -1361,7 +1390,7 @@ class Tt extends Kt {
|
|
|
1361
1390
|
});
|
|
1362
1391
|
}
|
|
1363
1392
|
}
|
|
1364
|
-
const re = "mapMeasureLayer",
|
|
1393
|
+
const re = "mapMeasureLayer", tn = {
|
|
1365
1394
|
id: re,
|
|
1366
1395
|
pickable: !1,
|
|
1367
1396
|
billboard: !1,
|
|
@@ -1386,19 +1415,19 @@ const re = "mapMeasureLayer", Qs = {
|
|
|
1386
1415
|
getLineWidth: 2
|
|
1387
1416
|
}
|
|
1388
1417
|
}
|
|
1389
|
-
},
|
|
1418
|
+
}, Ve = {
|
|
1390
1419
|
editing: [23, 102, 214, 255],
|
|
1391
1420
|
finished: [71, 219, 153, 255],
|
|
1392
1421
|
point: [255, 255, 255, 255]
|
|
1393
|
-
},
|
|
1422
|
+
}, rt = {
|
|
1394
1423
|
styles: {
|
|
1395
1424
|
colors: {
|
|
1396
|
-
editing:
|
|
1397
|
-
finished:
|
|
1398
|
-
point:
|
|
1425
|
+
editing: Ve.editing,
|
|
1426
|
+
finished: Ve.finished,
|
|
1427
|
+
point: Ve.point
|
|
1399
1428
|
}
|
|
1400
1429
|
}
|
|
1401
|
-
},
|
|
1430
|
+
}, I = {
|
|
1402
1431
|
kilometer: "kilometer",
|
|
1403
1432
|
meter: "meter",
|
|
1404
1433
|
centimeter: "centimeter",
|
|
@@ -1406,30 +1435,45 @@ const re = "mapMeasureLayer", Qs = {
|
|
|
1406
1435
|
mile: "mile",
|
|
1407
1436
|
yard: "yard",
|
|
1408
1437
|
feet: "feet"
|
|
1409
|
-
},
|
|
1438
|
+
}, oe = {
|
|
1439
|
+
squareMeter: "squareMeter",
|
|
1440
|
+
squareKilometer: "squareKilometer",
|
|
1441
|
+
squareMile: "squareMile",
|
|
1442
|
+
squareFeet: "squareFeet"
|
|
1443
|
+
}, Ie = {
|
|
1410
1444
|
"m-km": "m-km",
|
|
1411
1445
|
"ft-mi": "ft-mi",
|
|
1412
|
-
...
|
|
1413
|
-
},
|
|
1446
|
+
...I
|
|
1447
|
+
}, sn = {
|
|
1414
1448
|
meters: "meters",
|
|
1415
1449
|
kilometer: "kilometers",
|
|
1416
1450
|
mile: "miles"
|
|
1417
|
-
},
|
|
1418
|
-
[
|
|
1419
|
-
[
|
|
1420
|
-
[
|
|
1421
|
-
[
|
|
1422
|
-
[
|
|
1423
|
-
[
|
|
1424
|
-
[
|
|
1425
|
-
},
|
|
1426
|
-
[
|
|
1427
|
-
[
|
|
1428
|
-
[
|
|
1429
|
-
[
|
|
1430
|
-
|
|
1431
|
-
[
|
|
1432
|
-
[
|
|
1451
|
+
}, ot = {
|
|
1452
|
+
[I.kilometer]: "km",
|
|
1453
|
+
[I.meter]: "m",
|
|
1454
|
+
[I.centimeter]: "cm",
|
|
1455
|
+
[I.milimeter]: "mm",
|
|
1456
|
+
[I.mile]: "mi",
|
|
1457
|
+
[I.yard]: "yd",
|
|
1458
|
+
[I.feet]: "ft"
|
|
1459
|
+
}, it = {
|
|
1460
|
+
[oe.squareMeter]: "m2",
|
|
1461
|
+
[oe.squareKilometer]: "km2",
|
|
1462
|
+
[oe.squareMile]: "mi2",
|
|
1463
|
+
[oe.squareFeet]: "ft2"
|
|
1464
|
+
}, Te = {
|
|
1465
|
+
[I.meter]: oe.squareMeter,
|
|
1466
|
+
[I.kilometer]: oe.squareKilometer,
|
|
1467
|
+
[I.mile]: oe.squareMile,
|
|
1468
|
+
[I.feet]: oe.squareFeet
|
|
1469
|
+
}, pe = {
|
|
1470
|
+
[I.kilometer]: "kilometer",
|
|
1471
|
+
[I.meter]: "meter",
|
|
1472
|
+
[I.centimeter]: "centimeter",
|
|
1473
|
+
[I.milimeter]: "millimeter",
|
|
1474
|
+
[I.mile]: "mile",
|
|
1475
|
+
[I.yard]: "yard",
|
|
1476
|
+
[I.feet]: "foot"
|
|
1433
1477
|
}, Y = {
|
|
1434
1478
|
"m-km": {
|
|
1435
1479
|
value: "m-km",
|
|
@@ -1467,25 +1511,25 @@ const re = "mapMeasureLayer", Qs = {
|
|
|
1467
1511
|
value: "feet",
|
|
1468
1512
|
system: "imperial"
|
|
1469
1513
|
}
|
|
1470
|
-
},
|
|
1514
|
+
}, 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
1515
|
distance: {
|
|
1472
1516
|
value: "distance",
|
|
1473
|
-
mode:
|
|
1517
|
+
mode: Ct
|
|
1474
1518
|
},
|
|
1475
1519
|
buffer: {
|
|
1476
1520
|
value: "buffer",
|
|
1477
|
-
mode:
|
|
1521
|
+
mode: en
|
|
1478
1522
|
},
|
|
1479
1523
|
area: {
|
|
1480
1524
|
value: "area",
|
|
1481
|
-
mode:
|
|
1525
|
+
mode: Xs
|
|
1482
1526
|
}
|
|
1483
|
-
},
|
|
1484
|
-
distance:
|
|
1485
|
-
buffer:
|
|
1486
|
-
area:
|
|
1527
|
+
}, on = {
|
|
1528
|
+
distance: at,
|
|
1529
|
+
buffer: at,
|
|
1530
|
+
area: nn
|
|
1487
1531
|
};
|
|
1488
|
-
function
|
|
1532
|
+
function Ot(r) {
|
|
1489
1533
|
const e = O(12), {
|
|
1490
1534
|
mapId: t,
|
|
1491
1535
|
layerId: s
|
|
@@ -1495,15 +1539,15 @@ function Lt(r) {
|
|
|
1495
1539
|
const o = x(n);
|
|
1496
1540
|
let i;
|
|
1497
1541
|
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(
|
|
1542
|
+
const a = x(i), c = x(ln), l = fe(an), {
|
|
1499
1543
|
type: y
|
|
1500
|
-
} =
|
|
1544
|
+
} = me[o], h = y === ee.googleMaps;
|
|
1501
1545
|
let g, p;
|
|
1502
1546
|
e[4] !== c || e[5] !== h || e[6] !== a || e[7] !== s || e[8] !== t || e[9] !== l ? (g = () => {
|
|
1503
1547
|
let v = null;
|
|
1504
1548
|
if (h && a) {
|
|
1505
1549
|
const m = c(t);
|
|
1506
|
-
v = new
|
|
1550
|
+
v = new ss(m.getDiv(), {});
|
|
1507
1551
|
}
|
|
1508
1552
|
l(s, {
|
|
1509
1553
|
props: {
|
|
@@ -1512,32 +1556,32 @@ function Lt(r) {
|
|
|
1512
1556
|
});
|
|
1513
1557
|
}, 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
1558
|
}
|
|
1515
|
-
function
|
|
1559
|
+
function an(r) {
|
|
1516
1560
|
return r.setLayer;
|
|
1517
1561
|
}
|
|
1518
|
-
function
|
|
1562
|
+
function ln(r) {
|
|
1519
1563
|
return r.getOverlayInstance;
|
|
1520
1564
|
}
|
|
1521
|
-
const
|
|
1522
|
-
function
|
|
1565
|
+
const cn = [ce, Pe, re];
|
|
1566
|
+
function un({
|
|
1523
1567
|
children: r,
|
|
1524
1568
|
mapId: e,
|
|
1525
1569
|
defaultProps: {
|
|
1526
|
-
styles: t =
|
|
1570
|
+
styles: t = qe.styles,
|
|
1527
1571
|
labels: s
|
|
1528
1572
|
} = {
|
|
1529
|
-
styles:
|
|
1530
|
-
labels:
|
|
1573
|
+
styles: qe.styles,
|
|
1574
|
+
labels: qe.labels
|
|
1531
1575
|
},
|
|
1532
1576
|
layerProps: n = {},
|
|
1533
1577
|
defaultType: o = "mask"
|
|
1534
1578
|
}) {
|
|
1535
|
-
const i =
|
|
1536
|
-
|
|
1579
|
+
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({});
|
|
1580
|
+
Ot({
|
|
1537
1581
|
mapId: e,
|
|
1538
|
-
layerId:
|
|
1582
|
+
layerId: ce
|
|
1539
1583
|
});
|
|
1540
|
-
const f = te(() =>
|
|
1584
|
+
const f = te(() => Pt({
|
|
1541
1585
|
values: c
|
|
1542
1586
|
}), [c]), b = te(() => ({
|
|
1543
1587
|
type: "FeatureCollection",
|
|
@@ -1547,7 +1591,7 @@ function nn({
|
|
|
1547
1591
|
properties: E.properties,
|
|
1548
1592
|
id: E.id
|
|
1549
1593
|
}))
|
|
1550
|
-
}), [f]), _ = te(() => f.filter((E) => E.properties.visible).map((E) => E.id), [f]), [M, P] = se(b), [D,
|
|
1594
|
+
}), [f]), _ = te(() => f.filter((E) => E.properties.visible).map((E) => E.id), [f]), [M, P] = se(b), [D, N] = se([]), $ = W(() => {
|
|
1551
1595
|
const E = {
|
|
1552
1596
|
...b,
|
|
1553
1597
|
features: b.features.filter((F) => F.properties?.visible)
|
|
@@ -1557,22 +1601,22 @@ function nn({
|
|
|
1557
1601
|
Q(() => {
|
|
1558
1602
|
$();
|
|
1559
1603
|
}, [$]);
|
|
1560
|
-
const
|
|
1561
|
-
Q(() => (p(e, [
|
|
1562
|
-
v(e, [
|
|
1604
|
+
const U = Ee(f.length);
|
|
1605
|
+
Q(() => (p(e, [ce]), () => {
|
|
1606
|
+
v(e, [ce]);
|
|
1563
1607
|
}), [p, e, v]);
|
|
1564
|
-
const
|
|
1565
|
-
$(),
|
|
1566
|
-
}, [e, $, a]),
|
|
1608
|
+
const B = W(() => {
|
|
1609
|
+
$(), N([]), a(e, !1);
|
|
1610
|
+
}, [e, $, a]), q = W(({
|
|
1567
1611
|
editType: E,
|
|
1568
1612
|
updatedData: F
|
|
1569
1613
|
}) => {
|
|
1570
1614
|
if (E === J.cancel) {
|
|
1571
|
-
|
|
1615
|
+
B();
|
|
1572
1616
|
return;
|
|
1573
1617
|
}
|
|
1574
|
-
P(F), E !== J.updateTentativeFeature && E === J.addFeature && (h !== "edit" && (
|
|
1575
|
-
d.properties.label ??= `${s?.mask} ${
|
|
1618
|
+
P(F), E !== J.updateTentativeFeature && E === J.addFeature && (h !== "edit" && (U.current = U.current + 1), F.features.forEach((d, S) => {
|
|
1619
|
+
d.properties.label ??= `${s?.mask} ${U.current}`, d.properties.index = S, d.properties.visible = d.properties.visible ?? !0;
|
|
1576
1620
|
const T = d.id ?? crypto.randomUUID();
|
|
1577
1621
|
l(e, T, {
|
|
1578
1622
|
geometry: d.geometry,
|
|
@@ -1580,8 +1624,8 @@ function nn({
|
|
|
1580
1624
|
// visible: true,
|
|
1581
1625
|
type: o
|
|
1582
1626
|
});
|
|
1583
|
-
}),
|
|
1584
|
-
}, [o,
|
|
1627
|
+
}), B());
|
|
1628
|
+
}, [o, B, s?.mask, e, h, l]);
|
|
1585
1629
|
return Q(() => {
|
|
1586
1630
|
const E = i, {
|
|
1587
1631
|
border: F,
|
|
@@ -1590,7 +1634,7 @@ function nn({
|
|
|
1590
1634
|
} = t.colors.editing, {
|
|
1591
1635
|
border: T,
|
|
1592
1636
|
fill: C
|
|
1593
|
-
} = t.colors.finished, k =
|
|
1637
|
+
} = t.colors.finished, k = Gs({
|
|
1594
1638
|
layerProps: {
|
|
1595
1639
|
...n.mask,
|
|
1596
1640
|
pickable: E,
|
|
@@ -1601,7 +1645,7 @@ function nn({
|
|
|
1601
1645
|
},
|
|
1602
1646
|
onClick: (L) => {
|
|
1603
1647
|
const R = L;
|
|
1604
|
-
R.isGuide ||
|
|
1648
|
+
R.isGuide || N([R.index]);
|
|
1605
1649
|
}
|
|
1606
1650
|
},
|
|
1607
1651
|
getLineColor: (L) => D[0] === L.properties.index ? F : T,
|
|
@@ -1610,24 +1654,24 @@ function nn({
|
|
|
1610
1654
|
fill: d,
|
|
1611
1655
|
outline: F
|
|
1612
1656
|
},
|
|
1613
|
-
onEdit:
|
|
1614
|
-
mode: E ? y : new
|
|
1657
|
+
onEdit: q,
|
|
1658
|
+
mode: E ? y : new Xt()
|
|
1615
1659
|
});
|
|
1616
|
-
g(
|
|
1617
|
-
}, [M, i, n.mask, _, y,
|
|
1660
|
+
g(ce, k);
|
|
1661
|
+
}, [M, i, n.mask, _, y, q, D, g, t.colors.editing, t.colors.finished]), Q(() => {
|
|
1618
1662
|
const E = {
|
|
1619
|
-
...
|
|
1663
|
+
..._e,
|
|
1620
1664
|
data: b,
|
|
1621
1665
|
getFilterValue: (F) => Number(_.includes(F.id)),
|
|
1622
1666
|
updateTriggers: {
|
|
1623
1667
|
getFilterValue: _
|
|
1624
1668
|
}
|
|
1625
1669
|
};
|
|
1626
|
-
return g(
|
|
1627
|
-
type:
|
|
1670
|
+
return g(_e.id, {
|
|
1671
|
+
type: ns,
|
|
1628
1672
|
props: E
|
|
1629
|
-
}), p(e, [
|
|
1630
|
-
v(e, [
|
|
1673
|
+
}), p(e, [_e.id]), () => {
|
|
1674
|
+
v(e, [_e.id]);
|
|
1631
1675
|
};
|
|
1632
1676
|
}, [p, e, b, _, v, g]), Q(() => {
|
|
1633
1677
|
m?.forEach((E) => {
|
|
@@ -1637,24 +1681,24 @@ function nn({
|
|
|
1637
1681
|
g(E, {
|
|
1638
1682
|
props: {
|
|
1639
1683
|
pickable: d,
|
|
1640
|
-
extensions: [new
|
|
1641
|
-
maskId: !i && _.length ?
|
|
1684
|
+
extensions: [new ts()],
|
|
1685
|
+
maskId: !i && _.length ? Pe : void 0
|
|
1642
1686
|
}
|
|
1643
1687
|
});
|
|
1644
1688
|
});
|
|
1645
1689
|
}, [i, w, e, m, _.length, g]), r;
|
|
1646
1690
|
}
|
|
1647
|
-
|
|
1648
|
-
function
|
|
1691
|
+
un.Controls = Qs;
|
|
1692
|
+
function dn({
|
|
1649
1693
|
mode: r,
|
|
1650
1694
|
...e
|
|
1651
1695
|
}) {
|
|
1652
|
-
const t =
|
|
1696
|
+
const t = fn({
|
|
1653
1697
|
mode: r,
|
|
1654
1698
|
...e
|
|
1655
1699
|
});
|
|
1656
1700
|
return {
|
|
1657
|
-
type:
|
|
1701
|
+
type: Tt,
|
|
1658
1702
|
props: {
|
|
1659
1703
|
...t,
|
|
1660
1704
|
mode: r,
|
|
@@ -1662,7 +1706,7 @@ function rn({
|
|
|
1662
1706
|
}
|
|
1663
1707
|
};
|
|
1664
1708
|
}
|
|
1665
|
-
function
|
|
1709
|
+
function fn({
|
|
1666
1710
|
mode: r,
|
|
1667
1711
|
layerProps: e,
|
|
1668
1712
|
locale: t,
|
|
@@ -1673,14 +1717,14 @@ function on({
|
|
|
1673
1717
|
pointColor: a,
|
|
1674
1718
|
textOptions: c
|
|
1675
1719
|
}) {
|
|
1676
|
-
const l =
|
|
1720
|
+
const l = ie(e, {
|
|
1677
1721
|
visible: s,
|
|
1678
1722
|
pickable: s,
|
|
1679
1723
|
modeConfig: {
|
|
1680
1724
|
// We force distance due to conversion is addressed at feature getText level
|
|
1681
1725
|
formatTooltip: (g) => g,
|
|
1682
1726
|
turfOptions: {
|
|
1683
|
-
units:
|
|
1727
|
+
units: sn.meters
|
|
1684
1728
|
}
|
|
1685
1729
|
},
|
|
1686
1730
|
...s && {
|
|
@@ -1706,7 +1750,7 @@ function on({
|
|
|
1706
1750
|
}
|
|
1707
1751
|
}
|
|
1708
1752
|
}
|
|
1709
|
-
}), y =
|
|
1753
|
+
}), y = ie(tn, {
|
|
1710
1754
|
_subLayerProps: {
|
|
1711
1755
|
guides: {
|
|
1712
1756
|
getLineColor: i,
|
|
@@ -1716,21 +1760,21 @@ function on({
|
|
|
1716
1760
|
getEditHandlePointColor: a,
|
|
1717
1761
|
getEditHandlePointOutlineColor: i
|
|
1718
1762
|
});
|
|
1719
|
-
return
|
|
1763
|
+
return ie(y, l);
|
|
1720
1764
|
}
|
|
1721
|
-
const
|
|
1765
|
+
const pn = (r) => Ke()((e) => ({
|
|
1722
1766
|
measurements: r.reduce((s, n) => {
|
|
1723
1767
|
const {
|
|
1724
1768
|
mapId: o,
|
|
1725
1769
|
modeSelected: i,
|
|
1726
|
-
modes: a =
|
|
1727
|
-
units: c =
|
|
1770
|
+
modes: a = rn,
|
|
1771
|
+
units: c = on,
|
|
1728
1772
|
distance: l = 0,
|
|
1729
1773
|
finished: y = !1,
|
|
1730
1774
|
locale: h = "en",
|
|
1731
1775
|
positions: g = [],
|
|
1732
1776
|
clearLayerOnStart: p = !1,
|
|
1733
|
-
unit: v =
|
|
1777
|
+
unit: v = Ie["m-km"],
|
|
1734
1778
|
enabled: m = !1
|
|
1735
1779
|
} = n;
|
|
1736
1780
|
return s[o] = {
|
|
@@ -1746,7 +1790,7 @@ const an = (r) => He()((e) => ({
|
|
|
1746
1790
|
enabled: m
|
|
1747
1791
|
}, s;
|
|
1748
1792
|
}, {}),
|
|
1749
|
-
mode:
|
|
1793
|
+
mode: Ct,
|
|
1750
1794
|
setModeInstance: (s, n) => {
|
|
1751
1795
|
e((o) => ({
|
|
1752
1796
|
measurements: {
|
|
@@ -1835,25 +1879,25 @@ const an = (r) => He()((e) => ({
|
|
|
1835
1879
|
}
|
|
1836
1880
|
}));
|
|
1837
1881
|
}
|
|
1838
|
-
})),
|
|
1839
|
-
function
|
|
1882
|
+
})), Ft = He({});
|
|
1883
|
+
function mn(r) {
|
|
1840
1884
|
const e = O(5), {
|
|
1841
1885
|
children: t,
|
|
1842
1886
|
values: s
|
|
1843
1887
|
} = r;
|
|
1844
1888
|
let n;
|
|
1845
|
-
e[0] !== s ? (n =
|
|
1889
|
+
e[0] !== s ? (n = pn(s), e[0] = s, e[1] = n) : n = e[1];
|
|
1846
1890
|
const [o] = se(n);
|
|
1847
1891
|
let i;
|
|
1848
|
-
return e[2] !== t || e[3] !== o ? (i = /* @__PURE__ */
|
|
1892
|
+
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
1893
|
}
|
|
1850
1894
|
function G(r) {
|
|
1851
|
-
const e =
|
|
1895
|
+
const e = Ge(Ft);
|
|
1852
1896
|
if (!Object.keys(e).length)
|
|
1853
1897
|
throw new Error("Missing MeasurementToolsProvider in the tree");
|
|
1854
|
-
return
|
|
1898
|
+
return Ze(e, r);
|
|
1855
1899
|
}
|
|
1856
|
-
function
|
|
1900
|
+
function At(r) {
|
|
1857
1901
|
const e = O(74), {
|
|
1858
1902
|
mapId: t
|
|
1859
1903
|
} = r;
|
|
@@ -1865,7 +1909,7 @@ function kt(r) {
|
|
|
1865
1909
|
const i = G(o);
|
|
1866
1910
|
let a;
|
|
1867
1911
|
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(
|
|
1912
|
+
const c = G(a), l = G(_n);
|
|
1869
1913
|
let y;
|
|
1870
1914
|
e[6] !== l || e[7] !== t ? (y = (A) => l(t, A), e[6] = l, e[7] = t, e[8] = y) : y = e[8];
|
|
1871
1915
|
const h = y;
|
|
@@ -1874,60 +1918,60 @@ function kt(r) {
|
|
|
1874
1918
|
const p = G(g);
|
|
1875
1919
|
let v;
|
|
1876
1920
|
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(
|
|
1921
|
+
const m = G(v), w = G(wn);
|
|
1878
1922
|
let u;
|
|
1879
1923
|
e[13] !== w || e[14] !== t ? (u = (A) => w(t, A), e[13] = w, e[14] = t, e[15] = u) : u = e[15];
|
|
1880
1924
|
const f = u;
|
|
1881
1925
|
let b;
|
|
1882
1926
|
e[16] !== t ? (b = (A) => A.measurements[t].modeSelected, e[16] = t, e[17] = b) : b = e[17];
|
|
1883
|
-
const _ = G(b), M = G(
|
|
1927
|
+
const _ = G(b), M = G(Sn);
|
|
1884
1928
|
let P;
|
|
1885
1929
|
e[18] !== M || e[19] !== t || e[20] !== f ? (P = (A) => {
|
|
1886
1930
|
f(!!A), M(t, A);
|
|
1887
1931
|
}, e[18] = M, e[19] = t, e[20] = f, e[21] = P) : P = e[21];
|
|
1888
1932
|
const D = P;
|
|
1889
|
-
let
|
|
1890
|
-
e[22] !== t ? (
|
|
1891
|
-
const $ = G(
|
|
1892
|
-
let
|
|
1893
|
-
e[24] !==
|
|
1894
|
-
const
|
|
1933
|
+
let N;
|
|
1934
|
+
e[22] !== t ? (N = (A) => A.measurements[t].finished, e[22] = t, e[23] = N) : N = e[23];
|
|
1935
|
+
const $ = G(N), U = G(vn);
|
|
1936
|
+
let B;
|
|
1937
|
+
e[24] !== U || e[25] !== t ? (B = (A) => U(t, A), e[24] = U, e[25] = t, e[26] = B) : B = e[26];
|
|
1938
|
+
const q = B;
|
|
1895
1939
|
let E;
|
|
1896
1940
|
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(
|
|
1941
|
+
const F = G(E), d = G(bn);
|
|
1898
1942
|
let S;
|
|
1899
1943
|
e[29] !== d || e[30] !== t ? (S = (A) => d(t, A), e[29] = d, e[30] = t, e[31] = S) : S = e[31];
|
|
1900
1944
|
const T = S;
|
|
1901
1945
|
let C;
|
|
1902
1946
|
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(
|
|
1947
|
+
const k = G(C), L = G(gn);
|
|
1904
1948
|
let R;
|
|
1905
1949
|
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
|
|
1950
|
+
const j = R;
|
|
1907
1951
|
let H;
|
|
1908
1952
|
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;
|
|
1953
|
+
const V = G(H), Z = G(hn);
|
|
1913
1954
|
let ye;
|
|
1914
|
-
e[
|
|
1915
|
-
const
|
|
1955
|
+
e[39] !== Z || e[40] !== t ? (ye = (A) => Z(t, A), e[39] = Z, e[40] = t, e[41] = ye) : ye = e[41];
|
|
1956
|
+
const de = ye;
|
|
1916
1957
|
let he;
|
|
1917
|
-
e[
|
|
1918
|
-
const Ce = he;
|
|
1958
|
+
e[42] !== t ? (he = (A) => A.measurements[t].unit, e[42] = t, e[43] = he) : he = e[43];
|
|
1959
|
+
const Ce = G(he), Oe = G(yn);
|
|
1919
1960
|
let ge;
|
|
1920
|
-
e[
|
|
1921
|
-
|
|
1922
|
-
}, e[47] = k, e[48] = ue, e[49] = ge) : ge = e[49];
|
|
1923
|
-
const Oe = ge;
|
|
1961
|
+
e[44] !== Oe || e[45] !== t ? (ge = (A) => Oe(t, A), e[44] = Oe, e[45] = t, e[46] = ge) : ge = e[46];
|
|
1962
|
+
const Fe = ge;
|
|
1924
1963
|
let be;
|
|
1925
|
-
e[
|
|
1926
|
-
|
|
1927
|
-
}, e[
|
|
1928
|
-
const
|
|
1964
|
+
e[47] !== k || e[48] !== de ? (be = () => {
|
|
1965
|
+
k?.resetClickSequence(), de([]);
|
|
1966
|
+
}, e[47] = k, e[48] = de, e[49] = be) : be = e[49];
|
|
1967
|
+
const Ae = be;
|
|
1929
1968
|
let ve;
|
|
1930
|
-
|
|
1969
|
+
e[50] !== f ? (ve = (A) => {
|
|
1970
|
+
f(A);
|
|
1971
|
+
}, e[50] = f, e[51] = ve) : ve = e[51];
|
|
1972
|
+
const Re = ve;
|
|
1973
|
+
let Se;
|
|
1974
|
+
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
1975
|
modes: n,
|
|
1932
1976
|
units: i,
|
|
1933
1977
|
distance: c,
|
|
@@ -1938,44 +1982,44 @@ function kt(r) {
|
|
|
1938
1982
|
locale: F,
|
|
1939
1983
|
modeInstance: k,
|
|
1940
1984
|
positions: V,
|
|
1941
|
-
unit:
|
|
1985
|
+
unit: Ce,
|
|
1942
1986
|
setDistance: h,
|
|
1943
1987
|
setModeSelected: D,
|
|
1944
|
-
setFinished:
|
|
1988
|
+
setFinished: q,
|
|
1945
1989
|
setLocale: T,
|
|
1946
|
-
setPositions:
|
|
1947
|
-
setUnit:
|
|
1990
|
+
setPositions: de,
|
|
1991
|
+
setUnit: Fe,
|
|
1948
1992
|
setEnabled: f,
|
|
1949
|
-
toggleLayer:
|
|
1950
|
-
clearLayer:
|
|
1951
|
-
setModeInstance:
|
|
1952
|
-
}, e[52] =
|
|
1993
|
+
toggleLayer: Re,
|
|
1994
|
+
clearLayer: Ae,
|
|
1995
|
+
setModeInstance: j
|
|
1996
|
+
}, 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
1997
|
}
|
|
1954
|
-
function
|
|
1998
|
+
function yn(r) {
|
|
1955
1999
|
return r.setUnit;
|
|
1956
2000
|
}
|
|
1957
|
-
function
|
|
2001
|
+
function hn(r) {
|
|
1958
2002
|
return r.setPositions;
|
|
1959
2003
|
}
|
|
1960
|
-
function
|
|
2004
|
+
function gn(r) {
|
|
1961
2005
|
return r.setModeInstance;
|
|
1962
2006
|
}
|
|
1963
|
-
function
|
|
2007
|
+
function bn(r) {
|
|
1964
2008
|
return r.setLocale;
|
|
1965
2009
|
}
|
|
1966
|
-
function
|
|
2010
|
+
function vn(r) {
|
|
1967
2011
|
return r.setFinished;
|
|
1968
2012
|
}
|
|
1969
|
-
function
|
|
2013
|
+
function Sn(r) {
|
|
1970
2014
|
return r.setModeSelected;
|
|
1971
2015
|
}
|
|
1972
|
-
function
|
|
2016
|
+
function wn(r) {
|
|
1973
2017
|
return r.setEnabled;
|
|
1974
2018
|
}
|
|
1975
|
-
function
|
|
2019
|
+
function _n(r) {
|
|
1976
2020
|
return r.setDistance;
|
|
1977
2021
|
}
|
|
1978
|
-
function
|
|
2022
|
+
function Mn(r) {
|
|
1979
2023
|
const e = O(42), {
|
|
1980
2024
|
mapId: t,
|
|
1981
2025
|
textOptions: s,
|
|
@@ -2004,12 +2048,12 @@ function gn(r) {
|
|
|
2004
2048
|
positions: M,
|
|
2005
2049
|
setPositions: P,
|
|
2006
2050
|
unit: D,
|
|
2007
|
-
setUnit:
|
|
2051
|
+
setUnit: N,
|
|
2008
2052
|
clearLayer: $,
|
|
2009
|
-
toggleLayer:
|
|
2010
|
-
} =
|
|
2011
|
-
let
|
|
2012
|
-
e[2] !== h || e[3] !== i || e[4] !== _ || e[5] !== P ? (
|
|
2053
|
+
toggleLayer: U
|
|
2054
|
+
} = At(o);
|
|
2055
|
+
let B;
|
|
2056
|
+
e[2] !== h || e[3] !== i || e[4] !== _ || e[5] !== P ? (B = () => {
|
|
2013
2057
|
if (h && i[h]) {
|
|
2014
2058
|
const T = i[h].mode;
|
|
2015
2059
|
_(new T());
|
|
@@ -2017,16 +2061,16 @@ function gn(r) {
|
|
|
2017
2061
|
return () => {
|
|
2018
2062
|
P([]);
|
|
2019
2063
|
};
|
|
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 ? (
|
|
2064
|
+
}, e[2] = h, e[3] = i, e[4] = _, e[5] = P, e[6] = B) : B = e[6];
|
|
2065
|
+
let q;
|
|
2066
|
+
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
2067
|
let E;
|
|
2024
|
-
e[13] !==
|
|
2025
|
-
T && (y || !m) && $(),
|
|
2026
|
-
}, e[13] =
|
|
2068
|
+
e[13] !== U || e[14] !== $ || e[15] !== y || e[16] !== m ? (E = (T) => {
|
|
2069
|
+
T && (y || !m) && $(), U(T);
|
|
2070
|
+
}, e[13] = U, e[14] = $, e[15] = y, e[16] = m, e[17] = E) : E = e[17];
|
|
2027
2071
|
const F = E, d = !!y;
|
|
2028
2072
|
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] !==
|
|
2073
|
+
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
2074
|
mapId: t,
|
|
2031
2075
|
distance: c,
|
|
2032
2076
|
enabled: p,
|
|
@@ -2038,7 +2082,7 @@ function gn(r) {
|
|
|
2038
2082
|
modeSelected: h,
|
|
2039
2083
|
modes: i,
|
|
2040
2084
|
units: a,
|
|
2041
|
-
value:
|
|
2085
|
+
value: ke({
|
|
2042
2086
|
meters: c,
|
|
2043
2087
|
unit: D,
|
|
2044
2088
|
locale: u,
|
|
@@ -2050,14 +2094,14 @@ function gn(r) {
|
|
|
2050
2094
|
setFinished: w,
|
|
2051
2095
|
setLocale: f,
|
|
2052
2096
|
setPositions: P,
|
|
2053
|
-
setUnit:
|
|
2097
|
+
setUnit: N,
|
|
2054
2098
|
setEnabled: v,
|
|
2055
2099
|
toggleLayer: F,
|
|
2056
2100
|
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] =
|
|
2101
|
+
}), 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
2102
|
}
|
|
2059
|
-
const
|
|
2060
|
-
function
|
|
2103
|
+
const En = [re];
|
|
2104
|
+
function Tn(r) {
|
|
2061
2105
|
const e = O(50), {
|
|
2062
2106
|
children: t,
|
|
2063
2107
|
mapId: s,
|
|
@@ -2067,11 +2111,11 @@ function vn(r) {
|
|
|
2067
2111
|
} = r;
|
|
2068
2112
|
let a;
|
|
2069
2113
|
e[0] !== n ? (a = n === void 0 ? {
|
|
2070
|
-
styles:
|
|
2114
|
+
styles: rt.styles
|
|
2071
2115
|
} : n, e[0] = n, e[1] = a) : a = e[1];
|
|
2072
2116
|
const {
|
|
2073
2117
|
styles: c
|
|
2074
|
-
} = a, l = c === void 0 ?
|
|
2118
|
+
} = a, l = c === void 0 ? rt.styles : c;
|
|
2075
2119
|
let y;
|
|
2076
2120
|
e[2] !== s ? (y = {
|
|
2077
2121
|
mapId: s
|
|
@@ -2086,66 +2130,66 @@ function vn(r) {
|
|
|
2086
2130
|
setPositions: u,
|
|
2087
2131
|
unit: f,
|
|
2088
2132
|
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
|
|
2133
|
+
} = At(y), _ = fe(Fn), M = x(On), P = x(Cn), D = x(kn);
|
|
2134
|
+
let N;
|
|
2135
|
+
e[4] !== s ? (N = (j) => j.maps[s]?.layers.filter(Pn), e[4] = s, e[5] = N) : N = e[5];
|
|
2136
|
+
const $ = x(bt(N)), U = x(Ln);
|
|
2137
|
+
let B;
|
|
2138
|
+
e[6] === Symbol.for("react.memo_cache_sentinel") ? (B = {}, e[6] = B) : B = e[6];
|
|
2139
|
+
const q = Ee(B);
|
|
2096
2140
|
let E;
|
|
2097
2141
|
e[7] !== s ? (E = {
|
|
2098
2142
|
mapId: s,
|
|
2099
2143
|
layerId: re
|
|
2100
|
-
}, e[7] = s, e[8] = E) : E = e[8],
|
|
2144
|
+
}, e[7] = s, e[8] = E) : E = e[8], Ot(E);
|
|
2101
2145
|
let F;
|
|
2102
|
-
e[9] !== P || e[10] !== p || e[11] !==
|
|
2103
|
-
const
|
|
2146
|
+
e[9] !== P || e[10] !== p || e[11] !== U || e[12] !== s || e[13] !== D || e[14] !== M ? (F = () => {
|
|
2147
|
+
const j = U(s)?.props.controller;
|
|
2104
2148
|
return p && (P(s, [re]), M(s, {
|
|
2105
2149
|
doubleClickZoom: !1
|
|
2106
2150
|
})), () => {
|
|
2107
|
-
D(s, [re]), M(s,
|
|
2151
|
+
D(s, [re]), M(s, j);
|
|
2108
2152
|
};
|
|
2109
|
-
}, e[9] = P, e[10] = p, e[11] =
|
|
2153
|
+
}, 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
2154
|
let d;
|
|
2111
|
-
e[16] !== P || e[17] !== g || e[18] !== p || e[19] !==
|
|
2155
|
+
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
2156
|
let S, T;
|
|
2113
|
-
e[24] !== p || e[25] !==
|
|
2114
|
-
$?.forEach((
|
|
2115
|
-
const H =
|
|
2116
|
-
p && (
|
|
2117
|
-
const V = !p && (
|
|
2118
|
-
_(
|
|
2157
|
+
e[24] !== p || e[25] !== U || e[26] !== s || e[27] !== $ || e[28] !== _ ? (S = () => {
|
|
2158
|
+
$?.forEach((j) => {
|
|
2159
|
+
const H = U(s)?.props.layers.find((Z) => Z.props.id === j);
|
|
2160
|
+
p && (q.current[j] = H?.props.pickable);
|
|
2161
|
+
const V = !p && (q.current[j] ?? H?.props.pickable);
|
|
2162
|
+
_(j, {
|
|
2119
2163
|
props: {
|
|
2120
2164
|
pickable: V
|
|
2121
2165
|
}
|
|
2122
2166
|
});
|
|
2123
2167
|
});
|
|
2124
|
-
}, T = [p,
|
|
2168
|
+
}, 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
2169
|
let C;
|
|
2126
|
-
e[31] !== b || e[32] !== h || e[33] !== m || e[34] !== u ? (C = (
|
|
2170
|
+
e[31] !== b || e[32] !== h || e[33] !== m || e[34] !== u ? (C = (j) => {
|
|
2127
2171
|
const {
|
|
2128
2172
|
editType: H,
|
|
2129
2173
|
editContext: V
|
|
2130
|
-
} =
|
|
2174
|
+
} = j;
|
|
2131
2175
|
if (H === J.cancel) {
|
|
2132
2176
|
b.resetClickSequence();
|
|
2133
2177
|
return;
|
|
2134
2178
|
}
|
|
2135
2179
|
H === J.addPosition && h(V.distance), m(!!V.finished);
|
|
2136
|
-
const
|
|
2137
|
-
|
|
2180
|
+
const Z = V.positions;
|
|
2181
|
+
Z?.length && u(Z);
|
|
2138
2182
|
}, e[31] = b, e[32] = h, e[33] = m, e[34] = u, e[35] = C) : C = e[35];
|
|
2139
2183
|
const k = C;
|
|
2140
2184
|
let L, R;
|
|
2141
2185
|
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
|
|
2186
|
+
const j = v ? l.colors.finished : l.colors.editing, H = v ? l.colors.finished : l.colors.point, V = dn({
|
|
2143
2187
|
layerProps: {
|
|
2144
2188
|
...o,
|
|
2145
2189
|
pickable: o?.pickable ?? !v
|
|
2146
2190
|
},
|
|
2147
2191
|
enabled: p,
|
|
2148
|
-
guideColor:
|
|
2192
|
+
guideColor: j,
|
|
2149
2193
|
pointColor: H,
|
|
2150
2194
|
locale: w,
|
|
2151
2195
|
onEdit: k,
|
|
@@ -2156,26 +2200,26 @@ function vn(r) {
|
|
|
2156
2200
|
_(re, V);
|
|
2157
2201
|
}, 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
2202
|
}
|
|
2159
|
-
function
|
|
2203
|
+
function Ln(r) {
|
|
2160
2204
|
return r.getDeckInstance;
|
|
2161
2205
|
}
|
|
2162
|
-
function
|
|
2163
|
-
return !
|
|
2206
|
+
function Pn(r) {
|
|
2207
|
+
return !En.includes(r);
|
|
2164
2208
|
}
|
|
2165
|
-
function
|
|
2209
|
+
function kn(r) {
|
|
2166
2210
|
return r.removeLayers;
|
|
2167
2211
|
}
|
|
2168
|
-
function
|
|
2212
|
+
function Cn(r) {
|
|
2169
2213
|
return r.addLayers;
|
|
2170
2214
|
}
|
|
2171
|
-
function
|
|
2215
|
+
function On(r) {
|
|
2172
2216
|
return r.setController;
|
|
2173
2217
|
}
|
|
2174
|
-
function
|
|
2218
|
+
function Fn(r) {
|
|
2175
2219
|
return r.setLayer;
|
|
2176
2220
|
}
|
|
2177
|
-
|
|
2178
|
-
function
|
|
2221
|
+
Tn.Controls = Mn;
|
|
2222
|
+
function An(r) {
|
|
2179
2223
|
const e = O(7), {
|
|
2180
2224
|
mapId: t
|
|
2181
2225
|
} = r;
|
|
@@ -2183,28 +2227,28 @@ function Ln(r) {
|
|
|
2183
2227
|
e[0] !== t ? (s = (l) => l.maps[t], e[0] = t, e[1] = s) : s = e[1];
|
|
2184
2228
|
const {
|
|
2185
2229
|
layers: n
|
|
2186
|
-
} = x(s), o =
|
|
2230
|
+
} = x(s), o = fe(Dn);
|
|
2187
2231
|
let i, a;
|
|
2188
2232
|
if (e[2] !== o || e[3] !== n) {
|
|
2189
2233
|
let l;
|
|
2190
|
-
e[5] !== o ? (l = (y) => o[y], e[5] = o, e[6] = l) : l = e[6], a = n.map(l).filter(
|
|
2234
|
+
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
2235
|
} else
|
|
2192
2236
|
a = e[4];
|
|
2193
2237
|
return i = a, i;
|
|
2194
2238
|
}
|
|
2195
|
-
function
|
|
2239
|
+
function Rn(r) {
|
|
2196
2240
|
return !!r;
|
|
2197
2241
|
}
|
|
2198
|
-
function
|
|
2242
|
+
function Dn(r) {
|
|
2199
2243
|
return r.layers;
|
|
2200
2244
|
}
|
|
2201
|
-
const
|
|
2202
|
-
function
|
|
2203
|
-
const e = r.filter((s) => !
|
|
2245
|
+
const lt = [Pe, ce, re];
|
|
2246
|
+
function Rt(r) {
|
|
2247
|
+
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
2248
|
return [...e, ...t];
|
|
2205
2249
|
}
|
|
2206
|
-
const
|
|
2207
|
-
function
|
|
2250
|
+
const $n = 200;
|
|
2251
|
+
function ao(r) {
|
|
2208
2252
|
const e = O(51);
|
|
2209
2253
|
let t, s, n, o;
|
|
2210
2254
|
e[0] !== r ? ({
|
|
@@ -2221,33 +2265,33 @@ function eo(r) {
|
|
|
2221
2265
|
const l = x(c);
|
|
2222
2266
|
let y;
|
|
2223
2267
|
e[9] !== t ? (y = (R) => R.maps[t].overlayRef, e[9] = t, e[10] = y) : y = e[10];
|
|
2224
|
-
const h = x(y), g =
|
|
2268
|
+
const h = x(y), g = Ee(null);
|
|
2225
2269
|
let p;
|
|
2226
2270
|
e[11] !== t ? (p = (R) => R.viewStates[t], e[11] = t, e[12] = p) : p = e[12];
|
|
2227
2271
|
const v = x(p);
|
|
2228
2272
|
let m;
|
|
2229
2273
|
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(
|
|
2274
|
+
const w = x(m), u = x(Bn), f = x(jn), b = x(Vn), _ = x(Un), M = x(qn);
|
|
2231
2275
|
let P;
|
|
2232
2276
|
e[15] !== t ? (P = {
|
|
2233
2277
|
mapId: t
|
|
2234
2278
|
}, 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
|
|
2279
|
+
const D = An(P);
|
|
2280
|
+
let N, $;
|
|
2281
|
+
e[17] !== D ? ($ = Rt(D), e[17] = D, e[18] = $) : $ = e[18], N = $;
|
|
2282
|
+
const U = N;
|
|
2283
|
+
let B;
|
|
2284
|
+
e[19] !== t || e[20] !== n || e[21] !== f || e[22] !== M ? (B = (R) => {
|
|
2285
|
+
const j = f;
|
|
2242
2286
|
if (g.current && clearInterval(g.current), g.current = setTimeout(() => {
|
|
2243
2287
|
M(t);
|
|
2244
|
-
},
|
|
2245
|
-
n(R,
|
|
2288
|
+
}, $n), n) {
|
|
2289
|
+
n(R, j);
|
|
2246
2290
|
return;
|
|
2247
2291
|
}
|
|
2248
|
-
|
|
2249
|
-
}, e[19] = t, e[20] = n, e[21] = f, e[22] = M, e[23] =
|
|
2250
|
-
const
|
|
2292
|
+
j(t, R.viewState);
|
|
2293
|
+
}, e[19] = t, e[20] = n, e[21] = f, e[22] = M, e[23] = B) : B = e[23];
|
|
2294
|
+
const q = B;
|
|
2251
2295
|
let E;
|
|
2252
2296
|
e[24] !== t || e[25] !== s || e[26] !== b || e[27] !== M ? (E = (R) => {
|
|
2253
2297
|
b(t, R), s?.(R), M(t);
|
|
@@ -2255,41 +2299,41 @@ function eo(r) {
|
|
|
2255
2299
|
const F = E;
|
|
2256
2300
|
let d;
|
|
2257
2301
|
e[29] !== u || e[30] !== t || e[31] !== o || e[32] !== _ ? (d = (R) => {
|
|
2258
|
-
const H = !!u(t)?.props.layers?.every(
|
|
2302
|
+
const H = !!u(t)?.props.layers?.every(xn);
|
|
2259
2303
|
_(t, H), o.onAfterRender?.(R);
|
|
2260
2304
|
}, e[29] = u, e[30] = t, e[31] = o, e[32] = _, e[33] = d) : d = e[33];
|
|
2261
2305
|
const S = d, T = o.onDragEnd;
|
|
2262
2306
|
let C;
|
|
2263
2307
|
e[34] !== T || e[35] !== t || e[36] !== M ? (C = (...R) => {
|
|
2264
|
-
const
|
|
2265
|
-
M(t), T && T(...
|
|
2308
|
+
const j = R;
|
|
2309
|
+
M(t), T && T(...j);
|
|
2266
2310
|
}, e[34] = T, e[35] = t, e[36] = M, e[37] = C) : C = e[37];
|
|
2267
2311
|
const k = C;
|
|
2268
2312
|
let L;
|
|
2269
|
-
return e[38] !== a || e[39] !==
|
|
2313
|
+
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
2314
|
}
|
|
2271
|
-
function
|
|
2315
|
+
function xn(r) {
|
|
2272
2316
|
return r?.isLoaded;
|
|
2273
2317
|
}
|
|
2274
|
-
function
|
|
2318
|
+
function qn(r) {
|
|
2275
2319
|
return r.updateViewPort;
|
|
2276
2320
|
}
|
|
2277
|
-
function
|
|
2321
|
+
function Un(r) {
|
|
2278
2322
|
return r.setLayersLoad;
|
|
2279
2323
|
}
|
|
2280
|
-
function
|
|
2324
|
+
function Vn(r) {
|
|
2281
2325
|
return r.setLoad;
|
|
2282
2326
|
}
|
|
2283
|
-
function
|
|
2327
|
+
function jn(r) {
|
|
2284
2328
|
return r.setViewState;
|
|
2285
2329
|
}
|
|
2286
|
-
function
|
|
2330
|
+
function Bn(r) {
|
|
2287
2331
|
return r.getDeckInstance;
|
|
2288
2332
|
}
|
|
2289
|
-
var
|
|
2290
|
-
function
|
|
2291
|
-
return
|
|
2292
|
-
var t = typeof globalThis < "u" && globalThis || typeof self < "u" && self || typeof
|
|
2333
|
+
var Me = { exports: {} }, ct;
|
|
2334
|
+
function In() {
|
|
2335
|
+
return ct || (ct = 1, function(r, e) {
|
|
2336
|
+
var t = typeof globalThis < "u" && globalThis || typeof self < "u" && self || typeof we < "u" && we, s = function() {
|
|
2293
2337
|
function o() {
|
|
2294
2338
|
this.fetch = !1, this.DOMException = t.DOMException;
|
|
2295
2339
|
}
|
|
@@ -2298,7 +2342,7 @@ function xn() {
|
|
|
2298
2342
|
(function(o) {
|
|
2299
2343
|
(function(i) {
|
|
2300
2344
|
var a = typeof o < "u" && o || typeof self < "u" && self || // eslint-disable-next-line no-undef
|
|
2301
|
-
typeof
|
|
2345
|
+
typeof we < "u" && we || {}, c = {
|
|
2302
2346
|
searchParams: "URLSearchParams" in a,
|
|
2303
2347
|
iterable: "Symbol" in a && "iterator" in Symbol,
|
|
2304
2348
|
blob: "FileReader" in a && "Blob" in a && function() {
|
|
@@ -2464,13 +2508,13 @@ function xn() {
|
|
|
2464
2508
|
throw new Error("could not read FormData body as text");
|
|
2465
2509
|
return Promise.resolve(this._bodyText);
|
|
2466
2510
|
}, c.formData && (this.formData = function() {
|
|
2467
|
-
return this.text().then(
|
|
2511
|
+
return this.text().then(U);
|
|
2468
2512
|
}), this.json = function() {
|
|
2469
2513
|
return this.text().then(JSON.parse);
|
|
2470
2514
|
}, this;
|
|
2471
2515
|
}
|
|
2472
2516
|
var D = ["CONNECT", "DELETE", "GET", "HEAD", "OPTIONS", "PATCH", "POST", "PUT", "TRACE"];
|
|
2473
|
-
function
|
|
2517
|
+
function N(d) {
|
|
2474
2518
|
var S = d.toUpperCase();
|
|
2475
2519
|
return D.indexOf(S) > -1 ? S : d;
|
|
2476
2520
|
}
|
|
@@ -2485,7 +2529,7 @@ function xn() {
|
|
|
2485
2529
|
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
2530
|
} else
|
|
2487
2531
|
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 =
|
|
2532
|
+
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
2533
|
if ("AbortController" in a) {
|
|
2490
2534
|
var L = new AbortController();
|
|
2491
2535
|
return L.signal;
|
|
@@ -2505,7 +2549,7 @@ function xn() {
|
|
|
2505
2549
|
$.prototype.clone = function() {
|
|
2506
2550
|
return new $(this, { body: this._bodyInit });
|
|
2507
2551
|
};
|
|
2508
|
-
function
|
|
2552
|
+
function U(d) {
|
|
2509
2553
|
var S = new FormData();
|
|
2510
2554
|
return d.trim().split("&").forEach(function(T) {
|
|
2511
2555
|
if (T) {
|
|
@@ -2514,7 +2558,7 @@ function xn() {
|
|
|
2514
2558
|
}
|
|
2515
2559
|
}), S;
|
|
2516
2560
|
}
|
|
2517
|
-
function
|
|
2561
|
+
function B(d) {
|
|
2518
2562
|
var S = new m(), T = d.replace(/\r?\n[\t ]+/g, " ");
|
|
2519
2563
|
return T.split("\r").map(function(C) {
|
|
2520
2564
|
return C.indexOf(`
|
|
@@ -2525,36 +2569,36 @@ function xn() {
|
|
|
2525
2569
|
var R = k.join(":").trim();
|
|
2526
2570
|
try {
|
|
2527
2571
|
S.append(L, R);
|
|
2528
|
-
} catch (
|
|
2529
|
-
console.warn("Response " +
|
|
2572
|
+
} catch (j) {
|
|
2573
|
+
console.warn("Response " + j.message);
|
|
2530
2574
|
}
|
|
2531
2575
|
}
|
|
2532
2576
|
}), S;
|
|
2533
2577
|
}
|
|
2534
2578
|
P.call($.prototype);
|
|
2535
|
-
function
|
|
2536
|
-
if (!(this instanceof
|
|
2579
|
+
function q(d, S) {
|
|
2580
|
+
if (!(this instanceof q))
|
|
2537
2581
|
throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');
|
|
2538
2582
|
if (S || (S = {}), this.type = "default", this.status = S.status === void 0 ? 200 : S.status, this.status < 200 || this.status > 599)
|
|
2539
2583
|
throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");
|
|
2540
2584
|
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
2585
|
}
|
|
2542
|
-
P.call(
|
|
2543
|
-
return new
|
|
2586
|
+
P.call(q.prototype), q.prototype.clone = function() {
|
|
2587
|
+
return new q(this._bodyInit, {
|
|
2544
2588
|
status: this.status,
|
|
2545
2589
|
statusText: this.statusText,
|
|
2546
2590
|
headers: new m(this.headers),
|
|
2547
2591
|
url: this.url
|
|
2548
2592
|
});
|
|
2549
|
-
},
|
|
2550
|
-
var d = new
|
|
2593
|
+
}, q.error = function() {
|
|
2594
|
+
var d = new q(null, { status: 200, statusText: "" });
|
|
2551
2595
|
return d.ok = !1, d.status = 0, d.type = "error", d;
|
|
2552
2596
|
};
|
|
2553
2597
|
var E = [301, 302, 303, 307, 308];
|
|
2554
|
-
|
|
2598
|
+
q.redirect = function(d, S) {
|
|
2555
2599
|
if (E.indexOf(S) === -1)
|
|
2556
2600
|
throw new RangeError("Invalid status code");
|
|
2557
|
-
return new
|
|
2601
|
+
return new q(null, { status: S, headers: { location: d } });
|
|
2558
2602
|
}, i.DOMException = a.DOMException;
|
|
2559
2603
|
try {
|
|
2560
2604
|
new i.DOMException();
|
|
@@ -2577,12 +2621,12 @@ function xn() {
|
|
|
2577
2621
|
L.onload = function() {
|
|
2578
2622
|
var V = {
|
|
2579
2623
|
statusText: L.statusText,
|
|
2580
|
-
headers:
|
|
2624
|
+
headers: B(L.getAllResponseHeaders() || "")
|
|
2581
2625
|
};
|
|
2582
2626
|
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
|
|
2627
|
+
var Z = "response" in L ? L.response : L.responseText;
|
|
2584
2628
|
setTimeout(function() {
|
|
2585
|
-
T(new
|
|
2629
|
+
T(new q(Z, V));
|
|
2586
2630
|
}, 0);
|
|
2587
2631
|
}, L.onerror = function() {
|
|
2588
2632
|
setTimeout(function() {
|
|
@@ -2597,59 +2641,59 @@ function xn() {
|
|
|
2597
2641
|
C(new i.DOMException("Aborted", "AbortError"));
|
|
2598
2642
|
}, 0);
|
|
2599
2643
|
};
|
|
2600
|
-
function
|
|
2644
|
+
function j(V) {
|
|
2601
2645
|
try {
|
|
2602
2646
|
return V === "" && a.location.href ? a.location.href : V;
|
|
2603
2647
|
} catch {
|
|
2604
2648
|
return V;
|
|
2605
2649
|
}
|
|
2606
2650
|
}
|
|
2607
|
-
if (L.open(k.method,
|
|
2651
|
+
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
2652
|
var H = [];
|
|
2609
2653
|
Object.getOwnPropertyNames(S.headers).forEach(function(V) {
|
|
2610
2654
|
H.push(g(V)), L.setRequestHeader(V, p(S.headers[V]));
|
|
2611
|
-
}), k.headers.forEach(function(V,
|
|
2612
|
-
H.indexOf(
|
|
2655
|
+
}), k.headers.forEach(function(V, Z) {
|
|
2656
|
+
H.indexOf(Z) === -1 && L.setRequestHeader(Z, V);
|
|
2613
2657
|
});
|
|
2614
2658
|
} else
|
|
2615
|
-
k.headers.forEach(function(V,
|
|
2616
|
-
L.setRequestHeader(
|
|
2659
|
+
k.headers.forEach(function(V, Z) {
|
|
2660
|
+
L.setRequestHeader(Z, V);
|
|
2617
2661
|
});
|
|
2618
2662
|
k.signal && (k.signal.addEventListener("abort", R), L.onreadystatechange = function() {
|
|
2619
2663
|
L.readyState === 4 && k.signal.removeEventListener("abort", R);
|
|
2620
2664
|
}), L.send(typeof k._bodyInit > "u" ? null : k._bodyInit);
|
|
2621
2665
|
});
|
|
2622
2666
|
}
|
|
2623
|
-
return F.polyfill = !0, a.fetch || (a.fetch = F, a.Headers = m, a.Request = $, a.Response =
|
|
2667
|
+
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
2668
|
})({});
|
|
2625
2669
|
})(s), s.fetch.ponyfill = !0, delete s.fetch.polyfill;
|
|
2626
2670
|
var n = t.fetch ? t : s;
|
|
2627
2671
|
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
|
-
}(
|
|
2672
|
+
}(Me, Me.exports)), Me.exports;
|
|
2629
2673
|
}
|
|
2630
|
-
var
|
|
2631
|
-
const
|
|
2674
|
+
var Nn = In();
|
|
2675
|
+
const Hn = /* @__PURE__ */ Mt(Nn), ze = "https://gcp-us-east1.api.carto.com", Qe = "v3", Gn = "ps", ue = {
|
|
2632
2676
|
get: "GET",
|
|
2633
2677
|
post: "POST"
|
|
2634
2678
|
};
|
|
2635
|
-
function
|
|
2679
|
+
function Kn(r, e) {
|
|
2636
2680
|
return Array.isArray(e) ? `${r}=${encodeURIComponent(JSON.stringify(e))}` : e == null || e === "" ? "" : typeof e == "object" ? `${r}=${encodeURIComponent(JSON.stringify(e))}` : `${r}=${encodeURIComponent(e)}`;
|
|
2637
2681
|
}
|
|
2638
|
-
function
|
|
2682
|
+
function Zn({
|
|
2639
2683
|
params: r,
|
|
2640
2684
|
url: e
|
|
2641
2685
|
}) {
|
|
2642
2686
|
if (!r) return e;
|
|
2643
|
-
const t = Object.entries(r).map(([s, n]) =>
|
|
2687
|
+
const t = Object.entries(r).map(([s, n]) => Kn(s, n));
|
|
2644
2688
|
return `${e}?${t.filter(Boolean).join("&")}`;
|
|
2645
2689
|
}
|
|
2646
|
-
function
|
|
2690
|
+
function zn(r) {
|
|
2647
2691
|
return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
|
|
2648
2692
|
}
|
|
2649
|
-
var
|
|
2650
|
-
function
|
|
2651
|
-
if (
|
|
2652
|
-
|
|
2693
|
+
var je, ut;
|
|
2694
|
+
function Qn() {
|
|
2695
|
+
if (ut) return je;
|
|
2696
|
+
ut = 1;
|
|
2653
2697
|
var r = function(u) {
|
|
2654
2698
|
return e(u) && !t(u);
|
|
2655
2699
|
};
|
|
@@ -2718,21 +2762,21 @@ function Nn() {
|
|
|
2718
2762
|
}, {});
|
|
2719
2763
|
};
|
|
2720
2764
|
var w = m;
|
|
2721
|
-
return
|
|
2765
|
+
return je = w, je;
|
|
2722
2766
|
}
|
|
2723
|
-
var
|
|
2724
|
-
const
|
|
2725
|
-
function
|
|
2726
|
-
return
|
|
2727
|
-
method:
|
|
2767
|
+
var Wn = Qn();
|
|
2768
|
+
const We = /* @__PURE__ */ zn(Wn);
|
|
2769
|
+
function dt(r) {
|
|
2770
|
+
return We({
|
|
2771
|
+
method: ue.get,
|
|
2728
2772
|
headers: {
|
|
2729
2773
|
Accept: "application/json"
|
|
2730
2774
|
}
|
|
2731
2775
|
}, r);
|
|
2732
2776
|
}
|
|
2733
|
-
function
|
|
2734
|
-
return
|
|
2735
|
-
method:
|
|
2777
|
+
function Be(r, e) {
|
|
2778
|
+
return We({
|
|
2779
|
+
method: ue.post,
|
|
2736
2780
|
headers: {
|
|
2737
2781
|
Accept: "application/json",
|
|
2738
2782
|
"Content-Type": "application/json"
|
|
@@ -2740,21 +2784,21 @@ function Ve(r, e) {
|
|
|
2740
2784
|
body: JSON.stringify(e)
|
|
2741
2785
|
}, r);
|
|
2742
2786
|
}
|
|
2743
|
-
const
|
|
2744
|
-
GET:
|
|
2745
|
-
POST:
|
|
2746
|
-
PUT:
|
|
2747
|
-
PATCH:
|
|
2748
|
-
DELETE:
|
|
2787
|
+
const Yn = {
|
|
2788
|
+
GET: dt,
|
|
2789
|
+
POST: Be,
|
|
2790
|
+
PUT: Be,
|
|
2791
|
+
PATCH: Be,
|
|
2792
|
+
DELETE: dt
|
|
2749
2793
|
};
|
|
2750
|
-
function
|
|
2794
|
+
function Jn({
|
|
2751
2795
|
body: r,
|
|
2752
2796
|
accessToken: e,
|
|
2753
2797
|
method: t,
|
|
2754
2798
|
...s
|
|
2755
2799
|
}) {
|
|
2756
2800
|
let n = e;
|
|
2757
|
-
return n && !n.includes("Bearer") && (n = "Bearer " + n),
|
|
2801
|
+
return n && !n.includes("Bearer") && (n = "Bearer " + n), Yn[t](We({
|
|
2758
2802
|
method: t,
|
|
2759
2803
|
headers: {
|
|
2760
2804
|
...!!n && {
|
|
@@ -2763,42 +2807,42 @@ function Zn({
|
|
|
2763
2807
|
}
|
|
2764
2808
|
}, s), r);
|
|
2765
2809
|
}
|
|
2766
|
-
const
|
|
2767
|
-
async function
|
|
2810
|
+
const Xn = 6144;
|
|
2811
|
+
async function Dt({
|
|
2768
2812
|
signal: r,
|
|
2769
2813
|
body: e,
|
|
2770
2814
|
accessToken: t,
|
|
2771
2815
|
credentials: s,
|
|
2772
|
-
method: n =
|
|
2816
|
+
method: n = ue.get,
|
|
2773
2817
|
params: o,
|
|
2774
2818
|
url: i,
|
|
2775
2819
|
requestOptions: {
|
|
2776
2820
|
getMaxUrlLength: a
|
|
2777
2821
|
} = {
|
|
2778
|
-
getMaxUrlLength:
|
|
2822
|
+
getMaxUrlLength: Xn
|
|
2779
2823
|
},
|
|
2780
2824
|
...c
|
|
2781
2825
|
}) {
|
|
2782
|
-
let l =
|
|
2826
|
+
let l = Zn({
|
|
2783
2827
|
url: i,
|
|
2784
2828
|
params: o
|
|
2785
2829
|
}), y = e, h = n;
|
|
2786
|
-
n ===
|
|
2787
|
-
const g =
|
|
2830
|
+
n === ue.get && l.length > a && (y = o, h = ue.post, l = i);
|
|
2831
|
+
const g = Jn({
|
|
2788
2832
|
body: y,
|
|
2789
2833
|
accessToken: t ?? s?.accessToken,
|
|
2790
2834
|
method: h,
|
|
2791
2835
|
...c
|
|
2792
2836
|
});
|
|
2793
2837
|
r && (g.signal = r);
|
|
2794
|
-
const p = await
|
|
2838
|
+
const p = await Hn(l, g);
|
|
2795
2839
|
if (!p.ok) {
|
|
2796
2840
|
const v = await p.text();
|
|
2797
2841
|
throw new Error(v);
|
|
2798
2842
|
}
|
|
2799
2843
|
return p.status === 204 ? Promise.resolve() : await p.json();
|
|
2800
2844
|
}
|
|
2801
|
-
const
|
|
2845
|
+
const Le = yt()(hs((r, e) => ({
|
|
2802
2846
|
sources: {},
|
|
2803
2847
|
filters: {},
|
|
2804
2848
|
setSource: (t, s) => r((n) => {
|
|
@@ -2810,12 +2854,12 @@ const Ee = ft()(fs((r, e) => ({
|
|
|
2810
2854
|
sources: o
|
|
2811
2855
|
};
|
|
2812
2856
|
const a = o[t], c = {
|
|
2813
|
-
apiBaseUrl:
|
|
2814
|
-
clientId:
|
|
2815
|
-
apiVersion:
|
|
2857
|
+
apiBaseUrl: ze,
|
|
2858
|
+
clientId: Gn,
|
|
2859
|
+
apiVersion: Qe,
|
|
2816
2860
|
...a,
|
|
2817
2861
|
...s
|
|
2818
|
-
}, l =
|
|
2862
|
+
}, l = nr({
|
|
2819
2863
|
source: c
|
|
2820
2864
|
});
|
|
2821
2865
|
return c.widgets = l, o[t] = c, {
|
|
@@ -2833,7 +2877,7 @@ const Ee = ft()(fs((r, e) => ({
|
|
|
2833
2877
|
setFilters: (t, s) => r((n) => {
|
|
2834
2878
|
let o = {};
|
|
2835
2879
|
const i = n.filters[t] ?? {};
|
|
2836
|
-
return s.length !== 0 && (o = s.reduce((a, c) => !("values" in c) || !c.values?.length ?
|
|
2880
|
+
return s.length !== 0 && (o = s.reduce((a, c) => !("values" in c) || !c.values?.length ? Je(a, c) : _t(a, c), i)), {
|
|
2837
2881
|
filters: {
|
|
2838
2882
|
...n.filters,
|
|
2839
2883
|
[t]: {
|
|
@@ -2848,7 +2892,7 @@ const Ee = ft()(fs((r, e) => ({
|
|
|
2848
2892
|
if (!i)
|
|
2849
2893
|
return o;
|
|
2850
2894
|
let a = {};
|
|
2851
|
-
return s && (a =
|
|
2895
|
+
return s && (a = Je(i, {
|
|
2852
2896
|
column: s,
|
|
2853
2897
|
owner: n
|
|
2854
2898
|
})), {
|
|
@@ -2879,24 +2923,24 @@ const Ee = ft()(fs((r, e) => ({
|
|
|
2879
2923
|
}, s);
|
|
2880
2924
|
}
|
|
2881
2925
|
})));
|
|
2882
|
-
function
|
|
2926
|
+
function er(r) {
|
|
2883
2927
|
const e = O(2);
|
|
2884
2928
|
let t;
|
|
2885
|
-
return e[0] !== r ? (t = (s) => s.sources[r], e[0] = r, e[1] = t) : t = e[1],
|
|
2929
|
+
return e[0] !== r ? (t = (s) => s.sources[r], e[0] = r, e[1] = t) : t = e[1], Le(t);
|
|
2886
2930
|
}
|
|
2887
|
-
function
|
|
2931
|
+
function tr(r) {
|
|
2888
2932
|
const e = O(2);
|
|
2889
2933
|
let t;
|
|
2890
|
-
return e[0] !== r ? (t = (s) => s.filters[r], e[0] = r, e[1] = t) : t = e[1],
|
|
2934
|
+
return e[0] !== r ? (t = (s) => s.filters[r], e[0] = r, e[1] = t) : t = e[1], Le(t);
|
|
2891
2935
|
}
|
|
2892
|
-
function
|
|
2936
|
+
function lo(r) {
|
|
2893
2937
|
const e = O(9);
|
|
2894
2938
|
let t;
|
|
2895
2939
|
e[0] !== r ? (t = (a) => a.sources[r], e[0] = r, e[1] = t) : t = e[1];
|
|
2896
|
-
const s =
|
|
2940
|
+
const s = Le(t);
|
|
2897
2941
|
let n;
|
|
2898
2942
|
e[2] !== r ? (n = (a) => a.filters[r], e[2] = r, e[3] = n) : n = e[3];
|
|
2899
|
-
const o =
|
|
2943
|
+
const o = Le(n);
|
|
2900
2944
|
let i;
|
|
2901
2945
|
e: {
|
|
2902
2946
|
if (!s) {
|
|
@@ -2913,29 +2957,29 @@ function to(r) {
|
|
|
2913
2957
|
}
|
|
2914
2958
|
return i;
|
|
2915
2959
|
}
|
|
2916
|
-
function
|
|
2960
|
+
function co(r, {
|
|
2917
2961
|
column: e,
|
|
2918
2962
|
type: t
|
|
2919
2963
|
}) {
|
|
2920
2964
|
return r?.[e]?.[t]?.values ?? [];
|
|
2921
2965
|
}
|
|
2922
|
-
function
|
|
2966
|
+
function sr(r) {
|
|
2923
2967
|
const [, e] = r.type.split("+", 2);
|
|
2924
2968
|
return {
|
|
2925
2969
|
spatialDataType: r.spatialDataType ?? e ?? "geo",
|
|
2926
2970
|
spatialDataColumn: r.spatialDataColumn ?? e ?? "geom"
|
|
2927
2971
|
};
|
|
2928
2972
|
}
|
|
2929
|
-
function
|
|
2973
|
+
function nr({
|
|
2930
2974
|
source: r
|
|
2931
2975
|
}) {
|
|
2932
2976
|
const {
|
|
2933
2977
|
spatialDataType: e,
|
|
2934
2978
|
spatialDataColumn: t
|
|
2935
|
-
} =
|
|
2979
|
+
} = sr(r), s = {
|
|
2936
2980
|
query: () => {
|
|
2937
2981
|
const i = r;
|
|
2938
|
-
return new
|
|
2982
|
+
return new ps({
|
|
2939
2983
|
...i,
|
|
2940
2984
|
accessToken: "",
|
|
2941
2985
|
sqlQuery: i.data,
|
|
@@ -2945,7 +2989,7 @@ function Yn({
|
|
|
2945
2989
|
},
|
|
2946
2990
|
table: () => {
|
|
2947
2991
|
const i = r;
|
|
2948
|
-
return new
|
|
2992
|
+
return new fs({
|
|
2949
2993
|
...i,
|
|
2950
2994
|
accessToken: "",
|
|
2951
2995
|
tableName: i.data,
|
|
@@ -2955,18 +2999,18 @@ function Yn({
|
|
|
2955
2999
|
},
|
|
2956
3000
|
tileset: () => {
|
|
2957
3001
|
const i = r;
|
|
2958
|
-
return new
|
|
3002
|
+
return new us({
|
|
2959
3003
|
...i,
|
|
2960
3004
|
accessToken: "",
|
|
2961
3005
|
tableName: i.data,
|
|
2962
|
-
tileFormat: i.tileFormat ??
|
|
3006
|
+
tileFormat: i.tileFormat ?? ds.BINARY,
|
|
2963
3007
|
spatialDataType: e,
|
|
2964
3008
|
spatialDataColumn: t
|
|
2965
3009
|
});
|
|
2966
3010
|
},
|
|
2967
3011
|
raster: () => {
|
|
2968
3012
|
const i = r;
|
|
2969
|
-
return i.rasterMetadata ? new
|
|
3013
|
+
return i.rasterMetadata ? new cs({
|
|
2970
3014
|
...i,
|
|
2971
3015
|
accessToken: "",
|
|
2972
3016
|
tableName: i.data,
|
|
@@ -2978,8 +3022,8 @@ function Yn({
|
|
|
2978
3022
|
}, n = r.type.split("+")[0], o = s[n];
|
|
2979
3023
|
return o?.();
|
|
2980
3024
|
}
|
|
2981
|
-
function
|
|
2982
|
-
const t = O(5), s =
|
|
3025
|
+
function rr(r, e) {
|
|
3026
|
+
const t = O(5), s = tr(r);
|
|
2983
3027
|
let n;
|
|
2984
3028
|
e: {
|
|
2985
3029
|
if (!e?.length) {
|
|
@@ -2988,41 +3032,41 @@ function Jn(r, e) {
|
|
|
2988
3032
|
}
|
|
2989
3033
|
let o;
|
|
2990
3034
|
if (t[0] !== e || t[1] !== s) {
|
|
2991
|
-
const i = e.reduce(
|
|
3035
|
+
const i = e.reduce(or, {});
|
|
2992
3036
|
let a;
|
|
2993
|
-
t[3] !== s ? (a = s ?? {}, t[3] = s, t[4] = a) : a = t[4], o =
|
|
3037
|
+
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;
|
|
2994
3038
|
} else
|
|
2995
3039
|
o = t[2];
|
|
2996
3040
|
n = o;
|
|
2997
3041
|
}
|
|
2998
3042
|
return n;
|
|
2999
3043
|
}
|
|
3000
|
-
function
|
|
3001
|
-
return
|
|
3044
|
+
function or(r, e) {
|
|
3045
|
+
return _t(r, e);
|
|
3002
3046
|
}
|
|
3003
|
-
function
|
|
3004
|
-
const t =
|
|
3047
|
+
function ir(r, e) {
|
|
3048
|
+
const t = er(e);
|
|
3005
3049
|
return te(() => {
|
|
3006
3050
|
const s = t?.widgets;
|
|
3007
3051
|
return !s || !r ? null : (s.props.accessToken = r, s);
|
|
3008
3052
|
}, [r, t]);
|
|
3009
3053
|
}
|
|
3010
|
-
const
|
|
3011
|
-
function
|
|
3054
|
+
const ar = ["authorization", "cache-control"];
|
|
3055
|
+
function lr(r) {
|
|
3012
3056
|
if (!r || typeof r != "object")
|
|
3013
3057
|
return "";
|
|
3014
|
-
const e = Object.fromEntries(Object.entries(r).filter(([t]) =>
|
|
3058
|
+
const e = Object.fromEntries(Object.entries(r).filter(([t]) => ar.includes(t.toLowerCase())));
|
|
3015
3059
|
return JSON.stringify(e);
|
|
3016
3060
|
}
|
|
3017
|
-
function
|
|
3061
|
+
function ae(r) {
|
|
3018
3062
|
const e = O(13), {
|
|
3019
3063
|
accessToken: t,
|
|
3020
3064
|
sourceId: s,
|
|
3021
3065
|
widgetProps: n,
|
|
3022
3066
|
additionalFilter: o
|
|
3023
|
-
} = r, i =
|
|
3067
|
+
} = r, i = rr(s, o), a = ir(t, s), c = a?.props.queryParameters, l = a?.props.headers;
|
|
3024
3068
|
let y;
|
|
3025
|
-
e[0] !== l ? (y =
|
|
3069
|
+
e[0] !== l ? (y = lr(l), e[0] = l, e[1] = y) : y = e[1];
|
|
3026
3070
|
let h;
|
|
3027
3071
|
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];
|
|
3028
3072
|
const g = h;
|
|
@@ -3033,7 +3077,7 @@ function ie(r) {
|
|
|
3033
3077
|
queryKey: g
|
|
3034
3078
|
}, e[9] = i, e[10] = g, e[11] = a, e[12] = p) : p = e[12], p;
|
|
3035
3079
|
}
|
|
3036
|
-
function
|
|
3080
|
+
function cr(r) {
|
|
3037
3081
|
const e = O(21), {
|
|
3038
3082
|
accessToken: t,
|
|
3039
3083
|
sourceId: s,
|
|
@@ -3060,7 +3104,7 @@ function nr(r) {
|
|
|
3060
3104
|
mergedFilters: g,
|
|
3061
3105
|
queryKey: p,
|
|
3062
3106
|
widgetModel: v
|
|
3063
|
-
} =
|
|
3107
|
+
} = ae(h);
|
|
3064
3108
|
let m;
|
|
3065
3109
|
e[10] !== p ? (m = ["categories", ...p], e[10] = p, e[11] = m) : m = e[11];
|
|
3066
3110
|
let w;
|
|
@@ -3083,18 +3127,18 @@ function nr(r) {
|
|
|
3083
3127
|
...l
|
|
3084
3128
|
}, e[16] = m, e[17] = w, e[18] = u, e[19] = l, e[20] = f) : f = e[20], ne(f);
|
|
3085
3129
|
}
|
|
3086
|
-
function
|
|
3130
|
+
function uo(r) {
|
|
3087
3131
|
const e = O(6);
|
|
3088
3132
|
let t, s;
|
|
3089
3133
|
e[0] !== r ? ({
|
|
3090
3134
|
children: t,
|
|
3091
3135
|
...s
|
|
3092
3136
|
} = r, e[0] = r, e[1] = t, e[2] = s) : (t = e[1], s = e[2]);
|
|
3093
|
-
const n =
|
|
3137
|
+
const n = cr(s);
|
|
3094
3138
|
let o;
|
|
3095
3139
|
return e[3] !== t || e[4] !== n ? (o = t(n), e[3] = t, e[4] = n, e[5] = o) : o = e[5], o;
|
|
3096
3140
|
}
|
|
3097
|
-
function
|
|
3141
|
+
function ur(r) {
|
|
3098
3142
|
const e = O(21), {
|
|
3099
3143
|
accessToken: t,
|
|
3100
3144
|
sourceId: s,
|
|
@@ -3121,7 +3165,7 @@ function rr(r) {
|
|
|
3121
3165
|
mergedFilters: g,
|
|
3122
3166
|
queryKey: p,
|
|
3123
3167
|
widgetModel: v
|
|
3124
|
-
} =
|
|
3168
|
+
} = ae(h);
|
|
3125
3169
|
let m;
|
|
3126
3170
|
e[10] !== p ? (m = ["features", ...p], e[10] = p, e[11] = m) : m = e[11];
|
|
3127
3171
|
let w;
|
|
@@ -3144,18 +3188,18 @@ function rr(r) {
|
|
|
3144
3188
|
...l
|
|
3145
3189
|
}, e[16] = m, e[17] = w, e[18] = u, e[19] = l, e[20] = f) : f = e[20], ne(f);
|
|
3146
3190
|
}
|
|
3147
|
-
function
|
|
3191
|
+
function fo(r) {
|
|
3148
3192
|
const e = O(6);
|
|
3149
3193
|
let t, s;
|
|
3150
3194
|
e[0] !== r ? ({
|
|
3151
3195
|
children: t,
|
|
3152
3196
|
...s
|
|
3153
3197
|
} = r, e[0] = r, e[1] = t, e[2] = s) : (t = e[1], s = e[2]);
|
|
3154
|
-
const n =
|
|
3198
|
+
const n = ur(s);
|
|
3155
3199
|
let o;
|
|
3156
3200
|
return e[3] !== t || e[4] !== n ? (o = t(n), e[3] = t, e[4] = n, e[5] = o) : o = e[5], o;
|
|
3157
3201
|
}
|
|
3158
|
-
function
|
|
3202
|
+
function dr(r) {
|
|
3159
3203
|
const e = O(21), {
|
|
3160
3204
|
accessToken: t,
|
|
3161
3205
|
sourceId: s,
|
|
@@ -3182,7 +3226,7 @@ function or(r) {
|
|
|
3182
3226
|
mergedFilters: g,
|
|
3183
3227
|
queryKey: p,
|
|
3184
3228
|
widgetModel: v
|
|
3185
|
-
} =
|
|
3229
|
+
} = ae(h);
|
|
3186
3230
|
let m;
|
|
3187
3231
|
e[10] !== p ? (m = ["formula", ...p], e[10] = p, e[11] = m) : m = e[11];
|
|
3188
3232
|
let w;
|
|
@@ -3205,18 +3249,18 @@ function or(r) {
|
|
|
3205
3249
|
...l
|
|
3206
3250
|
}, e[16] = m, e[17] = w, e[18] = u, e[19] = l, e[20] = f) : f = e[20], ne(f);
|
|
3207
3251
|
}
|
|
3208
|
-
function
|
|
3252
|
+
function po(r) {
|
|
3209
3253
|
const e = O(6);
|
|
3210
3254
|
let t, s;
|
|
3211
3255
|
e[0] !== r ? ({
|
|
3212
3256
|
children: t,
|
|
3213
3257
|
...s
|
|
3214
3258
|
} = r, e[0] = r, e[1] = t, e[2] = s) : (t = e[1], s = e[2]);
|
|
3215
|
-
const n =
|
|
3259
|
+
const n = dr(s);
|
|
3216
3260
|
let o;
|
|
3217
3261
|
return e[3] !== t || e[4] !== n ? (o = t(n), e[3] = t, e[4] = n, e[5] = o) : o = e[5], o;
|
|
3218
3262
|
}
|
|
3219
|
-
function
|
|
3263
|
+
function fr(r) {
|
|
3220
3264
|
const e = O(21), {
|
|
3221
3265
|
accessToken: t,
|
|
3222
3266
|
sourceId: s,
|
|
@@ -3243,7 +3287,7 @@ function ir(r) {
|
|
|
3243
3287
|
mergedFilters: g,
|
|
3244
3288
|
queryKey: p,
|
|
3245
3289
|
widgetModel: v
|
|
3246
|
-
} =
|
|
3290
|
+
} = ae(h);
|
|
3247
3291
|
let m;
|
|
3248
3292
|
e[10] !== p ? (m = ["histogram", ...p], e[10] = p, e[11] = m) : m = e[11];
|
|
3249
3293
|
let w;
|
|
@@ -3266,18 +3310,18 @@ function ir(r) {
|
|
|
3266
3310
|
...l
|
|
3267
3311
|
}, e[16] = m, e[17] = w, e[18] = u, e[19] = l, e[20] = f) : f = e[20], ne(f);
|
|
3268
3312
|
}
|
|
3269
|
-
function
|
|
3313
|
+
function mo(r) {
|
|
3270
3314
|
const e = O(6);
|
|
3271
3315
|
let t, s;
|
|
3272
3316
|
e[0] !== r ? ({
|
|
3273
3317
|
children: t,
|
|
3274
3318
|
...s
|
|
3275
3319
|
} = r, e[0] = r, e[1] = t, e[2] = s) : (t = e[1], s = e[2]);
|
|
3276
|
-
const n =
|
|
3320
|
+
const n = fr(s);
|
|
3277
3321
|
let o;
|
|
3278
3322
|
return e[3] !== t || e[4] !== n ? (o = t(n), e[3] = t, e[4] = n, e[5] = o) : o = e[5], o;
|
|
3279
3323
|
}
|
|
3280
|
-
function
|
|
3324
|
+
function pr(r) {
|
|
3281
3325
|
const e = O(21), {
|
|
3282
3326
|
accessToken: t,
|
|
3283
3327
|
sourceId: s,
|
|
@@ -3304,7 +3348,7 @@ function ar(r) {
|
|
|
3304
3348
|
mergedFilters: g,
|
|
3305
3349
|
queryKey: p,
|
|
3306
3350
|
widgetModel: v
|
|
3307
|
-
} =
|
|
3351
|
+
} = ae(h);
|
|
3308
3352
|
let m;
|
|
3309
3353
|
e[10] !== p ? (m = ["range", ...p], e[10] = p, e[11] = m) : m = e[11];
|
|
3310
3354
|
let w;
|
|
@@ -3327,18 +3371,18 @@ function ar(r) {
|
|
|
3327
3371
|
...l
|
|
3328
3372
|
}, e[16] = m, e[17] = w, e[18] = u, e[19] = l, e[20] = f) : f = e[20], ne(f);
|
|
3329
3373
|
}
|
|
3330
|
-
function
|
|
3374
|
+
function yo(r) {
|
|
3331
3375
|
const e = O(6);
|
|
3332
3376
|
let t, s;
|
|
3333
3377
|
e[0] !== r ? ({
|
|
3334
3378
|
children: t,
|
|
3335
3379
|
...s
|
|
3336
3380
|
} = r, e[0] = r, e[1] = t, e[2] = s) : (t = e[1], s = e[2]);
|
|
3337
|
-
const n =
|
|
3381
|
+
const n = pr(s);
|
|
3338
3382
|
let o;
|
|
3339
3383
|
return e[3] !== t || e[4] !== n ? (o = t(n), e[3] = t, e[4] = n, e[5] = o) : o = e[5], o;
|
|
3340
3384
|
}
|
|
3341
|
-
function
|
|
3385
|
+
function mr(r) {
|
|
3342
3386
|
const e = O(21), {
|
|
3343
3387
|
accessToken: t,
|
|
3344
3388
|
sourceId: s,
|
|
@@ -3365,7 +3409,7 @@ function lr(r) {
|
|
|
3365
3409
|
mergedFilters: g,
|
|
3366
3410
|
queryKey: p,
|
|
3367
3411
|
widgetModel: v
|
|
3368
|
-
} =
|
|
3412
|
+
} = ae(h);
|
|
3369
3413
|
let m;
|
|
3370
3414
|
e[10] !== p ? (m = ["scatter", ...p], e[10] = p, e[11] = m) : m = e[11];
|
|
3371
3415
|
let w;
|
|
@@ -3388,18 +3432,18 @@ function lr(r) {
|
|
|
3388
3432
|
...l
|
|
3389
3433
|
}, e[16] = m, e[17] = w, e[18] = u, e[19] = l, e[20] = f) : f = e[20], ne(f);
|
|
3390
3434
|
}
|
|
3391
|
-
function
|
|
3435
|
+
function ho(r) {
|
|
3392
3436
|
const e = O(6);
|
|
3393
3437
|
let t, s;
|
|
3394
3438
|
e[0] !== r ? ({
|
|
3395
3439
|
children: t,
|
|
3396
3440
|
...s
|
|
3397
3441
|
} = r, e[0] = r, e[1] = t, e[2] = s) : (t = e[1], s = e[2]);
|
|
3398
|
-
const n =
|
|
3442
|
+
const n = mr(s);
|
|
3399
3443
|
let o;
|
|
3400
3444
|
return e[3] !== t || e[4] !== n ? (o = t(n), e[3] = t, e[4] = n, e[5] = o) : o = e[5], o;
|
|
3401
3445
|
}
|
|
3402
|
-
function
|
|
3446
|
+
function yr(r) {
|
|
3403
3447
|
const e = O(21), {
|
|
3404
3448
|
accessToken: t,
|
|
3405
3449
|
sourceId: s,
|
|
@@ -3426,7 +3470,7 @@ function cr(r) {
|
|
|
3426
3470
|
mergedFilters: g,
|
|
3427
3471
|
queryKey: p,
|
|
3428
3472
|
widgetModel: v
|
|
3429
|
-
} =
|
|
3473
|
+
} = ae(h);
|
|
3430
3474
|
let m;
|
|
3431
3475
|
e[10] !== p ? (m = ["table", ...p], e[10] = p, e[11] = m) : m = e[11];
|
|
3432
3476
|
let w;
|
|
@@ -3449,18 +3493,18 @@ function cr(r) {
|
|
|
3449
3493
|
...l
|
|
3450
3494
|
}, e[16] = m, e[17] = w, e[18] = u, e[19] = l, e[20] = f) : f = e[20], ne(f);
|
|
3451
3495
|
}
|
|
3452
|
-
function
|
|
3496
|
+
function go(r) {
|
|
3453
3497
|
const e = O(6);
|
|
3454
3498
|
let t, s;
|
|
3455
3499
|
e[0] !== r ? ({
|
|
3456
3500
|
children: t,
|
|
3457
3501
|
...s
|
|
3458
3502
|
} = r, e[0] = r, e[1] = t, e[2] = s) : (t = e[1], s = e[2]);
|
|
3459
|
-
const n =
|
|
3503
|
+
const n = yr(s);
|
|
3460
3504
|
let o;
|
|
3461
3505
|
return e[3] !== t || e[4] !== n ? (o = t(n), e[3] = t, e[4] = n, e[5] = o) : o = e[5], o;
|
|
3462
3506
|
}
|
|
3463
|
-
function
|
|
3507
|
+
function hr(r) {
|
|
3464
3508
|
const e = O(21), {
|
|
3465
3509
|
accessToken: t,
|
|
3466
3510
|
sourceId: s,
|
|
@@ -3487,7 +3531,7 @@ function ur(r) {
|
|
|
3487
3531
|
mergedFilters: g,
|
|
3488
3532
|
queryKey: p,
|
|
3489
3533
|
widgetModel: v
|
|
3490
|
-
} =
|
|
3534
|
+
} = ae(h);
|
|
3491
3535
|
let m;
|
|
3492
3536
|
e[10] !== p ? (m = ["timeSeries", ...p], e[10] = p, e[11] = m) : m = e[11];
|
|
3493
3537
|
let w;
|
|
@@ -3510,19 +3554,19 @@ function ur(r) {
|
|
|
3510
3554
|
...l
|
|
3511
3555
|
}, e[16] = m, e[17] = w, e[18] = u, e[19] = l, e[20] = f) : f = e[20], ne(f);
|
|
3512
3556
|
}
|
|
3513
|
-
function
|
|
3557
|
+
function bo(r) {
|
|
3514
3558
|
const e = O(6);
|
|
3515
3559
|
let t, s;
|
|
3516
3560
|
e[0] !== r ? ({
|
|
3517
3561
|
children: t,
|
|
3518
3562
|
...s
|
|
3519
3563
|
} = r, e[0] = r, e[1] = t, e[2] = s) : (t = e[1], s = e[2]);
|
|
3520
|
-
const n =
|
|
3564
|
+
const n = hr(s);
|
|
3521
3565
|
let o;
|
|
3522
3566
|
return e[3] !== t || e[4] !== n ? (o = t(n), e[3] = t, e[4] = n, e[5] = o) : o = e[5], o;
|
|
3523
3567
|
}
|
|
3524
|
-
const
|
|
3525
|
-
function
|
|
3568
|
+
const vo = "ps";
|
|
3569
|
+
function So(r) {
|
|
3526
3570
|
const e = O(13), {
|
|
3527
3571
|
children: t,
|
|
3528
3572
|
maps: s,
|
|
@@ -3536,14 +3580,14 @@ function po(r) {
|
|
|
3536
3580
|
e[2] !== o ? (c = o === void 0 ? [] : o, e[2] = o, e[3] = c) : c = e[3];
|
|
3537
3581
|
const l = c;
|
|
3538
3582
|
let y;
|
|
3539
|
-
e[4] !== t || e[5] !== l ? (y = /* @__PURE__ */
|
|
3583
|
+
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];
|
|
3540
3584
|
let h;
|
|
3541
|
-
e[7] !== a || e[8] !== y ? (h = /* @__PURE__ */
|
|
3585
|
+
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];
|
|
3542
3586
|
let g;
|
|
3543
|
-
return e[10] !== s || e[11] !== h ? (g = /* @__PURE__ */
|
|
3587
|
+
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;
|
|
3544
3588
|
}
|
|
3545
|
-
function
|
|
3546
|
-
const t =
|
|
3589
|
+
function wo(r, e) {
|
|
3590
|
+
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(({
|
|
3547
3591
|
id: l,
|
|
3548
3592
|
visible: y,
|
|
3549
3593
|
...h
|
|
@@ -3580,12 +3624,12 @@ function mo(r, e) {
|
|
|
3580
3624
|
onChangeRowCollapse: a
|
|
3581
3625
|
};
|
|
3582
3626
|
}
|
|
3583
|
-
function
|
|
3627
|
+
function _o({
|
|
3584
3628
|
mapId: r
|
|
3585
3629
|
}) {
|
|
3586
3630
|
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, {
|
|
3587
3631
|
type: p
|
|
3588
|
-
} =
|
|
3632
|
+
} = me[a], v = p === ee.googleMaps, m = W(async () => {
|
|
3589
3633
|
const u = c(r), f = l(r);
|
|
3590
3634
|
try {
|
|
3591
3635
|
const b = document.createElement("canvas");
|
|
@@ -3595,7 +3639,7 @@ function yo({
|
|
|
3595
3639
|
const P = f;
|
|
3596
3640
|
if (P.getRenderingType() !== "RASTER")
|
|
3597
3641
|
throw new Error("Only raster type is supported for Google Maps");
|
|
3598
|
-
const D = await
|
|
3642
|
+
const D = await gs(P.getDiv(), {
|
|
3599
3643
|
useCORS: !0
|
|
3600
3644
|
});
|
|
3601
3645
|
_?.drawImage(D, 0, 0, u.width, u.height);
|
|
@@ -3621,7 +3665,7 @@ function yo({
|
|
|
3621
3665
|
error: o
|
|
3622
3666
|
};
|
|
3623
3667
|
}
|
|
3624
|
-
function
|
|
3668
|
+
function Mo(r) {
|
|
3625
3669
|
const e = O(11), {
|
|
3626
3670
|
mapId: t
|
|
3627
3671
|
} = r;
|
|
@@ -3629,17 +3673,17 @@ function ho(r) {
|
|
|
3629
3673
|
e[0] !== t ? (s = {
|
|
3630
3674
|
mapId: t
|
|
3631
3675
|
}, e[0] = t, e[1] = s) : s = e[1];
|
|
3632
|
-
const n =
|
|
3676
|
+
const n = gr(s);
|
|
3633
3677
|
let o;
|
|
3634
3678
|
e[2] !== t ? (o = {
|
|
3635
3679
|
mapId: t
|
|
3636
3680
|
}, e[2] = t, e[3] = o) : o = e[3];
|
|
3637
|
-
const i =
|
|
3681
|
+
const i = br(o);
|
|
3638
3682
|
let a;
|
|
3639
3683
|
e[4] !== t ? (a = {
|
|
3640
3684
|
mapId: t
|
|
3641
3685
|
}, e[4] = t, e[5] = a) : a = e[5];
|
|
3642
|
-
const c =
|
|
3686
|
+
const c = wr(a), l = i ?? c ?? n;
|
|
3643
3687
|
let y;
|
|
3644
3688
|
return e[6] !== i || e[7] !== c || e[8] !== l || e[9] !== n ? (y = {
|
|
3645
3689
|
spatialFilter: l,
|
|
@@ -3648,7 +3692,7 @@ function ho(r) {
|
|
|
3648
3692
|
viewportSpatialFilter: n
|
|
3649
3693
|
}, e[6] = i, e[7] = c, e[8] = l, e[9] = n, e[10] = y) : y = e[10], y;
|
|
3650
3694
|
}
|
|
3651
|
-
function
|
|
3695
|
+
function gr(r) {
|
|
3652
3696
|
const e = O(4), {
|
|
3653
3697
|
mapId: t
|
|
3654
3698
|
} = r;
|
|
@@ -3662,42 +3706,42 @@ function dr(r) {
|
|
|
3662
3706
|
break e;
|
|
3663
3707
|
}
|
|
3664
3708
|
let i;
|
|
3665
|
-
e[2] !== n ? (i =
|
|
3709
|
+
e[2] !== n ? (i = ms(n.getBounds()), e[2] = n, e[3] = i) : i = e[3], o = i;
|
|
3666
3710
|
}
|
|
3667
3711
|
return o;
|
|
3668
3712
|
}
|
|
3669
|
-
function
|
|
3713
|
+
function br(r) {
|
|
3670
3714
|
const e = O(5), {
|
|
3671
3715
|
mapId: t
|
|
3672
3716
|
} = r;
|
|
3673
3717
|
let s;
|
|
3674
3718
|
e[0] !== t ? (s = (i) => i.data[t]?.values, e[0] = t, e[1] = s) : s = e[1];
|
|
3675
|
-
const n =
|
|
3719
|
+
const n = z(s);
|
|
3676
3720
|
let o;
|
|
3677
3721
|
e: {
|
|
3678
3722
|
let i;
|
|
3679
3723
|
if (e[2] !== n) {
|
|
3680
|
-
const a =
|
|
3724
|
+
const a = Pt({
|
|
3681
3725
|
values: n
|
|
3682
|
-
}).filter(
|
|
3726
|
+
}).filter(Sr);
|
|
3683
3727
|
if (!a?.length) {
|
|
3684
3728
|
o = void 0;
|
|
3685
3729
|
break e;
|
|
3686
3730
|
}
|
|
3687
|
-
i =
|
|
3731
|
+
i = vt(a.map(vr)), e[2] = n, e[3] = i, e[4] = o;
|
|
3688
3732
|
} else
|
|
3689
3733
|
i = e[3], o = e[4];
|
|
3690
3734
|
o = i.geometry;
|
|
3691
3735
|
}
|
|
3692
3736
|
return o;
|
|
3693
3737
|
}
|
|
3694
|
-
function
|
|
3738
|
+
function vr(r) {
|
|
3695
3739
|
return r.geometry.coordinates;
|
|
3696
3740
|
}
|
|
3697
|
-
function
|
|
3741
|
+
function Sr(r) {
|
|
3698
3742
|
return r.properties.visible;
|
|
3699
3743
|
}
|
|
3700
|
-
function
|
|
3744
|
+
function wr(r) {
|
|
3701
3745
|
const e = O(4), {
|
|
3702
3746
|
mapId: t
|
|
3703
3747
|
} = r;
|
|
@@ -3712,49 +3756,49 @@ function yr(r) {
|
|
|
3712
3756
|
}
|
|
3713
3757
|
let i;
|
|
3714
3758
|
if (e[2] !== n) {
|
|
3715
|
-
const a = Object.values(n).filter(
|
|
3716
|
-
i =
|
|
3759
|
+
const a = Object.values(n).filter(Mr).flatMap(_r);
|
|
3760
|
+
i = vt(a), e[2] = n, e[3] = i;
|
|
3717
3761
|
} else
|
|
3718
3762
|
i = e[3];
|
|
3719
3763
|
o = i.geometry;
|
|
3720
3764
|
}
|
|
3721
3765
|
return o;
|
|
3722
3766
|
}
|
|
3723
|
-
function
|
|
3767
|
+
function _r(r) {
|
|
3724
3768
|
return r.type === "Polygon" ? [r.coordinates] : r.coordinates;
|
|
3725
3769
|
}
|
|
3726
|
-
function
|
|
3770
|
+
function Mr(r) {
|
|
3727
3771
|
return r != null;
|
|
3728
3772
|
}
|
|
3729
|
-
const
|
|
3773
|
+
const le = {
|
|
3730
3774
|
currency: "CURRENCY",
|
|
3731
3775
|
default: "DEFAULT",
|
|
3732
3776
|
number: "NUMBER"
|
|
3733
|
-
},
|
|
3734
|
-
[
|
|
3735
|
-
type:
|
|
3736
|
-
format: (r, e) =>
|
|
3777
|
+
}, ft = {
|
|
3778
|
+
[le.currency]: {
|
|
3779
|
+
type: le.currency,
|
|
3780
|
+
format: (r, e) => is(r, e)
|
|
3737
3781
|
},
|
|
3738
|
-
[
|
|
3739
|
-
type:
|
|
3740
|
-
format: (r, e) =>
|
|
3782
|
+
[le.number]: {
|
|
3783
|
+
type: le.number,
|
|
3784
|
+
format: (r, e) => St(r, e)
|
|
3741
3785
|
},
|
|
3742
|
-
[
|
|
3743
|
-
type:
|
|
3786
|
+
[le.default]: {
|
|
3787
|
+
type: le.default,
|
|
3744
3788
|
format: (r) => r.toLocaleString()
|
|
3745
3789
|
}
|
|
3746
3790
|
};
|
|
3747
|
-
function
|
|
3791
|
+
function Eo({
|
|
3748
3792
|
properties: r,
|
|
3749
3793
|
formatters: e = {},
|
|
3750
3794
|
includeColumns: t = Object.keys(r),
|
|
3751
3795
|
locale: s = "en-US",
|
|
3752
3796
|
showColumnName: n = !0,
|
|
3753
3797
|
title: o,
|
|
3754
|
-
getColumnName: i =
|
|
3755
|
-
getFieldHtml: a =
|
|
3756
|
-
getTitle: c =
|
|
3757
|
-
getValue: l =
|
|
3798
|
+
getColumnName: i = kr,
|
|
3799
|
+
getFieldHtml: a = Tr,
|
|
3800
|
+
getTitle: c = Er,
|
|
3801
|
+
getValue: l = Lr
|
|
3758
3802
|
}) {
|
|
3759
3803
|
const y = o ? c(o) : "", g = t.reduce((p, v) => {
|
|
3760
3804
|
const m = e[v], w = r[v], u = l(w, s, m), f = n ? i(v) : "";
|
|
@@ -3762,26 +3806,26 @@ function go({
|
|
|
3762
3806
|
}, "");
|
|
3763
3807
|
return y + g;
|
|
3764
3808
|
}
|
|
3765
|
-
function
|
|
3809
|
+
function Er(r) {
|
|
3766
3810
|
return `<h3 style="margin: 0"><strong>${r}</strong></h3></br>`;
|
|
3767
3811
|
}
|
|
3768
|
-
function
|
|
3812
|
+
function Tr(r, e) {
|
|
3769
3813
|
return `${r}${e}</br>`;
|
|
3770
3814
|
}
|
|
3771
|
-
function
|
|
3815
|
+
function Lr(r, e, t) {
|
|
3772
3816
|
try {
|
|
3773
|
-
return
|
|
3817
|
+
return Pr(t)(r, e);
|
|
3774
3818
|
} catch {
|
|
3775
3819
|
return r;
|
|
3776
3820
|
}
|
|
3777
3821
|
}
|
|
3778
|
-
function
|
|
3779
|
-
return typeof r == "function" ? r : ((r &&
|
|
3822
|
+
function Pr(r) {
|
|
3823
|
+
return typeof r == "function" ? r : ((r && ft[r]) ?? ft[le.default]).format;
|
|
3780
3824
|
}
|
|
3781
|
-
function
|
|
3825
|
+
function kr(r) {
|
|
3782
3826
|
return `<strong>${r}</strong>: `;
|
|
3783
3827
|
}
|
|
3784
|
-
function
|
|
3828
|
+
function To(r) {
|
|
3785
3829
|
return {
|
|
3786
3830
|
collapsed: r.legend?.collapsed,
|
|
3787
3831
|
collapsible: r.legend?.collapsible,
|
|
@@ -3797,7 +3841,7 @@ function bo(r) {
|
|
|
3797
3841
|
visible: r.props.visible ?? !0
|
|
3798
3842
|
};
|
|
3799
3843
|
}
|
|
3800
|
-
function
|
|
3844
|
+
function Lo(r) {
|
|
3801
3845
|
const e = O(22), {
|
|
3802
3846
|
children: t,
|
|
3803
3847
|
mapId: s
|
|
@@ -3811,7 +3855,7 @@ function vo(r) {
|
|
|
3811
3855
|
} = x(n);
|
|
3812
3856
|
let c;
|
|
3813
3857
|
e[2] !== s ? (c = (M) => M.areLayersLoaded[s], e[2] = s, e[3] = c) : c = e[3];
|
|
3814
|
-
const l = x(c), y = x(
|
|
3858
|
+
const l = x(c), y = x(Fr), h = x(Or), g = x(Cr), p = !l;
|
|
3815
3859
|
let v;
|
|
3816
3860
|
e[4] !== s || e[5] !== y ? (v = (M) => y(s, M), e[4] = s, e[5] = y, e[6] = v) : v = e[6];
|
|
3817
3861
|
const m = v;
|
|
@@ -3832,17 +3876,17 @@ function vo(r) {
|
|
|
3832
3876
|
resetViewState: b
|
|
3833
3877
|
}), 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], _;
|
|
3834
3878
|
}
|
|
3835
|
-
function
|
|
3879
|
+
function Cr(r) {
|
|
3836
3880
|
return r.resetViewState;
|
|
3837
3881
|
}
|
|
3838
|
-
function
|
|
3882
|
+
function Or(r) {
|
|
3839
3883
|
return r.flyTo;
|
|
3840
3884
|
}
|
|
3841
|
-
function
|
|
3885
|
+
function Fr(r) {
|
|
3842
3886
|
return r.setZoom;
|
|
3843
3887
|
}
|
|
3844
|
-
async function
|
|
3845
|
-
baseUrl: r =
|
|
3888
|
+
async function Ar({
|
|
3889
|
+
baseUrl: r = ze,
|
|
3846
3890
|
connection: e,
|
|
3847
3891
|
accessToken: t,
|
|
3848
3892
|
query: s,
|
|
@@ -3853,14 +3897,14 @@ async function Lr({
|
|
|
3853
3897
|
} = {},
|
|
3854
3898
|
queryParameters: a,
|
|
3855
3899
|
params: c,
|
|
3856
|
-
apiVersion: l =
|
|
3900
|
+
apiVersion: l = Qe
|
|
3857
3901
|
}) {
|
|
3858
3902
|
const y = `${r}/${l}/stats/${e}/${n}`;
|
|
3859
|
-
return
|
|
3903
|
+
return Dt({
|
|
3860
3904
|
accessToken: t,
|
|
3861
3905
|
signal: o,
|
|
3862
3906
|
url: y,
|
|
3863
|
-
method:
|
|
3907
|
+
method: ue.get,
|
|
3864
3908
|
params: {
|
|
3865
3909
|
q: s,
|
|
3866
3910
|
...a,
|
|
@@ -3869,8 +3913,8 @@ async function Lr({
|
|
|
3869
3913
|
...i
|
|
3870
3914
|
});
|
|
3871
3915
|
}
|
|
3872
|
-
async function
|
|
3873
|
-
baseUrl: r =
|
|
3916
|
+
async function Rr({
|
|
3917
|
+
baseUrl: r = ze,
|
|
3874
3918
|
connection: e,
|
|
3875
3919
|
accessToken: t,
|
|
3876
3920
|
table: s,
|
|
@@ -3880,21 +3924,21 @@ async function Pr({
|
|
|
3880
3924
|
signal: i,
|
|
3881
3925
|
...a
|
|
3882
3926
|
} = {},
|
|
3883
|
-
apiVersion: c =
|
|
3927
|
+
apiVersion: c = Qe
|
|
3884
3928
|
}) {
|
|
3885
3929
|
const l = `${r}/${c}/stats/${e}/${s}/${n}`;
|
|
3886
|
-
return
|
|
3930
|
+
return Dt({
|
|
3887
3931
|
accessToken: t,
|
|
3888
3932
|
signal: i,
|
|
3889
3933
|
url: l,
|
|
3890
|
-
method:
|
|
3934
|
+
method: ue.get,
|
|
3891
3935
|
params: {
|
|
3892
3936
|
...o
|
|
3893
3937
|
},
|
|
3894
3938
|
...a
|
|
3895
3939
|
});
|
|
3896
3940
|
}
|
|
3897
|
-
function
|
|
3941
|
+
function Po(r) {
|
|
3898
3942
|
const e = O(20), {
|
|
3899
3943
|
source: t,
|
|
3900
3944
|
attribute: s,
|
|
@@ -3914,7 +3958,7 @@ function So(r) {
|
|
|
3914
3958
|
let g;
|
|
3915
3959
|
e[5] !== s || e[6] !== t ? (g = [t, s], e[5] = s, e[6] = t, e[7] = g) : g = e[7];
|
|
3916
3960
|
let p;
|
|
3917
|
-
e[8] !== n || e[9] !== s || e[10] !== i || e[11] !== o || e[12] !== t ? (p = () =>
|
|
3961
|
+
e[8] !== n || e[9] !== s || e[10] !== i || e[11] !== o || e[12] !== t ? (p = () => Dr({
|
|
3918
3962
|
source: t,
|
|
3919
3963
|
params: o,
|
|
3920
3964
|
attribute: s,
|
|
@@ -3935,7 +3979,7 @@ function So(r) {
|
|
|
3935
3979
|
...y
|
|
3936
3980
|
}, e[14] = h, e[15] = t, e[16] = g, e[17] = p, e[18] = y, e[19] = v) : v = e[19], ne(v);
|
|
3937
3981
|
}
|
|
3938
|
-
function
|
|
3982
|
+
function Dr({
|
|
3939
3983
|
source: r,
|
|
3940
3984
|
params: e,
|
|
3941
3985
|
attribute: t,
|
|
@@ -3943,7 +3987,7 @@ function kr({
|
|
|
3943
3987
|
fetcherOptions: n
|
|
3944
3988
|
}) {
|
|
3945
3989
|
if (r.type.startsWith("query"))
|
|
3946
|
-
return
|
|
3990
|
+
return Ar({
|
|
3947
3991
|
connection: r.connectionName,
|
|
3948
3992
|
baseUrl: r.apiBaseUrl,
|
|
3949
3993
|
apiVersion: r.apiVersion,
|
|
@@ -3955,7 +3999,7 @@ function kr({
|
|
|
3955
3999
|
fetcherOptions: n
|
|
3956
4000
|
});
|
|
3957
4001
|
if (r.type.startsWith("table"))
|
|
3958
|
-
return
|
|
4002
|
+
return Rr({
|
|
3959
4003
|
connection: r.connectionName,
|
|
3960
4004
|
baseUrl: r.apiBaseUrl,
|
|
3961
4005
|
apiVersion: r.apiVersion,
|
|
@@ -3966,7 +4010,7 @@ function kr({
|
|
|
3966
4010
|
fetcherOptions: n
|
|
3967
4011
|
});
|
|
3968
4012
|
if (r.type.startsWith("tileset"))
|
|
3969
|
-
return
|
|
4013
|
+
return $r({
|
|
3970
4014
|
source: r,
|
|
3971
4015
|
accessToken: s,
|
|
3972
4016
|
target: r.data,
|
|
@@ -3974,13 +4018,13 @@ function kr({
|
|
|
3974
4018
|
});
|
|
3975
4019
|
throw new Error(`Unsupported source type: ${r.type}`);
|
|
3976
4020
|
}
|
|
3977
|
-
async function
|
|
4021
|
+
async function $r({
|
|
3978
4022
|
source: r,
|
|
3979
4023
|
accessToken: e,
|
|
3980
4024
|
target: t,
|
|
3981
4025
|
attribute: s
|
|
3982
4026
|
}) {
|
|
3983
|
-
const n = await
|
|
4027
|
+
const n = await ys({
|
|
3984
4028
|
connectionName: r.connectionName,
|
|
3985
4029
|
apiBaseUrl: r.apiBaseUrl,
|
|
3986
4030
|
accessToken: e,
|
|
@@ -3995,94 +4039,94 @@ async function Cr({
|
|
|
3995
4039
|
return i;
|
|
3996
4040
|
}
|
|
3997
4041
|
export {
|
|
3998
|
-
|
|
3999
|
-
|
|
4000
|
-
|
|
4042
|
+
oo as BasemapsControls,
|
|
4043
|
+
ot as CONVERSIONS_UNITS,
|
|
4044
|
+
$e as CartoBasemapURL,
|
|
4001
4045
|
X as CartoBasemaps,
|
|
4002
|
-
|
|
4003
|
-
|
|
4004
|
-
|
|
4005
|
-
|
|
4006
|
-
|
|
4007
|
-
|
|
4008
|
-
|
|
4009
|
-
|
|
4010
|
-
|
|
4011
|
-
|
|
4012
|
-
|
|
4013
|
-
|
|
4014
|
-
|
|
4015
|
-
|
|
4016
|
-
|
|
4046
|
+
uo as CategoriesModel,
|
|
4047
|
+
Is as CustomCompositeEditMode,
|
|
4048
|
+
Tt as CustomEditableGeojsonLayer,
|
|
4049
|
+
Xs as CustomMeasureAreaMode,
|
|
4050
|
+
en as CustomMeasureBufferMode,
|
|
4051
|
+
Ct as CustomMeasureDistanceMode,
|
|
4052
|
+
et as DEFAULT_LASSO_TOOLS_COLORS,
|
|
4053
|
+
Ns as DEFAULT_LASSO_TOOLS_LAYER_PROPS,
|
|
4054
|
+
Ue as DEFAULT_LASSO_TOOLS_MODES,
|
|
4055
|
+
qe as DEFAULT_LASSO_TOOLS_PROPS,
|
|
4056
|
+
_e as DEFAULT_MASK_LAYER_PROPS,
|
|
4057
|
+
rn as DEFAULT_MEASUREMENT_TOOLS_MODES,
|
|
4058
|
+
on as DEFAULT_MEASUREMENT_TOOLS_UNITS,
|
|
4059
|
+
Ve as DEFAULT_MEASURE_COLORS,
|
|
4060
|
+
ks as DeckGLComponent,
|
|
4017
4061
|
J as EditableEditType,
|
|
4018
|
-
|
|
4019
|
-
|
|
4020
|
-
|
|
4021
|
-
|
|
4022
|
-
|
|
4023
|
-
|
|
4024
|
-
|
|
4025
|
-
|
|
4026
|
-
|
|
4027
|
-
|
|
4062
|
+
fo as FeaturesModel,
|
|
4063
|
+
po as FormulaModel,
|
|
4064
|
+
De as GmapsBasemap,
|
|
4065
|
+
mo as HistogramModel,
|
|
4066
|
+
pe as INTL_UNITS,
|
|
4067
|
+
un as LassoTools,
|
|
4068
|
+
zs as LassoToolsProvider,
|
|
4069
|
+
me as MAPS_BASEMAP,
|
|
4070
|
+
ce as MAP_LASSO_TOOLS_LAYER_ID,
|
|
4071
|
+
Pe as MAP_MASK_LAYER_ID,
|
|
4028
4072
|
re as MAP_MEASURE_LAYER_ID,
|
|
4029
|
-
|
|
4030
|
-
|
|
4073
|
+
nn as MEASUREMENT_TOOLS_UNITS_AREA,
|
|
4074
|
+
at as MEASUREMENT_TOOLS_UNITS_DISTANCE,
|
|
4031
4075
|
Y as MEASUREMENT_TOOLS_UNITS_DISTANCE_VALUES,
|
|
4032
|
-
|
|
4033
|
-
|
|
4034
|
-
|
|
4035
|
-
|
|
4036
|
-
|
|
4076
|
+
ao as MapComponent,
|
|
4077
|
+
Ie as MapMeasurementUnitAuto,
|
|
4078
|
+
sn as MapMeasurementUnitTurf,
|
|
4079
|
+
js as MapProvider,
|
|
4080
|
+
So as MapsProvider,
|
|
4037
4081
|
ee as MapsTypes,
|
|
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
|
-
|
|
4073
|
-
|
|
4082
|
+
Tn as MeasurementTools,
|
|
4083
|
+
mn as MeasurementToolsProvider,
|
|
4084
|
+
yo as RangeModel,
|
|
4085
|
+
ho as ScatterModel,
|
|
4086
|
+
go as TableModel,
|
|
4087
|
+
bo as TimeSeriesModel,
|
|
4088
|
+
Lo as ZoomControls,
|
|
4089
|
+
vo as clientID,
|
|
4090
|
+
st as convertMetersTo,
|
|
4091
|
+
Zs as createLassoToolsStore,
|
|
4092
|
+
Vs as createMapStore,
|
|
4093
|
+
pn as createMeasurementToolsStore,
|
|
4094
|
+
le as formatterTypes,
|
|
4095
|
+
bs as getCursorDefault,
|
|
4096
|
+
io as getDeckController,
|
|
4097
|
+
co as getFilterValues,
|
|
4098
|
+
Gs as getLassoToolsLayer,
|
|
4099
|
+
dn as getMeasurementToolsLayer,
|
|
4100
|
+
ke as getTextLayerFormattedDistance,
|
|
4101
|
+
vs as getTooltipDefault,
|
|
4102
|
+
To as mappingLegendMeridian,
|
|
4103
|
+
Eo as objectToHtml,
|
|
4104
|
+
Rt as sortLayers,
|
|
4105
|
+
Fs as transitionFlyConfig,
|
|
4106
|
+
cr as useCategories,
|
|
4107
|
+
Ot as useEventManager,
|
|
4108
|
+
ur as useFeatures,
|
|
4109
|
+
tr as useFilters,
|
|
4110
|
+
dr as useFormula,
|
|
4111
|
+
fr as useHistogram,
|
|
4112
|
+
br as useLassoToolsSpatialFilter,
|
|
4113
|
+
z as useLassoToolsState,
|
|
4114
|
+
fe as useLayerStore,
|
|
4115
|
+
An as useLayers,
|
|
4116
|
+
wo as useLegend,
|
|
4117
|
+
_o as useMapScreenshot,
|
|
4074
4118
|
x as useMapStore,
|
|
4075
4119
|
G as useMeasurementToolsState,
|
|
4076
|
-
|
|
4077
|
-
|
|
4078
|
-
|
|
4079
|
-
|
|
4080
|
-
|
|
4081
|
-
|
|
4082
|
-
|
|
4083
|
-
|
|
4084
|
-
|
|
4085
|
-
|
|
4086
|
-
|
|
4120
|
+
pr as useRange,
|
|
4121
|
+
mr as useScatter,
|
|
4122
|
+
er as useSource,
|
|
4123
|
+
Le as useSourceStore,
|
|
4124
|
+
lo as useSourceWithFilters,
|
|
4125
|
+
Mo as useSpatialFilter,
|
|
4126
|
+
Po as useStats,
|
|
4127
|
+
yr as useTable,
|
|
4128
|
+
hr as useTimeSeries,
|
|
4129
|
+
gr as useViewportSpatialFilter,
|
|
4130
|
+
ir as useWidgetModel
|
|
4087
4131
|
};
|
|
4088
4132
|
//# sourceMappingURL=index.js.map
|