@carto/ps-react-maps 3.9.0 → 3.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +616 -618
- package/dist/index.js.map +1 -1
- package/dist/types/providers/map/types.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -79,7 +79,7 @@ function vs(r) {
|
|
|
79
79
|
}
|
|
80
80
|
function Ss(r) {
|
|
81
81
|
const e = D(42);
|
|
82
|
-
let t,
|
|
82
|
+
let t, s, n, o, i, a, l, c, g, p, m, d;
|
|
83
83
|
e[0] !== r ? ({
|
|
84
84
|
instanceRef: i,
|
|
85
85
|
overlayRef: p,
|
|
@@ -88,12 +88,12 @@ function Ss(r) {
|
|
|
88
88
|
layers: a,
|
|
89
89
|
mapStyle: l,
|
|
90
90
|
parameters: m,
|
|
91
|
-
getCursor:
|
|
92
|
-
getTooltip:
|
|
91
|
+
getCursor: s,
|
|
92
|
+
getTooltip: n,
|
|
93
93
|
onLoad: c,
|
|
94
94
|
onViewStateChange: g,
|
|
95
95
|
...d
|
|
96
|
-
} = r, e[0] = r, e[1] = t, e[2] =
|
|
96
|
+
} = r, e[0] = r, e[1] = t, e[2] = s, e[3] = n, e[4] = o, e[5] = i, e[6] = a, e[7] = l, e[8] = c, e[9] = g, e[10] = p, e[11] = m, e[12] = d) : (t = e[1], s = e[2], n = e[3], o = e[4], i = e[5], a = e[6], l = e[7], c = e[8], g = e[9], p = e[10], m = e[11], d = e[12]);
|
|
97
97
|
let h, y;
|
|
98
98
|
e[13] !== c ? (h = () => {
|
|
99
99
|
c({
|
|
@@ -127,10 +127,10 @@ function Ss(r) {
|
|
|
127
127
|
let U;
|
|
128
128
|
e[26] !== l || e[27] !== k ? (U = /* @__PURE__ */ N($t, { reuseMaps: !0, mapStyle: l, onLoad: k, onRender: ws }), e[26] = l, e[27] = k, e[28] = U) : U = e[28];
|
|
129
129
|
let C;
|
|
130
|
-
return e[29] !== b || e[30] !== t || e[31] !==
|
|
130
|
+
return e[29] !== b || e[30] !== t || e[31] !== s || e[32] !== n || e[33] !== o || e[34] !== g || e[35] !== d || e[36] !== U || e[37] !== S || e[38] !== E || e[39] !== w || e[40] !== _ ? (C = /* @__PURE__ */ N(Rt, { children: /* @__PURE__ */ N("div", { className: "deckgl-map", children: /* @__PURE__ */ ft(xt, { controller: t, id: o, ref: S, layers: b, getCursor: s, getTooltip: n, onLoad: E, onViewStateChange: g, parameters: w, ...d, children: [
|
|
131
131
|
_,
|
|
132
132
|
U
|
|
133
|
-
] }) }) }), e[29] = b, e[30] = t, e[31] =
|
|
133
|
+
] }) }) }), e[29] = b, e[30] = t, e[31] = s, e[32] = n, e[33] = o, e[34] = g, e[35] = d, e[36] = U, e[37] = S, e[38] = E, e[39] = w, e[40] = _, e[41] = C) : C = e[41], C;
|
|
134
134
|
}
|
|
135
135
|
function ws() {
|
|
136
136
|
const r = document.querySelector(".maplibregl-compact-show");
|
|
@@ -150,36 +150,36 @@ function _s(r) {
|
|
|
150
150
|
const e = D(3), {
|
|
151
151
|
overlayRef: t
|
|
152
152
|
} = r, {
|
|
153
|
-
default:
|
|
153
|
+
default: s
|
|
154
154
|
} = Ut();
|
|
155
|
-
let
|
|
156
|
-
return e[0] !==
|
|
155
|
+
let n, o;
|
|
156
|
+
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;
|
|
157
157
|
}
|
|
158
158
|
const Ms = (r) => {
|
|
159
159
|
const e = D(9);
|
|
160
|
-
let t,
|
|
161
|
-
e[0] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
160
|
+
let t, s;
|
|
161
|
+
e[0] === Symbol.for("react.memo_cache_sentinel") ? (s = new qt({
|
|
162
162
|
interleaved: !0
|
|
163
|
-
}), e[0] =
|
|
164
|
-
const
|
|
163
|
+
}), e[0] = s) : s = e[0], t = s;
|
|
164
|
+
const n = t, o = pt();
|
|
165
165
|
let i, a;
|
|
166
|
-
e[1] === Symbol.for("react.memo_cache_sentinel") ? (i = () =>
|
|
166
|
+
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);
|
|
167
167
|
let l, c;
|
|
168
|
-
e[3] !== o ? (l = () => (
|
|
169
|
-
|
|
170
|
-
}), c = [
|
|
168
|
+
e[3] !== o ? (l = () => (n.setMap(o), () => {
|
|
169
|
+
n.finalize();
|
|
170
|
+
}), c = [n, o], e[3] = o, e[4] = l, e[5] = c) : (l = e[4], c = e[5]), z(l, c);
|
|
171
171
|
let g, p;
|
|
172
172
|
return e[6] !== r ? (g = () => {
|
|
173
|
-
|
|
174
|
-
}, p = [
|
|
173
|
+
n.setProps(r);
|
|
174
|
+
}, p = [n, r], e[6] = r, e[7] = g, e[8] = p) : (g = e[7], p = e[8]), z(g, p), null;
|
|
175
175
|
};
|
|
176
176
|
function Ps({
|
|
177
177
|
id: r,
|
|
178
178
|
instanceRef: e,
|
|
179
179
|
basemap: t,
|
|
180
|
-
layers:
|
|
180
|
+
layers: s,
|
|
181
181
|
gmapsProps: {
|
|
182
|
-
apiKey:
|
|
182
|
+
apiKey: n,
|
|
183
183
|
APIProviderProps: o,
|
|
184
184
|
...i
|
|
185
185
|
} = {
|
|
@@ -201,10 +201,10 @@ function Ps({
|
|
|
201
201
|
value: !1
|
|
202
202
|
});
|
|
203
203
|
}, [c]);
|
|
204
|
-
const m = re(() =>
|
|
204
|
+
const m = re(() => s.filter((E) => !!(E != null && E.type)).map(({
|
|
205
205
|
type: E,
|
|
206
206
|
props: w
|
|
207
|
-
}) => new E(w)), [
|
|
207
|
+
}) => new E(w)), [s]), d = Q(({
|
|
208
208
|
detail: {
|
|
209
209
|
center: E,
|
|
210
210
|
zoom: w,
|
|
@@ -239,7 +239,7 @@ function Ps({
|
|
|
239
239
|
}
|
|
240
240
|
});
|
|
241
241
|
}, [e, g]);
|
|
242
|
-
return /* @__PURE__ */ N(Bt, { apiKey:
|
|
242
|
+
return /* @__PURE__ */ N(Bt, { apiKey: n, ...o, children: /* @__PURE__ */ N("div", { className: "deckgl-map", children: /* @__PURE__ */ ft(jt, { id: r, mapTypeId: t, disableDefaultUI: !0, gestureHandling: "greedy", ...i, center: {
|
|
243
243
|
lat: ((y = p.initialViewState) == null ? void 0 : y.latitude) ?? 0,
|
|
244
244
|
lng: ((T = p.initialViewState) == null ? void 0 : T.longitude) ?? 0
|
|
245
245
|
}, zoom: (((f = p.initialViewState) == null ? void 0 : f.zoom) ?? 0) + 1, tilt: (b = p.initialViewState) == null ? void 0 : b.pitch, heading: (S = p.initialViewState) == null ? void 0 : S.bearing, onTilesLoaded: () => {
|
|
@@ -264,16 +264,16 @@ function Ps({
|
|
|
264
264
|
function Ls(r) {
|
|
265
265
|
const e = D(3), {
|
|
266
266
|
id: t,
|
|
267
|
-
overlayRef:
|
|
268
|
-
} = r,
|
|
267
|
+
overlayRef: s
|
|
268
|
+
} = r, n = pt(t);
|
|
269
269
|
let o, i;
|
|
270
|
-
return e[0] !==
|
|
270
|
+
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;
|
|
271
271
|
}
|
|
272
272
|
function Os(r) {
|
|
273
273
|
const e = D(46);
|
|
274
|
-
let t,
|
|
274
|
+
let t, s, n, o, i, a, l, c, g, p, m, d;
|
|
275
275
|
e[0] !== r ? ({
|
|
276
|
-
instanceRef:
|
|
276
|
+
instanceRef: s,
|
|
277
277
|
overlayRef: o,
|
|
278
278
|
basemap: a,
|
|
279
279
|
controller: l,
|
|
@@ -282,10 +282,10 @@ function Os(r) {
|
|
|
282
282
|
gmapsProps: t,
|
|
283
283
|
getCursor: p,
|
|
284
284
|
getTooltip: m,
|
|
285
|
-
onLoad:
|
|
285
|
+
onLoad: n,
|
|
286
286
|
onViewStateChange: d,
|
|
287
287
|
...i
|
|
288
|
-
} = r, e[0] = r, e[1] = t, e[2] =
|
|
288
|
+
} = r, e[0] = r, e[1] = t, e[2] = s, e[3] = n, e[4] = o, e[5] = i, e[6] = a, e[7] = l, e[8] = c, e[9] = g, e[10] = p, e[11] = m, e[12] = d) : (t = e[1], s = e[2], n = e[3], o = e[4], i = e[5], a = e[6], l = e[7], c = e[8], g = e[9], p = e[10], m = e[11], d = e[12]);
|
|
289
289
|
const h = a === void 0 ? J.positron : a, y = l === void 0 ? !0 : l, T = c === void 0 ? "deck-gl-map" : c;
|
|
290
290
|
let f;
|
|
291
291
|
e[13] !== g ? (f = g === void 0 ? [] : g, e[13] = g, e[14] = f) : f = e[14];
|
|
@@ -306,14 +306,14 @@ function Os(r) {
|
|
|
306
306
|
}, e[18] = F) : F = e[18];
|
|
307
307
|
const u = F;
|
|
308
308
|
let v, P;
|
|
309
|
-
if (e[19] !== j || e[20] !==
|
|
310
|
-
|
|
311
|
-
}, P = [j,
|
|
309
|
+
if (e[19] !== j || e[20] !== n ? (v = () => {
|
|
310
|
+
n == null || n(j);
|
|
311
|
+
}, P = [j, n], e[19] = j, e[20] = n, e[21] = v, e[22] = P) : (v = e[21], P = e[22]), z(v, P), M) {
|
|
312
312
|
let L;
|
|
313
|
-
return e[23] !== h || e[24] !== y || e[25] !== S || e[26] !== E || e[27] !== t || e[28] !== T || e[29] !==
|
|
313
|
+
return e[23] !== h || e[24] !== y || e[25] !== S || e[26] !== E || e[27] !== t || e[28] !== T || e[29] !== s || e[30] !== b || e[31] !== w || e[32] !== o || e[33] !== i ? (L = /* @__PURE__ */ N(Ps, { instanceRef: s, overlayRef: o, controller: y, id: T, basemap: h, layers: b, gmapsProps: t, getCursor: S, getTooltip: E, onLoad: u, onViewStateChange: w, ...i }), e[23] = h, e[24] = y, e[25] = S, e[26] = E, e[27] = t, e[28] = T, e[29] = s, e[30] = b, e[31] = w, e[32] = o, e[33] = i, e[34] = L) : L = e[34], L;
|
|
314
314
|
}
|
|
315
315
|
let A;
|
|
316
|
-
return e[35] !== y || e[36] !== S || e[37] !== E || e[38] !== T || e[39] !==
|
|
316
|
+
return e[35] !== y || e[36] !== S || e[37] !== E || e[38] !== T || e[39] !== s || e[40] !== b || e[41] !== B || e[42] !== w || e[43] !== o || e[44] !== i ? (A = /* @__PURE__ */ N(Ss, { instanceRef: s, overlayRef: o, controller: y, id: T, layers: b, mapStyle: B, getCursor: S, getTooltip: E, onLoad: u, onViewStateChange: w, ...i }), e[35] = y, e[36] = S, e[37] = E, e[38] = T, e[39] = s, e[40] = b, e[41] = B, e[42] = w, e[43] = o, e[44] = i, e[45] = A) : A = e[45], A;
|
|
317
317
|
}
|
|
318
318
|
function Fs(r) {
|
|
319
319
|
return r;
|
|
@@ -327,12 +327,12 @@ const As = {
|
|
|
327
327
|
curve: 2
|
|
328
328
|
})
|
|
329
329
|
}, Cs = (r) => {
|
|
330
|
-
const e = r.reduce((t,
|
|
330
|
+
const e = r.reduce((t, s) => {
|
|
331
331
|
const {
|
|
332
|
-
id:
|
|
332
|
+
id: n,
|
|
333
333
|
basemap: o
|
|
334
|
-
} =
|
|
335
|
-
return t[
|
|
334
|
+
} = s;
|
|
335
|
+
return t[n] = {
|
|
336
336
|
isLoaded: !1,
|
|
337
337
|
basemap: o,
|
|
338
338
|
instanceRef: {
|
|
@@ -341,82 +341,82 @@ const As = {
|
|
|
341
341
|
overlayRef: {
|
|
342
342
|
current: null
|
|
343
343
|
},
|
|
344
|
-
layers:
|
|
344
|
+
layers: s.layers ?? []
|
|
345
345
|
}, t;
|
|
346
346
|
}, {});
|
|
347
|
-
return (t,
|
|
347
|
+
return (t, s) => ({
|
|
348
348
|
maps: e,
|
|
349
|
-
setBasemap: (
|
|
349
|
+
setBasemap: (n, o) => t((i) => {
|
|
350
350
|
var g;
|
|
351
351
|
const {
|
|
352
352
|
type: a
|
|
353
|
-
} = ye[i.maps[
|
|
353
|
+
} = ye[i.maps[n].basemap], {
|
|
354
354
|
type: l
|
|
355
|
-
} = ye[o], c = a === l && !!((g = i.maps[
|
|
355
|
+
} = ye[o], c = a === l && !!((g = i.maps[n]) != null && g.isLoaded);
|
|
356
356
|
return {
|
|
357
357
|
maps: {
|
|
358
358
|
...i.maps,
|
|
359
|
-
[
|
|
360
|
-
...i.maps[
|
|
359
|
+
[n]: {
|
|
360
|
+
...i.maps[n],
|
|
361
361
|
isLoaded: c,
|
|
362
362
|
basemap: o
|
|
363
363
|
}
|
|
364
364
|
}
|
|
365
365
|
};
|
|
366
366
|
}),
|
|
367
|
-
setLoad: (
|
|
367
|
+
setLoad: (n, o) => t((i) => ({
|
|
368
368
|
maps: {
|
|
369
369
|
...i.maps,
|
|
370
|
-
[
|
|
371
|
-
...i.maps[
|
|
370
|
+
[n]: {
|
|
371
|
+
...i.maps[n],
|
|
372
372
|
isLoaded: o
|
|
373
373
|
}
|
|
374
374
|
}
|
|
375
375
|
})),
|
|
376
|
-
getOverlayInstance: (
|
|
376
|
+
getOverlayInstance: (n) => {
|
|
377
377
|
var i, a;
|
|
378
|
-
return (a = (i =
|
|
378
|
+
return (a = (i = s().maps[n]) == null ? void 0 : i.overlayRef) == null ? void 0 : a.current;
|
|
379
379
|
},
|
|
380
|
-
getDeckInstance: (
|
|
380
|
+
getDeckInstance: (n) => {
|
|
381
381
|
var a, l;
|
|
382
|
-
const i = (l = (a =
|
|
382
|
+
const i = (l = (a = s().maps[n]) == null ? void 0 : a.instanceRef) == null ? void 0 : l.current;
|
|
383
383
|
return (
|
|
384
384
|
// @ts-expect-error accessing protected props
|
|
385
385
|
(i == null ? void 0 : i.deck) ?? i._deck
|
|
386
386
|
);
|
|
387
387
|
},
|
|
388
|
-
getViewState: (
|
|
389
|
-
const i =
|
|
388
|
+
getViewState: (n) => {
|
|
389
|
+
const i = s().getDeckInstance(n);
|
|
390
390
|
return i == null ? void 0 : i.viewState;
|
|
391
391
|
},
|
|
392
|
-
getViewports: (
|
|
393
|
-
const a =
|
|
392
|
+
getViewports: (n, o) => {
|
|
393
|
+
const a = s().getDeckInstance(n);
|
|
394
394
|
return a == null ? void 0 : a.getViewports(o);
|
|
395
395
|
},
|
|
396
|
-
getViewport: (
|
|
396
|
+
getViewport: (n, o = 0, i) => {
|
|
397
397
|
var c;
|
|
398
|
-
const l =
|
|
398
|
+
const l = s().getDeckInstance(n);
|
|
399
399
|
return (c = l == null ? void 0 : l.getViewports(i)) == null ? void 0 : c[o];
|
|
400
400
|
},
|
|
401
|
-
addLayers: (
|
|
401
|
+
addLayers: (n, o) => t((i) => {
|
|
402
402
|
var g;
|
|
403
403
|
const a = {
|
|
404
404
|
...i.maps
|
|
405
|
-
}, l = ((g = a[
|
|
406
|
-
return a[
|
|
407
|
-
...a[
|
|
405
|
+
}, l = ((g = a[n]) == null ? void 0 : g.layers) ?? [], c = /* @__PURE__ */ new Set([...l, ...o]);
|
|
406
|
+
return a[n] = {
|
|
407
|
+
...a[n],
|
|
408
408
|
layers: [...c]
|
|
409
409
|
}, {
|
|
410
410
|
maps: a
|
|
411
411
|
};
|
|
412
412
|
}),
|
|
413
|
-
removeLayers: (
|
|
413
|
+
removeLayers: (n, o) => t((i) => {
|
|
414
414
|
var c;
|
|
415
415
|
const a = {
|
|
416
416
|
...i.maps
|
|
417
|
-
}, l = ((c = a[
|
|
418
|
-
return a[
|
|
419
|
-
...a[
|
|
417
|
+
}, l = ((c = a[n]) == null ? void 0 : c.layers) ?? [];
|
|
418
|
+
return a[n] = {
|
|
419
|
+
...a[n],
|
|
420
420
|
layers: l.filter((g) => !o.includes(g))
|
|
421
421
|
}, {
|
|
422
422
|
maps: a
|
|
@@ -424,127 +424,125 @@ const As = {
|
|
|
424
424
|
})
|
|
425
425
|
});
|
|
426
426
|
}, Ds = (r) => {
|
|
427
|
-
const e = r.reduce((t,
|
|
427
|
+
const e = r.reduce((t, s) => {
|
|
428
428
|
const {
|
|
429
|
-
id:
|
|
430
|
-
} =
|
|
431
|
-
return t[
|
|
429
|
+
id: n
|
|
430
|
+
} = s;
|
|
431
|
+
return t[n] = !1, t;
|
|
432
432
|
}, {});
|
|
433
433
|
return (t) => ({
|
|
434
434
|
areLayersLoaded: e,
|
|
435
|
-
setLayersLoad: (
|
|
435
|
+
setLayersLoad: (s, n) => t((o) => ({
|
|
436
436
|
areLayersLoaded: {
|
|
437
437
|
...o.areLayersLoaded,
|
|
438
|
-
[
|
|
438
|
+
[s]: n
|
|
439
439
|
}
|
|
440
440
|
}))
|
|
441
441
|
});
|
|
442
442
|
}, Rs = (r) => {
|
|
443
|
-
const e = r.reduce((t,
|
|
444
|
-
const
|
|
445
|
-
return t.initialViewStates[
|
|
443
|
+
const e = r.reduce((t, s) => {
|
|
444
|
+
const n = s.initialViewState ?? s.viewState;
|
|
445
|
+
return t.initialViewStates[s.id] = n, t.viewStates[s.id] = n, t.viewports[s.id] = null, t;
|
|
446
446
|
}, {
|
|
447
447
|
viewStates: {},
|
|
448
448
|
viewports: {},
|
|
449
449
|
initialViewStates: {}
|
|
450
450
|
});
|
|
451
|
-
return (t,
|
|
451
|
+
return (t, s) => ({
|
|
452
452
|
viewports: e.viewports,
|
|
453
453
|
initialViewStates: e.initialViewStates,
|
|
454
|
-
updateViewPort: (
|
|
454
|
+
updateViewPort: (n) => {
|
|
455
455
|
var a;
|
|
456
|
-
const o =
|
|
457
|
-
if (!((a = o.maps[
|
|
458
|
-
const i = new It(o.viewStates[
|
|
456
|
+
const o = s();
|
|
457
|
+
if (!((a = o.maps[n]) != null && a.isLoaded)) return;
|
|
458
|
+
const i = new It(o.viewStates[n]);
|
|
459
459
|
t((l) => ({
|
|
460
460
|
viewports: {
|
|
461
461
|
...l.viewports,
|
|
462
|
-
[
|
|
462
|
+
[n]: i
|
|
463
463
|
}
|
|
464
464
|
}));
|
|
465
465
|
},
|
|
466
466
|
viewStates: e.viewStates,
|
|
467
|
-
setViewState: (
|
|
467
|
+
setViewState: (n, o) => t((i) => ({
|
|
468
468
|
viewStates: {
|
|
469
469
|
...i.viewStates,
|
|
470
|
-
[
|
|
471
|
-
...i.viewStates[
|
|
470
|
+
[n]: {
|
|
471
|
+
...i.viewStates[n],
|
|
472
472
|
...o
|
|
473
473
|
}
|
|
474
474
|
}
|
|
475
475
|
})),
|
|
476
|
-
|
|
477
|
-
viewStates: {
|
|
478
|
-
...o.viewStates,
|
|
479
|
-
[s]: o.initialViewStates[s]
|
|
480
|
-
}
|
|
481
|
-
})),
|
|
482
|
-
setInitialViewState: (s, o) => t((i) => ({
|
|
476
|
+
setInitialViewState: (n, o) => t((i) => ({
|
|
483
477
|
initialViewStates: {
|
|
484
478
|
...i.initialViewStates,
|
|
485
|
-
[
|
|
479
|
+
[n]: o
|
|
486
480
|
}
|
|
487
481
|
})),
|
|
488
|
-
setZoom: (
|
|
482
|
+
setZoom: (n, o) => t((i) => ({
|
|
489
483
|
viewStates: {
|
|
490
484
|
...i.viewStates,
|
|
491
|
-
[
|
|
492
|
-
...i.viewStates[
|
|
485
|
+
[n]: {
|
|
486
|
+
...i.viewStates[n],
|
|
493
487
|
zoom: o
|
|
494
488
|
}
|
|
495
489
|
}
|
|
496
490
|
})),
|
|
497
|
-
setMinZoom: (
|
|
491
|
+
setMinZoom: (n, o) => t((i) => ({
|
|
498
492
|
viewStates: {
|
|
499
493
|
...i.viewStates,
|
|
500
|
-
[
|
|
501
|
-
...i.viewStates[
|
|
494
|
+
[n]: {
|
|
495
|
+
...i.viewStates[n],
|
|
502
496
|
minZoom: o
|
|
503
497
|
}
|
|
504
498
|
}
|
|
505
499
|
})),
|
|
506
|
-
setMaxZoom: (
|
|
500
|
+
setMaxZoom: (n, o) => t((i) => ({
|
|
507
501
|
viewStates: {
|
|
508
502
|
...i.viewStates,
|
|
509
|
-
[
|
|
510
|
-
...i.viewStates[
|
|
503
|
+
[n]: {
|
|
504
|
+
...i.viewStates[n],
|
|
511
505
|
maxZoom: o
|
|
512
506
|
}
|
|
513
507
|
}
|
|
514
508
|
}))
|
|
515
509
|
});
|
|
516
510
|
}, $s = (r, e) => ({
|
|
517
|
-
fitBounds: (t,
|
|
511
|
+
fitBounds: (t, s, n) => {
|
|
518
512
|
const o = e(), i = o.getViewport(t);
|
|
519
513
|
if (!i) return;
|
|
520
514
|
const l = {
|
|
521
|
-
...i == null ? void 0 : i.fitBounds(
|
|
522
|
-
...
|
|
515
|
+
...i == null ? void 0 : i.fitBounds(s, n == null ? void 0 : n.boundsOptions),
|
|
516
|
+
...n == null ? void 0 : n.viewStateOptions
|
|
523
517
|
};
|
|
524
518
|
o.setViewState(t, l), o.updateViewPort(t);
|
|
525
519
|
},
|
|
526
|
-
flyTo: (t,
|
|
520
|
+
flyTo: (t, s, n = {}) => {
|
|
527
521
|
const o = e();
|
|
528
522
|
if (!o.getViewport(t)) return;
|
|
529
523
|
const a = {
|
|
530
524
|
...As,
|
|
531
|
-
...
|
|
525
|
+
...n == null ? void 0 : n.viewStateOptions
|
|
532
526
|
}, l = {
|
|
533
|
-
...
|
|
527
|
+
...s,
|
|
534
528
|
...a
|
|
535
529
|
};
|
|
536
530
|
o.setViewState(t, l), o.updateViewPort(t);
|
|
531
|
+
},
|
|
532
|
+
resetViewState: (t) => {
|
|
533
|
+
const s = e(), n = s.initialViewStates;
|
|
534
|
+
n[t] && s.flyTo(t, n[t]);
|
|
537
535
|
}
|
|
538
536
|
}), Us = (r) => {
|
|
539
|
-
const e = r.reduce((t,
|
|
537
|
+
const e = r.reduce((t, s) => (t[s.id] = s.spatialFilter ?? {}, t), {});
|
|
540
538
|
return (t) => ({
|
|
541
539
|
spatialFilter: e,
|
|
542
|
-
setSpatialFilter: (
|
|
540
|
+
setSpatialFilter: (s, n, o) => {
|
|
543
541
|
t((i) => {
|
|
544
542
|
const a = structuredClone(i.spatialFilter);
|
|
545
|
-
return o == null ? a[
|
|
546
|
-
...a[
|
|
547
|
-
[
|
|
543
|
+
return o == null ? a[s] && delete a[s][n] : a[s] = {
|
|
544
|
+
...a[s],
|
|
545
|
+
[n]: o
|
|
548
546
|
}, {
|
|
549
547
|
spatialFilter: a
|
|
550
548
|
};
|
|
@@ -561,11 +559,11 @@ const As = {
|
|
|
561
559
|
function Bs(r) {
|
|
562
560
|
const e = D(5), {
|
|
563
561
|
children: t,
|
|
564
|
-
values:
|
|
562
|
+
values: s
|
|
565
563
|
} = r;
|
|
566
|
-
let
|
|
567
|
-
e[0] !==
|
|
568
|
-
const [o] = oe(
|
|
564
|
+
let n;
|
|
565
|
+
e[0] !== s ? (n = xs(s), e[0] = s, e[1] = n) : n = e[1];
|
|
566
|
+
const [o] = oe(n);
|
|
569
567
|
let i;
|
|
570
568
|
return e[2] !== t || e[3] !== o ? (i = /* @__PURE__ */ N(St.Provider, { value: o, children: t }), e[2] = t, e[3] = o, e[4] = i) : i = e[4], i;
|
|
571
569
|
}
|
|
@@ -578,15 +576,15 @@ function $(r) {
|
|
|
578
576
|
function zr(r) {
|
|
579
577
|
const e = D(9), {
|
|
580
578
|
children: t,
|
|
581
|
-
mapId:
|
|
579
|
+
mapId: s
|
|
582
580
|
} = r;
|
|
583
|
-
let
|
|
584
|
-
e[0] !==
|
|
581
|
+
let n;
|
|
582
|
+
e[0] !== s ? (n = (g) => g.maps[s], e[0] = s, e[1] = n) : n = e[1];
|
|
585
583
|
const {
|
|
586
584
|
basemap: o
|
|
587
|
-
} = $(
|
|
585
|
+
} = $(n), i = $(js);
|
|
588
586
|
let a;
|
|
589
|
-
e[2] !==
|
|
587
|
+
e[2] !== s || e[3] !== i ? (a = (g) => i(s, g), e[2] = s, e[3] = i, e[4] = a) : a = e[4];
|
|
590
588
|
const l = a;
|
|
591
589
|
let c;
|
|
592
590
|
return e[5] !== o || e[6] !== t || e[7] !== l ? (c = t({
|
|
@@ -682,23 +680,23 @@ const ce = "lassoLayer", Le = "maskLayer", Vs = {
|
|
|
682
680
|
}
|
|
683
681
|
}, pe = mt((r) => ({
|
|
684
682
|
layers: {},
|
|
685
|
-
setLayer: (e, t) => r((
|
|
683
|
+
setLayer: (e, t) => r((s) => {
|
|
686
684
|
var l, c;
|
|
687
|
-
const
|
|
688
|
-
...
|
|
685
|
+
const n = {
|
|
686
|
+
...s.layers
|
|
689
687
|
};
|
|
690
688
|
if (!t)
|
|
691
|
-
return delete
|
|
692
|
-
layers:
|
|
689
|
+
return delete n[e], {
|
|
690
|
+
layers: n
|
|
693
691
|
};
|
|
694
|
-
const o =
|
|
692
|
+
const o = n[e] ?? {
|
|
695
693
|
type: null,
|
|
696
694
|
props: {}
|
|
697
695
|
}, i = [...o.props.extensions ?? [], ...((l = t.props) == null ? void 0 : l.extensions) ?? []].reduce((g, p) => (g.some((m) => m.equals(p)) || g.push(p), g), []), a = o.legend || t.legend ? {
|
|
698
696
|
...o.legend,
|
|
699
697
|
...t.legend
|
|
700
698
|
} : void 0;
|
|
701
|
-
return
|
|
699
|
+
return n[e] = {
|
|
702
700
|
...o,
|
|
703
701
|
...t,
|
|
704
702
|
props: {
|
|
@@ -713,15 +711,15 @@ const ce = "lassoLayer", Le = "maskLayer", Vs = {
|
|
|
713
711
|
},
|
|
714
712
|
legend: a
|
|
715
713
|
}, {
|
|
716
|
-
layers:
|
|
714
|
+
layers: n
|
|
717
715
|
};
|
|
718
716
|
}),
|
|
719
717
|
removeLayer: (e) => r((t) => {
|
|
720
|
-
const
|
|
718
|
+
const s = {
|
|
721
719
|
...t.layers
|
|
722
720
|
};
|
|
723
|
-
return delete
|
|
724
|
-
layers:
|
|
721
|
+
return delete s[e], {
|
|
722
|
+
layers: s
|
|
725
723
|
};
|
|
726
724
|
})
|
|
727
725
|
}));
|
|
@@ -743,9 +741,9 @@ function Ns() {
|
|
|
743
741
|
var b = Object.prototype.toString.call(f);
|
|
744
742
|
return b === "[object RegExp]" || b === "[object Date]" || o(f);
|
|
745
743
|
}
|
|
746
|
-
var
|
|
744
|
+
var s = typeof Symbol == "function" && Symbol.for, n = s ? Symbol.for("react.element") : 60103;
|
|
747
745
|
function o(f) {
|
|
748
|
-
return f.$$typeof ===
|
|
746
|
+
return f.$$typeof === n;
|
|
749
747
|
}
|
|
750
748
|
function i(f) {
|
|
751
749
|
return Array.isArray(f) ? [] : {};
|
|
@@ -811,32 +809,32 @@ class Tt extends Kt {
|
|
|
811
809
|
updateState({
|
|
812
810
|
props: e,
|
|
813
811
|
oldProps: t,
|
|
814
|
-
context:
|
|
815
|
-
changeFlags:
|
|
812
|
+
context: s,
|
|
813
|
+
changeFlags: n
|
|
816
814
|
}) {
|
|
817
815
|
e.eventManager !== t.eventManager && (this._removeEventHandlers(e.eventManager), this._removeEventHandlers(t.eventManager), this._addEventHandlers()), super.updateState({
|
|
818
816
|
props: e,
|
|
819
817
|
oldProps: t,
|
|
820
|
-
context:
|
|
821
|
-
changeFlags:
|
|
818
|
+
context: s,
|
|
819
|
+
changeFlags: n
|
|
822
820
|
});
|
|
823
821
|
}
|
|
824
822
|
_addEventHandlers() {
|
|
825
823
|
const e = this._getEventManager(), {
|
|
826
824
|
eventHandler: t
|
|
827
825
|
} = this.state._editableLayerState;
|
|
828
|
-
for (const
|
|
829
|
-
e.on(
|
|
826
|
+
for (const s of tt)
|
|
827
|
+
e.on(s, t, {
|
|
830
828
|
// give nebula a higher priority so that it can stop propagation to deck.gl's map panning handlers
|
|
831
829
|
priority: 100
|
|
832
830
|
});
|
|
833
831
|
}
|
|
834
832
|
_removeEventHandlers(e) {
|
|
835
833
|
const t = e ?? this._getEventManager(), {
|
|
836
|
-
eventHandler:
|
|
834
|
+
eventHandler: s
|
|
837
835
|
} = this.state._editableLayerState;
|
|
838
|
-
for (const
|
|
839
|
-
t.off(
|
|
836
|
+
for (const n of tt)
|
|
837
|
+
t.off(n, s);
|
|
840
838
|
}
|
|
841
839
|
_getEventManager() {
|
|
842
840
|
return this.props.eventManager ?? // @ts-expect-error accessing protected props
|
|
@@ -860,8 +858,8 @@ function zs({
|
|
|
860
858
|
layerProps: r,
|
|
861
859
|
onEdit: e,
|
|
862
860
|
getLineColor: t,
|
|
863
|
-
getFillColor:
|
|
864
|
-
pointColor:
|
|
861
|
+
getFillColor: s,
|
|
862
|
+
pointColor: n
|
|
865
863
|
}) {
|
|
866
864
|
const o = ue(r, {
|
|
867
865
|
modeConfig: {
|
|
@@ -874,17 +872,17 @@ function zs({
|
|
|
874
872
|
onEdit: e
|
|
875
873
|
}), i = ue(Vs, {
|
|
876
874
|
getTentativeLineColor: t,
|
|
877
|
-
getTentativeFillColor:
|
|
875
|
+
getTentativeFillColor: s,
|
|
878
876
|
getLineColor: t,
|
|
879
|
-
getFillColor:
|
|
880
|
-
getEditHandlePointColor:
|
|
881
|
-
getEditHandlePointOutlineColor:
|
|
877
|
+
getFillColor: s,
|
|
878
|
+
getEditHandlePointColor: n.fill,
|
|
879
|
+
getEditHandlePointOutlineColor: n.outline,
|
|
882
880
|
dataComparator: (l, c) => l.features[0] === c.features[0]
|
|
883
881
|
});
|
|
884
882
|
return ue(i, o);
|
|
885
883
|
}
|
|
886
884
|
const Qs = (r) => ze()((e) => ({
|
|
887
|
-
data: r.reduce((
|
|
885
|
+
data: r.reduce((s, n) => {
|
|
888
886
|
const {
|
|
889
887
|
enabled: o = !1,
|
|
890
888
|
mapId: i,
|
|
@@ -892,86 +890,86 @@ const Qs = (r) => ze()((e) => ({
|
|
|
892
890
|
modes: l = xe,
|
|
893
891
|
modeSelected: c = xe.polygon.value,
|
|
894
892
|
values: g = {}
|
|
895
|
-
} =
|
|
896
|
-
return
|
|
893
|
+
} = n;
|
|
894
|
+
return s[i] = {
|
|
897
895
|
enabled: o,
|
|
898
896
|
modeInstance: a,
|
|
899
897
|
modes: l,
|
|
900
898
|
modeSelected: c,
|
|
901
899
|
values: g
|
|
902
|
-
},
|
|
900
|
+
}, s;
|
|
903
901
|
}, {}),
|
|
904
|
-
setEnabled: (
|
|
902
|
+
setEnabled: (s, n) => {
|
|
905
903
|
e((o) => ({
|
|
906
904
|
data: {
|
|
907
905
|
...o.data,
|
|
908
|
-
[
|
|
909
|
-
...o.data[
|
|
910
|
-
enabled:
|
|
911
|
-
visible:
|
|
906
|
+
[s]: {
|
|
907
|
+
...o.data[s],
|
|
908
|
+
enabled: n,
|
|
909
|
+
visible: n
|
|
912
910
|
}
|
|
913
911
|
}
|
|
914
912
|
}));
|
|
915
913
|
},
|
|
916
|
-
setValue: (
|
|
914
|
+
setValue: (s, n, o) => {
|
|
917
915
|
e((i) => {
|
|
918
916
|
const a = {
|
|
919
|
-
...i.data[
|
|
920
|
-
}, l = a[
|
|
917
|
+
...i.data[s].values
|
|
918
|
+
}, l = a[n] ?? {
|
|
921
919
|
type: "mask"
|
|
922
920
|
};
|
|
923
|
-
return a[
|
|
921
|
+
return a[n] = {
|
|
924
922
|
...l,
|
|
925
923
|
...o,
|
|
926
|
-
id:
|
|
927
|
-
}, o || delete a[
|
|
924
|
+
id: n
|
|
925
|
+
}, o || delete a[n], {
|
|
928
926
|
data: {
|
|
929
927
|
...i.data,
|
|
930
|
-
[
|
|
931
|
-
...i.data[
|
|
928
|
+
[s]: {
|
|
929
|
+
...i.data[s],
|
|
932
930
|
values: a
|
|
933
931
|
}
|
|
934
932
|
}
|
|
935
933
|
};
|
|
936
934
|
});
|
|
937
935
|
},
|
|
938
|
-
setVisibility: (
|
|
936
|
+
setVisibility: (s, n, o) => {
|
|
939
937
|
e((i) => {
|
|
940
938
|
const a = {
|
|
941
|
-
...i.data[
|
|
942
|
-
}, l = a[
|
|
939
|
+
...i.data[s].values
|
|
940
|
+
}, l = a[n] ?? {};
|
|
943
941
|
return l.properties.visible = o, {
|
|
944
942
|
data: {
|
|
945
943
|
...i.data,
|
|
946
|
-
[
|
|
947
|
-
...i.data[
|
|
944
|
+
[s]: {
|
|
945
|
+
...i.data[s],
|
|
948
946
|
values: {
|
|
949
947
|
...a,
|
|
950
|
-
[
|
|
948
|
+
[n]: l
|
|
951
949
|
}
|
|
952
950
|
}
|
|
953
951
|
}
|
|
954
952
|
};
|
|
955
953
|
});
|
|
956
954
|
},
|
|
957
|
-
setModeSelected: (
|
|
955
|
+
setModeSelected: (s, n) => {
|
|
958
956
|
e((o) => ({
|
|
959
957
|
data: {
|
|
960
958
|
...o.data,
|
|
961
|
-
[
|
|
962
|
-
...o.data[
|
|
963
|
-
modeSelected:
|
|
959
|
+
[s]: {
|
|
960
|
+
...o.data[s],
|
|
961
|
+
modeSelected: n
|
|
964
962
|
}
|
|
965
963
|
}
|
|
966
964
|
}));
|
|
967
965
|
},
|
|
968
|
-
setModeInstance: (
|
|
966
|
+
setModeInstance: (s, n) => {
|
|
969
967
|
e((o) => ({
|
|
970
968
|
data: {
|
|
971
969
|
...o.data,
|
|
972
|
-
[
|
|
973
|
-
...o.data[
|
|
974
|
-
modeInstance:
|
|
970
|
+
[s]: {
|
|
971
|
+
...o.data[s],
|
|
972
|
+
modeInstance: n
|
|
975
973
|
}
|
|
976
974
|
}
|
|
977
975
|
}));
|
|
@@ -980,11 +978,11 @@ const Qs = (r) => ze()((e) => ({
|
|
|
980
978
|
function Ws(r) {
|
|
981
979
|
const e = D(5), {
|
|
982
980
|
children: t,
|
|
983
|
-
values:
|
|
981
|
+
values: s
|
|
984
982
|
} = r;
|
|
985
|
-
let
|
|
986
|
-
e[0] !==
|
|
987
|
-
const [o] = oe(
|
|
983
|
+
let n;
|
|
984
|
+
e[0] !== s ? (n = () => Qs(s), e[0] = s, e[1] = n) : n = e[1];
|
|
985
|
+
const [o] = oe(n);
|
|
988
986
|
let i;
|
|
989
987
|
return e[2] !== t || e[3] !== o ? (i = /* @__PURE__ */ N(Et.Provider, { value: o, children: t }), e[2] = t, e[3] = o, e[4] = i) : i = e[4], i;
|
|
990
988
|
}
|
|
@@ -1001,7 +999,7 @@ function Ks({
|
|
|
1001
999
|
const t = G((d) => {
|
|
1002
1000
|
var h;
|
|
1003
1001
|
return (h = d.data[r]) == null ? void 0 : h.enabled;
|
|
1004
|
-
}),
|
|
1002
|
+
}), s = G((d) => d.setEnabled), n = G((d) => {
|
|
1005
1003
|
var h;
|
|
1006
1004
|
return (h = d.data[r]) == null ? void 0 : h.values;
|
|
1007
1005
|
}), o = G((d) => d.setValue), i = G((d) => d.setVisibility), a = G((d) => {
|
|
@@ -1031,12 +1029,12 @@ function Ks({
|
|
|
1031
1029
|
};
|
|
1032
1030
|
};
|
|
1033
1031
|
return [
|
|
1034
|
-
Object.values(
|
|
1032
|
+
Object.values(n).filter((T) => T.type === "mask").map(d)
|
|
1035
1033
|
// , draw
|
|
1036
1034
|
];
|
|
1037
|
-
}, [
|
|
1038
|
-
|
|
1039
|
-
}, [r,
|
|
1035
|
+
}, [n]), m = Q((d) => {
|
|
1036
|
+
s(r, !!d), l(r, d);
|
|
1037
|
+
}, [r, s, l]);
|
|
1040
1038
|
return e({
|
|
1041
1039
|
mapId: r,
|
|
1042
1040
|
enabled: t,
|
|
@@ -1047,7 +1045,7 @@ function Ks({
|
|
|
1047
1045
|
// draw,
|
|
1048
1046
|
},
|
|
1049
1047
|
setValue: Q((d) => o(r, d), [r, o]),
|
|
1050
|
-
setEnabled: Q((d) =>
|
|
1048
|
+
setEnabled: Q((d) => s(r, d), [r, s]),
|
|
1051
1049
|
setVisibility: Q((d, h) => i(r, d, h), [r, i]),
|
|
1052
1050
|
setModeSelected: m
|
|
1053
1051
|
});
|
|
@@ -1069,8 +1067,8 @@ function Oe({
|
|
|
1069
1067
|
unit: e,
|
|
1070
1068
|
locale: t,
|
|
1071
1069
|
options: {
|
|
1072
|
-
autoSplitNumber:
|
|
1073
|
-
...
|
|
1070
|
+
autoSplitNumber: s,
|
|
1071
|
+
...n
|
|
1074
1072
|
} = {
|
|
1075
1073
|
autoSplitNumber: nt
|
|
1076
1074
|
}
|
|
@@ -1078,7 +1076,7 @@ function Oe({
|
|
|
1078
1076
|
const o = e === Ie["m-km"], i = e === Ie["ft-mi"], a = o || i;
|
|
1079
1077
|
let l, c;
|
|
1080
1078
|
if (a) {
|
|
1081
|
-
const g = r < (
|
|
1079
|
+
const g = r < (s ?? nt);
|
|
1082
1080
|
let p = g ? V.meter : V.kilometer;
|
|
1083
1081
|
l = g ? me.meter : me.kilometer, i && (l = g ? me.feet : me.mile, p = g ? V.feet : V.mile), c = st(r, p);
|
|
1084
1082
|
} else
|
|
@@ -1090,7 +1088,7 @@ function Oe({
|
|
|
1090
1088
|
notation: "standard",
|
|
1091
1089
|
minimumFractionDigits: 2,
|
|
1092
1090
|
maximumFractionDigits: 2,
|
|
1093
|
-
...
|
|
1091
|
+
...n
|
|
1094
1092
|
})}`;
|
|
1095
1093
|
}
|
|
1096
1094
|
function Qr(r, {
|
|
@@ -1106,15 +1104,15 @@ function Qr(r, {
|
|
|
1106
1104
|
function Mt(r, e, t) {
|
|
1107
1105
|
if (r > 0) {
|
|
1108
1106
|
const {
|
|
1109
|
-
formatTooltip:
|
|
1110
|
-
turfOptions:
|
|
1107
|
+
formatTooltip: s,
|
|
1108
|
+
turfOptions: n
|
|
1111
1109
|
} = t ?? {
|
|
1112
1110
|
turfOptions: {
|
|
1113
1111
|
units: "kilometers"
|
|
1114
1112
|
}
|
|
1115
|
-
}, o =
|
|
1113
|
+
}, o = n == null ? void 0 : n.units;
|
|
1116
1114
|
let i;
|
|
1117
|
-
|
|
1115
|
+
s ? i = s(r) : i = `${parseFloat(r.toString()).toFixed(2)} ${o}`;
|
|
1118
1116
|
const {
|
|
1119
1117
|
measurementCallback: a
|
|
1120
1118
|
} = t;
|
|
@@ -1136,35 +1134,35 @@ class Ys extends Zt {
|
|
|
1136
1134
|
features: []
|
|
1137
1135
|
});
|
|
1138
1136
|
}
|
|
1139
|
-
handleClick(t,
|
|
1137
|
+
handleClick(t, s) {
|
|
1140
1138
|
this._isMeasuringSessionFinished && (this._isMeasuringSessionFinished = !1, this.resetClickSequence(), this.area = 0);
|
|
1141
1139
|
const {
|
|
1142
|
-
picks:
|
|
1143
|
-
} = t, o = Yt(
|
|
1140
|
+
picks: n
|
|
1141
|
+
} = t, o = Yt(n), i = this.getClickSequence();
|
|
1144
1142
|
let a = !1;
|
|
1145
|
-
!o && !this.allowOverlapping(
|
|
1143
|
+
!o && !this.allowOverlapping(s) && (this.addClickSequence(t), a = !0), this.area = Ye({
|
|
1146
1144
|
type: "Polygon",
|
|
1147
1145
|
coordinates: [this.getClickSequence()]
|
|
1148
|
-
}), this.isFinalizedEdition(i, o) ? this.finalizeEdition(
|
|
1146
|
+
}), this.isFinalizedEdition(i, o) ? this.finalizeEdition(s) : a && s.onEdit({
|
|
1149
1147
|
// data is the same
|
|
1150
|
-
updatedData:
|
|
1148
|
+
updatedData: s.data,
|
|
1151
1149
|
editType: "addTentativePosition",
|
|
1152
1150
|
editContext: {
|
|
1153
1151
|
position: t.mapCoords
|
|
1154
1152
|
}
|
|
1155
1153
|
});
|
|
1156
1154
|
}
|
|
1157
|
-
handleKeyUp(t,
|
|
1158
|
-
t.key === "Enter" ? this.getClickSequence().length > 2 ? this.finalizeEdition(
|
|
1155
|
+
handleKeyUp(t, s) {
|
|
1156
|
+
t.key === "Enter" ? this.getClickSequence().length > 2 ? this.finalizeEdition(s) : this.resetEdition(s) : t.key === "Escape" && this.resetEdition(s);
|
|
1159
1157
|
}
|
|
1160
|
-
handlePointerMove(t,
|
|
1158
|
+
handlePointerMove(t, s) {
|
|
1161
1159
|
if (this._isMeasuringSessionFinished)
|
|
1162
1160
|
return;
|
|
1163
|
-
super.handlePointerMove(t,
|
|
1164
|
-
const
|
|
1165
|
-
if (
|
|
1166
|
-
const o = rs(
|
|
1167
|
-
this.area = Ye(
|
|
1161
|
+
super.handlePointerMove(t, s);
|
|
1162
|
+
const n = this.getTentativeGuide(s);
|
|
1163
|
+
if (n && n.geometry.type === "Polygon") {
|
|
1164
|
+
const o = rs(n);
|
|
1165
|
+
this.area = Ye(n), this.tooltips = Mt(this.area, o.geometry.coordinates, s.modeConfig);
|
|
1168
1166
|
}
|
|
1169
1167
|
}
|
|
1170
1168
|
resetClickSequence() {
|
|
@@ -1176,41 +1174,41 @@ class Ys extends Zt {
|
|
|
1176
1174
|
getTooltips() {
|
|
1177
1175
|
return this.tooltips;
|
|
1178
1176
|
}
|
|
1179
|
-
isFinalizedEdition(t,
|
|
1177
|
+
isFinalizedEdition(t, s) {
|
|
1180
1178
|
const {
|
|
1181
|
-
positionIndexes:
|
|
1182
|
-
} = (
|
|
1179
|
+
positionIndexes: n
|
|
1180
|
+
} = (s == null ? void 0 : s.properties) ?? {
|
|
1183
1181
|
positionIndexes: []
|
|
1184
1182
|
};
|
|
1185
|
-
return t.length > 2 &&
|
|
1183
|
+
return t.length > 2 && s !== void 0 && (n[0] === 0 || n[0] === t.length - 1);
|
|
1186
1184
|
}
|
|
1187
1185
|
allowOverlapping(t) {
|
|
1188
1186
|
var o;
|
|
1189
|
-
let
|
|
1190
|
-
const
|
|
1191
|
-
if (
|
|
1187
|
+
let s = !1;
|
|
1188
|
+
const n = this.getClickSequence();
|
|
1189
|
+
if (n.length > 2 && // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
|
1192
1190
|
((o = t.modeConfig) != null && o.preventOverlappingLines)) {
|
|
1193
1191
|
const i = {
|
|
1194
1192
|
type: "LineString",
|
|
1195
|
-
coordinates: [...
|
|
1193
|
+
coordinates: [...n, n[0]]
|
|
1196
1194
|
}, a = {
|
|
1197
1195
|
type: "LineString",
|
|
1198
|
-
coordinates: [...
|
|
1196
|
+
coordinates: [...n.slice(0, n.length - 1)]
|
|
1199
1197
|
};
|
|
1200
|
-
os(i, a).features.length > 0 && (
|
|
1198
|
+
os(i, a).features.length > 0 && (s = !0);
|
|
1201
1199
|
}
|
|
1202
|
-
return
|
|
1200
|
+
return s;
|
|
1203
1201
|
}
|
|
1204
1202
|
finalizeEdition(t) {
|
|
1205
|
-
const
|
|
1203
|
+
const s = this.getClickSequence(), n = {
|
|
1206
1204
|
type: "Polygon",
|
|
1207
|
-
coordinates: [[...
|
|
1205
|
+
coordinates: [[...s, s[0]]]
|
|
1208
1206
|
};
|
|
1209
1207
|
t.selectedIndexes = [], t.data = {
|
|
1210
1208
|
type: "FeatureCollection",
|
|
1211
1209
|
features: []
|
|
1212
1210
|
};
|
|
1213
|
-
const o = this.getAddFeatureOrBooleanPolygonAction(
|
|
1211
|
+
const o = this.getAddFeatureOrBooleanPolygonAction(n, t);
|
|
1214
1212
|
this._isMeasuringSessionFinished = !0, o && (this.resultPolygon = o.updatedData, t.onEdit({
|
|
1215
1213
|
...o,
|
|
1216
1214
|
editType: Y.addPosition,
|
|
@@ -1232,14 +1230,14 @@ class Ys extends Zt {
|
|
|
1232
1230
|
}
|
|
1233
1231
|
getTooltipText({
|
|
1234
1232
|
meters: t,
|
|
1235
|
-
locale:
|
|
1236
|
-
unit:
|
|
1233
|
+
locale: s,
|
|
1234
|
+
unit: n,
|
|
1237
1235
|
options: o
|
|
1238
1236
|
}) {
|
|
1239
1237
|
return Oe({
|
|
1240
1238
|
meters: t,
|
|
1241
|
-
locale:
|
|
1242
|
-
unit:
|
|
1239
|
+
locale: s,
|
|
1240
|
+
unit: n,
|
|
1243
1241
|
options: o
|
|
1244
1242
|
}) + "2";
|
|
1245
1243
|
}
|
|
@@ -1255,37 +1253,37 @@ class Xs extends yt {
|
|
|
1255
1253
|
});
|
|
1256
1254
|
ee(this, "tooltips", []);
|
|
1257
1255
|
}
|
|
1258
|
-
handleClick(t,
|
|
1259
|
-
this._isMeasuringSessionFinished && (this._isMeasuringSessionFinished = !1, this.resetClickSequence(), this._currentArea = 0), super.handleClick(t,
|
|
1256
|
+
handleClick(t, s) {
|
|
1257
|
+
this._isMeasuringSessionFinished && (this._isMeasuringSessionFinished = !1, this.resetClickSequence(), this._currentArea = 0), super.handleClick(t, s);
|
|
1260
1258
|
}
|
|
1261
|
-
handlePointerMove(t,
|
|
1262
|
-
this._isMeasuringSessionFinished || (super.handlePointerMove(t,
|
|
1259
|
+
handlePointerMove(t, s) {
|
|
1260
|
+
this._isMeasuringSessionFinished || (super.handlePointerMove(t, s), this.tooltips = Mt(this.areaCircle, this.position, s.modeConfig));
|
|
1263
1261
|
}
|
|
1264
1262
|
checkAndFinishPolygon(t) {
|
|
1265
|
-
const
|
|
1266
|
-
this.isFinalizedEdition(
|
|
1263
|
+
const s = this.getClickSequence(), n = this.getTentativeGuide(t);
|
|
1264
|
+
this.isFinalizedEdition(s, n) && this.finalizeEdition(t);
|
|
1267
1265
|
}
|
|
1268
|
-
handleKeyUp(t,
|
|
1269
|
-
t.key === "Enter" ? this.finalizeEdition(
|
|
1266
|
+
handleKeyUp(t, s) {
|
|
1267
|
+
t.key === "Enter" ? this.finalizeEdition(s) : t.key === "Escape" && this.resetEdition(s);
|
|
1270
1268
|
}
|
|
1271
1269
|
getGuides(t) {
|
|
1272
1270
|
return this._isMeasuringSessionFinished ? this.resultPolygon : super.getGuides(t);
|
|
1273
1271
|
}
|
|
1274
|
-
isFinalizedEdition(t,
|
|
1275
|
-
return t.length > 1 &&
|
|
1272
|
+
isFinalizedEdition(t, s) {
|
|
1273
|
+
return t.length > 1 && s && s.geometry.type === "Polygon";
|
|
1276
1274
|
}
|
|
1277
1275
|
finalizeEdition(t) {
|
|
1278
|
-
const
|
|
1276
|
+
const s = this.getTentativeGuide(t);
|
|
1279
1277
|
t.selectedIndexes = [], t.data = {
|
|
1280
1278
|
type: "FeatureCollection",
|
|
1281
1279
|
features: []
|
|
1282
1280
|
};
|
|
1283
|
-
const
|
|
1284
|
-
this._isMeasuringSessionFinished = !0, t.onUpdateCursor("cell"),
|
|
1285
|
-
...
|
|
1281
|
+
const n = this.getAddFeatureOrBooleanPolygonAction(s, t);
|
|
1282
|
+
this._isMeasuringSessionFinished = !0, t.onUpdateCursor("cell"), n && (this.resultPolygon = n.updatedData, t.onEdit({
|
|
1283
|
+
...n,
|
|
1286
1284
|
editType: Y.addPosition,
|
|
1287
1285
|
editContext: {
|
|
1288
|
-
...
|
|
1286
|
+
...n.editContext,
|
|
1289
1287
|
distance: this._currentArea,
|
|
1290
1288
|
positions: this.getClickSequence(),
|
|
1291
1289
|
finished: this._isMeasuringSessionFinished
|
|
@@ -1308,14 +1306,14 @@ class Xs extends yt {
|
|
|
1308
1306
|
}
|
|
1309
1307
|
getTooltipText({
|
|
1310
1308
|
meters: t,
|
|
1311
|
-
locale:
|
|
1312
|
-
unit:
|
|
1309
|
+
locale: s,
|
|
1310
|
+
unit: n,
|
|
1313
1311
|
options: o
|
|
1314
1312
|
}) {
|
|
1315
1313
|
return Oe({
|
|
1316
1314
|
meters: t,
|
|
1317
|
-
locale:
|
|
1318
|
-
unit:
|
|
1315
|
+
locale: s,
|
|
1316
|
+
unit: n,
|
|
1319
1317
|
options: o
|
|
1320
1318
|
}) + "2";
|
|
1321
1319
|
}
|
|
@@ -1337,10 +1335,10 @@ class Pt extends Xt {
|
|
|
1337
1335
|
if (this._isMeasuringSessionFinished) return;
|
|
1338
1336
|
e.stopPropagation();
|
|
1339
1337
|
const {
|
|
1340
|
-
key:
|
|
1341
|
-
} = e,
|
|
1338
|
+
key: s
|
|
1339
|
+
} = e, n = this.getClickSequence().length;
|
|
1342
1340
|
let o = Y.finish;
|
|
1343
|
-
switch (
|
|
1341
|
+
switch (s) {
|
|
1344
1342
|
case "Escape":
|
|
1345
1343
|
t.onEdit({
|
|
1346
1344
|
updatedData: {
|
|
@@ -1352,7 +1350,7 @@ class Pt extends Xt {
|
|
|
1352
1350
|
});
|
|
1353
1351
|
break;
|
|
1354
1352
|
case "Enter":
|
|
1355
|
-
this._isMeasuringSessionFinished = !0,
|
|
1353
|
+
this._isMeasuringSessionFinished = !0, n === 1 && (this.resetClickSequence(), o = Y.cancel), t.onUpdateCursor("cell"), t.onEdit({
|
|
1356
1354
|
updatedData: t.data,
|
|
1357
1355
|
editType: o,
|
|
1358
1356
|
editContext: {
|
|
@@ -1368,14 +1366,14 @@ class Pt extends Xt {
|
|
|
1368
1366
|
getTooltipText({
|
|
1369
1367
|
meters: e,
|
|
1370
1368
|
locale: t,
|
|
1371
|
-
unit:
|
|
1372
|
-
options:
|
|
1369
|
+
unit: s,
|
|
1370
|
+
options: n
|
|
1373
1371
|
}) {
|
|
1374
1372
|
return Oe({
|
|
1375
1373
|
meters: e,
|
|
1376
1374
|
locale: t,
|
|
1377
|
-
unit:
|
|
1378
|
-
options:
|
|
1375
|
+
unit: s,
|
|
1376
|
+
options: n
|
|
1379
1377
|
});
|
|
1380
1378
|
}
|
|
1381
1379
|
}
|
|
@@ -1506,14 +1504,14 @@ const ne = "mapMeasureLayer", Js = {
|
|
|
1506
1504
|
function Lt(r) {
|
|
1507
1505
|
const e = D(12), {
|
|
1508
1506
|
mapId: t,
|
|
1509
|
-
layerId:
|
|
1507
|
+
layerId: s
|
|
1510
1508
|
} = r;
|
|
1511
|
-
let
|
|
1512
|
-
e[0] !== t ? (
|
|
1509
|
+
let n;
|
|
1510
|
+
e[0] !== t ? (n = (h) => {
|
|
1513
1511
|
var y;
|
|
1514
1512
|
return (y = h.maps[t]) == null ? void 0 : y.basemap;
|
|
1515
|
-
}, e[0] = t, e[1] =
|
|
1516
|
-
const o = $(
|
|
1513
|
+
}, e[0] = t, e[1] = n) : n = e[1];
|
|
1514
|
+
const o = $(n);
|
|
1517
1515
|
let i;
|
|
1518
1516
|
e[2] !== t ? (i = (h) => {
|
|
1519
1517
|
var y;
|
|
@@ -1523,18 +1521,18 @@ function Lt(r) {
|
|
|
1523
1521
|
type: g
|
|
1524
1522
|
} = ye[o], p = g === te.googleMaps;
|
|
1525
1523
|
let m, d;
|
|
1526
|
-
e[4] !== l || e[5] !== p || e[6] !== a || e[7] !==
|
|
1524
|
+
e[4] !== l || e[5] !== p || e[6] !== a || e[7] !== s || e[8] !== t || e[9] !== c ? (m = () => {
|
|
1527
1525
|
let h = null;
|
|
1528
1526
|
if (p && a) {
|
|
1529
1527
|
const y = l(t);
|
|
1530
1528
|
h = new ss(y.getDiv(), {});
|
|
1531
1529
|
}
|
|
1532
|
-
c(
|
|
1530
|
+
c(s, {
|
|
1533
1531
|
props: {
|
|
1534
1532
|
eventManager: h
|
|
1535
1533
|
}
|
|
1536
1534
|
});
|
|
1537
|
-
}, d = [l, p, a,
|
|
1535
|
+
}, d = [l, p, a, s, t, c], e[4] = l, e[5] = p, e[6] = a, e[7] = s, e[8] = t, e[9] = c, e[10] = m, e[11] = d) : (m = e[10], d = e[11]), z(m, d);
|
|
1538
1536
|
}
|
|
1539
1537
|
function rn(r) {
|
|
1540
1538
|
return r.setLayer;
|
|
@@ -1548,12 +1546,12 @@ function ln({
|
|
|
1548
1546
|
mapId: e,
|
|
1549
1547
|
defaultProps: {
|
|
1550
1548
|
styles: t = Ue.styles,
|
|
1551
|
-
labels:
|
|
1549
|
+
labels: s
|
|
1552
1550
|
} = {
|
|
1553
1551
|
styles: Ue.styles,
|
|
1554
1552
|
labels: Ue.labels
|
|
1555
1553
|
},
|
|
1556
|
-
layerProps:
|
|
1554
|
+
layerProps: n = {},
|
|
1557
1555
|
defaultType: o = "mask"
|
|
1558
1556
|
}) {
|
|
1559
1557
|
const i = G((M) => {
|
|
@@ -1615,7 +1613,7 @@ function ln({
|
|
|
1615
1613
|
}
|
|
1616
1614
|
_(F), M !== Y.updateTentativeFeature && M === Y.addFeature && (p !== "edit" && (j.current = j.current + 1), F.features.forEach((u, v) => {
|
|
1617
1615
|
var A;
|
|
1618
|
-
(A = u.properties).label ?? (A.label = `${
|
|
1616
|
+
(A = u.properties).label ?? (A.label = `${s == null ? void 0 : s.mask} ${j.current}`), u.properties.index = v, u.properties.visible = u.properties.visible ?? !0;
|
|
1619
1617
|
const P = u.id ?? crypto.randomUUID();
|
|
1620
1618
|
c(e, P, {
|
|
1621
1619
|
geometry: u.geometry,
|
|
@@ -1624,7 +1622,7 @@ function ln({
|
|
|
1624
1622
|
type: o
|
|
1625
1623
|
});
|
|
1626
1624
|
}), B());
|
|
1627
|
-
}, [o, B,
|
|
1625
|
+
}, [o, B, s == null ? void 0 : s.mask, e, p, c]);
|
|
1628
1626
|
return z(() => {
|
|
1629
1627
|
const M = i, {
|
|
1630
1628
|
border: F,
|
|
@@ -1635,7 +1633,7 @@ function ln({
|
|
|
1635
1633
|
fill: A
|
|
1636
1634
|
} = t.colors.finished, L = Gs({
|
|
1637
1635
|
layerProps: {
|
|
1638
|
-
...
|
|
1636
|
+
...n.mask,
|
|
1639
1637
|
pickable: M,
|
|
1640
1638
|
data: w,
|
|
1641
1639
|
selectedFeatureIndexes: k,
|
|
@@ -1657,7 +1655,7 @@ function ln({
|
|
|
1657
1655
|
mode: M ? g : new Jt()
|
|
1658
1656
|
});
|
|
1659
1657
|
m(ce, L);
|
|
1660
|
-
}, [w, i,
|
|
1658
|
+
}, [w, i, n.mask, E, g, x, k, m, t.colors.editing, t.colors.finished]), z(() => {
|
|
1661
1659
|
const M = {
|
|
1662
1660
|
...Te,
|
|
1663
1661
|
data: S,
|
|
@@ -1710,16 +1708,16 @@ function un({
|
|
|
1710
1708
|
mode: r,
|
|
1711
1709
|
layerProps: e,
|
|
1712
1710
|
locale: t,
|
|
1713
|
-
enabled:
|
|
1714
|
-
unit:
|
|
1711
|
+
enabled: s,
|
|
1712
|
+
unit: n,
|
|
1715
1713
|
onEdit: o,
|
|
1716
1714
|
guideColor: i,
|
|
1717
1715
|
pointColor: a,
|
|
1718
1716
|
textOptions: l
|
|
1719
1717
|
}) {
|
|
1720
1718
|
const c = ue(e, {
|
|
1721
|
-
visible:
|
|
1722
|
-
pickable:
|
|
1719
|
+
visible: s,
|
|
1720
|
+
pickable: s,
|
|
1723
1721
|
modeConfig: {
|
|
1724
1722
|
// We force distance due to conversion is addressed at feature getText level
|
|
1725
1723
|
formatTooltip: (m) => m,
|
|
@@ -1727,7 +1725,7 @@ function un({
|
|
|
1727
1725
|
units: en.meters
|
|
1728
1726
|
}
|
|
1729
1727
|
},
|
|
1730
|
-
...
|
|
1728
|
+
...s && {
|
|
1731
1729
|
onEdit: o
|
|
1732
1730
|
},
|
|
1733
1731
|
_subLayerProps: {
|
|
@@ -1744,12 +1742,12 @@ function un({
|
|
|
1744
1742
|
return (d = r == null ? void 0 : r.getTooltipText) == null ? void 0 : d.call(r, {
|
|
1745
1743
|
meters: m.text,
|
|
1746
1744
|
locale: t,
|
|
1747
|
-
unit:
|
|
1745
|
+
unit: n,
|
|
1748
1746
|
options: l
|
|
1749
1747
|
});
|
|
1750
1748
|
},
|
|
1751
1749
|
updateTriggers: {
|
|
1752
|
-
getText: [
|
|
1750
|
+
getText: [n, t, l]
|
|
1753
1751
|
}
|
|
1754
1752
|
}
|
|
1755
1753
|
}
|
|
@@ -1766,7 +1764,7 @@ function un({
|
|
|
1766
1764
|
return ue(g, c);
|
|
1767
1765
|
}
|
|
1768
1766
|
const dn = (r) => ze()((e) => ({
|
|
1769
|
-
measurements: r.reduce((
|
|
1767
|
+
measurements: r.reduce((s, n) => {
|
|
1770
1768
|
const {
|
|
1771
1769
|
mapId: o,
|
|
1772
1770
|
modeSelected: i,
|
|
@@ -1779,8 +1777,8 @@ const dn = (r) => ze()((e) => ({
|
|
|
1779
1777
|
clearLayerOnStart: d = !1,
|
|
1780
1778
|
unit: h = Ie["m-km"],
|
|
1781
1779
|
enabled: y = !1
|
|
1782
|
-
} =
|
|
1783
|
-
return
|
|
1780
|
+
} = n;
|
|
1781
|
+
return s[o] = {
|
|
1784
1782
|
modes: a,
|
|
1785
1783
|
units: l,
|
|
1786
1784
|
modeSelected: i,
|
|
@@ -1791,93 +1789,93 @@ const dn = (r) => ze()((e) => ({
|
|
|
1791
1789
|
unit: h,
|
|
1792
1790
|
clearLayerOnStart: d,
|
|
1793
1791
|
enabled: y
|
|
1794
|
-
},
|
|
1792
|
+
}, s;
|
|
1795
1793
|
}, {}),
|
|
1796
1794
|
mode: Pt,
|
|
1797
|
-
setModeInstance: (
|
|
1795
|
+
setModeInstance: (s, n) => {
|
|
1798
1796
|
e((o) => ({
|
|
1799
1797
|
measurements: {
|
|
1800
1798
|
...o.measurements,
|
|
1801
|
-
[
|
|
1802
|
-
...o.measurements[
|
|
1803
|
-
modeInstance:
|
|
1799
|
+
[s]: {
|
|
1800
|
+
...o.measurements[s],
|
|
1801
|
+
modeInstance: n
|
|
1804
1802
|
}
|
|
1805
1803
|
}
|
|
1806
1804
|
}));
|
|
1807
1805
|
},
|
|
1808
|
-
setModeSelected: (
|
|
1806
|
+
setModeSelected: (s, n) => {
|
|
1809
1807
|
e((o) => ({
|
|
1810
1808
|
measurements: {
|
|
1811
1809
|
...o.measurements,
|
|
1812
|
-
[
|
|
1813
|
-
...o.measurements[
|
|
1814
|
-
modeSelected:
|
|
1810
|
+
[s]: {
|
|
1811
|
+
...o.measurements[s],
|
|
1812
|
+
modeSelected: n
|
|
1815
1813
|
}
|
|
1816
1814
|
}
|
|
1817
1815
|
}));
|
|
1818
1816
|
},
|
|
1819
|
-
setFinished: (
|
|
1817
|
+
setFinished: (s, n) => {
|
|
1820
1818
|
e((o) => ({
|
|
1821
1819
|
measurements: {
|
|
1822
1820
|
...o.measurements,
|
|
1823
|
-
[
|
|
1824
|
-
...o.measurements[
|
|
1825
|
-
finished:
|
|
1821
|
+
[s]: {
|
|
1822
|
+
...o.measurements[s],
|
|
1823
|
+
finished: n
|
|
1826
1824
|
}
|
|
1827
1825
|
}
|
|
1828
1826
|
}));
|
|
1829
1827
|
},
|
|
1830
|
-
setDistance: (
|
|
1828
|
+
setDistance: (s, n) => {
|
|
1831
1829
|
e((o) => ({
|
|
1832
1830
|
measurements: {
|
|
1833
1831
|
...o.measurements,
|
|
1834
|
-
[
|
|
1835
|
-
...o.measurements[
|
|
1836
|
-
distance:
|
|
1832
|
+
[s]: {
|
|
1833
|
+
...o.measurements[s],
|
|
1834
|
+
distance: n
|
|
1837
1835
|
}
|
|
1838
1836
|
}
|
|
1839
1837
|
}));
|
|
1840
1838
|
},
|
|
1841
|
-
setUnit: (
|
|
1839
|
+
setUnit: (s, n) => {
|
|
1842
1840
|
e((o) => ({
|
|
1843
1841
|
measurements: {
|
|
1844
1842
|
...o.measurements,
|
|
1845
|
-
[
|
|
1846
|
-
...o.measurements[
|
|
1847
|
-
unit:
|
|
1843
|
+
[s]: {
|
|
1844
|
+
...o.measurements[s],
|
|
1845
|
+
unit: n
|
|
1848
1846
|
}
|
|
1849
1847
|
}
|
|
1850
1848
|
}));
|
|
1851
1849
|
},
|
|
1852
|
-
setLocale: (
|
|
1850
|
+
setLocale: (s, n) => {
|
|
1853
1851
|
e((o) => ({
|
|
1854
1852
|
measurements: {
|
|
1855
1853
|
...o.measurements,
|
|
1856
|
-
[
|
|
1857
|
-
...o.measurements[
|
|
1858
|
-
locale:
|
|
1854
|
+
[s]: {
|
|
1855
|
+
...o.measurements[s],
|
|
1856
|
+
locale: n
|
|
1859
1857
|
}
|
|
1860
1858
|
}
|
|
1861
1859
|
}));
|
|
1862
1860
|
},
|
|
1863
|
-
setPositions: (
|
|
1861
|
+
setPositions: (s, n) => {
|
|
1864
1862
|
e((o) => ({
|
|
1865
1863
|
measurements: {
|
|
1866
1864
|
...o.measurements,
|
|
1867
|
-
[
|
|
1868
|
-
...o.measurements[
|
|
1869
|
-
positions: [...
|
|
1865
|
+
[s]: {
|
|
1866
|
+
...o.measurements[s],
|
|
1867
|
+
positions: [...n]
|
|
1870
1868
|
}
|
|
1871
1869
|
}
|
|
1872
1870
|
}));
|
|
1873
1871
|
},
|
|
1874
|
-
setEnabled: (
|
|
1872
|
+
setEnabled: (s, n) => {
|
|
1875
1873
|
e((o) => ({
|
|
1876
1874
|
measurements: {
|
|
1877
1875
|
...o.measurements,
|
|
1878
|
-
[
|
|
1879
|
-
...o.measurements[
|
|
1880
|
-
enabled:
|
|
1876
|
+
[s]: {
|
|
1877
|
+
...o.measurements[s],
|
|
1878
|
+
enabled: n
|
|
1881
1879
|
}
|
|
1882
1880
|
}
|
|
1883
1881
|
}));
|
|
@@ -1886,11 +1884,11 @@ const dn = (r) => ze()((e) => ({
|
|
|
1886
1884
|
function fn(r) {
|
|
1887
1885
|
const e = D(5), {
|
|
1888
1886
|
children: t,
|
|
1889
|
-
values:
|
|
1887
|
+
values: s
|
|
1890
1888
|
} = r;
|
|
1891
|
-
let
|
|
1892
|
-
e[0] !==
|
|
1893
|
-
const [o] = oe(
|
|
1889
|
+
let n;
|
|
1890
|
+
e[0] !== s ? (n = dn(s), e[0] = s, e[1] = n) : n = e[1];
|
|
1891
|
+
const [o] = oe(n);
|
|
1894
1892
|
let i;
|
|
1895
1893
|
return e[2] !== t || e[3] !== o ? (i = /* @__PURE__ */ N(Ot.Provider, { value: o, children: t }), e[2] = t, e[3] = o, e[4] = i) : i = e[4], i;
|
|
1896
1894
|
}
|
|
@@ -1904,9 +1902,9 @@ function Ft(r) {
|
|
|
1904
1902
|
const e = D(74), {
|
|
1905
1903
|
mapId: t
|
|
1906
1904
|
} = r;
|
|
1907
|
-
let
|
|
1908
|
-
e[0] !== t ? (
|
|
1909
|
-
const
|
|
1905
|
+
let s;
|
|
1906
|
+
e[0] !== t ? (s = (R) => R.measurements[t].modes, e[0] = t, e[1] = s) : s = e[1];
|
|
1907
|
+
const n = I(s);
|
|
1910
1908
|
let o;
|
|
1911
1909
|
e[2] !== t ? (o = (R) => R.measurements[t].units, e[2] = t, e[3] = o) : o = e[3];
|
|
1912
1910
|
const i = I(o);
|
|
@@ -1974,8 +1972,8 @@ function Ft(r) {
|
|
|
1974
1972
|
}, e[50] = b, e[51] = Se) : Se = e[51];
|
|
1975
1973
|
const De = Se;
|
|
1976
1974
|
let we;
|
|
1977
|
-
return e[52] !== Ce || e[53] !== d || e[54] !== l || e[55] !== y || e[56] !== C || e[57] !== F || e[58] !== L || e[59] !== E || e[60] !==
|
|
1978
|
-
modes:
|
|
1975
|
+
return e[52] !== Ce || e[53] !== d || e[54] !== l || e[55] !== y || e[56] !== C || e[57] !== F || e[58] !== L || e[59] !== E || e[60] !== n || e[61] !== q || e[62] !== p || e[63] !== b || e[64] !== x || e[65] !== P || e[66] !== W || e[67] !== k || e[68] !== fe || e[69] !== Ae || e[70] !== De || e[71] !== Fe || e[72] !== i ? (we = {
|
|
1976
|
+
modes: n,
|
|
1979
1977
|
units: i,
|
|
1980
1978
|
distance: l,
|
|
1981
1979
|
clearLayerOnStart: d,
|
|
@@ -1996,7 +1994,7 @@ function Ft(r) {
|
|
|
1996
1994
|
toggleLayer: De,
|
|
1997
1995
|
clearLayer: Ce,
|
|
1998
1996
|
setModeInstance: W
|
|
1999
|
-
}, e[52] = Ce, e[53] = d, e[54] = l, e[55] = y, e[56] = C, e[57] = F, e[58] = L, e[59] = E, e[60] =
|
|
1997
|
+
}, e[52] = Ce, e[53] = d, e[54] = l, e[55] = y, e[56] = C, e[57] = F, e[58] = L, e[59] = E, e[60] = n, e[61] = q, e[62] = p, e[63] = b, e[64] = x, e[65] = P, e[66] = W, e[67] = k, e[68] = fe, e[69] = Ae, e[70] = De, e[71] = Fe, e[72] = i, e[73] = we) : we = e[73], we;
|
|
2000
1998
|
}
|
|
2001
1999
|
function pn(r) {
|
|
2002
2000
|
return r.setUnit;
|
|
@@ -2025,8 +2023,8 @@ function Sn(r) {
|
|
|
2025
2023
|
function wn(r) {
|
|
2026
2024
|
const e = D(42), {
|
|
2027
2025
|
mapId: t,
|
|
2028
|
-
textOptions:
|
|
2029
|
-
children:
|
|
2026
|
+
textOptions: s,
|
|
2027
|
+
children: n
|
|
2030
2028
|
} = r;
|
|
2031
2029
|
let o;
|
|
2032
2030
|
e[0] !== t ? (o = {
|
|
@@ -2073,7 +2071,7 @@ function wn(r) {
|
|
|
2073
2071
|
}, e[13] = j, e[14] = C, e[15] = g, e[16] = y, e[17] = M) : M = e[17];
|
|
2074
2072
|
const F = M, u = !!g;
|
|
2075
2073
|
let v;
|
|
2076
|
-
return e[18] !==
|
|
2074
|
+
return e[18] !== n || e[19] !== C || e[20] !== l || e[21] !== d || e[22] !== y || e[23] !== f || e[24] !== t || e[25] !== S || e[26] !== p || e[27] !== i || e[28] !== w || e[29] !== c || e[30] !== h || e[31] !== T || e[32] !== b || e[33] !== m || e[34] !== _ || e[35] !== U || e[36] !== u || e[37] !== s || e[38] !== F || e[39] !== k || e[40] !== a ? (v = n({
|
|
2077
2075
|
mapId: t,
|
|
2078
2076
|
distance: l,
|
|
2079
2077
|
enabled: d,
|
|
@@ -2089,7 +2087,7 @@ function wn(r) {
|
|
|
2089
2087
|
meters: l,
|
|
2090
2088
|
unit: k,
|
|
2091
2089
|
locale: f,
|
|
2092
|
-
options:
|
|
2090
|
+
options: s
|
|
2093
2091
|
}),
|
|
2094
2092
|
modeInstance: S,
|
|
2095
2093
|
setModeSelected: m,
|
|
@@ -2101,7 +2099,7 @@ function wn(r) {
|
|
|
2101
2099
|
setEnabled: h,
|
|
2102
2100
|
toggleLayer: F,
|
|
2103
2101
|
clearLayer: C
|
|
2104
|
-
}), e[18] =
|
|
2102
|
+
}), e[18] = n, e[19] = C, e[20] = l, e[21] = d, e[22] = y, e[23] = f, e[24] = t, e[25] = S, e[26] = p, e[27] = i, e[28] = w, e[29] = c, e[30] = h, e[31] = T, e[32] = b, e[33] = m, e[34] = _, e[35] = U, e[36] = u, e[37] = s, e[38] = F, e[39] = k, e[40] = a, e[41] = v) : v = e[41], v;
|
|
2105
2103
|
}
|
|
2106
2104
|
const Tn = [ne];
|
|
2107
2105
|
function En({
|
|
@@ -2112,8 +2110,8 @@ function En({
|
|
|
2112
2110
|
} = {
|
|
2113
2111
|
styles: rt.styles
|
|
2114
2112
|
},
|
|
2115
|
-
layerProps:
|
|
2116
|
-
textOptions:
|
|
2113
|
+
layerProps: s = {},
|
|
2114
|
+
textOptions: n
|
|
2117
2115
|
}) {
|
|
2118
2116
|
const {
|
|
2119
2117
|
setDistance: o,
|
|
@@ -2164,8 +2162,8 @@ function En({
|
|
|
2164
2162
|
return z(() => {
|
|
2165
2163
|
const w = l ? t.colors.finished : t.colors.editing, _ = l ? t.colors.finished : t.colors.point, k = cn({
|
|
2166
2164
|
layerProps: {
|
|
2167
|
-
...
|
|
2168
|
-
pickable:
|
|
2165
|
+
...s,
|
|
2166
|
+
pickable: s.pickable ?? !l
|
|
2169
2167
|
},
|
|
2170
2168
|
enabled: a,
|
|
2171
2169
|
guideColor: w,
|
|
@@ -2174,25 +2172,25 @@ function En({
|
|
|
2174
2172
|
onEdit: E,
|
|
2175
2173
|
unit: m,
|
|
2176
2174
|
mode: d,
|
|
2177
|
-
textOptions:
|
|
2175
|
+
textOptions: n
|
|
2178
2176
|
});
|
|
2179
2177
|
h(ne, k);
|
|
2180
|
-
}, [l, d,
|
|
2178
|
+
}, [l, d, s, g, E, h, t.colors.editing, t.colors.finished, t.colors.point, n, m, a]), r;
|
|
2181
2179
|
}
|
|
2182
2180
|
En.Controls = wn;
|
|
2183
2181
|
function _n(r) {
|
|
2184
2182
|
const e = D(7), {
|
|
2185
2183
|
mapId: t
|
|
2186
2184
|
} = r;
|
|
2187
|
-
let
|
|
2188
|
-
e[0] !== t ? (
|
|
2185
|
+
let s;
|
|
2186
|
+
e[0] !== t ? (s = (c) => c.maps[t], e[0] = t, e[1] = s) : s = e[1];
|
|
2189
2187
|
const {
|
|
2190
|
-
layers:
|
|
2191
|
-
} = $(
|
|
2188
|
+
layers: n
|
|
2189
|
+
} = $(s), o = pe(Pn);
|
|
2192
2190
|
let i, a;
|
|
2193
|
-
if (e[2] !== o || e[3] !==
|
|
2191
|
+
if (e[2] !== o || e[3] !== n) {
|
|
2194
2192
|
let c;
|
|
2195
|
-
e[5] !== o ? (c = (g) => o[g], e[5] = o, e[6] = c) : c = e[6], a =
|
|
2193
|
+
e[5] !== o ? (c = (g) => o[g], e[5] = o, e[6] = c) : c = e[6], a = n.map(c).filter(Mn), e[2] = o, e[3] = n, e[4] = a;
|
|
2196
2194
|
} else
|
|
2197
2195
|
a = e[4];
|
|
2198
2196
|
return i = a, i;
|
|
@@ -2205,19 +2203,19 @@ function Pn(r) {
|
|
|
2205
2203
|
}
|
|
2206
2204
|
const at = [Le, ce, ne];
|
|
2207
2205
|
function kt(r) {
|
|
2208
|
-
const e = r.filter((
|
|
2206
|
+
const e = r.filter((s) => !at.includes(s.props.id)).sort((s, n) => (s.order ?? 1 / 0) - (n.order ?? 1 / 0)), t = at.map((s) => r.find((n) => n.props.id === s)).filter((s) => !!s);
|
|
2209
2207
|
return [...e, ...t];
|
|
2210
2208
|
}
|
|
2211
2209
|
const Ln = 200;
|
|
2212
2210
|
function Wr(r) {
|
|
2213
2211
|
const e = D(48);
|
|
2214
|
-
let t,
|
|
2212
|
+
let t, s, n, o;
|
|
2215
2213
|
e[0] !== r ? ({
|
|
2216
2214
|
id: t,
|
|
2217
|
-
onLoad:
|
|
2218
|
-
onViewStateChange:
|
|
2215
|
+
onLoad: s,
|
|
2216
|
+
onViewStateChange: n,
|
|
2219
2217
|
...o
|
|
2220
|
-
} = r, e[0] = r, e[1] = t, e[2] =
|
|
2218
|
+
} = r, e[0] = r, e[1] = t, e[2] = s, e[3] = n, e[4] = o) : (t = e[1], s = e[2], n = e[3], o = e[4]);
|
|
2221
2219
|
let i;
|
|
2222
2220
|
e[5] !== t ? (i = (L) => L.maps[t].basemap, e[5] = t, e[6] = i) : i = e[6];
|
|
2223
2221
|
const a = $(i);
|
|
@@ -2239,21 +2237,21 @@ function Wr(r) {
|
|
|
2239
2237
|
e[15] !== w ? (k = kt(w), e[15] = w, e[16] = k) : k = e[16], _ = k;
|
|
2240
2238
|
const U = _;
|
|
2241
2239
|
let C;
|
|
2242
|
-
e[17] !== t || e[18] !==
|
|
2240
|
+
e[17] !== t || e[18] !== n || e[19] !== T || e[20] !== S ? (C = (L) => {
|
|
2243
2241
|
const O = T;
|
|
2244
2242
|
if (m.current && clearInterval(m.current), m.current = setTimeout(() => {
|
|
2245
2243
|
S(t);
|
|
2246
|
-
}, Ln),
|
|
2247
|
-
|
|
2244
|
+
}, Ln), n) {
|
|
2245
|
+
n(L, O);
|
|
2248
2246
|
return;
|
|
2249
2247
|
}
|
|
2250
2248
|
O(t, L.viewState);
|
|
2251
|
-
}, e[17] = t, e[18] =
|
|
2249
|
+
}, e[17] = t, e[18] = n, e[19] = T, e[20] = S, e[21] = C) : C = e[21];
|
|
2252
2250
|
const j = C;
|
|
2253
2251
|
let B;
|
|
2254
|
-
e[22] !== t || e[23] !==
|
|
2255
|
-
f(t, L),
|
|
2256
|
-
}, e[22] = t, e[23] =
|
|
2252
|
+
e[22] !== t || e[23] !== s || e[24] !== f || e[25] !== S ? (B = (L) => {
|
|
2253
|
+
f(t, L), s == null || s(L), S(t);
|
|
2254
|
+
}, e[22] = t, e[23] = s, e[24] = f, e[25] = S, e[26] = B) : B = e[26];
|
|
2257
2255
|
const x = B;
|
|
2258
2256
|
let M;
|
|
2259
2257
|
e[27] !== y || e[28] !== t || e[29] !== o || e[30] !== b ? (M = (L) => {
|
|
@@ -2292,7 +2290,7 @@ function Dn(r) {
|
|
|
2292
2290
|
var _e = { exports: {} }, lt;
|
|
2293
2291
|
function Rn() {
|
|
2294
2292
|
return lt || (lt = 1, function(r, e) {
|
|
2295
|
-
var t = typeof globalThis < "u" && globalThis || typeof self < "u" && self || typeof Ee < "u" && Ee,
|
|
2293
|
+
var t = typeof globalThis < "u" && globalThis || typeof self < "u" && self || typeof Ee < "u" && Ee, s = function() {
|
|
2296
2294
|
function o() {
|
|
2297
2295
|
this.fetch = !1, this.DOMException = t.DOMException;
|
|
2298
2296
|
}
|
|
@@ -2625,9 +2623,9 @@ function Rn() {
|
|
|
2625
2623
|
}
|
|
2626
2624
|
return F.polyfill = !0, a.fetch || (a.fetch = F, a.Headers = y, a.Request = C, a.Response = x), i.Headers = y, i.Request = C, i.Response = x, i.fetch = F, i;
|
|
2627
2625
|
})({});
|
|
2628
|
-
})(
|
|
2629
|
-
var
|
|
2630
|
-
e =
|
|
2626
|
+
})(s), s.fetch.ponyfill = !0, delete s.fetch.polyfill;
|
|
2627
|
+
var n = t.fetch ? t : s;
|
|
2628
|
+
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;
|
|
2631
2629
|
}(_e, _e.exports)), _e.exports;
|
|
2632
2630
|
}
|
|
2633
2631
|
var $n = Rn();
|
|
@@ -2643,7 +2641,7 @@ function jn({
|
|
|
2643
2641
|
url: e
|
|
2644
2642
|
}) {
|
|
2645
2643
|
if (!r) return e;
|
|
2646
|
-
const t = Object.entries(r).map(([
|
|
2644
|
+
const t = Object.entries(r).map(([s, n]) => Bn(s, n));
|
|
2647
2645
|
return `${e}?${t.filter(Boolean).join("&")}`;
|
|
2648
2646
|
}
|
|
2649
2647
|
function qn(r) {
|
|
@@ -2663,9 +2661,9 @@ function Vn() {
|
|
|
2663
2661
|
var b = Object.prototype.toString.call(f);
|
|
2664
2662
|
return b === "[object RegExp]" || b === "[object Date]" || o(f);
|
|
2665
2663
|
}
|
|
2666
|
-
var
|
|
2664
|
+
var s = typeof Symbol == "function" && Symbol.for, n = s ? Symbol.for("react.element") : 60103;
|
|
2667
2665
|
function o(f) {
|
|
2668
|
-
return f.$$typeof ===
|
|
2666
|
+
return f.$$typeof === n;
|
|
2669
2667
|
}
|
|
2670
2668
|
function i(f) {
|
|
2671
2669
|
return Array.isArray(f) ? [] : {};
|
|
@@ -2754,25 +2752,25 @@ function Hn({
|
|
|
2754
2752
|
body: r,
|
|
2755
2753
|
accessToken: e,
|
|
2756
2754
|
method: t,
|
|
2757
|
-
...
|
|
2755
|
+
...s
|
|
2758
2756
|
}) {
|
|
2759
|
-
let
|
|
2760
|
-
return
|
|
2757
|
+
let n = e;
|
|
2758
|
+
return n && !n.includes("Bearer") && (n = "Bearer " + n), Nn[t](Ze({
|
|
2761
2759
|
method: t,
|
|
2762
2760
|
headers: {
|
|
2763
|
-
...!!
|
|
2764
|
-
authorization:
|
|
2761
|
+
...!!n && {
|
|
2762
|
+
authorization: n
|
|
2765
2763
|
}
|
|
2766
2764
|
}
|
|
2767
|
-
},
|
|
2765
|
+
}, s), r);
|
|
2768
2766
|
}
|
|
2769
2767
|
const Gn = 6144;
|
|
2770
2768
|
async function At({
|
|
2771
2769
|
signal: r,
|
|
2772
2770
|
body: e,
|
|
2773
2771
|
accessToken: t,
|
|
2774
|
-
credentials:
|
|
2775
|
-
method:
|
|
2772
|
+
credentials: s,
|
|
2773
|
+
method: n = de.get,
|
|
2776
2774
|
params: o,
|
|
2777
2775
|
url: i,
|
|
2778
2776
|
requestOptions: {
|
|
@@ -2785,11 +2783,11 @@ async function At({
|
|
|
2785
2783
|
let c = jn({
|
|
2786
2784
|
url: i,
|
|
2787
2785
|
params: o
|
|
2788
|
-
}), g = e, p =
|
|
2789
|
-
|
|
2786
|
+
}), g = e, p = n;
|
|
2787
|
+
n === de.get && c.length > a && (g = o, p = de.post, c = i);
|
|
2790
2788
|
const m = Hn({
|
|
2791
2789
|
body: g,
|
|
2792
|
-
accessToken: t ?? (
|
|
2790
|
+
accessToken: t ?? (s == null ? void 0 : s.accessToken),
|
|
2793
2791
|
method: p,
|
|
2794
2792
|
...l
|
|
2795
2793
|
});
|
|
@@ -2804,16 +2802,16 @@ async function At({
|
|
|
2804
2802
|
const Pe = mt()(hs((r) => ({
|
|
2805
2803
|
sources: {},
|
|
2806
2804
|
filters: {},
|
|
2807
|
-
setSource: (e, t) => r((
|
|
2805
|
+
setSource: (e, t) => r((s) => {
|
|
2808
2806
|
var d;
|
|
2809
|
-
const
|
|
2810
|
-
...
|
|
2811
|
-
}, o = (d =
|
|
2812
|
-
if (o && (o.destroy(), delete
|
|
2813
|
-
return delete
|
|
2814
|
-
sources:
|
|
2807
|
+
const n = {
|
|
2808
|
+
...s.sources
|
|
2809
|
+
}, o = (d = n[e]) == null ? void 0 : d.widgets;
|
|
2810
|
+
if (o && (o.destroy(), delete n[e].widgets), !t)
|
|
2811
|
+
return delete n[e], {
|
|
2812
|
+
sources: n
|
|
2815
2813
|
};
|
|
2816
|
-
const i =
|
|
2814
|
+
const i = n[e], {
|
|
2817
2815
|
apiBaseUrl: a = We,
|
|
2818
2816
|
clientId: l = xn,
|
|
2819
2817
|
apiVersion: c = Ke,
|
|
@@ -2827,46 +2825,46 @@ const Pe = mt()(hs((r) => ({
|
|
|
2827
2825
|
}, m = Wn({
|
|
2828
2826
|
source: p
|
|
2829
2827
|
});
|
|
2830
|
-
return p.widgets = m,
|
|
2831
|
-
sources:
|
|
2828
|
+
return p.widgets = m, n[e] = p, {
|
|
2829
|
+
sources: n
|
|
2832
2830
|
};
|
|
2833
2831
|
}, void 0, "setSource"),
|
|
2834
2832
|
removeSource: (e) => r((t) => {
|
|
2835
2833
|
var o;
|
|
2836
|
-
const
|
|
2834
|
+
const s = {
|
|
2837
2835
|
...t.sources
|
|
2838
|
-
},
|
|
2839
|
-
return
|
|
2840
|
-
sources:
|
|
2836
|
+
}, n = (o = s[e]) == null ? void 0 : o.widgets;
|
|
2837
|
+
return n && (n.destroy(), delete s[e].widgets), delete s[e], {
|
|
2838
|
+
sources: s
|
|
2841
2839
|
};
|
|
2842
2840
|
}, void 0, "removeSource"),
|
|
2843
|
-
setFilters: (e, t) => r((
|
|
2844
|
-
let
|
|
2845
|
-
const o =
|
|
2846
|
-
return t.length !== 0 && (
|
|
2841
|
+
setFilters: (e, t) => r((s) => {
|
|
2842
|
+
let n = {};
|
|
2843
|
+
const o = s.filters[e] ?? {};
|
|
2844
|
+
return t.length !== 0 && (n = t.reduce((i, a) => {
|
|
2847
2845
|
var l;
|
|
2848
2846
|
return !("values" in a) || !((l = a.values) != null && l.length) ? Xe(i, a) : vt(i, a);
|
|
2849
2847
|
}, o)), {
|
|
2850
2848
|
filters: {
|
|
2851
|
-
...
|
|
2849
|
+
...s.filters,
|
|
2852
2850
|
[e]: {
|
|
2853
|
-
...
|
|
2851
|
+
...n
|
|
2854
2852
|
}
|
|
2855
2853
|
// important: destructuring here to not conservere the reference to the same object
|
|
2856
2854
|
}
|
|
2857
2855
|
};
|
|
2858
2856
|
}, void 0, "setFilters"),
|
|
2859
|
-
removeFilters: (e, t,
|
|
2860
|
-
const o =
|
|
2857
|
+
removeFilters: (e, t, s) => r((n) => {
|
|
2858
|
+
const o = n.filters[e] ?? {};
|
|
2861
2859
|
if (!o)
|
|
2862
|
-
return
|
|
2860
|
+
return n;
|
|
2863
2861
|
let i = {};
|
|
2864
2862
|
return t && (i = Xe(o, {
|
|
2865
2863
|
column: t,
|
|
2866
|
-
owner:
|
|
2864
|
+
owner: s
|
|
2867
2865
|
})), {
|
|
2868
2866
|
filters: {
|
|
2869
|
-
...
|
|
2867
|
+
...n.filters,
|
|
2870
2868
|
[e]: {
|
|
2871
2869
|
...i
|
|
2872
2870
|
}
|
|
@@ -2878,34 +2876,34 @@ const Pe = mt()(hs((r) => ({
|
|
|
2878
2876
|
function zn(r) {
|
|
2879
2877
|
const e = D(2);
|
|
2880
2878
|
let t;
|
|
2881
|
-
return e[0] !== r ? (t = (
|
|
2879
|
+
return e[0] !== r ? (t = (s) => s.sources[r], e[0] = r, e[1] = t) : t = e[1], Pe(t);
|
|
2882
2880
|
}
|
|
2883
2881
|
function Qn(r) {
|
|
2884
2882
|
const e = D(2);
|
|
2885
2883
|
let t;
|
|
2886
|
-
return e[0] !== r ? (t = (
|
|
2884
|
+
return e[0] !== r ? (t = (s) => s.filters[r], e[0] = r, e[1] = t) : t = e[1], Pe(t);
|
|
2887
2885
|
}
|
|
2888
2886
|
function Kr(r) {
|
|
2889
2887
|
const e = D(9);
|
|
2890
2888
|
let t;
|
|
2891
2889
|
e[0] !== r ? (t = (a) => a.sources[r], e[0] = r, e[1] = t) : t = e[1];
|
|
2892
|
-
const
|
|
2893
|
-
let
|
|
2894
|
-
e[2] !== r ? (
|
|
2895
|
-
const o = Pe(
|
|
2890
|
+
const s = Pe(t);
|
|
2891
|
+
let n;
|
|
2892
|
+
e[2] !== r ? (n = (a) => a.filters[r], e[2] = r, e[3] = n) : n = e[3];
|
|
2893
|
+
const o = Pe(n);
|
|
2896
2894
|
let i;
|
|
2897
2895
|
e: {
|
|
2898
|
-
if (!
|
|
2896
|
+
if (!s) {
|
|
2899
2897
|
i = void 0;
|
|
2900
2898
|
break e;
|
|
2901
2899
|
}
|
|
2902
2900
|
let a;
|
|
2903
2901
|
e[4] !== o ? (a = o ?? {}, e[4] = o, e[5] = a) : a = e[5];
|
|
2904
2902
|
let l;
|
|
2905
|
-
e[6] !==
|
|
2906
|
-
...
|
|
2903
|
+
e[6] !== s || e[7] !== a ? (l = {
|
|
2904
|
+
...s,
|
|
2907
2905
|
filters: a
|
|
2908
|
-
}, e[6] =
|
|
2906
|
+
}, e[6] = s, e[7] = a, e[8] = l) : l = e[8], i = l;
|
|
2909
2907
|
}
|
|
2910
2908
|
return i;
|
|
2911
2909
|
}
|
|
@@ -2913,79 +2911,79 @@ function Zr(r, {
|
|
|
2913
2911
|
column: e,
|
|
2914
2912
|
type: t
|
|
2915
2913
|
}) {
|
|
2916
|
-
var
|
|
2917
|
-
return ((
|
|
2914
|
+
var s, n;
|
|
2915
|
+
return ((n = (s = r == null ? void 0 : r[e]) == null ? void 0 : s[t]) == null ? void 0 : n.values) ?? [];
|
|
2918
2916
|
}
|
|
2919
2917
|
function Wn({
|
|
2920
2918
|
source: r
|
|
2921
2919
|
}) {
|
|
2922
2920
|
const e = {
|
|
2923
2921
|
query: () => {
|
|
2924
|
-
const
|
|
2922
|
+
const n = r;
|
|
2925
2923
|
return new ps({
|
|
2926
|
-
...
|
|
2924
|
+
...n,
|
|
2927
2925
|
accessToken: "",
|
|
2928
|
-
sqlQuery:
|
|
2929
|
-
spatialDataType:
|
|
2926
|
+
sqlQuery: n.data,
|
|
2927
|
+
spatialDataType: n.spatialDataType ?? "geo"
|
|
2930
2928
|
});
|
|
2931
2929
|
},
|
|
2932
2930
|
table: () => {
|
|
2933
|
-
const
|
|
2931
|
+
const n = r;
|
|
2934
2932
|
return new fs({
|
|
2935
|
-
...
|
|
2933
|
+
...n,
|
|
2936
2934
|
accessToken: "",
|
|
2937
|
-
tableName:
|
|
2938
|
-
spatialDataType:
|
|
2935
|
+
tableName: n.data,
|
|
2936
|
+
spatialDataType: n.spatialDataType ?? "geo"
|
|
2939
2937
|
});
|
|
2940
2938
|
},
|
|
2941
2939
|
tileset: () => {
|
|
2942
|
-
const
|
|
2940
|
+
const n = r;
|
|
2943
2941
|
return new us({
|
|
2944
|
-
...
|
|
2942
|
+
...n,
|
|
2945
2943
|
accessToken: "",
|
|
2946
|
-
tableName:
|
|
2947
|
-
tileFormat:
|
|
2948
|
-
spatialDataType:
|
|
2944
|
+
tableName: n.data,
|
|
2945
|
+
tileFormat: n.tileFormat ?? ds.BINARY,
|
|
2946
|
+
spatialDataType: n.spatialDataType ?? "geo"
|
|
2949
2947
|
});
|
|
2950
2948
|
},
|
|
2951
2949
|
raster: () => {
|
|
2952
|
-
const
|
|
2953
|
-
return
|
|
2954
|
-
...
|
|
2950
|
+
const n = r;
|
|
2951
|
+
return n.rasterMetadata ? new cs({
|
|
2952
|
+
...n,
|
|
2955
2953
|
accessToken: "",
|
|
2956
|
-
tableName:
|
|
2954
|
+
tableName: n.data,
|
|
2957
2955
|
spatialDataType: "quadbin",
|
|
2958
|
-
rasterMetadata:
|
|
2956
|
+
rasterMetadata: n.rasterMetadata
|
|
2959
2957
|
}) : null;
|
|
2960
2958
|
}
|
|
2961
|
-
}, t = r.type.split("+")[0],
|
|
2962
|
-
return
|
|
2959
|
+
}, t = r.type.split("+")[0], s = e[t];
|
|
2960
|
+
return s == null ? void 0 : s();
|
|
2963
2961
|
}
|
|
2964
2962
|
function ie(r, e) {
|
|
2965
2963
|
const t = zn(e);
|
|
2966
2964
|
return re(() => {
|
|
2967
|
-
const
|
|
2968
|
-
return !
|
|
2965
|
+
const s = t == null ? void 0 : t.widgets;
|
|
2966
|
+
return !s || !r ? null : (s.props.accessToken = r, s);
|
|
2969
2967
|
}, [r, t]);
|
|
2970
2968
|
}
|
|
2971
2969
|
function ae(r, e) {
|
|
2972
|
-
const t = D(5),
|
|
2973
|
-
let
|
|
2970
|
+
const t = D(5), s = Qn(r);
|
|
2971
|
+
let n;
|
|
2974
2972
|
e: {
|
|
2975
2973
|
if (!(e != null && e.length)) {
|
|
2976
|
-
|
|
2974
|
+
n = s;
|
|
2977
2975
|
break e;
|
|
2978
2976
|
}
|
|
2979
2977
|
let o;
|
|
2980
|
-
if (t[0] !== e || t[1] !==
|
|
2978
|
+
if (t[0] !== e || t[1] !== s) {
|
|
2981
2979
|
const i = e.reduce(Kn, {});
|
|
2982
2980
|
let a;
|
|
2983
|
-
t[3] !==
|
|
2981
|
+
t[3] !== s ? (a = s ?? {}, t[3] = s, t[4] = a) : a = t[4], o = ue(a, i), t[0] = e, t[1] = s, t[2] = o;
|
|
2984
2982
|
} else
|
|
2985
2983
|
o = t[2];
|
|
2986
|
-
|
|
2984
|
+
n = o;
|
|
2987
2985
|
}
|
|
2988
|
-
return
|
|
2986
|
+
return n;
|
|
2989
2987
|
}
|
|
2990
2988
|
function Kn(r, e) {
|
|
2991
2989
|
return vt(r, e);
|
|
@@ -2993,8 +2991,8 @@ function Kn(r, e) {
|
|
|
2993
2991
|
function Zn(r) {
|
|
2994
2992
|
const e = D(19), {
|
|
2995
2993
|
accessToken: t,
|
|
2996
|
-
sourceId:
|
|
2997
|
-
widgetProps:
|
|
2994
|
+
sourceId: s,
|
|
2995
|
+
widgetProps: n,
|
|
2998
2996
|
additionalFilter: o,
|
|
2999
2997
|
useQueryProps: i
|
|
3000
2998
|
} = r;
|
|
@@ -3005,20 +3003,20 @@ function Zn(r) {
|
|
|
3005
3003
|
enabled: l,
|
|
3006
3004
|
...c
|
|
3007
3005
|
} = a, e[2] = a, e[3] = l, e[4] = c) : (l = e[3], c = e[4]);
|
|
3008
|
-
const g = l === void 0 ? !0 : l, p = ae(
|
|
3006
|
+
const g = l === void 0 ? !0 : l, p = ae(s, o), m = ie(t, s);
|
|
3009
3007
|
let d;
|
|
3010
|
-
e[5] !== t || e[6] !== p || e[7] !==
|
|
3008
|
+
e[5] !== t || e[6] !== p || e[7] !== s || e[8] !== n ? (d = ["categories", s, t, n, p], e[5] = t, e[6] = p, e[7] = s, e[8] = n, e[9] = d) : d = e[9];
|
|
3011
3009
|
let h;
|
|
3012
|
-
e[10] !== p || e[11] !== m || e[12] !==
|
|
3010
|
+
e[10] !== p || e[11] !== m || e[12] !== n ? (h = (f) => {
|
|
3013
3011
|
const {
|
|
3014
3012
|
signal: b
|
|
3015
3013
|
} = f;
|
|
3016
3014
|
return m == null ? void 0 : m.getCategories({
|
|
3017
|
-
...
|
|
3015
|
+
...n,
|
|
3018
3016
|
filters: p,
|
|
3019
3017
|
signal: b
|
|
3020
3018
|
});
|
|
3021
|
-
}, e[10] = p, e[11] = m, e[12] =
|
|
3019
|
+
}, e[10] = p, e[11] = m, e[12] = n, e[13] = h) : h = e[13];
|
|
3022
3020
|
const y = !!m && g;
|
|
3023
3021
|
let T;
|
|
3024
3022
|
return e[14] !== d || e[15] !== h || e[16] !== y || e[17] !== c ? (T = {
|
|
@@ -3030,20 +3028,20 @@ function Zn(r) {
|
|
|
3030
3028
|
}
|
|
3031
3029
|
function Yr(r) {
|
|
3032
3030
|
const e = D(6);
|
|
3033
|
-
let t,
|
|
3031
|
+
let t, s;
|
|
3034
3032
|
e[0] !== r ? ({
|
|
3035
3033
|
children: t,
|
|
3036
|
-
...
|
|
3037
|
-
} = r, e[0] = r, e[1] = t, e[2] =
|
|
3038
|
-
const
|
|
3034
|
+
...s
|
|
3035
|
+
} = r, e[0] = r, e[1] = t, e[2] = s) : (t = e[1], s = e[2]);
|
|
3036
|
+
const n = Zn(s);
|
|
3039
3037
|
let o;
|
|
3040
|
-
return e[3] !== t || e[4] !==
|
|
3038
|
+
return e[3] !== t || e[4] !== n ? (o = t(n), e[3] = t, e[4] = n, e[5] = o) : o = e[5], o;
|
|
3041
3039
|
}
|
|
3042
3040
|
function Yn(r) {
|
|
3043
3041
|
const e = D(19), {
|
|
3044
3042
|
accessToken: t,
|
|
3045
|
-
sourceId:
|
|
3046
|
-
widgetProps:
|
|
3043
|
+
sourceId: s,
|
|
3044
|
+
widgetProps: n,
|
|
3047
3045
|
additionalFilter: o,
|
|
3048
3046
|
useQueryProps: i
|
|
3049
3047
|
} = r;
|
|
@@ -3054,20 +3052,20 @@ function Yn(r) {
|
|
|
3054
3052
|
enabled: l,
|
|
3055
3053
|
...c
|
|
3056
3054
|
} = a, e[2] = a, e[3] = l, e[4] = c) : (l = e[3], c = e[4]);
|
|
3057
|
-
const g = l === void 0 ? !0 : l, p = ae(
|
|
3055
|
+
const g = l === void 0 ? !0 : l, p = ae(s, o), m = ie(t, s);
|
|
3058
3056
|
let d;
|
|
3059
|
-
e[5] !== t || e[6] !== p || e[7] !==
|
|
3057
|
+
e[5] !== t || e[6] !== p || e[7] !== s || e[8] !== n ? (d = ["features", s, t, n, p], e[5] = t, e[6] = p, e[7] = s, e[8] = n, e[9] = d) : d = e[9];
|
|
3060
3058
|
let h;
|
|
3061
|
-
e[10] !== p || e[11] !== m || e[12] !==
|
|
3059
|
+
e[10] !== p || e[11] !== m || e[12] !== n ? (h = (f) => {
|
|
3062
3060
|
const {
|
|
3063
3061
|
signal: b
|
|
3064
3062
|
} = f;
|
|
3065
3063
|
return m == null ? void 0 : m.getFeatures({
|
|
3066
|
-
...
|
|
3064
|
+
...n,
|
|
3067
3065
|
filters: p,
|
|
3068
3066
|
signal: b
|
|
3069
3067
|
});
|
|
3070
|
-
}, e[10] = p, e[11] = m, e[12] =
|
|
3068
|
+
}, e[10] = p, e[11] = m, e[12] = n, e[13] = h) : h = e[13];
|
|
3071
3069
|
const y = !!m && g;
|
|
3072
3070
|
let T;
|
|
3073
3071
|
return e[14] !== d || e[15] !== h || e[16] !== y || e[17] !== c ? (T = {
|
|
@@ -3079,20 +3077,20 @@ function Yn(r) {
|
|
|
3079
3077
|
}
|
|
3080
3078
|
function Xr(r) {
|
|
3081
3079
|
const e = D(6);
|
|
3082
|
-
let t,
|
|
3080
|
+
let t, s;
|
|
3083
3081
|
e[0] !== r ? ({
|
|
3084
3082
|
children: t,
|
|
3085
|
-
...
|
|
3086
|
-
} = r, e[0] = r, e[1] = t, e[2] =
|
|
3087
|
-
const
|
|
3083
|
+
...s
|
|
3084
|
+
} = r, e[0] = r, e[1] = t, e[2] = s) : (t = e[1], s = e[2]);
|
|
3085
|
+
const n = Yn(s);
|
|
3088
3086
|
let o;
|
|
3089
|
-
return e[3] !== t || e[4] !==
|
|
3087
|
+
return e[3] !== t || e[4] !== n ? (o = t(n), e[3] = t, e[4] = n, e[5] = o) : o = e[5], o;
|
|
3090
3088
|
}
|
|
3091
3089
|
function Xn(r) {
|
|
3092
3090
|
const e = D(19), {
|
|
3093
3091
|
accessToken: t,
|
|
3094
|
-
sourceId:
|
|
3095
|
-
widgetProps:
|
|
3092
|
+
sourceId: s,
|
|
3093
|
+
widgetProps: n,
|
|
3096
3094
|
additionalFilter: o,
|
|
3097
3095
|
useQueryProps: i
|
|
3098
3096
|
} = r;
|
|
@@ -3103,20 +3101,20 @@ function Xn(r) {
|
|
|
3103
3101
|
enabled: l,
|
|
3104
3102
|
...c
|
|
3105
3103
|
} = a, e[2] = a, e[3] = l, e[4] = c) : (l = e[3], c = e[4]);
|
|
3106
|
-
const g = l === void 0 ? !0 : l, p = ae(
|
|
3104
|
+
const g = l === void 0 ? !0 : l, p = ae(s, o), m = ie(t, s);
|
|
3107
3105
|
let d;
|
|
3108
|
-
e[5] !== t || e[6] !== p || e[7] !==
|
|
3106
|
+
e[5] !== t || e[6] !== p || e[7] !== s || e[8] !== n ? (d = ["formula", s, t, n, p], e[5] = t, e[6] = p, e[7] = s, e[8] = n, e[9] = d) : d = e[9];
|
|
3109
3107
|
let h;
|
|
3110
|
-
e[10] !== p || e[11] !== m || e[12] !==
|
|
3108
|
+
e[10] !== p || e[11] !== m || e[12] !== n ? (h = (f) => {
|
|
3111
3109
|
const {
|
|
3112
3110
|
signal: b
|
|
3113
3111
|
} = f;
|
|
3114
3112
|
return m == null ? void 0 : m.getFormula({
|
|
3115
|
-
...
|
|
3113
|
+
...n,
|
|
3116
3114
|
filters: p,
|
|
3117
3115
|
signal: b
|
|
3118
3116
|
});
|
|
3119
|
-
}, e[10] = p, e[11] = m, e[12] =
|
|
3117
|
+
}, e[10] = p, e[11] = m, e[12] = n, e[13] = h) : h = e[13];
|
|
3120
3118
|
const y = !!m && g;
|
|
3121
3119
|
let T;
|
|
3122
3120
|
return e[14] !== d || e[15] !== h || e[16] !== y || e[17] !== c ? (T = {
|
|
@@ -3128,20 +3126,20 @@ function Xn(r) {
|
|
|
3128
3126
|
}
|
|
3129
3127
|
function Jr(r) {
|
|
3130
3128
|
const e = D(6);
|
|
3131
|
-
let t,
|
|
3129
|
+
let t, s;
|
|
3132
3130
|
e[0] !== r ? ({
|
|
3133
3131
|
children: t,
|
|
3134
|
-
...
|
|
3135
|
-
} = r, e[0] = r, e[1] = t, e[2] =
|
|
3136
|
-
const
|
|
3132
|
+
...s
|
|
3133
|
+
} = r, e[0] = r, e[1] = t, e[2] = s) : (t = e[1], s = e[2]);
|
|
3134
|
+
const n = Xn(s);
|
|
3137
3135
|
let o;
|
|
3138
|
-
return e[3] !== t || e[4] !==
|
|
3136
|
+
return e[3] !== t || e[4] !== n ? (o = t(n), e[3] = t, e[4] = n, e[5] = o) : o = e[5], o;
|
|
3139
3137
|
}
|
|
3140
3138
|
function Jn(r) {
|
|
3141
3139
|
const e = D(19), {
|
|
3142
3140
|
accessToken: t,
|
|
3143
|
-
sourceId:
|
|
3144
|
-
widgetProps:
|
|
3141
|
+
sourceId: s,
|
|
3142
|
+
widgetProps: n,
|
|
3145
3143
|
additionalFilter: o,
|
|
3146
3144
|
useQueryProps: i
|
|
3147
3145
|
} = r;
|
|
@@ -3152,20 +3150,20 @@ function Jn(r) {
|
|
|
3152
3150
|
enabled: l,
|
|
3153
3151
|
...c
|
|
3154
3152
|
} = a, e[2] = a, e[3] = l, e[4] = c) : (l = e[3], c = e[4]);
|
|
3155
|
-
const g = l === void 0 ? !0 : l, p = ae(
|
|
3153
|
+
const g = l === void 0 ? !0 : l, p = ae(s, o), m = ie(t, s);
|
|
3156
3154
|
let d;
|
|
3157
|
-
e[5] !== t || e[6] !== p || e[7] !==
|
|
3155
|
+
e[5] !== t || e[6] !== p || e[7] !== s || e[8] !== n ? (d = ["histogram", s, t, n, p], e[5] = t, e[6] = p, e[7] = s, e[8] = n, e[9] = d) : d = e[9];
|
|
3158
3156
|
let h;
|
|
3159
|
-
e[10] !== p || e[11] !== m || e[12] !==
|
|
3157
|
+
e[10] !== p || e[11] !== m || e[12] !== n ? (h = (f) => {
|
|
3160
3158
|
const {
|
|
3161
3159
|
signal: b
|
|
3162
3160
|
} = f;
|
|
3163
3161
|
return m == null ? void 0 : m.getHistogram({
|
|
3164
|
-
...
|
|
3162
|
+
...n,
|
|
3165
3163
|
filters: p,
|
|
3166
3164
|
signal: b
|
|
3167
3165
|
});
|
|
3168
|
-
}, e[10] = p, e[11] = m, e[12] =
|
|
3166
|
+
}, e[10] = p, e[11] = m, e[12] = n, e[13] = h) : h = e[13];
|
|
3169
3167
|
const y = !!m && g;
|
|
3170
3168
|
let T;
|
|
3171
3169
|
return e[14] !== d || e[15] !== h || e[16] !== y || e[17] !== c ? (T = {
|
|
@@ -3177,20 +3175,20 @@ function Jn(r) {
|
|
|
3177
3175
|
}
|
|
3178
3176
|
function eo(r) {
|
|
3179
3177
|
const e = D(6);
|
|
3180
|
-
let t,
|
|
3178
|
+
let t, s;
|
|
3181
3179
|
e[0] !== r ? ({
|
|
3182
3180
|
children: t,
|
|
3183
|
-
...
|
|
3184
|
-
} = r, e[0] = r, e[1] = t, e[2] =
|
|
3185
|
-
const
|
|
3181
|
+
...s
|
|
3182
|
+
} = r, e[0] = r, e[1] = t, e[2] = s) : (t = e[1], s = e[2]);
|
|
3183
|
+
const n = Jn(s);
|
|
3186
3184
|
let o;
|
|
3187
|
-
return e[3] !== t || e[4] !==
|
|
3185
|
+
return e[3] !== t || e[4] !== n ? (o = t(n), e[3] = t, e[4] = n, e[5] = o) : o = e[5], o;
|
|
3188
3186
|
}
|
|
3189
3187
|
function er(r) {
|
|
3190
3188
|
const e = D(19), {
|
|
3191
3189
|
accessToken: t,
|
|
3192
|
-
sourceId:
|
|
3193
|
-
widgetProps:
|
|
3190
|
+
sourceId: s,
|
|
3191
|
+
widgetProps: n,
|
|
3194
3192
|
additionalFilter: o,
|
|
3195
3193
|
useQueryProps: i
|
|
3196
3194
|
} = r;
|
|
@@ -3201,20 +3199,20 @@ function er(r) {
|
|
|
3201
3199
|
enabled: l,
|
|
3202
3200
|
...c
|
|
3203
3201
|
} = a, e[2] = a, e[3] = l, e[4] = c) : (l = e[3], c = e[4]);
|
|
3204
|
-
const g = l === void 0 ? !0 : l, p = ae(
|
|
3202
|
+
const g = l === void 0 ? !0 : l, p = ae(s, o), m = ie(t, s);
|
|
3205
3203
|
let d;
|
|
3206
|
-
e[5] !== t || e[6] !== p || e[7] !==
|
|
3204
|
+
e[5] !== t || e[6] !== p || e[7] !== s || e[8] !== n ? (d = ["range", s, t, n, p], e[5] = t, e[6] = p, e[7] = s, e[8] = n, e[9] = d) : d = e[9];
|
|
3207
3205
|
let h;
|
|
3208
|
-
e[10] !== p || e[11] !== m || e[12] !==
|
|
3206
|
+
e[10] !== p || e[11] !== m || e[12] !== n ? (h = (f) => {
|
|
3209
3207
|
const {
|
|
3210
3208
|
signal: b
|
|
3211
3209
|
} = f;
|
|
3212
3210
|
return m == null ? void 0 : m.getRange({
|
|
3213
|
-
...
|
|
3211
|
+
...n,
|
|
3214
3212
|
filters: p,
|
|
3215
3213
|
signal: b
|
|
3216
3214
|
});
|
|
3217
|
-
}, e[10] = p, e[11] = m, e[12] =
|
|
3215
|
+
}, e[10] = p, e[11] = m, e[12] = n, e[13] = h) : h = e[13];
|
|
3218
3216
|
const y = !!m && g;
|
|
3219
3217
|
let T;
|
|
3220
3218
|
return e[14] !== d || e[15] !== h || e[16] !== y || e[17] !== c ? (T = {
|
|
@@ -3226,20 +3224,20 @@ function er(r) {
|
|
|
3226
3224
|
}
|
|
3227
3225
|
function to(r) {
|
|
3228
3226
|
const e = D(6);
|
|
3229
|
-
let t,
|
|
3227
|
+
let t, s;
|
|
3230
3228
|
e[0] !== r ? ({
|
|
3231
3229
|
children: t,
|
|
3232
|
-
...
|
|
3233
|
-
} = r, e[0] = r, e[1] = t, e[2] =
|
|
3234
|
-
const
|
|
3230
|
+
...s
|
|
3231
|
+
} = r, e[0] = r, e[1] = t, e[2] = s) : (t = e[1], s = e[2]);
|
|
3232
|
+
const n = er(s);
|
|
3235
3233
|
let o;
|
|
3236
|
-
return e[3] !== t || e[4] !==
|
|
3234
|
+
return e[3] !== t || e[4] !== n ? (o = t(n), e[3] = t, e[4] = n, e[5] = o) : o = e[5], o;
|
|
3237
3235
|
}
|
|
3238
3236
|
function tr(r) {
|
|
3239
3237
|
const e = D(19), {
|
|
3240
3238
|
accessToken: t,
|
|
3241
|
-
sourceId:
|
|
3242
|
-
widgetProps:
|
|
3239
|
+
sourceId: s,
|
|
3240
|
+
widgetProps: n,
|
|
3243
3241
|
additionalFilter: o,
|
|
3244
3242
|
useQueryProps: i
|
|
3245
3243
|
} = r;
|
|
@@ -3250,20 +3248,20 @@ function tr(r) {
|
|
|
3250
3248
|
enabled: l,
|
|
3251
3249
|
...c
|
|
3252
3250
|
} = a, e[2] = a, e[3] = l, e[4] = c) : (l = e[3], c = e[4]);
|
|
3253
|
-
const g = l === void 0 ? !0 : l, p = ae(
|
|
3251
|
+
const g = l === void 0 ? !0 : l, p = ae(s, o), m = ie(t, s);
|
|
3254
3252
|
let d;
|
|
3255
|
-
e[5] !== t || e[6] !== p || e[7] !==
|
|
3253
|
+
e[5] !== t || e[6] !== p || e[7] !== s || e[8] !== n ? (d = ["scatter", s, t, n, p], e[5] = t, e[6] = p, e[7] = s, e[8] = n, e[9] = d) : d = e[9];
|
|
3256
3254
|
let h;
|
|
3257
|
-
e[10] !== p || e[11] !== m || e[12] !==
|
|
3255
|
+
e[10] !== p || e[11] !== m || e[12] !== n ? (h = (f) => {
|
|
3258
3256
|
const {
|
|
3259
3257
|
signal: b
|
|
3260
3258
|
} = f;
|
|
3261
3259
|
return m == null ? void 0 : m.getScatter({
|
|
3262
|
-
...
|
|
3260
|
+
...n,
|
|
3263
3261
|
filters: p,
|
|
3264
3262
|
signal: b
|
|
3265
3263
|
});
|
|
3266
|
-
}, e[10] = p, e[11] = m, e[12] =
|
|
3264
|
+
}, e[10] = p, e[11] = m, e[12] = n, e[13] = h) : h = e[13];
|
|
3267
3265
|
const y = !!m && g;
|
|
3268
3266
|
let T;
|
|
3269
3267
|
return e[14] !== d || e[15] !== h || e[16] !== y || e[17] !== c ? (T = {
|
|
@@ -3275,20 +3273,20 @@ function tr(r) {
|
|
|
3275
3273
|
}
|
|
3276
3274
|
function so(r) {
|
|
3277
3275
|
const e = D(6);
|
|
3278
|
-
let t,
|
|
3276
|
+
let t, s;
|
|
3279
3277
|
e[0] !== r ? ({
|
|
3280
3278
|
children: t,
|
|
3281
|
-
...
|
|
3282
|
-
} = r, e[0] = r, e[1] = t, e[2] =
|
|
3283
|
-
const
|
|
3279
|
+
...s
|
|
3280
|
+
} = r, e[0] = r, e[1] = t, e[2] = s) : (t = e[1], s = e[2]);
|
|
3281
|
+
const n = tr(s);
|
|
3284
3282
|
let o;
|
|
3285
|
-
return e[3] !== t || e[4] !==
|
|
3283
|
+
return e[3] !== t || e[4] !== n ? (o = t(n), e[3] = t, e[4] = n, e[5] = o) : o = e[5], o;
|
|
3286
3284
|
}
|
|
3287
3285
|
function sr(r) {
|
|
3288
3286
|
const e = D(19), {
|
|
3289
3287
|
accessToken: t,
|
|
3290
|
-
sourceId:
|
|
3291
|
-
widgetProps:
|
|
3288
|
+
sourceId: s,
|
|
3289
|
+
widgetProps: n,
|
|
3292
3290
|
additionalFilter: o,
|
|
3293
3291
|
useQueryProps: i
|
|
3294
3292
|
} = r;
|
|
@@ -3299,20 +3297,20 @@ function sr(r) {
|
|
|
3299
3297
|
enabled: l,
|
|
3300
3298
|
...c
|
|
3301
3299
|
} = a, e[2] = a, e[3] = l, e[4] = c) : (l = e[3], c = e[4]);
|
|
3302
|
-
const g = l === void 0 ? !0 : l, p = ae(
|
|
3300
|
+
const g = l === void 0 ? !0 : l, p = ae(s, o), m = ie(t, s);
|
|
3303
3301
|
let d;
|
|
3304
|
-
e[5] !== t || e[6] !== p || e[7] !==
|
|
3302
|
+
e[5] !== t || e[6] !== p || e[7] !== s || e[8] !== n ? (d = ["table", s, t, n, p], e[5] = t, e[6] = p, e[7] = s, e[8] = n, e[9] = d) : d = e[9];
|
|
3305
3303
|
let h;
|
|
3306
|
-
e[10] !== p || e[11] !== m || e[12] !==
|
|
3304
|
+
e[10] !== p || e[11] !== m || e[12] !== n ? (h = (f) => {
|
|
3307
3305
|
const {
|
|
3308
3306
|
signal: b
|
|
3309
3307
|
} = f;
|
|
3310
3308
|
return m == null ? void 0 : m.getTable({
|
|
3311
|
-
...
|
|
3309
|
+
...n,
|
|
3312
3310
|
filters: p,
|
|
3313
3311
|
signal: b
|
|
3314
3312
|
});
|
|
3315
|
-
}, e[10] = p, e[11] = m, e[12] =
|
|
3313
|
+
}, e[10] = p, e[11] = m, e[12] = n, e[13] = h) : h = e[13];
|
|
3316
3314
|
const y = !!m && g;
|
|
3317
3315
|
let T;
|
|
3318
3316
|
return e[14] !== d || e[15] !== h || e[16] !== y || e[17] !== c ? (T = {
|
|
@@ -3324,20 +3322,20 @@ function sr(r) {
|
|
|
3324
3322
|
}
|
|
3325
3323
|
function no(r) {
|
|
3326
3324
|
const e = D(6);
|
|
3327
|
-
let t,
|
|
3325
|
+
let t, s;
|
|
3328
3326
|
e[0] !== r ? ({
|
|
3329
3327
|
children: t,
|
|
3330
|
-
...
|
|
3331
|
-
} = r, e[0] = r, e[1] = t, e[2] =
|
|
3332
|
-
const
|
|
3328
|
+
...s
|
|
3329
|
+
} = r, e[0] = r, e[1] = t, e[2] = s) : (t = e[1], s = e[2]);
|
|
3330
|
+
const n = sr(s);
|
|
3333
3331
|
let o;
|
|
3334
|
-
return e[3] !== t || e[4] !==
|
|
3332
|
+
return e[3] !== t || e[4] !== n ? (o = t(n), e[3] = t, e[4] = n, e[5] = o) : o = e[5], o;
|
|
3335
3333
|
}
|
|
3336
3334
|
function nr(r) {
|
|
3337
3335
|
const e = D(19), {
|
|
3338
3336
|
accessToken: t,
|
|
3339
|
-
sourceId:
|
|
3340
|
-
widgetProps:
|
|
3337
|
+
sourceId: s,
|
|
3338
|
+
widgetProps: n,
|
|
3341
3339
|
additionalFilter: o,
|
|
3342
3340
|
useQueryProps: i
|
|
3343
3341
|
} = r;
|
|
@@ -3348,20 +3346,20 @@ function nr(r) {
|
|
|
3348
3346
|
enabled: l,
|
|
3349
3347
|
...c
|
|
3350
3348
|
} = a, e[2] = a, e[3] = l, e[4] = c) : (l = e[3], c = e[4]);
|
|
3351
|
-
const g = l === void 0 ? !0 : l, p = ae(
|
|
3349
|
+
const g = l === void 0 ? !0 : l, p = ae(s, o), m = ie(t, s);
|
|
3352
3350
|
let d;
|
|
3353
|
-
e[5] !== t || e[6] !== p || e[7] !==
|
|
3351
|
+
e[5] !== t || e[6] !== p || e[7] !== s || e[8] !== n ? (d = ["timeSeries", s, t, n, p], e[5] = t, e[6] = p, e[7] = s, e[8] = n, e[9] = d) : d = e[9];
|
|
3354
3352
|
let h;
|
|
3355
|
-
e[10] !== p || e[11] !== m || e[12] !==
|
|
3353
|
+
e[10] !== p || e[11] !== m || e[12] !== n ? (h = (f) => {
|
|
3356
3354
|
const {
|
|
3357
3355
|
signal: b
|
|
3358
3356
|
} = f;
|
|
3359
3357
|
return m == null ? void 0 : m.getTimeSeries({
|
|
3360
|
-
...
|
|
3358
|
+
...n,
|
|
3361
3359
|
filters: p,
|
|
3362
3360
|
signal: b
|
|
3363
3361
|
});
|
|
3364
|
-
}, e[10] = p, e[11] = m, e[12] =
|
|
3362
|
+
}, e[10] = p, e[11] = m, e[12] = n, e[13] = h) : h = e[13];
|
|
3365
3363
|
const y = !!m && g;
|
|
3366
3364
|
let T;
|
|
3367
3365
|
return e[14] !== d || e[15] !== h || e[16] !== y || e[17] !== c ? (T = {
|
|
@@ -3373,25 +3371,25 @@ function nr(r) {
|
|
|
3373
3371
|
}
|
|
3374
3372
|
function ro(r) {
|
|
3375
3373
|
const e = D(6);
|
|
3376
|
-
let t,
|
|
3374
|
+
let t, s;
|
|
3377
3375
|
e[0] !== r ? ({
|
|
3378
3376
|
children: t,
|
|
3379
|
-
...
|
|
3380
|
-
} = r, e[0] = r, e[1] = t, e[2] =
|
|
3381
|
-
const
|
|
3377
|
+
...s
|
|
3378
|
+
} = r, e[0] = r, e[1] = t, e[2] = s) : (t = e[1], s = e[2]);
|
|
3379
|
+
const n = nr(s);
|
|
3382
3380
|
let o;
|
|
3383
|
-
return e[3] !== t || e[4] !==
|
|
3381
|
+
return e[3] !== t || e[4] !== n ? (o = t(n), e[3] = t, e[4] = n, e[5] = o) : o = e[5], o;
|
|
3384
3382
|
}
|
|
3385
3383
|
const oo = "ps";
|
|
3386
3384
|
function io(r) {
|
|
3387
3385
|
const e = D(13), {
|
|
3388
3386
|
children: t,
|
|
3389
|
-
maps:
|
|
3390
|
-
lassoTools:
|
|
3387
|
+
maps: s,
|
|
3388
|
+
lassoTools: n,
|
|
3391
3389
|
measureTools: o
|
|
3392
3390
|
} = r;
|
|
3393
3391
|
let i;
|
|
3394
|
-
e[0] !==
|
|
3392
|
+
e[0] !== n ? (i = n === void 0 ? [] : n, e[0] = n, e[1] = i) : i = e[1];
|
|
3395
3393
|
const a = i;
|
|
3396
3394
|
let l;
|
|
3397
3395
|
e[2] !== o ? (l = o === void 0 ? [] : o, e[2] = o, e[3] = l) : l = e[3];
|
|
@@ -3401,39 +3399,39 @@ function io(r) {
|
|
|
3401
3399
|
let p;
|
|
3402
3400
|
e[7] !== a || e[8] !== g ? (p = /* @__PURE__ */ N(Ws, { values: a, children: g }), e[7] = a, e[8] = g, e[9] = p) : p = e[9];
|
|
3403
3401
|
let m;
|
|
3404
|
-
return e[10] !==
|
|
3402
|
+
return e[10] !== s || e[11] !== p ? (m = /* @__PURE__ */ N(Bs, { values: s, children: p }), e[10] = s, e[11] = p, e[12] = m) : m = e[12], m;
|
|
3405
3403
|
}
|
|
3406
3404
|
function ao(r, e) {
|
|
3407
|
-
const t = pe((c) => c.layers),
|
|
3405
|
+
const t = pe((c) => c.layers), s = pe((c) => c.setLayer), n = re(() => kt(r.map((c) => t[c]).filter((c) => !!(c != null && c.legend))).toReversed(), [t, r]), o = re(() => n.map(e), [e, n]), i = Q(({
|
|
3408
3406
|
id: c,
|
|
3409
3407
|
visible: g,
|
|
3410
3408
|
...p
|
|
3411
3409
|
}) => {
|
|
3412
|
-
|
|
3410
|
+
s(c, {
|
|
3413
3411
|
props: {
|
|
3414
3412
|
visible: g
|
|
3415
3413
|
},
|
|
3416
3414
|
legend: p
|
|
3417
3415
|
});
|
|
3418
|
-
}, [
|
|
3416
|
+
}, [s]), a = Q(({
|
|
3419
3417
|
id: c,
|
|
3420
3418
|
collapsed: g
|
|
3421
3419
|
}) => {
|
|
3422
|
-
|
|
3420
|
+
s(c, {
|
|
3423
3421
|
legend: {
|
|
3424
3422
|
collapsed: g
|
|
3425
3423
|
}
|
|
3426
3424
|
});
|
|
3427
|
-
}, [
|
|
3425
|
+
}, [s]), l = Q(({
|
|
3428
3426
|
id: c,
|
|
3429
3427
|
opacity: g
|
|
3430
3428
|
}) => {
|
|
3431
|
-
|
|
3429
|
+
s(c, {
|
|
3432
3430
|
props: {
|
|
3433
3431
|
opacity: g
|
|
3434
3432
|
}
|
|
3435
3433
|
});
|
|
3436
|
-
}, [
|
|
3434
|
+
}, [s]);
|
|
3437
3435
|
return {
|
|
3438
3436
|
legend: o,
|
|
3439
3437
|
onChangeVisibility: i,
|
|
@@ -3444,7 +3442,7 @@ function ao(r, e) {
|
|
|
3444
3442
|
function lo({
|
|
3445
3443
|
mapId: r
|
|
3446
3444
|
}) {
|
|
3447
|
-
const [e, t] = oe(void 0), [
|
|
3445
|
+
const [e, t] = oe(void 0), [s, n] = oe(!1), o = $((y) => {
|
|
3448
3446
|
var T;
|
|
3449
3447
|
return (T = y.maps[r]) == null ? void 0 : T.basemap;
|
|
3450
3448
|
}), i = $((y) => y.getDeckInstance), a = $((y) => y.getOverlayInstance), l = $((y) => y.areLayersLoaded[r]), g = $((y) => {
|
|
@@ -3476,14 +3474,14 @@ function lo({
|
|
|
3476
3474
|
} catch (f) {
|
|
3477
3475
|
console.error(f);
|
|
3478
3476
|
} finally {
|
|
3479
|
-
|
|
3477
|
+
n(!1);
|
|
3480
3478
|
}
|
|
3481
3479
|
}, [i, m, r, a]);
|
|
3482
3480
|
return {
|
|
3483
3481
|
takeScreenshot: Q(() => {
|
|
3484
|
-
|
|
3482
|
+
n(!0), g && d();
|
|
3485
3483
|
}, [d, g]),
|
|
3486
|
-
isLoading:
|
|
3484
|
+
isLoading: s,
|
|
3487
3485
|
screenshot: e
|
|
3488
3486
|
};
|
|
3489
3487
|
}
|
|
@@ -3491,11 +3489,11 @@ function co(r) {
|
|
|
3491
3489
|
const e = D(11), {
|
|
3492
3490
|
mapId: t
|
|
3493
3491
|
} = r;
|
|
3494
|
-
let
|
|
3495
|
-
e[0] !== t ? (
|
|
3492
|
+
let s;
|
|
3493
|
+
e[0] !== t ? (s = {
|
|
3496
3494
|
mapId: t
|
|
3497
|
-
}, e[0] = t, e[1] =
|
|
3498
|
-
const
|
|
3495
|
+
}, e[0] = t, e[1] = s) : s = e[1];
|
|
3496
|
+
const n = rr(s);
|
|
3499
3497
|
let o;
|
|
3500
3498
|
e[2] !== t ? (o = {
|
|
3501
3499
|
mapId: t
|
|
@@ -3505,30 +3503,30 @@ function co(r) {
|
|
|
3505
3503
|
e[4] !== t ? (a = {
|
|
3506
3504
|
mapId: t
|
|
3507
3505
|
}, e[4] = t, e[5] = a) : a = e[5];
|
|
3508
|
-
const l = lr(a), c = i ?? l ??
|
|
3506
|
+
const l = lr(a), c = i ?? l ?? n;
|
|
3509
3507
|
let g;
|
|
3510
|
-
return e[6] !== i || e[7] !== l || e[8] !== c || e[9] !==
|
|
3508
|
+
return e[6] !== i || e[7] !== l || e[8] !== c || e[9] !== n ? (g = {
|
|
3511
3509
|
spatialFilter: c,
|
|
3512
3510
|
staticSpatialFilter: l,
|
|
3513
3511
|
lassoToolsSpatialFilter: i,
|
|
3514
|
-
viewportSpatialFilter:
|
|
3515
|
-
}, e[6] = i, e[7] = l, e[8] = c, e[9] =
|
|
3512
|
+
viewportSpatialFilter: n
|
|
3513
|
+
}, e[6] = i, e[7] = l, e[8] = c, e[9] = n, e[10] = g) : g = e[10], g;
|
|
3516
3514
|
}
|
|
3517
3515
|
function rr(r) {
|
|
3518
3516
|
const e = D(4), {
|
|
3519
3517
|
mapId: t
|
|
3520
3518
|
} = r;
|
|
3521
|
-
let
|
|
3522
|
-
e[0] !== t ? (
|
|
3523
|
-
const
|
|
3519
|
+
let s;
|
|
3520
|
+
e[0] !== t ? (s = (i) => i.viewports[t], e[0] = t, e[1] = s) : s = e[1];
|
|
3521
|
+
const n = $(s);
|
|
3524
3522
|
let o;
|
|
3525
3523
|
e: {
|
|
3526
|
-
if (!
|
|
3524
|
+
if (!n) {
|
|
3527
3525
|
o = void 0;
|
|
3528
3526
|
break e;
|
|
3529
3527
|
}
|
|
3530
3528
|
let i;
|
|
3531
|
-
e[2] !==
|
|
3529
|
+
e[2] !== n ? (i = ms(n.getBounds()), e[2] = n, e[3] = i) : i = e[3], o = i;
|
|
3532
3530
|
}
|
|
3533
3531
|
return o;
|
|
3534
3532
|
}
|
|
@@ -3536,24 +3534,24 @@ function or(r) {
|
|
|
3536
3534
|
const e = D(5), {
|
|
3537
3535
|
mapId: t
|
|
3538
3536
|
} = r;
|
|
3539
|
-
let
|
|
3540
|
-
e[0] !== t ? (
|
|
3537
|
+
let s;
|
|
3538
|
+
e[0] !== t ? (s = (i) => {
|
|
3541
3539
|
var a;
|
|
3542
3540
|
return (a = i.data[t]) == null ? void 0 : a.values;
|
|
3543
|
-
}, e[0] = t, e[1] =
|
|
3544
|
-
const
|
|
3541
|
+
}, e[0] = t, e[1] = s) : s = e[1];
|
|
3542
|
+
const n = G(s);
|
|
3545
3543
|
let o;
|
|
3546
3544
|
e: {
|
|
3547
3545
|
let i;
|
|
3548
|
-
if (e[2] !==
|
|
3546
|
+
if (e[2] !== n) {
|
|
3549
3547
|
const a = _t({
|
|
3550
|
-
values:
|
|
3548
|
+
values: n
|
|
3551
3549
|
}).filter(ar);
|
|
3552
3550
|
if (!(a != null && a.length)) {
|
|
3553
3551
|
o = void 0;
|
|
3554
3552
|
break e;
|
|
3555
3553
|
}
|
|
3556
|
-
i = gt(a.map(ir)), e[2] =
|
|
3554
|
+
i = gt(a.map(ir)), e[2] = n, e[3] = i, e[4] = o;
|
|
3557
3555
|
} else
|
|
3558
3556
|
i = e[3], o = e[4];
|
|
3559
3557
|
o = i.geometry;
|
|
@@ -3570,19 +3568,19 @@ function lr(r) {
|
|
|
3570
3568
|
const e = D(4), {
|
|
3571
3569
|
mapId: t
|
|
3572
3570
|
} = r;
|
|
3573
|
-
let
|
|
3574
|
-
e[0] !== t ? (
|
|
3575
|
-
const
|
|
3571
|
+
let s;
|
|
3572
|
+
e[0] !== t ? (s = (i) => i.spatialFilter[t], e[0] = t, e[1] = s) : s = e[1];
|
|
3573
|
+
const n = $(s);
|
|
3576
3574
|
let o;
|
|
3577
3575
|
e: {
|
|
3578
|
-
if (!
|
|
3576
|
+
if (!n || !Object.keys(n).length) {
|
|
3579
3577
|
o = void 0;
|
|
3580
3578
|
break e;
|
|
3581
3579
|
}
|
|
3582
3580
|
let i;
|
|
3583
|
-
if (e[2] !==
|
|
3584
|
-
const a = Object.values(
|
|
3585
|
-
i = gt(a), e[2] =
|
|
3581
|
+
if (e[2] !== n) {
|
|
3582
|
+
const a = Object.values(n).filter(ur).flatMap(cr);
|
|
3583
|
+
i = gt(a), e[2] = n, e[3] = i;
|
|
3586
3584
|
} else
|
|
3587
3585
|
i = e[3];
|
|
3588
3586
|
o = i.geometry;
|
|
@@ -3617,8 +3615,8 @@ function uo({
|
|
|
3617
3615
|
properties: r,
|
|
3618
3616
|
formatters: e = {},
|
|
3619
3617
|
includeColumns: t = Object.keys(r),
|
|
3620
|
-
locale:
|
|
3621
|
-
showColumnName:
|
|
3618
|
+
locale: s = "en-US",
|
|
3619
|
+
showColumnName: n = !0,
|
|
3622
3620
|
title: o,
|
|
3623
3621
|
getColumnName: i = yr,
|
|
3624
3622
|
getFieldHtml: a = fr,
|
|
@@ -3626,7 +3624,7 @@ function uo({
|
|
|
3626
3624
|
getValue: c = pr
|
|
3627
3625
|
}) {
|
|
3628
3626
|
const g = o ? l(o) : "", m = t.reduce((d, h) => {
|
|
3629
|
-
const y = e[h], T = r[h], f = c(T,
|
|
3627
|
+
const y = e[h], T = r[h], f = c(T, s, y), b = n ? i(h) : "";
|
|
3630
3628
|
return d + a(b, f);
|
|
3631
3629
|
}, "");
|
|
3632
3630
|
return g + m;
|
|
@@ -3651,13 +3649,13 @@ function yr(r) {
|
|
|
3651
3649
|
return `<strong>${r}</strong>: `;
|
|
3652
3650
|
}
|
|
3653
3651
|
function fo(r) {
|
|
3654
|
-
var e, t,
|
|
3652
|
+
var e, t, s, n, o, i, a, l;
|
|
3655
3653
|
return {
|
|
3656
3654
|
collapsed: (e = r.legend) == null ? void 0 : e.collapsed,
|
|
3657
3655
|
collapsible: (t = r.legend) == null ? void 0 : t.collapsible,
|
|
3658
|
-
helperText: (
|
|
3656
|
+
helperText: (s = r.legend) == null ? void 0 : s.helperText,
|
|
3659
3657
|
id: r.props.id,
|
|
3660
|
-
legend: (
|
|
3658
|
+
legend: (n = r.legend) == null ? void 0 : n.variables,
|
|
3661
3659
|
maxZoom: (o = r.legend) == null ? void 0 : o.maxZoom,
|
|
3662
3660
|
minZoom: (i = r.legend) == null ? void 0 : i.minZoom,
|
|
3663
3661
|
opacity: r.props.opacity ?? 1,
|
|
@@ -3670,26 +3668,26 @@ function fo(r) {
|
|
|
3670
3668
|
function po(r) {
|
|
3671
3669
|
const e = D(22), {
|
|
3672
3670
|
children: t,
|
|
3673
|
-
mapId:
|
|
3671
|
+
mapId: s
|
|
3674
3672
|
} = r;
|
|
3675
|
-
let
|
|
3676
|
-
e[0] !==
|
|
3673
|
+
let n;
|
|
3674
|
+
e[0] !== s ? (n = (w) => w.viewStates[s], e[0] = s, e[1] = n) : n = e[1];
|
|
3677
3675
|
const {
|
|
3678
3676
|
zoom: o,
|
|
3679
3677
|
maxZoom: i,
|
|
3680
3678
|
minZoom: a
|
|
3681
|
-
} = $(
|
|
3679
|
+
} = $(n);
|
|
3682
3680
|
let l;
|
|
3683
|
-
e[2] !==
|
|
3681
|
+
e[2] !== s ? (l = (w) => w.areLayersLoaded[s], e[2] = s, e[3] = l) : l = e[3];
|
|
3684
3682
|
const c = $(l), g = $(br), p = $(gr), m = $(hr), d = !c;
|
|
3685
3683
|
let h;
|
|
3686
|
-
e[4] !==
|
|
3684
|
+
e[4] !== s || e[5] !== g ? (h = (w) => g(s, w), e[4] = s, e[5] = g, e[6] = h) : h = e[6];
|
|
3687
3685
|
const y = h;
|
|
3688
3686
|
let T;
|
|
3689
|
-
e[7] !== p || e[8] !==
|
|
3687
|
+
e[7] !== p || e[8] !== s ? (T = (w) => p(s, w), e[7] = p, e[8] = s, e[9] = T) : T = e[9];
|
|
3690
3688
|
const f = T;
|
|
3691
3689
|
let b;
|
|
3692
|
-
e[10] !==
|
|
3690
|
+
e[10] !== s || e[11] !== m ? (b = () => m(s), e[10] = s, e[11] = m, e[12] = b) : b = e[12];
|
|
3693
3691
|
const S = b;
|
|
3694
3692
|
let E;
|
|
3695
3693
|
return e[13] !== t || e[14] !== i || e[15] !== a || e[16] !== d || e[17] !== y || e[18] !== f || e[19] !== S || e[20] !== o ? (E = t({
|
|
@@ -3715,8 +3713,8 @@ async function vr({
|
|
|
3715
3713
|
baseUrl: r = We,
|
|
3716
3714
|
connection: e,
|
|
3717
3715
|
accessToken: t,
|
|
3718
|
-
query:
|
|
3719
|
-
attribute:
|
|
3716
|
+
query: s,
|
|
3717
|
+
attribute: n,
|
|
3720
3718
|
fetcherOptions: {
|
|
3721
3719
|
signal: o,
|
|
3722
3720
|
...i
|
|
@@ -3725,14 +3723,14 @@ async function vr({
|
|
|
3725
3723
|
params: l,
|
|
3726
3724
|
apiVersion: c = Ke
|
|
3727
3725
|
}) {
|
|
3728
|
-
const g = `${r}/${c}/stats/${e}/${
|
|
3726
|
+
const g = `${r}/${c}/stats/${e}/${n}`;
|
|
3729
3727
|
return At({
|
|
3730
3728
|
accessToken: t,
|
|
3731
3729
|
signal: o,
|
|
3732
3730
|
url: g,
|
|
3733
3731
|
method: de.get,
|
|
3734
3732
|
params: {
|
|
3735
|
-
q:
|
|
3733
|
+
q: s,
|
|
3736
3734
|
...a,
|
|
3737
3735
|
...l
|
|
3738
3736
|
},
|
|
@@ -3743,8 +3741,8 @@ async function Sr({
|
|
|
3743
3741
|
baseUrl: r = We,
|
|
3744
3742
|
connection: e,
|
|
3745
3743
|
accessToken: t,
|
|
3746
|
-
table:
|
|
3747
|
-
attribute:
|
|
3744
|
+
table: s,
|
|
3745
|
+
attribute: n,
|
|
3748
3746
|
params: o,
|
|
3749
3747
|
fetcherOptions: {
|
|
3750
3748
|
signal: i,
|
|
@@ -3752,7 +3750,7 @@ async function Sr({
|
|
|
3752
3750
|
} = {},
|
|
3753
3751
|
apiVersion: l = Ke
|
|
3754
3752
|
}) {
|
|
3755
|
-
const c = `${r}/${l}/stats/${e}/${
|
|
3753
|
+
const c = `${r}/${l}/stats/${e}/${s}/${n}`;
|
|
3756
3754
|
return At({
|
|
3757
3755
|
accessToken: t,
|
|
3758
3756
|
signal: i,
|
|
@@ -3767,8 +3765,8 @@ async function Sr({
|
|
|
3767
3765
|
function mo(r) {
|
|
3768
3766
|
const e = D(20), {
|
|
3769
3767
|
source: t,
|
|
3770
|
-
attribute:
|
|
3771
|
-
accessToken:
|
|
3768
|
+
attribute: s,
|
|
3769
|
+
accessToken: n,
|
|
3772
3770
|
params: o,
|
|
3773
3771
|
fetcherOptions: i,
|
|
3774
3772
|
useQueryProps: a
|
|
@@ -3782,15 +3780,15 @@ function mo(r) {
|
|
|
3782
3780
|
} = l, e[2] = l, e[3] = c, e[4] = g) : (c = e[3], g = e[4]);
|
|
3783
3781
|
const p = c === void 0 ? !0 : c;
|
|
3784
3782
|
let m;
|
|
3785
|
-
e[5] !==
|
|
3783
|
+
e[5] !== s || e[6] !== t ? (m = [t, s], e[5] = s, e[6] = t, e[7] = m) : m = e[7];
|
|
3786
3784
|
let d;
|
|
3787
|
-
e[8] !==
|
|
3785
|
+
e[8] !== n || e[9] !== s || e[10] !== i || e[11] !== o || e[12] !== t ? (d = () => wr({
|
|
3788
3786
|
source: t,
|
|
3789
3787
|
params: o,
|
|
3790
|
-
attribute:
|
|
3791
|
-
accessToken:
|
|
3788
|
+
attribute: s,
|
|
3789
|
+
accessToken: n,
|
|
3792
3790
|
fetcherOptions: i
|
|
3793
|
-
}), e[8] =
|
|
3791
|
+
}), e[8] = n, e[9] = s, e[10] = i, e[11] = o, e[12] = t, e[13] = d) : d = e[13];
|
|
3794
3792
|
let h;
|
|
3795
3793
|
return e[14] !== p || e[15] !== t || e[16] !== m || e[17] !== d || e[18] !== g ? (h = {
|
|
3796
3794
|
queryKey: m,
|
|
@@ -3809,20 +3807,20 @@ function wr({
|
|
|
3809
3807
|
source: r,
|
|
3810
3808
|
params: e,
|
|
3811
3809
|
attribute: t,
|
|
3812
|
-
accessToken:
|
|
3813
|
-
fetcherOptions:
|
|
3810
|
+
accessToken: s,
|
|
3811
|
+
fetcherOptions: n
|
|
3814
3812
|
}) {
|
|
3815
3813
|
if (r.type.startsWith("query"))
|
|
3816
3814
|
return vr({
|
|
3817
3815
|
connection: r.connectionName,
|
|
3818
3816
|
baseUrl: r.apiBaseUrl,
|
|
3819
3817
|
apiVersion: r.apiVersion,
|
|
3820
|
-
accessToken:
|
|
3818
|
+
accessToken: s,
|
|
3821
3819
|
params: e,
|
|
3822
3820
|
query: r.data,
|
|
3823
3821
|
queryParameters: r.queryParameters,
|
|
3824
3822
|
attribute: t,
|
|
3825
|
-
fetcherOptions:
|
|
3823
|
+
fetcherOptions: n
|
|
3826
3824
|
});
|
|
3827
3825
|
if (r.type.startsWith("table"))
|
|
3828
3826
|
return Sr({
|
|
@@ -3830,15 +3828,15 @@ function wr({
|
|
|
3830
3828
|
baseUrl: r.apiBaseUrl,
|
|
3831
3829
|
apiVersion: r.apiVersion,
|
|
3832
3830
|
params: e,
|
|
3833
|
-
accessToken:
|
|
3831
|
+
accessToken: s,
|
|
3834
3832
|
table: r.data,
|
|
3835
3833
|
attribute: t,
|
|
3836
|
-
fetcherOptions:
|
|
3834
|
+
fetcherOptions: n
|
|
3837
3835
|
});
|
|
3838
3836
|
if (r.type.startsWith("tileset"))
|
|
3839
3837
|
return Tr({
|
|
3840
3838
|
source: r,
|
|
3841
|
-
accessToken:
|
|
3839
|
+
accessToken: s,
|
|
3842
3840
|
target: r.data,
|
|
3843
3841
|
attribute: t
|
|
3844
3842
|
});
|
|
@@ -3848,21 +3846,21 @@ async function Tr({
|
|
|
3848
3846
|
source: r,
|
|
3849
3847
|
accessToken: e,
|
|
3850
3848
|
target: t,
|
|
3851
|
-
attribute:
|
|
3849
|
+
attribute: s
|
|
3852
3850
|
}) {
|
|
3853
3851
|
var a, l, c;
|
|
3854
|
-
const
|
|
3852
|
+
const n = await ys({
|
|
3855
3853
|
connectionName: r.connectionName,
|
|
3856
3854
|
apiBaseUrl: r.apiBaseUrl,
|
|
3857
3855
|
accessToken: e,
|
|
3858
3856
|
clientId: r.clientId,
|
|
3859
3857
|
tableName: t
|
|
3860
3858
|
});
|
|
3861
|
-
if (!((c = (l = (a =
|
|
3862
|
-
throw new Error(`${
|
|
3863
|
-
const i =
|
|
3859
|
+
if (!((c = (l = (a = n == null ? void 0 : n.tilestats) == null ? void 0 : a.layers) == null ? void 0 : l[0]) != null && c.attributes))
|
|
3860
|
+
throw new Error(`${s} not found in tileset attributes`);
|
|
3861
|
+
const i = n.tilestats.layers[0].attributes.find((g) => g.attribute === s);
|
|
3864
3862
|
if (!i)
|
|
3865
|
-
throw new Error(`${
|
|
3863
|
+
throw new Error(`${s} not found in tileset attributes`);
|
|
3866
3864
|
return i;
|
|
3867
3865
|
}
|
|
3868
3866
|
export {
|