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