@map-colonies/react-components 4.7.1 → 4.7.3
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.
|
@@ -12,7 +12,7 @@ import qt from "@date-io/date-fns";
|
|
|
12
12
|
import { createTheme as Sn, makeStyles as Fe, createStyles as Ke } from "@material-ui/core/styles";
|
|
13
13
|
import { Box as _n, ThemeProvider as Yt, Popover as Mn, Paper as ot, TableRow as $e, TableCell as Ae, TableSortLabel as Pn, IconButton as xn, Collapse as In, TableContainer as Dn, Table as On, TableBody as An, Typography as kn, TablePagination as Rn } from "@material-ui/core";
|
|
14
14
|
import { useTheme as Xt, ThemeProvider as Nn, Button as Ne, TextField as We, Tooltip as st, Menu as Bn, MenuItem as Ze, Icon as _e, Dialog as Fn, DialogTitle as Hn, DialogContent as Gn, Drawer as Vn, DrawerHeader as zn, DrawerTitle as $n, DrawerContent as Wn, LinearProgress as Un } from "@map-colonies/react-core";
|
|
15
|
-
import { default as
|
|
15
|
+
import { default as Qa } from "@material-ui/core/useMediaQuery";
|
|
16
16
|
import jn, { registerLocale as Kn } from "react-datepicker";
|
|
17
17
|
import qn from "date-fns/locale/he";
|
|
18
18
|
import De from "moment";
|
|
@@ -45,21 +45,21 @@ import bi from "@material-ui/core/ScopedCssBaseline";
|
|
|
45
45
|
import { createPortal as Li } from "react-dom";
|
|
46
46
|
import { Viewer as Si, Cesium3DTileset as _i, GeoJsonDataSource as Mi, ImageryLayer as Pi, Entity as xi, EntityDescription as Qt, PolygonGraphics as Ii, RectangleGraphics as Di, CustomDataSource as Oi, PolylineGraphics as Ai } from "resium";
|
|
47
47
|
import * as g from "cesium";
|
|
48
|
-
import { Math as fe, SceneMode as Le, Cartesian2 as Ce, Cartographic as He, PolylineDashMaterialProperty as ki, ConstantProperty as Ri, ConstantPositionProperty as Ni, Cartesian3 as ve, BoundingSphere as Bi, Ellipsoid as en, GeographicTilingScheme as Fi, Rectangle as Oe, Resource as Hi, EllipsoidTerrainProvider as Gi, CesiumTerrainProvider as Vi, VerticalOrigin as at, LabelStyle as tn, ScreenSpaceEventType as
|
|
49
|
-
import { Math as
|
|
50
|
-
import { get as Z, isNumber as Ue, isEmpty as ct, isArray as
|
|
51
|
-
import
|
|
48
|
+
import { Math as fe, SceneMode as Le, Cartesian2 as Ce, Cartographic as He, PolylineDashMaterialProperty as ki, ConstantProperty as Ri, ConstantPositionProperty as Ni, Cartesian3 as ve, BoundingSphere as Bi, Ellipsoid as en, GeographicTilingScheme as Fi, Rectangle as Oe, Resource as Hi, EllipsoidTerrainProvider as Gi, CesiumTerrainProvider as Vi, VerticalOrigin as at, HorizontalOrigin as zi, LabelStyle as tn, ScreenSpaceEventType as $i, WebMercatorProjection as Wi, EventHelper as Ui, EllipsoidGeodesic as ji, UrlTemplateImageryProvider as mt, WebMapServiceImageryProvider as pt, WebMapTileServiceImageryProvider as gt, Event as Ki, SingleTileImageryProvider as qi, Viewer as Yi, Matrix4 as Xi, OpenStreetMapImageryProvider as Zi, Color as lt, PolygonHierarchy as Ji, viewerCesiumInspectorMixin as Qi, sampleTerrainMostDetailed as er } from "cesium";
|
|
49
|
+
import { Math as tl, sampleTerrainMostDetailed as nl } from "cesium";
|
|
50
|
+
import { get as Z, isNumber as Ue, isEmpty as ct, isArray as tr, cloneDeep as nr, find as _t } from "lodash";
|
|
51
|
+
import ir from "@turf/boolean-point-in-polygon";
|
|
52
52
|
import "@map-colonies/react-core/dist/linear-progress/styles";
|
|
53
|
-
import
|
|
53
|
+
import rr from "@cmcleese/cesium-navigation";
|
|
54
54
|
import "@cmcleese/cesium-navigation/dist/index.css";
|
|
55
55
|
import * as nn from "@turf/helpers";
|
|
56
56
|
import rn from "@turf/bbox";
|
|
57
57
|
import on from "@turf/bbox-polygon";
|
|
58
|
-
import
|
|
59
|
-
import
|
|
60
|
-
import { ChonkyActions as F, FileHelper as sn, setChonkyDefaults as
|
|
61
|
-
import { ChonkyIconFA as
|
|
62
|
-
import
|
|
58
|
+
import or from "textarea-caret";
|
|
59
|
+
import sr, { setCaretPosition as ar } from "get-input-selection";
|
|
60
|
+
import { ChonkyActions as F, FileHelper as sn, setChonkyDefaults as lr, FullFileBrowser as cr } from "chonky";
|
|
61
|
+
import { ChonkyIconFA as dr } from "chonky-icon-fontawesome";
|
|
62
|
+
import ur from "filesize";
|
|
63
63
|
var le = /* @__PURE__ */ ((e) => (e.BOX = "BOX", e.POLYGON = "POLYGON", e.UNKNOWN = "UNKNOWN", e))(le || {}), he = /* @__PURE__ */ ((e) => (e.HE = "he", e.EN = "en", e.RU = "ru", e))(he || {}), dt = /* @__PURE__ */ ((e) => (e.TOP_RIGHT = "TOP_RIGHT", e.BOTTOM_LEFT = "BOTTOM_LEFT", e))(dt || {});
|
|
64
64
|
const J = {
|
|
65
65
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
@@ -93,8 +93,8 @@ const J = {
|
|
|
93
93
|
return /* @__PURE__ */ l(_n, { ...t, children: n });
|
|
94
94
|
}, an = (e) => {
|
|
95
95
|
const n = e.type === "dark";
|
|
96
|
-
return Ee.useMemo(() =>
|
|
97
|
-
},
|
|
96
|
+
return Ee.useMemo(() => hr(e, n), [n, e]);
|
|
97
|
+
}, hr = (e, n = !1) => Sn({
|
|
98
98
|
palette: {
|
|
99
99
|
type: n ? "dark" : "light",
|
|
100
100
|
primary: {
|
|
@@ -116,22 +116,22 @@ const J = {
|
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
118
|
});
|
|
119
|
-
const
|
|
119
|
+
const mr = 2, pr = 0.5, gr = Fe(
|
|
120
120
|
(e) => Ke({
|
|
121
121
|
container: {
|
|
122
|
-
padding: e.spacing(
|
|
122
|
+
padding: e.spacing(mr),
|
|
123
123
|
alignItems: "center"
|
|
124
124
|
},
|
|
125
125
|
setButton: {
|
|
126
126
|
marginTop: e.spacing(1)
|
|
127
127
|
},
|
|
128
128
|
margin: {
|
|
129
|
-
marginLeft: e.spacing(
|
|
129
|
+
marginLeft: e.spacing(pr)
|
|
130
130
|
}
|
|
131
131
|
})
|
|
132
|
-
),
|
|
132
|
+
), fr = (e) => {
|
|
133
133
|
var j, O, z, k;
|
|
134
|
-
const n =
|
|
134
|
+
const n = gr(), t = Xt(), i = an(t), [o, r] = D(null), [c, u] = D(null), [m, p] = D(J.DATE_RANGE_PICKER.dateFormat), v = e.controlsLayout ?? J.DATE_RANGE_PICKER.controlsLayout, L = e.disableFuture ?? J.DATE_RANGE_PICKER.disableFuture, w = ((j = e.local) == null ? void 0 : j.startPlaceHolderText) ?? J.DATE_RANGE_PICKER.local.startPlaceHolderText, P = ((O = e.local) == null ? void 0 : O.endPlaceHolderText) ?? J.DATE_RANGE_PICKER.local.endPlaceHolderText, A = ((z = e.local) == null ? void 0 : z.setText) ?? J.DATE_RANGE_PICKER.local.setText, Y = (((k = e.local) == null ? void 0 : k.calendarLocale) ?? J.DATE_RANGE_PICKER.local.calendarLocale) === he.HE ? Ut : jt;
|
|
135
135
|
I(() => {
|
|
136
136
|
r(e.from ?? null);
|
|
137
137
|
}, [e.from]), I(() => {
|
|
@@ -152,8 +152,8 @@ const hr = 2, mr = 0.5, pr = Fe(
|
|
|
152
152
|
{
|
|
153
153
|
className: `${n.container} drpContainer`,
|
|
154
154
|
display: "flex",
|
|
155
|
-
flexDirection:
|
|
156
|
-
width:
|
|
155
|
+
flexDirection: v,
|
|
156
|
+
width: v === "column" ? e.contentWidth : "unset",
|
|
157
157
|
children: /* @__PURE__ */ N(Kt, { utils: qt, locale: Y, children: [
|
|
158
158
|
/* @__PURE__ */ l(
|
|
159
159
|
rt,
|
|
@@ -195,15 +195,15 @@ const hr = 2, mr = 0.5, pr = Fe(
|
|
|
195
195
|
] })
|
|
196
196
|
}
|
|
197
197
|
) });
|
|
198
|
-
},
|
|
198
|
+
}, yr = (e) => {
|
|
199
199
|
const { children: n, ...t } = e;
|
|
200
200
|
return /* @__PURE__ */ l(Mn, { ...t, children: n });
|
|
201
201
|
};
|
|
202
|
-
const
|
|
202
|
+
const ea = (e) => {
|
|
203
203
|
var O, z;
|
|
204
204
|
const [n, t] = D(null), [i, o] = D(null), [r, c] = D(J.DATE_RANGE_PICKER.dateFormat), [u, m] = Ee.useState(null), p = (k) => {
|
|
205
205
|
m(k.currentTarget);
|
|
206
|
-
},
|
|
206
|
+
}, v = (k) => {
|
|
207
207
|
k.currentTarget.tagName === "I" ? m(k.currentTarget.previousElementSibling) : m(k.currentTarget);
|
|
208
208
|
}, L = () => {
|
|
209
209
|
m(null);
|
|
@@ -224,16 +224,16 @@ const Qs = (e) => {
|
|
|
224
224
|
readOnly: !0,
|
|
225
225
|
style: { width: e.width },
|
|
226
226
|
value: j,
|
|
227
|
-
onClick:
|
|
227
|
+
onClick: v,
|
|
228
228
|
trailingIcon: {
|
|
229
229
|
icon: "date_range",
|
|
230
230
|
tabIndex: 0,
|
|
231
|
-
onClick:
|
|
231
|
+
onClick: v
|
|
232
232
|
}
|
|
233
233
|
}
|
|
234
234
|
),
|
|
235
|
-
/* @__PURE__ */ l(
|
|
236
|
-
|
|
235
|
+
/* @__PURE__ */ l(yr, { open: w, anchorEl: u, onClose: L, anchorOrigin: { vertical: "bottom", horizontal: "left" }, keepMounted: !0, children: /* @__PURE__ */ l(
|
|
236
|
+
fr,
|
|
237
237
|
{
|
|
238
238
|
controlsLayout: P,
|
|
239
239
|
contentWidth: ((u == null ? void 0 : u.clientWidth) ?? 0) - G,
|
|
@@ -250,7 +250,7 @@ const Qs = (e) => {
|
|
|
250
250
|
}
|
|
251
251
|
) })
|
|
252
252
|
] });
|
|
253
|
-
}, Qe = (e) => typeof e < "u" && e !== null && "startDate" in e && "endDate" in e,
|
|
253
|
+
}, Qe = (e) => typeof e < "u" && e !== null && "startDate" in e && "endDate" in e, ta = ({
|
|
254
254
|
endDate: e,
|
|
255
255
|
startDate: n,
|
|
256
256
|
setEndDate: t = () => {
|
|
@@ -263,9 +263,9 @@ const Qs = (e) => {
|
|
|
263
263
|
timeRangeInputsWrapperClassName: u = "",
|
|
264
264
|
startTimeInputClassName: m = "",
|
|
265
265
|
startTimeLabel: p = "",
|
|
266
|
-
startTimeWrapperClassName:
|
|
266
|
+
startTimeWrapperClassName: v = ""
|
|
267
267
|
}) => /* @__PURE__ */ N("div", { className: `timeRangeWrapper ${u}`, children: [
|
|
268
|
-
/* @__PURE__ */ l("div", { className: `startTimeWrapper ${
|
|
268
|
+
/* @__PURE__ */ l("div", { className: `startTimeWrapper ${v}`, children: /* @__PURE__ */ l(
|
|
269
269
|
We,
|
|
270
270
|
{
|
|
271
271
|
label: p,
|
|
@@ -301,7 +301,7 @@ const Qs = (e) => {
|
|
|
301
301
|
}
|
|
302
302
|
}
|
|
303
303
|
) })
|
|
304
|
-
] }),
|
|
304
|
+
] }), vr = wn(
|
|
305
305
|
({ value: e, onClick: n, onInputClick: t, ...i }, o) => /* @__PURE__ */ l(
|
|
306
306
|
We,
|
|
307
307
|
{
|
|
@@ -315,7 +315,7 @@ const Qs = (e) => {
|
|
|
315
315
|
value: e
|
|
316
316
|
}
|
|
317
317
|
)
|
|
318
|
-
),
|
|
318
|
+
), Er = ({ setStartDate: e = () => {
|
|
319
319
|
}, setEndDate: n = () => {
|
|
320
320
|
}, shortcuts: t, dateRange: i, onShortcut: o }) => {
|
|
321
321
|
const [r, c] = D(), u = Be(
|
|
@@ -328,7 +328,7 @@ const Qs = (e) => {
|
|
|
328
328
|
r ? m.id === r && (p || c(void 0)) : p && c(m.id);
|
|
329
329
|
}
|
|
330
330
|
}, [i, r, u]), /* @__PURE__ */ l("div", { className: "shortcutsContainer", children: u.map((m, p) => {
|
|
331
|
-
const
|
|
331
|
+
const v = () => {
|
|
332
332
|
e(m.startDate), n(m.endDate);
|
|
333
333
|
};
|
|
334
334
|
return /* @__PURE__ */ l(
|
|
@@ -337,7 +337,7 @@ const Qs = (e) => {
|
|
|
337
337
|
type: "button",
|
|
338
338
|
className: `shortcut ${r === m.id ? "selected" : ""}`,
|
|
339
339
|
onClick: (L) => {
|
|
340
|
-
|
|
340
|
+
v(), o == null || o({ startDate: m.startDate, endDate: m.endDate });
|
|
341
341
|
},
|
|
342
342
|
outlined: !0,
|
|
343
343
|
children: m.label
|
|
@@ -345,7 +345,7 @@ const Qs = (e) => {
|
|
|
345
345
|
m.id + p
|
|
346
346
|
);
|
|
347
347
|
}) });
|
|
348
|
-
},
|
|
348
|
+
}, na = Ee.forwardRef((e, n) => {
|
|
349
349
|
const {
|
|
350
350
|
// Time range input props
|
|
351
351
|
// endTimeInputClassName,
|
|
@@ -365,23 +365,23 @@ const Qs = (e) => {
|
|
|
365
365
|
showMonthYearDropdown: m,
|
|
366
366
|
// withTimeRange,
|
|
367
367
|
withShortcuts: p,
|
|
368
|
-
locale:
|
|
368
|
+
locale: v = "en"
|
|
369
369
|
} = e, [L, w] = D(null), [P, A] = D(null), [H, Y] = D(!1), G = r ? { startDate: L, endDate: P } : L;
|
|
370
370
|
I(() => {
|
|
371
|
-
|
|
372
|
-
}, [
|
|
371
|
+
v === "he" && Kn("he", qn);
|
|
372
|
+
}, [v]), I(() => {
|
|
373
373
|
var O, z;
|
|
374
374
|
((O = e.startDate) == null ? void 0 : O.toString()) !== (L == null ? void 0 : L.toString()) && w(e.startDate), ((z = e.endDate) == null ? void 0 : z.toString()) !== (P == null ? void 0 : P.toString()) && A(e.endDate);
|
|
375
375
|
}, [e.startDate, e.endDate, L, P]);
|
|
376
376
|
const U = Be(() => {
|
|
377
|
-
let O = "pickerContainer" + (
|
|
377
|
+
let O = "pickerContainer" + (v === "he" ? " pickerContainer-rtl" : "");
|
|
378
378
|
return p && r && (O += " pickerContainer-withShortcuts"), O;
|
|
379
|
-
}, [
|
|
379
|
+
}, [v, p, r]), j = m ? {
|
|
380
380
|
showMonthDropdown: !0,
|
|
381
381
|
showYearDropdown: !0,
|
|
382
382
|
dropdownMode: "select"
|
|
383
383
|
} : {};
|
|
384
|
-
return /* @__PURE__ */ l("div", { className: U, style: { direction:
|
|
384
|
+
return /* @__PURE__ */ l("div", { className: U, style: { direction: v === "he" ? "rtl" : "ltr" }, children: /* @__PURE__ */ l(
|
|
385
385
|
jn,
|
|
386
386
|
{
|
|
387
387
|
...e,
|
|
@@ -403,12 +403,12 @@ const Qs = (e) => {
|
|
|
403
403
|
} else
|
|
404
404
|
w(O), c == null || c(O, z);
|
|
405
405
|
},
|
|
406
|
-
customInput: /* @__PURE__ */ l(
|
|
406
|
+
customInput: /* @__PURE__ */ l(vr, { name: u, onInputClick: () => {
|
|
407
407
|
Y(!0);
|
|
408
408
|
} }),
|
|
409
409
|
showTimeInput: !!(p && r),
|
|
410
410
|
timeInputLabel: "",
|
|
411
|
-
customTimeInput: p && Qe(G) && /* @__PURE__ */ l(
|
|
411
|
+
customTimeInput: p && Qe(G) && /* @__PURE__ */ l(Er, { onShortcut: (O) => {
|
|
412
412
|
c == null || c(O), Y(!1);
|
|
413
413
|
}, shortcuts: p, setEndDate: A, setStartDate: w, dateRange: G }),
|
|
414
414
|
showMonthYearDropdown: void 0,
|
|
@@ -416,7 +416,7 @@ const Qs = (e) => {
|
|
|
416
416
|
}
|
|
417
417
|
) });
|
|
418
418
|
});
|
|
419
|
-
const
|
|
419
|
+
const ia = (e) => {
|
|
420
420
|
const n = Xt(), t = an(n), {
|
|
421
421
|
format: i = J.DATE_PICKER.dateFormat,
|
|
422
422
|
variant: o = J.DATE_PICKER.variant,
|
|
@@ -425,7 +425,7 @@ const na = (e) => {
|
|
|
425
425
|
onChange: u,
|
|
426
426
|
showTime: m = J.DATE_PICKER.showTime,
|
|
427
427
|
value: p,
|
|
428
|
-
...
|
|
428
|
+
...v
|
|
429
429
|
} = e, { placeHolderText: L = J.DATE_PICKER.local.placeHolderText, calendarLocale: w } = c ?? {
|
|
430
430
|
placeHolderText: J.DATE_PICKER.local.placeHolderText,
|
|
431
431
|
calendarLocale: he.EN
|
|
@@ -442,7 +442,7 @@ const na = (e) => {
|
|
|
442
442
|
value: p,
|
|
443
443
|
disableFuture: r,
|
|
444
444
|
format: i,
|
|
445
|
-
...
|
|
445
|
+
...v
|
|
446
446
|
}
|
|
447
447
|
),
|
|
448
448
|
!m && /* @__PURE__ */ l(
|
|
@@ -454,23 +454,23 @@ const na = (e) => {
|
|
|
454
454
|
value: p,
|
|
455
455
|
disableFuture: r,
|
|
456
456
|
format: i,
|
|
457
|
-
...
|
|
457
|
+
...v
|
|
458
458
|
}
|
|
459
459
|
)
|
|
460
460
|
] }) });
|
|
461
|
-
},
|
|
461
|
+
}, Cr = 18, wr = Fe(
|
|
462
462
|
(e) => Ke({
|
|
463
463
|
drawingButton: {
|
|
464
|
-
width: e.spacing(
|
|
464
|
+
width: e.spacing(Cr)
|
|
465
465
|
},
|
|
466
466
|
fullWidth: {
|
|
467
467
|
width: "100%",
|
|
468
468
|
marginTop: "36px"
|
|
469
469
|
}
|
|
470
470
|
})
|
|
471
|
-
),
|
|
472
|
-
const n =
|
|
473
|
-
i(
|
|
471
|
+
), Tr = (e) => {
|
|
472
|
+
const n = wr(), [t, i] = Ee.useState(null), { isSelectionEnabled: o, onCancelDraw: r, onStartDraw: c, onReset: u } = e, m = (v) => {
|
|
473
|
+
i(v.currentTarget);
|
|
474
474
|
}, p = () => {
|
|
475
475
|
i(null);
|
|
476
476
|
};
|
|
@@ -516,7 +516,7 @@ const na = (e) => {
|
|
|
516
516
|
] });
|
|
517
517
|
};
|
|
518
518
|
var ge = /* @__PURE__ */ ((e) => (e.WGS84 = "EPSG:4326", e.WEB_MERCATOR = "EPSG:3857", e))(ge || {});
|
|
519
|
-
const ut = 5, ht = 2, ln = Me(null),
|
|
519
|
+
const ut = 5, ht = 2, ln = Me(null), br = ln.Provider, Mt = 35, Pt = 32, Lr = 10, Sr = (e) => e !== void 0 && e !== ge.WGS84 ? Qn([Mt, Pt], ge.WGS84, e) : [Mt, Pt], _r = (e) => {
|
|
520
520
|
switch (e) {
|
|
521
521
|
case ge.WEB_MERCATOR:
|
|
522
522
|
return (n) => bt(n, "Mercator: {y}m, {x}m", ht);
|
|
@@ -530,7 +530,7 @@ const ut = 5, ht = 2, ln = Me(null), Tr = ln.Provider, Mt = 35, Pt = 32, br = 10
|
|
|
530
530
|
if (e === null)
|
|
531
531
|
throw new Error("map context is null, please check the provider");
|
|
532
532
|
return e;
|
|
533
|
-
},
|
|
533
|
+
}, Mr = (e) => {
|
|
534
534
|
const n = Se(null), { allowFullScreen: t, showMousePosition: i, projection: o } = e, [r] = D(
|
|
535
535
|
new Xn({
|
|
536
536
|
view: new Zn({
|
|
@@ -540,13 +540,13 @@ const ut = 5, ht = 2, ln = Me(null), Tr = ln.Provider, Mt = 35, Pt = 32, br = 10
|
|
|
540
540
|
})
|
|
541
541
|
);
|
|
542
542
|
I(() => {
|
|
543
|
-
r.getView().setCenter(e.center ??
|
|
543
|
+
r.getView().setCenter(e.center ?? Sr(e.projection));
|
|
544
544
|
}, [r, e.center, e.projection]), I(() => {
|
|
545
|
-
r.getView().setZoom(e.zoom ??
|
|
545
|
+
r.getView().setZoom(e.zoom ?? Lr);
|
|
546
546
|
}, [r, e.zoom, e.projection]);
|
|
547
547
|
const c = (u, m) => {
|
|
548
|
-
m.getControls().forEach((
|
|
549
|
-
|
|
548
|
+
m.getControls().forEach((v) => {
|
|
549
|
+
v instanceof u && m.removeControl(v);
|
|
550
550
|
});
|
|
551
551
|
};
|
|
552
552
|
return I(() => {
|
|
@@ -554,47 +554,47 @@ const ut = 5, ht = 2, ln = Me(null), Tr = ln.Provider, Mt = 35, Pt = 32, br = 10
|
|
|
554
554
|
}, [r, t]), I(() => {
|
|
555
555
|
i !== void 0 && i ? (c(Je, r), r.addControl(
|
|
556
556
|
new Je({
|
|
557
|
-
coordinateFormat:
|
|
557
|
+
coordinateFormat: _r(o ?? ge.WGS84),
|
|
558
558
|
projection: o ?? ge.WGS84,
|
|
559
559
|
undefinedHTML: " "
|
|
560
560
|
})
|
|
561
561
|
)) : c(Je, r);
|
|
562
|
-
}, [r, i, o]), /* @__PURE__ */ N(
|
|
562
|
+
}, [r, i, o]), /* @__PURE__ */ N(br, { value: r, children: [
|
|
563
563
|
/* @__PURE__ */ l("div", { className: "map", ref: n }),
|
|
564
564
|
e.children
|
|
565
565
|
] });
|
|
566
|
-
}, cn = Me(null),
|
|
566
|
+
}, cn = Me(null), Pr = cn.Provider, qe = () => {
|
|
567
567
|
const e = Pe(cn);
|
|
568
568
|
if (e === null)
|
|
569
569
|
throw new Error("tile layer context is null, please check the provider");
|
|
570
570
|
return e;
|
|
571
|
-
},
|
|
571
|
+
}, xr = ({ options: e, children: n }) => {
|
|
572
572
|
const t = ke(), [i] = D(new ti(e));
|
|
573
573
|
return I(() => (t.addLayer(i), () => {
|
|
574
574
|
t.removeLayer(i);
|
|
575
|
-
}), [t, i]), /* @__PURE__ */ l(
|
|
576
|
-
}, dn = Me(null),
|
|
575
|
+
}), [t, i]), /* @__PURE__ */ l(Pr, { value: i, children: n });
|
|
576
|
+
}, dn = Me(null), Ir = dn.Provider, Dr = () => {
|
|
577
577
|
const e = Pe(dn);
|
|
578
578
|
if (e === null)
|
|
579
579
|
throw new Error("vector layer context is null, please check the provider");
|
|
580
580
|
return e;
|
|
581
|
-
},
|
|
581
|
+
}, Or = ({ children: e }) => {
|
|
582
582
|
const n = ke(), [t] = D(new ni());
|
|
583
583
|
return I(() => (n.addLayer(t), () => {
|
|
584
584
|
n.removeLayer(t);
|
|
585
|
-
}), [n, t]), /* @__PURE__ */ l(
|
|
586
|
-
}, un = Me(null),
|
|
585
|
+
}), [n, t]), /* @__PURE__ */ l(Ir, { value: t, children: e });
|
|
586
|
+
}, un = Me(null), Ar = un.Provider, kr = () => {
|
|
587
587
|
const e = Pe(un);
|
|
588
588
|
if (e === null)
|
|
589
589
|
throw new Error("vector source context is null, please check the provider");
|
|
590
590
|
return e;
|
|
591
|
-
},
|
|
592
|
-
const n =
|
|
591
|
+
}, Rr = ({ children: e }) => {
|
|
592
|
+
const n = Dr(), [t] = D(new ii());
|
|
593
593
|
return I(() => {
|
|
594
594
|
n.setSource(t);
|
|
595
|
-
}, [t, n]), /* @__PURE__ */ l(
|
|
596
|
-
},
|
|
597
|
-
const o =
|
|
595
|
+
}, [t, n]), /* @__PURE__ */ l(Ar, { value: t, children: e });
|
|
596
|
+
}, Nr = ({ geometry: e, fitOptions: n, fit: t, featureStyle: i }) => {
|
|
597
|
+
const o = kr(), r = ke();
|
|
598
598
|
return Wt(() => {
|
|
599
599
|
const u = new Zt().readFeature(e);
|
|
600
600
|
return t && o.on("addfeature", function() {
|
|
@@ -603,12 +603,12 @@ const ut = 5, ht = 2, ln = Me(null), Tr = ln.Provider, Mt = 35, Pt = 32, br = 10
|
|
|
603
603
|
o.removeFeature(u);
|
|
604
604
|
};
|
|
605
605
|
}, [e, o, t]), null;
|
|
606
|
-
},
|
|
606
|
+
}, Br = (e) => {
|
|
607
607
|
const n = qe();
|
|
608
608
|
return I(() => {
|
|
609
609
|
n.setSource(new ri());
|
|
610
610
|
}, [n]), null;
|
|
611
|
-
},
|
|
611
|
+
}, Fr = ({ drawType: e, onPolygonSelected: n }) => {
|
|
612
612
|
const t = ke();
|
|
613
613
|
return I(() => {
|
|
614
614
|
const i = {
|
|
@@ -636,18 +636,18 @@ const ut = 5, ht = 2, ln = Me(null), Tr = ln.Provider, Mt = 35, Pt = 32, br = 10
|
|
|
636
636
|
};
|
|
637
637
|
}, [n, e, t]), null;
|
|
638
638
|
};
|
|
639
|
-
const
|
|
639
|
+
const Hr = (e) => {
|
|
640
640
|
const n = (t) => {
|
|
641
641
|
const i = Yn(t);
|
|
642
642
|
e.onPolygonSelection(i);
|
|
643
643
|
};
|
|
644
|
-
return /* @__PURE__ */ N(
|
|
645
|
-
/* @__PURE__ */ l(
|
|
646
|
-
e.selectionPolygon && /* @__PURE__ */ l(
|
|
644
|
+
return /* @__PURE__ */ N(Mr, { allowFullScreen: !0, showMousePosition: !0, children: [
|
|
645
|
+
/* @__PURE__ */ l(xr, { children: /* @__PURE__ */ l(Br, {}) }),
|
|
646
|
+
e.selectionPolygon && /* @__PURE__ */ l(Or, { children: /* @__PURE__ */ l(Rr, { children: /* @__PURE__ */ l(Nr, { geometry: e.selectionPolygon }) }) }),
|
|
647
647
|
e.children,
|
|
648
|
-
e.drawType !== void 0 && /* @__PURE__ */ l(
|
|
648
|
+
e.drawType !== void 0 && /* @__PURE__ */ l(Fr, { drawType: e.drawType, onPolygonSelected: n })
|
|
649
649
|
] });
|
|
650
|
-
}, et = 1.5,
|
|
650
|
+
}, et = 1.5, Gr = 80, Vr = Fe(
|
|
651
651
|
(e) => Ke({
|
|
652
652
|
map: {
|
|
653
653
|
height: "100%",
|
|
@@ -662,7 +662,7 @@ const Fr = (e) => {
|
|
|
662
662
|
},
|
|
663
663
|
contentContainer: {
|
|
664
664
|
marginTop: e.spacing(et),
|
|
665
|
-
width: e.spacing(
|
|
665
|
+
width: e.spacing(Gr)
|
|
666
666
|
},
|
|
667
667
|
filtersContainer: {
|
|
668
668
|
display: "flex",
|
|
@@ -672,9 +672,9 @@ const Fr = (e) => {
|
|
|
672
672
|
marginLeft: e.spacing(1)
|
|
673
673
|
}
|
|
674
674
|
})
|
|
675
|
-
),
|
|
675
|
+
), ra = (e) => {
|
|
676
676
|
var m;
|
|
677
|
-
const [n, t] = D(), [i, o] = D(), r =
|
|
677
|
+
const [n, t] = D(), [i, o] = D(), r = Vr(), c = (p) => {
|
|
678
678
|
o(p), t(void 0), e.handlePolygonSelected(p);
|
|
679
679
|
}, u = () => {
|
|
680
680
|
o(void 0), e.handlePolygonReset();
|
|
@@ -683,7 +683,7 @@ const Fr = (e) => {
|
|
|
683
683
|
/* @__PURE__ */ N("div", { className: `${r.absolute}`, children: [
|
|
684
684
|
/* @__PURE__ */ N(ot, { className: r.filtersContainer, children: [
|
|
685
685
|
/* @__PURE__ */ l(
|
|
686
|
-
|
|
686
|
+
Tr,
|
|
687
687
|
{
|
|
688
688
|
onCancelDraw: () => t(void 0),
|
|
689
689
|
onReset: u,
|
|
@@ -691,11 +691,11 @@ const Fr = (e) => {
|
|
|
691
691
|
isSelectionEnabled: n !== void 0
|
|
692
692
|
}
|
|
693
693
|
),
|
|
694
|
-
(m = e.filters) == null ? void 0 : m.map((p,
|
|
694
|
+
(m = e.filters) == null ? void 0 : m.map((p, v) => /* @__PURE__ */ l("div", { className: r.filtersMargin, children: p }, v))
|
|
695
695
|
] }),
|
|
696
696
|
/* @__PURE__ */ l(ot, { color: "red", className: `${r.contentContainer}`, children: e.children })
|
|
697
697
|
] }),
|
|
698
|
-
/* @__PURE__ */ l(
|
|
698
|
+
/* @__PURE__ */ l(Hr, { children: e.mapContent, onPolygonSelection: c, drawType: n, selectionPolygon: i })
|
|
699
699
|
] });
|
|
700
700
|
}, xt = new di({
|
|
701
701
|
color: "rgba(255,255,255,0.4)"
|
|
@@ -712,12 +712,12 @@ const Fr = (e) => {
|
|
|
712
712
|
fill: xt,
|
|
713
713
|
stroke: It
|
|
714
714
|
})
|
|
715
|
-
], hn = Me(null),
|
|
715
|
+
], hn = Me(null), zr = hn.Provider, $r = () => {
|
|
716
716
|
const e = Pe(hn);
|
|
717
717
|
if (e === null)
|
|
718
718
|
throw new Error("vector tile layer context is null, please check the provider");
|
|
719
719
|
return e;
|
|
720
|
-
},
|
|
720
|
+
}, oa = ({ children: e, options: n, style: t }) => {
|
|
721
721
|
const i = ke(), [o] = D(
|
|
722
722
|
new ci({
|
|
723
723
|
...n,
|
|
@@ -728,11 +728,11 @@ const Fr = (e) => {
|
|
|
728
728
|
i.removeLayer(o);
|
|
729
729
|
}), [i, o]), I(() => {
|
|
730
730
|
o.setStyle(t || Dt);
|
|
731
|
-
}, [o, t]), /* @__PURE__ */ l(
|
|
732
|
-
}, tt = 20,
|
|
733
|
-
const n = ei(e.projection), t = n.getExtent(), i = new Array(tt), o = new Array(tt), r = gi(t) /
|
|
731
|
+
}, [o, t]), /* @__PURE__ */ l(zr, { value: o, children: e });
|
|
732
|
+
}, tt = 20, Wr = 256, Ur = 2, jr = 2, Kr = "REST", sa = (e) => {
|
|
733
|
+
const n = ei(e.projection), t = n.getExtent(), i = new Array(tt), o = new Array(tt), r = gi(t) / Wr, c = e.heightWidthRatio !== void 0 ? e.heightWidthRatio : jr, u = e.requestEncoding !== void 0 ? e.requestEncoding : Kr;
|
|
734
734
|
for (let p = 0; p < tt; ++p)
|
|
735
|
-
i[p] = r / Math.pow(
|
|
735
|
+
i[p] = r / Math.pow(Ur, p) / c, o[p] = p.toString();
|
|
736
736
|
return {
|
|
737
737
|
attributions: e.attributions,
|
|
738
738
|
url: e.url,
|
|
@@ -749,12 +749,12 @@ const Fr = (e) => {
|
|
|
749
749
|
requestEncoding: u,
|
|
750
750
|
wrapX: e.wrapX !== void 0 ? e.wrapX : !0
|
|
751
751
|
};
|
|
752
|
-
},
|
|
752
|
+
}, aa = (e) => {
|
|
753
753
|
const n = qe(), { options: t } = e;
|
|
754
754
|
return I(() => {
|
|
755
755
|
n.setSource(new oi(t));
|
|
756
756
|
}, [n, t]), null;
|
|
757
|
-
},
|
|
757
|
+
}, la = (e) => {
|
|
758
758
|
const { attributions: n, url: t, params: i, serverType: o, transition: r } = e;
|
|
759
759
|
return {
|
|
760
760
|
attributions: n,
|
|
@@ -763,39 +763,39 @@ const Fr = (e) => {
|
|
|
763
763
|
serverType: o,
|
|
764
764
|
transition: r
|
|
765
765
|
};
|
|
766
|
-
},
|
|
766
|
+
}, ca = (e) => {
|
|
767
767
|
const n = qe(), { options: t } = e;
|
|
768
768
|
return I(() => {
|
|
769
769
|
n.setSource(new yi(t));
|
|
770
770
|
}, [n, t]), null;
|
|
771
|
-
},
|
|
771
|
+
}, da = (e) => {
|
|
772
772
|
const { attributions: n, url: t } = e;
|
|
773
773
|
return {
|
|
774
774
|
attributions: n,
|
|
775
775
|
url: t
|
|
776
776
|
};
|
|
777
|
-
},
|
|
777
|
+
}, ua = (e) => {
|
|
778
778
|
const n = qe(), { options: t } = e;
|
|
779
779
|
return I(() => {
|
|
780
780
|
n.setSource(new vi(t));
|
|
781
781
|
}, [n, t]), null;
|
|
782
|
-
},
|
|
783
|
-
const e = Pe(
|
|
782
|
+
}, qr = Me(null), ha = () => {
|
|
783
|
+
const e = Pe(qr);
|
|
784
784
|
if (e === null)
|
|
785
785
|
throw new Error("vector tile source context is null, please check the provider");
|
|
786
786
|
return e;
|
|
787
|
-
},
|
|
787
|
+
}, ma = (e) => {
|
|
788
788
|
const { url: n } = e;
|
|
789
789
|
return {
|
|
790
790
|
url: n,
|
|
791
791
|
format: new si()
|
|
792
792
|
};
|
|
793
|
-
},
|
|
794
|
-
const t =
|
|
793
|
+
}, pa = ({ children: e, options: n }) => {
|
|
794
|
+
const t = $r();
|
|
795
795
|
return I(() => {
|
|
796
796
|
t.setSource(new Ei(n));
|
|
797
797
|
}, [n, t]), null;
|
|
798
|
-
},
|
|
798
|
+
}, ga = ({ legendItems: e, title: n, isCollapsed: t }) => {
|
|
799
799
|
const i = ke();
|
|
800
800
|
return I(() => {
|
|
801
801
|
const o = new St({
|
|
@@ -819,7 +819,7 @@ const Fr = (e) => {
|
|
|
819
819
|
};
|
|
820
820
|
}, [i, e, n, t]), /* @__PURE__ */ l(oe, {});
|
|
821
821
|
};
|
|
822
|
-
function
|
|
822
|
+
function Yr(e) {
|
|
823
823
|
const { headCells: n, order: t, orderBy: i, onRequestSort: o, isCollapseable: r } = e, c = (u) => (m) => {
|
|
824
824
|
o(m, u);
|
|
825
825
|
};
|
|
@@ -845,19 +845,19 @@ function qr(e) {
|
|
|
845
845
|
))
|
|
846
846
|
] }) });
|
|
847
847
|
}
|
|
848
|
-
const
|
|
848
|
+
const Xr = Jt(
|
|
849
849
|
/* @__PURE__ */ $t.createElement("path", {
|
|
850
850
|
d: "M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"
|
|
851
851
|
}),
|
|
852
852
|
"KeyboardArrowDown"
|
|
853
|
-
),
|
|
853
|
+
), Zr = Jt(
|
|
854
854
|
/* @__PURE__ */ $t.createElement("path", {
|
|
855
855
|
d: "M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z"
|
|
856
856
|
}),
|
|
857
857
|
"KeyboardArrowUp"
|
|
858
858
|
);
|
|
859
|
-
function
|
|
860
|
-
const { cellsMetadata: n, isRowSelected: t, item: i, onRowSelected: o, rowIndex: r, isCollapseable: c, collapsedElement: u } = e, [m, p] = D(!1),
|
|
859
|
+
function Jr(e) {
|
|
860
|
+
const { cellsMetadata: n, isRowSelected: t, item: i, onRowSelected: o, rowIndex: r, isCollapseable: c, collapsedElement: u } = e, [m, p] = D(!1), v = n.length;
|
|
861
861
|
return /* @__PURE__ */ N(oe, { children: [
|
|
862
862
|
/* @__PURE__ */ N($e, { hover: !0, selected: t, onClick: () => {
|
|
863
863
|
o == null || o(r);
|
|
@@ -870,7 +870,7 @@ function Zr(e) {
|
|
|
870
870
|
onClick: (w) => {
|
|
871
871
|
w.stopPropagation(), p(!m);
|
|
872
872
|
},
|
|
873
|
-
children: m ? /* @__PURE__ */ l(
|
|
873
|
+
children: m ? /* @__PURE__ */ l(Zr, {}) : /* @__PURE__ */ l(Xr, {})
|
|
874
874
|
}
|
|
875
875
|
) }),
|
|
876
876
|
n.map((w) => /* @__PURE__ */ l(
|
|
@@ -883,17 +883,17 @@ function Zr(e) {
|
|
|
883
883
|
w.id + r.toString()
|
|
884
884
|
))
|
|
885
885
|
] }),
|
|
886
|
-
c && /* @__PURE__ */ l($e, { children: /* @__PURE__ */ l(Ae, { style: { paddingBottom: 0, paddingTop: 0 }, colSpan:
|
|
886
|
+
c && /* @__PURE__ */ l($e, { children: /* @__PURE__ */ l(Ae, { style: { paddingBottom: 0, paddingTop: 0 }, colSpan: v + 1, children: /* @__PURE__ */ l(In, { in: m, unmountOnExit: !0, timeout: "auto", children: u == null ? void 0 : u(i) }) }) })
|
|
887
887
|
] });
|
|
888
888
|
}
|
|
889
|
-
function
|
|
889
|
+
function fa(e) {
|
|
890
890
|
const [n, t] = D(""), [i, o] = D("asc"), {
|
|
891
891
|
cellsMetadata: r,
|
|
892
892
|
items: c,
|
|
893
893
|
onRequestSort: u,
|
|
894
894
|
onRowSelected: m,
|
|
895
895
|
isCollapseable: p,
|
|
896
|
-
collapsedElement:
|
|
896
|
+
collapsedElement: v,
|
|
897
897
|
isDense: L,
|
|
898
898
|
page: w,
|
|
899
899
|
rowsPerPage: P,
|
|
@@ -904,7 +904,7 @@ function ga(e) {
|
|
|
904
904
|
return /* @__PURE__ */ N(Dn, { component: ot, children: [
|
|
905
905
|
/* @__PURE__ */ N(On, { size: L ? "small" : "medium", children: [
|
|
906
906
|
/* @__PURE__ */ l(
|
|
907
|
-
|
|
907
|
+
Yr,
|
|
908
908
|
{
|
|
909
909
|
headCells: r,
|
|
910
910
|
onRequestSort: (U, j) => {
|
|
@@ -918,13 +918,13 @@ function ga(e) {
|
|
|
918
918
|
),
|
|
919
919
|
/* @__PURE__ */ N(An, { children: [
|
|
920
920
|
c.map((U, j) => /* @__PURE__ */ l(
|
|
921
|
-
|
|
921
|
+
Jr,
|
|
922
922
|
{
|
|
923
923
|
item: U,
|
|
924
924
|
rowIndex: j,
|
|
925
925
|
isCollapseable: p,
|
|
926
926
|
cellsMetadata: r,
|
|
927
|
-
collapsedElement:
|
|
927
|
+
collapsedElement: v,
|
|
928
928
|
isRowSelected: !1,
|
|
929
929
|
onRowSelected: m
|
|
930
930
|
},
|
|
@@ -955,13 +955,13 @@ function ga(e) {
|
|
|
955
955
|
)
|
|
956
956
|
] });
|
|
957
957
|
}
|
|
958
|
-
const
|
|
958
|
+
const ya = (e) => {
|
|
959
959
|
const { children: n, ...t } = e;
|
|
960
960
|
return /* @__PURE__ */ l(Ti, { ...t, children: n });
|
|
961
|
-
},
|
|
961
|
+
}, va = (e) => {
|
|
962
962
|
const { children: n, ...t } = e;
|
|
963
963
|
return /* @__PURE__ */ l(bi, { ...t, children: n });
|
|
964
|
-
}, Ot = (e) => e * Math.PI / 180, Ge = (e) => e * (180 / Math.PI),
|
|
964
|
+
}, Ot = (e) => e * Math.PI / 180, Ge = (e) => e * (180 / Math.PI), Qr = (e) => 0.05 * (5916575505e-1 / Math.pow(2, e - 1) / 2) * (Math.cos(Ot(85.362 / 2)) / Math.sin(Ot(85.362 / 2)));
|
|
965
965
|
const mn = (e, n, t) => {
|
|
966
966
|
let i;
|
|
967
967
|
if (e.scene.mode !== Le.SCENE2D)
|
|
@@ -971,7 +971,7 @@ const mn = (e, n, t) => {
|
|
|
971
971
|
i = e.camera.pickEllipsoid(new Ce(n, t), o);
|
|
972
972
|
}
|
|
973
973
|
return He.fromCartesian(i);
|
|
974
|
-
},
|
|
974
|
+
}, eo = (e, n, t) => {
|
|
975
975
|
const i = mn(e, n, t);
|
|
976
976
|
return {
|
|
977
977
|
type: "Feature",
|
|
@@ -992,33 +992,33 @@ const mn = (e, n, t) => {
|
|
|
992
992
|
return;
|
|
993
993
|
}
|
|
994
994
|
};
|
|
995
|
-
class
|
|
995
|
+
class Ea extends ki {
|
|
996
996
|
}
|
|
997
|
-
class
|
|
997
|
+
class Ca extends Ri {
|
|
998
998
|
}
|
|
999
|
-
class
|
|
999
|
+
class wa extends Ni {
|
|
1000
1000
|
}
|
|
1001
|
-
class
|
|
1001
|
+
class Ta extends Ce {
|
|
1002
1002
|
}
|
|
1003
|
-
class
|
|
1003
|
+
class ba extends ve {
|
|
1004
1004
|
}
|
|
1005
|
-
class
|
|
1005
|
+
class to extends He {
|
|
1006
1006
|
}
|
|
1007
|
-
class
|
|
1007
|
+
class La extends Bi {
|
|
1008
1008
|
}
|
|
1009
|
-
class
|
|
1009
|
+
class Sa extends en {
|
|
1010
1010
|
}
|
|
1011
|
-
class
|
|
1011
|
+
class _a extends Fi {
|
|
1012
1012
|
}
|
|
1013
|
-
class
|
|
1013
|
+
class Ma extends Oe {
|
|
1014
1014
|
}
|
|
1015
|
-
class
|
|
1015
|
+
class Pa extends Hi {
|
|
1016
1016
|
}
|
|
1017
|
-
class
|
|
1017
|
+
class xa extends Gi {
|
|
1018
1018
|
}
|
|
1019
|
-
class
|
|
1019
|
+
class Ia extends Vi {
|
|
1020
1020
|
}
|
|
1021
|
-
const
|
|
1021
|
+
const Da = at, Oa = zi, Aa = tn, no = (e) => {
|
|
1022
1022
|
const n = se(), t = Se(null), [i, o] = D({ x: 0, y: 0 });
|
|
1023
1023
|
return I(() => {
|
|
1024
1024
|
n.screenSpaceEventHandler.setInputAction((r) => {
|
|
@@ -1026,19 +1026,19 @@ const Ia = at, Da = tn, to = (e) => {
|
|
|
1026
1026
|
const c = { ...r.endPosition };
|
|
1027
1027
|
c.x = Math.ceil(c.x), c.y = Math.ceil(c.y), o(c);
|
|
1028
1028
|
}
|
|
1029
|
-
},
|
|
1029
|
+
}, $i.MOUSE_MOVE);
|
|
1030
1030
|
}, [t, n]), I(() => {
|
|
1031
1031
|
const r = n.scene.globe.ellipsoid;
|
|
1032
1032
|
if (i) {
|
|
1033
1033
|
const c = pn(n, i.x, i.y);
|
|
1034
1034
|
if (c) {
|
|
1035
|
-
const u = new
|
|
1035
|
+
const u = new to(c.longitude, c.latitude);
|
|
1036
1036
|
if (t.current) {
|
|
1037
1037
|
let m = "";
|
|
1038
1038
|
switch (e.projection) {
|
|
1039
1039
|
case ge.WEB_MERCATOR: {
|
|
1040
|
-
const
|
|
1041
|
-
m = `Mercator: ${
|
|
1040
|
+
const v = new Wi(r).project(u);
|
|
1041
|
+
m = `Mercator: ${v.y.toFixed(ht)}m, ${v.x.toFixed(
|
|
1042
1042
|
ht
|
|
1043
1043
|
)}m`, t.current.style.width = "220px";
|
|
1044
1044
|
break;
|
|
@@ -1088,16 +1088,16 @@ const nt = [
|
|
|
1088
1088
|
2e7,
|
|
1089
1089
|
3e7,
|
|
1090
1090
|
5e7
|
|
1091
|
-
],
|
|
1091
|
+
], io = (e, n, t, i) => {
|
|
1092
1092
|
const o = Z(i, "METERS_UNIT") ?? "m", r = Z(i, "KILOMETERS_UNIT") ?? "km", c = {
|
|
1093
1093
|
barWidth: void 0,
|
|
1094
1094
|
distanceLabel: void 0,
|
|
1095
1095
|
lastLegendUpdate: n.lastLegendUpdate
|
|
1096
|
-
}, u = new
|
|
1096
|
+
}, u = new ji(), m = new Date().getTime();
|
|
1097
1097
|
if (m < c.lastLegendUpdate + 250)
|
|
1098
1098
|
return;
|
|
1099
1099
|
c.lastLegendUpdate = m;
|
|
1100
|
-
const p = e.scene.canvas.clientWidth,
|
|
1100
|
+
const p = e.scene.canvas.clientWidth, v = e.scene.canvas.clientHeight, L = e.scene.camera.getPickRay(new Ce(p / 2 | 0, v - 1)), w = e.scene.camera.getPickRay(new Ce(1 + p / 2 | 0, v - 1)), P = e.scene.globe, A = P.pick(L, e.scene), H = P.pick(w, e.scene);
|
|
1101
1101
|
if (!A || !H)
|
|
1102
1102
|
return;
|
|
1103
1103
|
const Y = P.ellipsoid.cartesianToCartographic(A), G = P.ellipsoid.cartesianToCartographic(H);
|
|
@@ -1111,7 +1111,7 @@ const nt = [
|
|
|
1111
1111
|
O >= 1e3 ? z = `${(O / 1e3).toString()} ${r}` : z = `${O.toString()} ${o}`, c.barWidth = O / U | 0, c.distanceLabel = z;
|
|
1112
1112
|
}
|
|
1113
1113
|
t(c);
|
|
1114
|
-
},
|
|
1114
|
+
}, ro = (e) => {
|
|
1115
1115
|
const n = se(), [t, i] = D({
|
|
1116
1116
|
barWidth: void 0,
|
|
1117
1117
|
distanceLabel: void 0,
|
|
@@ -1119,8 +1119,8 @@ const nt = [
|
|
|
1119
1119
|
});
|
|
1120
1120
|
I(() => {
|
|
1121
1121
|
const r = (m) => {
|
|
1122
|
-
|
|
1123
|
-
}, c = new
|
|
1122
|
+
io(n, t, i, e.locale);
|
|
1123
|
+
}, c = new Ui(), u = (m) => {
|
|
1124
1124
|
n.scene.globe.tilesLoaded && (r(new MouseEvent("mouse")), c.removeAll());
|
|
1125
1125
|
};
|
|
1126
1126
|
return c.add(n.scene.globe.tileLoadProgressEvent, u), n.camera.moveEnd.addEventListener(r), () => {
|
|
@@ -1158,7 +1158,7 @@ const At = (e, n) => {
|
|
|
1158
1158
|
if (i.getLevelMaximumGeometricError(u) * r / (e * c) < o.maximumScreenSpaceError)
|
|
1159
1159
|
return u;
|
|
1160
1160
|
return null;
|
|
1161
|
-
},
|
|
1161
|
+
}, oo = (e, n) => {
|
|
1162
1162
|
e = e || 10;
|
|
1163
1163
|
const t = [];
|
|
1164
1164
|
let i = 1e5, o = 0;
|
|
@@ -1177,19 +1177,19 @@ const At = (e, n) => {
|
|
|
1177
1177
|
}
|
|
1178
1178
|
}
|
|
1179
1179
|
return t;
|
|
1180
|
-
},
|
|
1181
|
-
const t = se(), [i, o] = D(1), r =
|
|
1182
|
-
const
|
|
1180
|
+
}, so = ({ locale: e = void 0, valueBy: n = "RENDERED_TILES" }) => {
|
|
1181
|
+
const t = se(), [i, o] = D(1), r = oo(1, t), c = pe(() => {
|
|
1182
|
+
const v = t.camera, L = 0.5;
|
|
1183
1183
|
let w = 0;
|
|
1184
1184
|
switch (t.scene.mode) {
|
|
1185
1185
|
case re.SCENE3D:
|
|
1186
|
-
w = t.scene.mapProjection.ellipsoid.cartesianToCartographic(
|
|
1186
|
+
w = t.scene.mapProjection.ellipsoid.cartesianToCartographic(v.positionWC).height;
|
|
1187
1187
|
break;
|
|
1188
1188
|
case re.SCENE2D:
|
|
1189
|
-
w = (
|
|
1189
|
+
w = (v.frustum.right - v.frustum.left) * L;
|
|
1190
1190
|
break;
|
|
1191
1191
|
case re.COLUMBUS_VIEW:
|
|
1192
|
-
w =
|
|
1192
|
+
w = v.position.z;
|
|
1193
1193
|
break;
|
|
1194
1194
|
default:
|
|
1195
1195
|
w = 0;
|
|
@@ -1197,24 +1197,24 @@ const At = (e, n) => {
|
|
|
1197
1197
|
}
|
|
1198
1198
|
if (r.length > 0) {
|
|
1199
1199
|
const P = r.reduce((A, H) => Math.abs(H.height - w) < Math.abs(A.height - w) ? H : A);
|
|
1200
|
-
o(P.level);
|
|
1200
|
+
o(P.level), t.currentZoomLevel = P.level;
|
|
1201
1201
|
}
|
|
1202
1202
|
}, [t, r]), u = pe(() => {
|
|
1203
|
-
let
|
|
1203
|
+
let v = 0;
|
|
1204
1204
|
t.scene.globe._surface.forEachRenderedTile(function(L) {
|
|
1205
|
-
|
|
1206
|
-
}), o(
|
|
1205
|
+
v = Math.max(v, L.level);
|
|
1206
|
+
}), o(v), t.currentZoomLevel = v;
|
|
1207
1207
|
}, [t]), p = Be(() => ({
|
|
1208
1208
|
CALCULATION: c,
|
|
1209
1209
|
RENDERED_TILES: u
|
|
1210
1210
|
}), [c, u])[n];
|
|
1211
1211
|
return I(() => {
|
|
1212
|
-
const
|
|
1212
|
+
const v = t.scene.globe.tileLoadProgressEvent.addEventListener(function() {
|
|
1213
1213
|
t.scene.globe.tilesLoaded && p();
|
|
1214
1214
|
});
|
|
1215
1215
|
return t.camera.moveEnd.addEventListener(p), () => {
|
|
1216
1216
|
try {
|
|
1217
|
-
typeof Z(t, "_cesiumWidget") < "u" && (t.camera.moveEnd.removeEventListener(p),
|
|
1217
|
+
typeof Z(t, "_cesiumWidget") < "u" && (t.camera.moveEnd.removeEventListener(p), v());
|
|
1218
1218
|
} catch (L) {
|
|
1219
1219
|
console.log('CESIUM camera "moveEnd"(from zoom tracker) remove listener failed', L);
|
|
1220
1220
|
}
|
|
@@ -1224,8 +1224,8 @@ const At = (e, n) => {
|
|
|
1224
1224
|
/* @__PURE__ */ l("div", { className: "zoomLevelLabel", children: Z(e, "ZOOM_LABEL") ?? "zoom" })
|
|
1225
1225
|
] });
|
|
1226
1226
|
};
|
|
1227
|
-
const
|
|
1228
|
-
const n = se(), [t, i] = D(), { sceneModes: o } = e, r = (c) => o.findIndex((u) => u === c) >
|
|
1227
|
+
const ao = -1, lo = (e) => {
|
|
1228
|
+
const n = se(), [t, i] = D(), { sceneModes: o } = e, r = (c) => o.findIndex((u) => u === c) > ao;
|
|
1229
1229
|
return I(() => {
|
|
1230
1230
|
i(n.scene.mode);
|
|
1231
1231
|
}, []), /* @__PURE__ */ N(oe, { children: [
|
|
@@ -1258,7 +1258,7 @@ const so = -1, ao = (e) => {
|
|
|
1258
1258
|
)
|
|
1259
1259
|
] });
|
|
1260
1260
|
};
|
|
1261
|
-
const
|
|
1261
|
+
const co = Fe(
|
|
1262
1262
|
(e) => Ke({
|
|
1263
1263
|
mapContainer: {
|
|
1264
1264
|
width: "60px",
|
|
@@ -1266,16 +1266,16 @@ const lo = Fe(
|
|
|
1266
1266
|
border: `${e.palette.background.paper} 2px solid`
|
|
1267
1267
|
}
|
|
1268
1268
|
})
|
|
1269
|
-
),
|
|
1270
|
-
const n = se(), { baseMaps: t } = e, [i, o] = D(" "), [r, c] = D(), u =
|
|
1269
|
+
), uo = (e) => {
|
|
1270
|
+
const n = se(), { baseMaps: t } = e, [i, o] = D(" "), [r, c] = D(), u = co();
|
|
1271
1271
|
I(() => {
|
|
1272
|
-
const p = t == null ? void 0 : t.maps.find((
|
|
1272
|
+
const p = t == null ? void 0 : t.maps.find((v) => v.isCurrent);
|
|
1273
1273
|
p && (c(p), o(p.title !== void 0 ? p.title : " "));
|
|
1274
1274
|
}, [t]);
|
|
1275
1275
|
const m = (p) => {
|
|
1276
|
-
var
|
|
1276
|
+
var v, L;
|
|
1277
1277
|
if (t) {
|
|
1278
|
-
(
|
|
1278
|
+
(v = n.layersManager) == null || v.removeBaseMapLayers();
|
|
1279
1279
|
const w = t.maps.find((P) => P.id === p);
|
|
1280
1280
|
w && ((L = n.layersManager) == null || L.setBaseMapLayers(w), c(w), t.maps.forEach((P) => {
|
|
1281
1281
|
P.isCurrent = w === P;
|
|
@@ -1303,16 +1303,16 @@ const lo = Fe(
|
|
|
1303
1303
|
) }, p.id)) })
|
|
1304
1304
|
] });
|
|
1305
1305
|
};
|
|
1306
|
-
const it = "ic_settings_24px",
|
|
1306
|
+
const it = "ic_settings_24px", ho = (e) => {
|
|
1307
1307
|
const [n, t] = D(!1), { sceneModes: i, baseMaps: o, locale: r } = e, c = Se(null), u = Z(r, "MAP_SETTINGS_DIALOG_TITLE") ?? "Map Settings", m = Z(r, "MAP_SETTINGS_SCENE_MODE_TITLE") ?? "Scene Mode", p = Z(r, "MAP_SETTINGS_BASE_MAP_TITLE") ?? "Base Map";
|
|
1308
1308
|
return I(() => {
|
|
1309
|
-
const
|
|
1309
|
+
const v = (L) => {
|
|
1310
1310
|
var A;
|
|
1311
1311
|
const w = L.target, P = Z(c, "current");
|
|
1312
|
-
P && !P.contains(w) && w.id !== it && ((A = w.parentElement) == null ? void 0 : A.id) !== it && (document.removeEventListener("click",
|
|
1312
|
+
P && !P.contains(w) && w.id !== it && ((A = w.parentElement) == null ? void 0 : A.id) !== it && (document.removeEventListener("click", v, !1), t(!1));
|
|
1313
1313
|
};
|
|
1314
|
-
return document.addEventListener("click",
|
|
1315
|
-
document.removeEventListener("click",
|
|
1314
|
+
return document.addEventListener("click", v, !1), () => {
|
|
1315
|
+
document.removeEventListener("click", v, !1);
|
|
1316
1316
|
};
|
|
1317
1317
|
}), /* @__PURE__ */ N(oe, { children: [
|
|
1318
1318
|
/* @__PURE__ */ l(
|
|
@@ -1335,10 +1335,10 @@ const it = "ic_settings_24px", uo = (e) => {
|
|
|
1335
1335
|
/* @__PURE__ */ l(Hn, { children: u }),
|
|
1336
1336
|
/* @__PURE__ */ N(Gn, { children: [
|
|
1337
1337
|
/* @__PURE__ */ l("h4", { className: "sectionLabel", children: m }),
|
|
1338
|
-
/* @__PURE__ */ l(de, { className: "mapScenesContainer", children: /* @__PURE__ */ l(
|
|
1338
|
+
/* @__PURE__ */ l(de, { className: "mapScenesContainer", children: /* @__PURE__ */ l(lo, { sceneModes: i }) }),
|
|
1339
1339
|
/* @__PURE__ */ l(de, { className: "baseMapsContainer", children: o && /* @__PURE__ */ N(oe, { children: [
|
|
1340
1340
|
/* @__PURE__ */ l("h4", { className: "sectionLabel", children: p }),
|
|
1341
|
-
/* @__PURE__ */ l(
|
|
1341
|
+
/* @__PURE__ */ l(uo, { baseMaps: o })
|
|
1342
1342
|
] }) })
|
|
1343
1343
|
] })
|
|
1344
1344
|
]
|
|
@@ -1346,7 +1346,7 @@ const it = "ic_settings_24px", uo = (e) => {
|
|
|
1346
1346
|
) })
|
|
1347
1347
|
] });
|
|
1348
1348
|
};
|
|
1349
|
-
const
|
|
1349
|
+
const mo = () => {
|
|
1350
1350
|
const e = se();
|
|
1351
1351
|
return /* @__PURE__ */ l("div", { className: "zoom-buttons-container", children: [
|
|
1352
1352
|
{ onClick: () => e.camera.zoomIn(), iconPath: "M48 20h-18v-18h-10v18h-18v10h18v18h10v-18h18z" },
|
|
@@ -1372,10 +1372,10 @@ const ho = () => {
|
|
|
1372
1372
|
}
|
|
1373
1373
|
)) });
|
|
1374
1374
|
};
|
|
1375
|
-
const
|
|
1375
|
+
const po = /* @__PURE__ */ l("svg", { xmlns: "http://www.w3.org/2000/svg", enableBackground: "new 0 0 24 24", height: "24", width: "24", viewBox: "0 0 612 612", children: /* @__PURE__ */ N("g", { xmlns: "http://www.w3.org/2000/svg", children: [
|
|
1376
1376
|
/* @__PURE__ */ l("path", { d: "M322.4,173.9l-129,16.2l-4.6,21.4l25.3,4.7c16.5,3.9,19.8,9.9,16.2,26.4l-41.5,195.3c-10.9,50.5,5.9,74.3,45.5,74.3 c30.7,0,66.3-14.2,82.5-33.6l4.9-23.4c-11.3,9.9-27.7,13.9-38.6,13.9c-15.5,0-21.1-10.9-17.1-30L322.4,173.9z" }),
|
|
1377
1377
|
/* @__PURE__ */ l("circle", { cx: "270.1", cy: "56.3", r: "56.3" })
|
|
1378
|
-
] }) }),
|
|
1378
|
+
] }) }), go = ({ onClick: e }) => /* @__PURE__ */ l(de, { onClick: e, className: "mapLegendToggleContainer", children: /* @__PURE__ */ l(_e, { icon: po, className: "mapLegendIcon" }) }), fo = ({ legend: { legendImg: e, legendDoc: n, layer: t }, docText: i, imgText: o }) => {
|
|
1379
1379
|
const r = pe(() => {
|
|
1380
1380
|
window.open(e, "_blank");
|
|
1381
1381
|
}, [e]);
|
|
@@ -1394,10 +1394,10 @@ const mo = /* @__PURE__ */ l("svg", { xmlns: "http://www.w3.org/2000/svg", enabl
|
|
|
1394
1394
|
/* @__PURE__ */ l("img", { alt: "Map Legend", className: "legendImg", src: e, onClick: r }),
|
|
1395
1395
|
/* @__PURE__ */ l(de, { className: "legendActionsContainer", children: u() })
|
|
1396
1396
|
] });
|
|
1397
|
-
},
|
|
1398
|
-
const o = pe(() => /* @__PURE__ */ l(de, { className: "noLegendsContainer", children: /* @__PURE__ */ l("h2", { className: "noLegendsMsg", children: i }) }), [i]), r = pe(() => e.length ? e.map((c, u) => /* @__PURE__ */ l(
|
|
1397
|
+
}, yo = ({ legends: e, actionsTexts: { docText: n, imgText: t }, noLegendsText: i }) => {
|
|
1398
|
+
const o = pe(() => /* @__PURE__ */ l(de, { className: "noLegendsContainer", children: /* @__PURE__ */ l("h2", { className: "noLegendsMsg", children: i }) }), [i]), r = pe(() => e.length ? e.map((c, u) => /* @__PURE__ */ l(fo, { legend: c, docText: n, imgText: t }, `${c.layer}_${u}`)) : o(), [e]);
|
|
1399
1399
|
return /* @__PURE__ */ l(de, { className: "mapLegendsList", children: r() });
|
|
1400
|
-
},
|
|
1400
|
+
}, vo = ({
|
|
1401
1401
|
isOpen: e,
|
|
1402
1402
|
toggleSidebar: n,
|
|
1403
1403
|
title: t = "Map Legends",
|
|
@@ -1408,7 +1408,7 @@ const mo = /* @__PURE__ */ l("svg", { xmlns: "http://www.w3.org/2000/svg", enabl
|
|
|
1408
1408
|
/* @__PURE__ */ l(zn, { className: "sidebarHeaderContainer", children: /* @__PURE__ */ l($n, { className: "sidebarTitle", children: t }) }),
|
|
1409
1409
|
/* @__PURE__ */ N(Wn, { className: "sidebarContent", children: [
|
|
1410
1410
|
/* @__PURE__ */ l(_e, { onClick: n, className: "mapLegendCloseBtn", icon: { icon: "close", size: "small" } }),
|
|
1411
|
-
/* @__PURE__ */ l(
|
|
1411
|
+
/* @__PURE__ */ l(yo, { noLegendsText: i, legends: r, actionsTexts: o })
|
|
1412
1412
|
] })
|
|
1413
1413
|
] }) : null, me = document.createElement("canvas"), ie = me.getContext("2d"), kt = (e) => {
|
|
1414
1414
|
const i = (e == null ? void 0 : e.data) ?? [];
|
|
@@ -1416,7 +1416,7 @@ const mo = /* @__PURE__ */ l("svg", { xmlns: "http://www.w3.org/2000/svg", enabl
|
|
|
1416
1416
|
if (i[o] < 255)
|
|
1417
1417
|
return !0;
|
|
1418
1418
|
return !1;
|
|
1419
|
-
},
|
|
1419
|
+
}, Eo = async (e, n) => (n && n.tileTransparencyCheckedCounter++, new Promise((t, i) => {
|
|
1420
1420
|
try {
|
|
1421
1421
|
ie == null || ie.clearRect(0, 0, me.width, me.height);
|
|
1422
1422
|
let o;
|
|
@@ -1447,17 +1447,17 @@ function ft(e, n, t, i, o) {
|
|
|
1447
1447
|
const r = (u = this.layerListInstance.find(
|
|
1448
1448
|
/* eslint-disable */
|
|
1449
1449
|
(m) => {
|
|
1450
|
-
var p,
|
|
1451
|
-
return ((p = m._imageryProvider._resource) == null ? void 0 : p._url) === ((
|
|
1450
|
+
var p, v;
|
|
1451
|
+
return ((p = m._imageryProvider._resource) == null ? void 0 : p._url) === ((v = this._resource) == null ? void 0 : v._url);
|
|
1452
1452
|
}
|
|
1453
1453
|
/* eslint-enable */
|
|
1454
1454
|
)) == null ? void 0 : u.meta, c = Z(r, je) === !0;
|
|
1455
|
-
this.tileTransparencyCheckedCounter < Ye && !c &&
|
|
1455
|
+
this.tileTransparencyCheckedCounter < Ye && !c && Eo(o == null ? void 0 : o.url, this).then((m) => {
|
|
1456
1456
|
var p;
|
|
1457
1457
|
(p = this.mapViewer.layersManager) == null || p.addMetaToLayer(
|
|
1458
1458
|
{ [je]: m },
|
|
1459
1459
|
/* eslint-disable */
|
|
1460
|
-
(
|
|
1460
|
+
(v) => v._imageryProvider._resource._url === this._resource._url
|
|
1461
1461
|
);
|
|
1462
1462
|
});
|
|
1463
1463
|
}, 0), e(n, t, i, o);
|
|
@@ -1504,8 +1504,8 @@ class yn extends gt {
|
|
|
1504
1504
|
return ft.call(this, super.requestImage.bind(this), t, i, o, r);
|
|
1505
1505
|
}
|
|
1506
1506
|
}
|
|
1507
|
-
const
|
|
1508
|
-
class
|
|
1507
|
+
const Co = 1, wo = -1, Rt = "TRANSPARENT_BASE_LAYER";
|
|
1508
|
+
class To {
|
|
1509
1509
|
constructor(n, t, i, o) {
|
|
1510
1510
|
X(this, "mapViewer");
|
|
1511
1511
|
X(this, "legendsList");
|
|
@@ -1513,7 +1513,7 @@ class wo {
|
|
|
1513
1513
|
X(this, "layers");
|
|
1514
1514
|
X(this, "legendsExtractor");
|
|
1515
1515
|
X(this, "layerManagerFootprintMetaFieldPath");
|
|
1516
|
-
this.mapViewer = n, this.layers = this.mapViewer.imageryLayers._layers, this.legendsList = [], this.legendsExtractor = t, this.layerUpdated = new
|
|
1516
|
+
this.mapViewer = n, this.layers = this.mapViewer.imageryLayers._layers, this.legendsList = [], this.legendsExtractor = t, this.layerUpdated = new Ki(), this.layerManagerFootprintMetaFieldPath = o, i && this.layerUpdated.addEventListener(i, this), this.mapViewer.shouldOptimizedTileRequests && (this.layerUpdated.addEventListener((r) => {
|
|
1517
1517
|
const c = Object.keys(r);
|
|
1518
1518
|
c.length === 1 && c[0] === je && (this.markRelevantLayersForExtent(), this.hideNonRelevantLayers());
|
|
1519
1519
|
}), this.mapViewer.imageryLayers.layerRemoved.addEventListener(() => {
|
|
@@ -1628,24 +1628,24 @@ class wo {
|
|
|
1628
1628
|
}
|
|
1629
1629
|
findLayerByPOI(n, t, i = !0) {
|
|
1630
1630
|
if (this.layerManagerFootprintMetaFieldPath) {
|
|
1631
|
-
const o =
|
|
1631
|
+
const o = eo(this.mapViewer, n, t);
|
|
1632
1632
|
return this.layers.filter((u) => !Z(u.meta, "parentBasetMapId")).filter((u) => {
|
|
1633
1633
|
const m = Z(u.meta, this.layerManagerFootprintMetaFieldPath);
|
|
1634
|
-
return m !== void 0 ?
|
|
1634
|
+
return m !== void 0 ? ir(o.geometry, {
|
|
1635
1635
|
type: "Feature",
|
|
1636
1636
|
properties: {},
|
|
1637
1637
|
geometry: m
|
|
1638
1638
|
}) && (i ? u.show : !0) : (console.warn("[LayerManager] [findLayerByPOI] CesiumImageryLayer has no defined footprint", u.meta), !1);
|
|
1639
1639
|
}).sort((u, m) => {
|
|
1640
|
-
var p,
|
|
1641
|
-
return ((p = m.meta) == null ? void 0 : p.zIndex) - ((
|
|
1640
|
+
var p, v;
|
|
1641
|
+
return ((p = m.meta) == null ? void 0 : p.zIndex) - ((v = u.meta) == null ? void 0 : v.zIndex);
|
|
1642
1642
|
});
|
|
1643
1643
|
} else
|
|
1644
1644
|
return console.warn("[LayerManager] [findLayerByPOI]layerManagerFootprintMetaFieldPath is not defined"), [];
|
|
1645
1645
|
}
|
|
1646
1646
|
addTransparentImageryProvider() {
|
|
1647
1647
|
const n = this.mapViewer.imageryLayers.addImageryProvider(
|
|
1648
|
-
new
|
|
1648
|
+
new qi({
|
|
1649
1649
|
url: "./assets/img/transparent-tile.png",
|
|
1650
1650
|
/* eslint-disable @typescript-eslint/no-magic-numbers */
|
|
1651
1651
|
rectangle: new Oe(-3.141592653589793, -1.5707963267948966, 3.141592653589793, 1.5707963267948966)
|
|
@@ -1669,12 +1669,12 @@ class wo {
|
|
|
1669
1669
|
return this.layers.find((t) => t.meta !== void 0 ? t.meta.id === n : !1);
|
|
1670
1670
|
}
|
|
1671
1671
|
updateLayersOrder(n, t, i) {
|
|
1672
|
-
const o = t > i ?
|
|
1672
|
+
const o = t > i ? Co : wo, r = t < i ? t : i, c = t < i ? i : t;
|
|
1673
1673
|
this.layers.forEach((u) => {
|
|
1674
1674
|
var p;
|
|
1675
1675
|
if (!Z(u.meta, "parentBasetMapId")) {
|
|
1676
|
-
const
|
|
1677
|
-
u.meta.zIndex =
|
|
1676
|
+
const v = (p = u.meta) == null ? void 0 : p.zIndex;
|
|
1677
|
+
u.meta.zIndex = v >= r && v <= c && v !== t ? v + o : v === t ? i : v;
|
|
1678
1678
|
}
|
|
1679
1679
|
});
|
|
1680
1680
|
}
|
|
@@ -1735,11 +1735,11 @@ class wo {
|
|
|
1735
1735
|
}
|
|
1736
1736
|
}
|
|
1737
1737
|
}
|
|
1738
|
-
const
|
|
1738
|
+
const bo = (e) => {
|
|
1739
1739
|
const n = se(), { enableCompass: t = !0, enableZoomControls: i = !1, lockCompassNavigation: o = !1, locale: r = { DIRECTION: "ltr" } } = e;
|
|
1740
1740
|
return I(() => {
|
|
1741
1741
|
if (typeof Z(n, "cesiumNavigation") > "u") {
|
|
1742
|
-
n.extend(
|
|
1742
|
+
n.extend(rr, {
|
|
1743
1743
|
enableCompass: t,
|
|
1744
1744
|
enableZoomControls: i,
|
|
1745
1745
|
enableDistanceLegend: !1
|
|
@@ -1748,11 +1748,12 @@ const To = (e) => {
|
|
|
1748
1748
|
c && r.DIRECTION && c.classList.add(r.DIRECTION);
|
|
1749
1749
|
}
|
|
1750
1750
|
}, [n, t, i, r.DIRECTION, o]), null;
|
|
1751
|
-
}, Nt = 212, Bt = 260,
|
|
1752
|
-
class
|
|
1751
|
+
}, Nt = 212, Bt = 260, Lo = 0;
|
|
1752
|
+
class ka extends Yi {
|
|
1753
1753
|
constructor(t, i) {
|
|
1754
1754
|
super(t, i);
|
|
1755
1755
|
X(this, "layersManager");
|
|
1756
|
+
X(this, "currentZoomLevel");
|
|
1756
1757
|
X(this, "useOptimizedTileRequests");
|
|
1757
1758
|
}
|
|
1758
1759
|
get shouldOptimizedTileRequests() {
|
|
@@ -1762,14 +1763,14 @@ class Oa extends qi {
|
|
|
1762
1763
|
this.useOptimizedTileRequests = t;
|
|
1763
1764
|
}
|
|
1764
1765
|
}
|
|
1765
|
-
const vn = Me(null),
|
|
1766
|
+
const vn = Me(null), So = vn.Provider, se = () => {
|
|
1766
1767
|
const e = Pe(vn);
|
|
1767
1768
|
if (e === null)
|
|
1768
1769
|
throw new Error("map context is null, please check the provider");
|
|
1769
1770
|
return e;
|
|
1770
|
-
},
|
|
1771
|
+
}, Ra = (e) => {
|
|
1771
1772
|
var V, Q, ne, ye, ue, ae, ce, Re;
|
|
1772
|
-
const n = Se(null), [t, i] = D(), [o, r] = D(), [c, u] = D(), [m, p] = D(), [
|
|
1773
|
+
const n = Se(null), [t, i] = D(), [o, r] = D(), [c, u] = D(), [m, p] = D(), [v, L] = D(), [w, P] = D(), [A, H] = D(), [Y, G] = D(!1), [U, j] = D(), O = Se(), [z, k] = D(), [$, te] = D([]), [s, a] = D(), [E, d] = D(!1), y = Se(), [h, C] = D(void 0), [f, T] = D(!1), [_, S] = D(), [b, M] = D(), x = {
|
|
1773
1774
|
fullscreenButton: !0,
|
|
1774
1775
|
timeline: !1,
|
|
1775
1776
|
animation: !1,
|
|
@@ -1804,7 +1805,7 @@ const vn = Me(null), Lo = vn.Provider, se = () => {
|
|
|
1804
1805
|
i((K = n.current) == null ? void 0 : K.cesiumElement);
|
|
1805
1806
|
}, [n, e.imageryContextMenu]), I(() => {
|
|
1806
1807
|
var K;
|
|
1807
|
-
t && (t.shouldOptimizedTileRequests = e.useOptimizedTileRequests ?? !1, t.layersManager = new
|
|
1808
|
+
t && (t.shouldOptimizedTileRequests = e.useOptimizedTileRequests ?? !1, t.layersManager = new To(
|
|
1808
1809
|
t,
|
|
1809
1810
|
(K = e.legends) == null ? void 0 : K.mapLegendsExtractor,
|
|
1810
1811
|
() => {
|
|
@@ -1909,8 +1910,8 @@ const vn = Me(null), Lo = vn.Provider, se = () => {
|
|
|
1909
1910
|
};
|
|
1910
1911
|
}, [t]), I(() => {
|
|
1911
1912
|
const K = e.zoom, B = e.center;
|
|
1912
|
-
t && Ue(K) &&
|
|
1913
|
-
destination: ve.fromDegrees(B[0], B[1],
|
|
1913
|
+
t && Ue(K) && tr(B) && t.camera.flyTo({
|
|
1914
|
+
destination: ve.fromDegrees(B[0], B[1], Qr(K)),
|
|
1914
1915
|
duration: 0
|
|
1915
1916
|
});
|
|
1916
1917
|
}, [e.zoom, e.center, t]), I(() => {
|
|
@@ -1920,22 +1921,22 @@ const vn = Me(null), Lo = vn.Provider, se = () => {
|
|
|
1920
1921
|
/* @__PURE__ */ N(oe, { children: [
|
|
1921
1922
|
A && Y && /* @__PURE__ */ l(Un, { style: { position: "absolute", top: 0, height: "10px", zIndex: 4 } }),
|
|
1922
1923
|
/* @__PURE__ */ N(de, { className: "sideToolsContainer", children: [
|
|
1923
|
-
/* @__PURE__ */ l(
|
|
1924
|
-
/* @__PURE__ */ l(
|
|
1924
|
+
/* @__PURE__ */ l(ho, { sceneModes: z, baseMaps: s, locale: U }),
|
|
1925
|
+
/* @__PURE__ */ l(go, { onClick: () => T(!f) })
|
|
1925
1926
|
] }),
|
|
1926
1927
|
/* @__PURE__ */ N(de, { className: "toolsContainer", children: [
|
|
1927
|
-
c && /* @__PURE__ */ l(
|
|
1928
|
-
m && /* @__PURE__ */ l(
|
|
1929
|
-
|
|
1930
|
-
w && /* @__PURE__ */ l(
|
|
1928
|
+
c && /* @__PURE__ */ l(no, { projection: o }),
|
|
1929
|
+
m && /* @__PURE__ */ l(so, { locale: U, valueBy: "RENDERED_TILES" }),
|
|
1930
|
+
v && /* @__PURE__ */ l(ro, { locale: U }),
|
|
1931
|
+
w && /* @__PURE__ */ l(bo, { locale: U })
|
|
1931
1932
|
] }),
|
|
1932
|
-
b && /* @__PURE__ */ l(
|
|
1933
|
+
b && /* @__PURE__ */ l(mo, {})
|
|
1933
1934
|
] }),
|
|
1934
1935
|
document.querySelector(".cesium-viewer")
|
|
1935
|
-
), [s, U, t, o, z, c,
|
|
1936
|
-
return /* @__PURE__ */ l(Si, { className: "viewer", full: !0, ref: n, ...x, children: /* @__PURE__ */ N(
|
|
1936
|
+
), [s, U, t, o, z, c, v, f, Y]);
|
|
1937
|
+
return /* @__PURE__ */ l(Si, { className: "viewer", full: !0, ref: n, ...x, children: /* @__PURE__ */ N(So, { value: t, children: [
|
|
1937
1938
|
/* @__PURE__ */ l(
|
|
1938
|
-
|
|
1939
|
+
vo,
|
|
1939
1940
|
{
|
|
1940
1941
|
title: (V = e.legends) == null ? void 0 : V.title,
|
|
1941
1942
|
isOpen: f,
|
|
@@ -1947,7 +1948,7 @@ const vn = Me(null), Lo = vn.Provider, se = () => {
|
|
|
1947
1948
|
),
|
|
1948
1949
|
e.children,
|
|
1949
1950
|
R(),
|
|
1950
|
-
e.imageryContextMenu &&
|
|
1951
|
+
e.imageryContextMenu && E && h && _ && Ee.cloneElement(e.imageryContextMenu, {
|
|
1951
1952
|
data: (ue = t == null ? void 0 : t.layersManager) == null ? void 0 : ue.findLayerByPOI(
|
|
1952
1953
|
h.x,
|
|
1953
1954
|
h.y,
|
|
@@ -1963,19 +1964,19 @@ const vn = Me(null), Lo = vn.Provider, se = () => {
|
|
|
1963
1964
|
h.y,
|
|
1964
1965
|
((ae = e.imageryContextMenuSize) == null ? void 0 : ae.width) ?? Bt,
|
|
1965
1966
|
((ce = e.imageryContextMenuSize) == null ? void 0 : ce.height) ?? Nt,
|
|
1966
|
-
((Re = e.imageryContextMenuSize) == null ? void 0 : Re.dynamicHeightIncrement) ??
|
|
1967
|
+
((Re = e.imageryContextMenuSize) == null ? void 0 : Re.dynamicHeightIncrement) ?? Lo
|
|
1967
1968
|
),
|
|
1968
1969
|
size: e.imageryContextMenuSize ?? {
|
|
1969
1970
|
height: Nt,
|
|
1970
1971
|
width: Bt
|
|
1971
1972
|
},
|
|
1972
1973
|
handleClose: () => {
|
|
1973
|
-
d(!
|
|
1974
|
+
d(!E);
|
|
1974
1975
|
},
|
|
1975
1976
|
contextEvt: y.current
|
|
1976
1977
|
})
|
|
1977
1978
|
] }) });
|
|
1978
|
-
},
|
|
1979
|
+
}, _o = 0, Na = (e) => {
|
|
1979
1980
|
const n = se();
|
|
1980
1981
|
return /* @__PURE__ */ l(
|
|
1981
1982
|
_i,
|
|
@@ -1985,10 +1986,10 @@ const vn = Me(null), Lo = vn.Provider, se = () => {
|
|
|
1985
1986
|
e.isZoomTo === !0 && n.zoomTo(t);
|
|
1986
1987
|
const i = n.scene;
|
|
1987
1988
|
i.globe.depthTestAgainstTerrain = !0;
|
|
1988
|
-
const o = He.fromCartesian(t.boundingSphere.center), r = e.heightFromGround ??
|
|
1989
|
+
const o = He.fromCartesian(t.boundingSphere.center), r = e.heightFromGround ?? _o;
|
|
1989
1990
|
if (r) {
|
|
1990
1991
|
const c = ve.fromRadians(o.longitude, o.latitude, o.height), u = ve.fromRadians(o.longitude, o.latitude, o.height + r), m = ve.subtract(u, c, new ve());
|
|
1991
|
-
t.modelMatrix =
|
|
1992
|
+
t.modelMatrix = Xi.fromTranslation(m);
|
|
1992
1993
|
}
|
|
1993
1994
|
}
|
|
1994
1995
|
}
|
|
@@ -2010,8 +2011,8 @@ const vn = Me(null), Lo = vn.Provider, se = () => {
|
|
|
2010
2011
|
});
|
|
2011
2012
|
break;
|
|
2012
2013
|
}
|
|
2013
|
-
},
|
|
2014
|
-
const { data: n, ...t } = e, i =
|
|
2014
|
+
}, Ba = (e) => {
|
|
2015
|
+
const { data: n, ...t } = e, i = nr(n);
|
|
2015
2016
|
return i && (typeof i.features < "u" ? i.features.forEach((o) => {
|
|
2016
2017
|
Vt(o.geometry);
|
|
2017
2018
|
}) : Vt(i)), /* @__PURE__ */ l(Mi, { data: i, ...t });
|
|
@@ -2021,23 +2022,23 @@ const vn = Me(null), Lo = vn.Provider, se = () => {
|
|
|
2021
2022
|
var o;
|
|
2022
2023
|
(o = i.layersManager) == null || o.addMetaToLayer(n, n.searchLayerPredicate);
|
|
2023
2024
|
}, [n, i]), /* @__PURE__ */ l(Pi, { ...t });
|
|
2024
|
-
},
|
|
2025
|
+
}, Fa = (e) => {
|
|
2025
2026
|
const { options: n, ...t } = e, i = se(), o = i.shouldOptimizedTileRequests ? new fn(n, i) : new pt(n);
|
|
2026
2027
|
return /* @__PURE__ */ l(Xe, { ...t, imageryProvider: o });
|
|
2027
|
-
},
|
|
2028
|
+
}, Ha = (e) => {
|
|
2028
2029
|
const { options: n, ...t } = e, i = se(), o = i.shouldOptimizedTileRequests ? new yn(n, i) : new gt(n);
|
|
2029
2030
|
return /* @__PURE__ */ l(Xe, { ...t, imageryProvider: o });
|
|
2030
|
-
},
|
|
2031
|
+
}, Ga = (e) => {
|
|
2031
2032
|
const { options: n, ...t } = e, i = se(), o = i.shouldOptimizedTileRequests ? new gn(n, i) : new mt(n);
|
|
2032
2033
|
return /* @__PURE__ */ l(Xe, { ...t, imageryProvider: o });
|
|
2033
|
-
},
|
|
2034
|
+
}, Va = (e) => {
|
|
2034
2035
|
const { options: n, ...t } = e;
|
|
2035
|
-
return /* @__PURE__ */ l(Xe, { ...t, imageryProvider: new
|
|
2036
|
-
},
|
|
2036
|
+
return /* @__PURE__ */ l(Xe, { ...t, imageryProvider: new Zi(n) });
|
|
2037
|
+
}, Mo = (e) => /* @__PURE__ */ l(xi, { ...e }), za = (e) => /* @__PURE__ */ l(Qt, { ...e }), Po = (e) => /* @__PURE__ */ l(Qt, { ...e }), xo = (e) => /* @__PURE__ */ l(Ii, { ...e }), Io = (e) => /* @__PURE__ */ l(Di, { ...e }), Do = (e) => /* @__PURE__ */ l(Oi, { ...e }), Oo = (e) => /* @__PURE__ */ l(Ai, { ...e });
|
|
2037
2038
|
var be = function() {
|
|
2038
2039
|
var e = g.Ellipsoid.WGS84, n, t = g.Material.fromType(g.Material.ColorType);
|
|
2039
|
-
function i(s, a = new g.Color(1, 1, 0, 0.5),
|
|
2040
|
-
this._scene = s.scene, t.uniforms.color = a, n =
|
|
2040
|
+
function i(s, a = new g.Color(1, 1, 0, 0.5), E = new g.Color(1, 1, 1, 1)) {
|
|
2041
|
+
this._scene = s.scene, t.uniforms.color = a, n = E, this._tooltip = {
|
|
2041
2042
|
setVisible: () => {
|
|
2042
2043
|
},
|
|
2043
2044
|
showAt: () => {
|
|
@@ -2045,40 +2046,40 @@ var be = function() {
|
|
|
2045
2046
|
}, this._surfaces = [], this.initialiseHandlers(), this.enhancePrimitives();
|
|
2046
2047
|
}
|
|
2047
2048
|
i.prototype.initialiseHandlers = function() {
|
|
2048
|
-
var s = this._scene, a = this,
|
|
2049
|
+
var s = this._scene, a = this, E = new g.ScreenSpaceEventHandler(s.canvas);
|
|
2049
2050
|
function d(h, C) {
|
|
2050
2051
|
if (a._handlersMuted != !0) {
|
|
2051
2052
|
var f = s.pick(C);
|
|
2052
2053
|
f && f.primitive && f.primitive[h] && f.primitive[h](C);
|
|
2053
2054
|
}
|
|
2054
2055
|
}
|
|
2055
|
-
|
|
2056
|
+
E.setInputAction(function(h) {
|
|
2056
2057
|
d("leftClick", h.position);
|
|
2057
|
-
}, g.ScreenSpaceEventType.LEFT_CLICK),
|
|
2058
|
+
}, g.ScreenSpaceEventType.LEFT_CLICK), E.setInputAction(function(h) {
|
|
2058
2059
|
d("leftDoubleClick", h.position);
|
|
2059
2060
|
}, g.ScreenSpaceEventType.LEFT_DOUBLE_CLICK);
|
|
2060
2061
|
var y;
|
|
2061
|
-
|
|
2062
|
+
E.setInputAction(function(h) {
|
|
2062
2063
|
if (a._handlersMuted != !0) {
|
|
2063
2064
|
var C = s.pick(h.endPosition);
|
|
2064
2065
|
y && (!C || y != C.primitive) && (!(y.isDestroyed && y.isDestroyed()) && y.mouseOut(h.endPosition), y = null), C && C.primitive && (C = C.primitive, C.mouseOut && (y = C), C.mouseMove && C.mouseMove(h.endPosition));
|
|
2065
2066
|
}
|
|
2066
|
-
}, g.ScreenSpaceEventType.MOUSE_MOVE),
|
|
2067
|
+
}, g.ScreenSpaceEventType.MOUSE_MOVE), E.setInputAction(function(h) {
|
|
2067
2068
|
d("leftUp", h.position);
|
|
2068
|
-
}, g.ScreenSpaceEventType.LEFT_UP),
|
|
2069
|
+
}, g.ScreenSpaceEventType.LEFT_UP), E.setInputAction(function(h) {
|
|
2069
2070
|
d("leftDown", h.position);
|
|
2070
2071
|
}, g.ScreenSpaceEventType.LEFT_DOWN);
|
|
2071
|
-
}, i.prototype.setListener = function(s, a,
|
|
2072
|
-
s[a] =
|
|
2072
|
+
}, i.prototype.setListener = function(s, a, E) {
|
|
2073
|
+
s[a] = E;
|
|
2073
2074
|
}, i.prototype.muteHandlers = function(s) {
|
|
2074
2075
|
this._handlersMuted = s;
|
|
2075
2076
|
}, i.prototype.registerEditableShape = function(s) {
|
|
2076
2077
|
var a = this;
|
|
2077
|
-
$(s, "mouseMove", function(
|
|
2078
|
-
s.setHighlighted(!0), s._editMode || a._tooltip.showAt(
|
|
2079
|
-
}), $(s, "mouseOut", function(
|
|
2078
|
+
$(s, "mouseMove", function(E) {
|
|
2079
|
+
s.setHighlighted(!0), s._editMode || a._tooltip.showAt(E, "Click to edit this shape");
|
|
2080
|
+
}), $(s, "mouseOut", function(E) {
|
|
2080
2081
|
s.setHighlighted(!1), a._tooltip.setVisible(!1);
|
|
2081
|
-
}), $(s, "leftClick", function(
|
|
2082
|
+
}), $(s, "leftClick", function(E) {
|
|
2082
2083
|
s.setEditMode(!0);
|
|
2083
2084
|
});
|
|
2084
2085
|
}, i.prototype.startDrawing = function(s) {
|
|
@@ -2109,7 +2110,7 @@ var be = function() {
|
|
|
2109
2110
|
granularity: Math.PI / 180
|
|
2110
2111
|
}), c = k(o, {}), u = k(o, {}), m = k(o, {}), p = k(r, {
|
|
2111
2112
|
rotation: 0
|
|
2112
|
-
}),
|
|
2113
|
+
}), v = k(o, {
|
|
2113
2114
|
width: 5,
|
|
2114
2115
|
geodesic: !0,
|
|
2115
2116
|
granularity: 1e4,
|
|
@@ -2122,11 +2123,11 @@ var be = function() {
|
|
|
2122
2123
|
}
|
|
2123
2124
|
return s.prototype.initialiseOptions = function(a) {
|
|
2124
2125
|
z(this, a), this._ellipsoid = void 0, this._granularity = void 0, this._height = void 0, this._textureRotationAngle = void 0, this._id = void 0, this._createPrimitive = !0, this._primitive = void 0, this._outlinePolygon = void 0;
|
|
2125
|
-
}, s.prototype.setAttribute = function(a,
|
|
2126
|
-
this[a] =
|
|
2126
|
+
}, s.prototype.setAttribute = function(a, E) {
|
|
2127
|
+
this[a] = E, this._createPrimitive = !0;
|
|
2127
2128
|
}, s.prototype.getAttribute = function(a) {
|
|
2128
2129
|
return this[a];
|
|
2129
|
-
}, s.prototype.update = function(a,
|
|
2130
|
+
}, s.prototype.update = function(a, E, d) {
|
|
2130
2131
|
if (!g.defined(this.ellipsoid))
|
|
2131
2132
|
throw new g.DeveloperError("this.ellipsoid must be defined.");
|
|
2132
2133
|
if (!g.defined(this.appearance))
|
|
@@ -2167,14 +2168,14 @@ var be = function() {
|
|
|
2167
2168
|
}));
|
|
2168
2169
|
}
|
|
2169
2170
|
var h = this._primitive;
|
|
2170
|
-
h.appearance.material = this.material, h.debugShowBoundingVolume = this.debugShowBoundingVolume, h.update(a,
|
|
2171
|
+
h.appearance.material = this.material, h.debugShowBoundingVolume = this.debugShowBoundingVolume, h.update(a, E, d), this._outlinePolygon && this._outlinePolygon.update(a, E, d);
|
|
2171
2172
|
}
|
|
2172
2173
|
}, s.prototype.isDestroyed = function() {
|
|
2173
2174
|
return !1;
|
|
2174
2175
|
}, s.prototype.destroy = function() {
|
|
2175
2176
|
return this._primitive = this._primitive && this._primitive.destroy(), g.destroyObject(this);
|
|
2176
|
-
}, s.prototype.setStrokeStyle = function(a,
|
|
2177
|
-
(!this.strokeColor || !this.strokeColor.equals(a) || this.strokeWidth !=
|
|
2177
|
+
}, s.prototype.setStrokeStyle = function(a, E) {
|
|
2178
|
+
(!this.strokeColor || !this.strokeColor.equals(a) || this.strokeWidth != E) && (this._createPrimitive = !0, this.strokeColor = a, this.strokeWidth = E);
|
|
2178
2179
|
}, s;
|
|
2179
2180
|
}();
|
|
2180
2181
|
i.ExtentPrimitive = function() {
|
|
@@ -2301,7 +2302,7 @@ var be = function() {
|
|
|
2301
2302
|
}, s;
|
|
2302
2303
|
}(), i.PolylinePrimitive = function() {
|
|
2303
2304
|
function s(a) {
|
|
2304
|
-
a = k(a,
|
|
2305
|
+
a = k(a, v), this.initialiseOptions(a);
|
|
2305
2306
|
}
|
|
2306
2307
|
return s.prototype = new L(), s.prototype.setPositions = function(a) {
|
|
2307
2308
|
this.setAttribute("positions", a);
|
|
@@ -2339,15 +2340,15 @@ var be = function() {
|
|
|
2339
2340
|
shiftX: 0,
|
|
2340
2341
|
shiftY: 0
|
|
2341
2342
|
};
|
|
2342
|
-
i.prototype.createBillboardGroup = function(s, a,
|
|
2343
|
+
i.prototype.createBillboardGroup = function(s, a, E) {
|
|
2343
2344
|
var d = new i.BillboardGroup(this, a);
|
|
2344
|
-
return d.addBillboards(s,
|
|
2345
|
+
return d.addBillboards(s, E), d;
|
|
2345
2346
|
}, i.BillboardGroup = function(s, a) {
|
|
2346
2347
|
this._drawHelper = s, this._scene = s._scene, this._options = k(a, w);
|
|
2347
|
-
var
|
|
2348
|
-
this._scene.primitives.add(
|
|
2348
|
+
var E = new g.BillboardCollection();
|
|
2349
|
+
this._scene.primitives.add(E), this._billboards = E, this._orderedBillboards = [];
|
|
2349
2350
|
}, i.BillboardGroup.prototype.createBillboard = function(s, a) {
|
|
2350
|
-
var
|
|
2351
|
+
var E = this._billboards.add({
|
|
2351
2352
|
show: !0,
|
|
2352
2353
|
position: s,
|
|
2353
2354
|
pixelOffset: new g.Cartesian2(this._options.shiftX, this._options.shiftY),
|
|
@@ -2362,17 +2363,17 @@ var be = function() {
|
|
|
2362
2363
|
let h = function(f) {
|
|
2363
2364
|
y.enableRotate = f;
|
|
2364
2365
|
}, C = function() {
|
|
2365
|
-
for (var f = 0, T = d._orderedBillboards.length; f < T && d._orderedBillboards[f] !=
|
|
2366
|
+
for (var f = 0, T = d._orderedBillboards.length; f < T && d._orderedBillboards[f] != E; ++f)
|
|
2366
2367
|
;
|
|
2367
2368
|
return f;
|
|
2368
2369
|
};
|
|
2369
2370
|
var d = this, y = this._scene.screenSpaceCameraController;
|
|
2370
2371
|
if (a.dragHandlers) {
|
|
2371
2372
|
var d = this;
|
|
2372
|
-
$(
|
|
2373
|
+
$(E, "leftDown", function(T) {
|
|
2373
2374
|
function _(M) {
|
|
2374
|
-
|
|
2375
|
-
for (var x = 0, W = d._orderedBillboards.length; x < W && d._orderedBillboards[x] !=
|
|
2375
|
+
E.position = M;
|
|
2376
|
+
for (var x = 0, W = d._orderedBillboards.length; x < W && d._orderedBillboards[x] != E; ++x)
|
|
2376
2377
|
;
|
|
2377
2378
|
a.dragHandlers.onDrag && a.dragHandlers.onDrag(C(), M);
|
|
2378
2379
|
}
|
|
@@ -2388,24 +2389,24 @@ var be = function() {
|
|
|
2388
2389
|
}, g.ScreenSpaceEventType.LEFT_UP), h(!1), a.dragHandlers.onDragStart && a.dragHandlers.onDragStart(C(), d._scene.camera.pickEllipsoid(T, e));
|
|
2389
2390
|
});
|
|
2390
2391
|
}
|
|
2391
|
-
a.onDoubleClick && $(
|
|
2392
|
+
a.onDoubleClick && $(E, "leftDoubleClick", function(f) {
|
|
2392
2393
|
a.onDoubleClick(C());
|
|
2393
|
-
}), a.onClick && $(
|
|
2394
|
+
}), a.onClick && $(E, "leftClick", function(f) {
|
|
2394
2395
|
a.onClick(C());
|
|
2395
|
-
}), a.tooltip && ($(
|
|
2396
|
+
}), a.tooltip && ($(E, "mouseMove", function(f) {
|
|
2396
2397
|
d._drawHelper._tooltip.showAt(f, a.tooltip());
|
|
2397
|
-
}), $(
|
|
2398
|
+
}), $(E, "mouseOut", function(f) {
|
|
2398
2399
|
d._drawHelper._tooltip.setVisible(!1);
|
|
2399
2400
|
}));
|
|
2400
2401
|
}
|
|
2401
|
-
return
|
|
2402
|
-
}, i.BillboardGroup.prototype.insertBillboard = function(s, a,
|
|
2403
|
-
this._orderedBillboards.splice(s, 0, this.createBillboard(a,
|
|
2402
|
+
return E;
|
|
2403
|
+
}, i.BillboardGroup.prototype.insertBillboard = function(s, a, E) {
|
|
2404
|
+
this._orderedBillboards.splice(s, 0, this.createBillboard(a, E));
|
|
2404
2405
|
}, i.BillboardGroup.prototype.addBillboard = function(s, a) {
|
|
2405
2406
|
this._orderedBillboards.push(this.createBillboard(s, a));
|
|
2406
2407
|
}, i.BillboardGroup.prototype.addBillboards = function(s, a) {
|
|
2407
|
-
for (var
|
|
2408
|
-
this.addBillboard(s[
|
|
2408
|
+
for (var E = 0; E < s.length; E++)
|
|
2409
|
+
this.addBillboard(s[E], a);
|
|
2409
2410
|
}, i.BillboardGroup.prototype.updateBillboardsPositions = function(s) {
|
|
2410
2411
|
for (var a = 0; a < s.length; a++)
|
|
2411
2412
|
this.getBillboard(a).position = s[a];
|
|
@@ -2424,13 +2425,13 @@ var be = function() {
|
|
|
2424
2425
|
this.startDrawing(function() {
|
|
2425
2426
|
h.remove(), C.destroy(), y.setVisible(!1);
|
|
2426
2427
|
});
|
|
2427
|
-
var
|
|
2428
|
+
var E = this, d = this._scene;
|
|
2428
2429
|
d.primitives;
|
|
2429
2430
|
var y = this._tooltip, h = new i.BillboardGroup(this, a), C = new g.ScreenSpaceEventHandler(d.canvas);
|
|
2430
2431
|
C.setInputAction(function(f) {
|
|
2431
2432
|
if (f.position != null) {
|
|
2432
2433
|
var T = d.camera.pickEllipsoid(f.position, e);
|
|
2433
|
-
T && (h.addBillboard(T),
|
|
2434
|
+
T && (h.addBillboard(T), E.stopDrawing(), a.callback(T));
|
|
2434
2435
|
}
|
|
2435
2436
|
}, g.ScreenSpaceEventType.LEFT_CLICK), C.setInputAction(function(f) {
|
|
2436
2437
|
var T = f.endPosition;
|
|
@@ -2446,13 +2447,13 @@ var be = function() {
|
|
|
2446
2447
|
var a = k(a, r);
|
|
2447
2448
|
this.startDrawingPolyshape(!0, a);
|
|
2448
2449
|
}, i.prototype.startDrawingPolyline = function(a) {
|
|
2449
|
-
var a = k(a,
|
|
2450
|
+
var a = k(a, v);
|
|
2450
2451
|
this.startDrawingPolyshape(!1, a);
|
|
2451
2452
|
}, i.prototype.startDrawingPolyshape = function(s, a) {
|
|
2452
2453
|
this.startDrawing(function() {
|
|
2453
2454
|
y.remove(f), _.remove(), S.destroy(), h.setVisible(!1), G(d);
|
|
2454
2455
|
});
|
|
2455
|
-
var
|
|
2456
|
+
var E = this, d = this._scene, y = d.primitives, h = this._tooltip, C = s ? 3 : 2, f;
|
|
2456
2457
|
s ? f = new be.PolygonPrimitive(a) : f = new be.PolylinePrimitive(a), f.asynchronous = !1, y.add(f);
|
|
2457
2458
|
var T = [], _ = new i.BillboardGroup(this, w), S = new g.ScreenSpaceEventHandler(d.canvas);
|
|
2458
2459
|
Y(d), S.setInputAction(function(b) {
|
|
@@ -2478,7 +2479,7 @@ var be = function() {
|
|
|
2478
2479
|
if (T.length < C + 2)
|
|
2479
2480
|
return;
|
|
2480
2481
|
var x = d.camera.pickEllipsoid(M, e);
|
|
2481
|
-
x && (G(d),
|
|
2482
|
+
x && (G(d), E.stopDrawing(), typeof a.callback == "function" && (T.length - 1, a.callback(T)));
|
|
2482
2483
|
}
|
|
2483
2484
|
}, g.ScreenSpaceEventType.LEFT_DOUBLE_CLICK);
|
|
2484
2485
|
};
|
|
@@ -2501,7 +2502,7 @@ var be = function() {
|
|
|
2501
2502
|
this.startDrawing(function() {
|
|
2502
2503
|
f != null && y.remove(f), T != null && T.remove(), _.destroy(), h.setVisible(!1), G(d);
|
|
2503
2504
|
});
|
|
2504
|
-
var
|
|
2505
|
+
var E = this, d = this._scene, y = this._scene.primitives, h = this._tooltip, C = null, f = null, T = null, _ = new g.ScreenSpaceEventHandler(d.canvas);
|
|
2505
2506
|
Y(d);
|
|
2506
2507
|
function S(b) {
|
|
2507
2508
|
f == null && (f = new be.ExtentPrimitive({
|
|
@@ -2509,7 +2510,7 @@ var be = function() {
|
|
|
2509
2510
|
material: a.material
|
|
2510
2511
|
}), f.asynchronous = !1, y.add(f)), f.setExtent(b);
|
|
2511
2512
|
var M = H(b);
|
|
2512
|
-
T == null ? (T = new i.BillboardGroup(
|
|
2513
|
+
T == null ? (T = new i.BillboardGroup(E, w), T.addBillboards(M)) : T.updateBillboardsPositions(M);
|
|
2513
2514
|
}
|
|
2514
2515
|
_.setInputAction(function(b) {
|
|
2515
2516
|
if (b.position != null) {
|
|
@@ -2520,7 +2521,7 @@ var be = function() {
|
|
|
2520
2521
|
var x = U(C, C);
|
|
2521
2522
|
S(x);
|
|
2522
2523
|
} else
|
|
2523
|
-
|
|
2524
|
+
E.stopDrawing(), typeof a.callback == "function" && a.callback(U(C, e.cartesianToCartographic(M)));
|
|
2524
2525
|
}
|
|
2525
2526
|
}, g.ScreenSpaceEventType.LEFT_DOWN), _.setInputAction(function(b) {
|
|
2526
2527
|
var M = b.endPosition;
|
|
@@ -2540,7 +2541,7 @@ var be = function() {
|
|
|
2540
2541
|
this.startDrawing(function() {
|
|
2541
2542
|
C != null && y.remove(C), f.remove(), T.destroy(), h.setVisible(!1);
|
|
2542
2543
|
});
|
|
2543
|
-
var
|
|
2544
|
+
var E = this, d = this._scene, y = this._scene.primitives, h = this._tooltip, C = null, f = null, T = new g.ScreenSpaceEventHandler(d.canvas);
|
|
2544
2545
|
T.setInputAction(function(_) {
|
|
2545
2546
|
if (_.position != null) {
|
|
2546
2547
|
var S = d.camera.pickEllipsoid(_.position, e);
|
|
@@ -2549,7 +2550,7 @@ var be = function() {
|
|
|
2549
2550
|
radius: 0,
|
|
2550
2551
|
asynchronous: !1,
|
|
2551
2552
|
material: a.material
|
|
2552
|
-
}), y.add(C), f = new i.BillboardGroup(
|
|
2553
|
+
}), y.add(C), f = new i.BillboardGroup(E, w), f.addBillboards([S])) : (typeof a.callback == "function" && a.callback(C.getCenter(), C.getRadius()), E.stopDrawing()));
|
|
2553
2554
|
}
|
|
2554
2555
|
}, g.ScreenSpaceEventType.LEFT_DOWN), T.setInputAction(function(_) {
|
|
2555
2556
|
var S = _.endPosition;
|
|
@@ -2590,7 +2591,7 @@ var be = function() {
|
|
|
2590
2591
|
function a(d) {
|
|
2591
2592
|
s._scene, !(this._highlighted && this._highlighted == d) && this._editMode !== !0 && (this._highlighted = d, d ? (s.setHighlighted(this), this._strokeColor = this.strokeColor, this.setStrokeStyle(g.Color.fromCssColorString("white"), this.strokeWidth)) : this._strokeColor ? this.setStrokeStyle(this._strokeColor, this.strokeWidth) : this.setStrokeStyle(void 0, void 0));
|
|
2592
2593
|
}
|
|
2593
|
-
function
|
|
2594
|
+
function E(d) {
|
|
2594
2595
|
if (this._editMode != d)
|
|
2595
2596
|
if (s.disableAllHighlights(), d) {
|
|
2596
2597
|
s.setEdited(this);
|
|
@@ -2661,7 +2662,7 @@ var be = function() {
|
|
|
2661
2662
|
be.PolylinePrimitive.prototype.setEditable = function() {
|
|
2662
2663
|
if (!this.setEditMode) {
|
|
2663
2664
|
var d = this;
|
|
2664
|
-
d.isPolygon = !1, d.asynchronous = !1, s.registerEditableShape(d), d.setEditMode =
|
|
2665
|
+
d.isPolygon = !1, d.asynchronous = !1, s.registerEditableShape(d), d.setEditMode = E;
|
|
2665
2666
|
var y = this.width;
|
|
2666
2667
|
d.setHighlighted = function(h) {
|
|
2667
2668
|
this._editMode !== !0 && (h ? (s.setHighlighted(this), this.setWidth(y * 2)) : this.setWidth(y));
|
|
@@ -2671,7 +2672,7 @@ var be = function() {
|
|
|
2671
2672
|
}
|
|
2672
2673
|
}, be.PolygonPrimitive.prototype.setEditable = function() {
|
|
2673
2674
|
var d = this;
|
|
2674
|
-
d.asynchronous = !1, s._scene, s.registerEditableShape(d), d.setEditMode =
|
|
2675
|
+
d.asynchronous = !1, s._scene, s.registerEditableShape(d), d.setEditMode = E, d.setHighlighted = a, te(d), d.setEditMode(!1);
|
|
2675
2676
|
}, be.ExtentPrimitive.prototype.setEditable = function() {
|
|
2676
2677
|
if (!this.setEditMode) {
|
|
2677
2678
|
var d = this, y = s._scene;
|
|
@@ -2814,8 +2815,8 @@ var be = function() {
|
|
|
2814
2815
|
}
|
|
2815
2816
|
};
|
|
2816
2817
|
}, i.DrawHelperWidget = function() {
|
|
2817
|
-
function s(a,
|
|
2818
|
-
if (!g.defined(
|
|
2818
|
+
function s(a, E) {
|
|
2819
|
+
if (!g.defined(E.container))
|
|
2819
2820
|
throw new g.DeveloperError("Container is required");
|
|
2820
2821
|
var d = {
|
|
2821
2822
|
markerIcon: "./assets/img/glyphicons_242_google_maps.png",
|
|
@@ -2824,14 +2825,14 @@ var be = function() {
|
|
|
2824
2825
|
circleIcon: "./assets/img/glyphicons_095_vector_path_circle.png",
|
|
2825
2826
|
extentIcon: "./assets/img/glyphicons_094_vector_path_square.png",
|
|
2826
2827
|
clearIcon: "./assets/img/glyphicons_067_cleaning.png",
|
|
2827
|
-
polylineDrawingOptions:
|
|
2828
|
+
polylineDrawingOptions: v,
|
|
2828
2829
|
polygonDrawingOptions: c,
|
|
2829
2830
|
extentDrawingOptions: u,
|
|
2830
2831
|
circleDrawingOptions: m
|
|
2831
2832
|
};
|
|
2832
|
-
z(
|
|
2833
|
+
z(E, d);
|
|
2833
2834
|
var y = this, h = document.createElement("DIV");
|
|
2834
|
-
h.className = "toolbar",
|
|
2835
|
+
h.className = "toolbar", E.container.appendChild(h);
|
|
2835
2836
|
function C(_, S, b, M) {
|
|
2836
2837
|
var x = document.createElement("DIV");
|
|
2837
2838
|
x.className = "button", x.title = b, h.appendChild(x), x.onclick = M;
|
|
@@ -2841,7 +2842,7 @@ var be = function() {
|
|
|
2841
2842
|
return q.src = S, W.appendChild(q), x;
|
|
2842
2843
|
}
|
|
2843
2844
|
var f = a._scene;
|
|
2844
|
-
C("marker",
|
|
2845
|
+
C("marker", E.markerIcon, "Click to start drawing a 2D marker", function() {
|
|
2845
2846
|
a.startDrawingMarker({
|
|
2846
2847
|
callback: function(_) {
|
|
2847
2848
|
y.executeListeners({
|
|
@@ -2850,7 +2851,7 @@ var be = function() {
|
|
|
2850
2851
|
});
|
|
2851
2852
|
}
|
|
2852
2853
|
});
|
|
2853
|
-
}), C("polyline",
|
|
2854
|
+
}), C("polyline", E.polylineIcon, "Click to start drawing a 2D polyline", function() {
|
|
2854
2855
|
a.startDrawingPolyline({
|
|
2855
2856
|
callback: function(_) {
|
|
2856
2857
|
y.executeListeners({
|
|
@@ -2859,7 +2860,7 @@ var be = function() {
|
|
|
2859
2860
|
});
|
|
2860
2861
|
}
|
|
2861
2862
|
});
|
|
2862
|
-
}), C("polygon",
|
|
2863
|
+
}), C("polygon", E.polygonIcon, "Click to start drawing a 2D polygon", function() {
|
|
2863
2864
|
a.startDrawingPolygon({
|
|
2864
2865
|
callback: function(_) {
|
|
2865
2866
|
y.executeListeners({
|
|
@@ -2868,13 +2869,13 @@ var be = function() {
|
|
|
2868
2869
|
});
|
|
2869
2870
|
}
|
|
2870
2871
|
});
|
|
2871
|
-
}), C("extent",
|
|
2872
|
+
}), C("extent", E.extentIcon, "Click to start drawing an Extent", function() {
|
|
2872
2873
|
a.startDrawingExtent({
|
|
2873
2874
|
callback: function(_) {
|
|
2874
2875
|
y.executeListeners({ name: "extentCreated", extent: _ });
|
|
2875
2876
|
}
|
|
2876
2877
|
});
|
|
2877
|
-
}), C("circle",
|
|
2878
|
+
}), C("circle", E.circleIcon, "Click to start drawing a Circle", function() {
|
|
2878
2879
|
a.startDrawingCircle({
|
|
2879
2880
|
callback: function(_, S) {
|
|
2880
2881
|
y.executeListeners({
|
|
@@ -2886,7 +2887,7 @@ var be = function() {
|
|
|
2886
2887
|
});
|
|
2887
2888
|
});
|
|
2888
2889
|
var T = document.createElement("DIV");
|
|
2889
|
-
T.className = "divider", h.appendChild(T), C("clear",
|
|
2890
|
+
T.className = "divider", h.appendChild(T), C("clear", E.clearIcon, "Remove all primitives", function() {
|
|
2890
2891
|
f.primitives.removeAll();
|
|
2891
2892
|
}), te(this);
|
|
2892
2893
|
}
|
|
@@ -2895,10 +2896,10 @@ var be = function() {
|
|
|
2895
2896
|
return a = k(a, { container: s }), new i.DrawHelperWidget(this, a);
|
|
2896
2897
|
};
|
|
2897
2898
|
function U(s, a) {
|
|
2898
|
-
var
|
|
2899
|
-
|
|
2899
|
+
var E = new g.Rectangle();
|
|
2900
|
+
E.west = Math.min(s.longitude, a.longitude), E.east = Math.max(s.longitude, a.longitude), E.south = Math.min(s.latitude, a.latitude), E.north = Math.max(s.latitude, a.latitude);
|
|
2900
2901
|
var d = g.Math.EPSILON7;
|
|
2901
|
-
return
|
|
2902
|
+
return E.east - E.west < d && (E.east += d * 2), E.north - E.south < d && (E.north += d * 2), E;
|
|
2902
2903
|
}
|
|
2903
2904
|
function j(s, a) {
|
|
2904
2905
|
return s.longitude.toFixed(a || 3) + ", " + s.latitude.toFixed(a || 3);
|
|
@@ -2909,42 +2910,42 @@ var be = function() {
|
|
|
2909
2910
|
if (s.constructor == Date || s.constructor == RegExp || s.constructor == Function || s.constructor == String || s.constructor == Number || s.constructor == Boolean)
|
|
2910
2911
|
return new s.constructor(s);
|
|
2911
2912
|
a = a || new s.constructor();
|
|
2912
|
-
for (var
|
|
2913
|
-
a[
|
|
2913
|
+
for (var E in s)
|
|
2914
|
+
a[E] = typeof a[E] > "u" ? O(s[E], null) : a[E];
|
|
2914
2915
|
return a;
|
|
2915
2916
|
}
|
|
2916
2917
|
function z(s, a) {
|
|
2917
2918
|
s = s || {};
|
|
2918
|
-
var
|
|
2919
|
-
for (
|
|
2920
|
-
s[
|
|
2919
|
+
var E;
|
|
2920
|
+
for (E in a)
|
|
2921
|
+
s[E] === void 0 && (s[E] = O(a[E]));
|
|
2921
2922
|
}
|
|
2922
2923
|
function k(s, a) {
|
|
2923
|
-
var
|
|
2924
|
+
var E = O(s), d;
|
|
2924
2925
|
for (d in a)
|
|
2925
|
-
|
|
2926
|
-
return
|
|
2926
|
+
E[d] === void 0 && (E[d] = O(a[d]));
|
|
2927
|
+
return E;
|
|
2927
2928
|
}
|
|
2928
|
-
function $(s, a,
|
|
2929
|
-
s[a] =
|
|
2929
|
+
function $(s, a, E) {
|
|
2930
|
+
s[a] = E;
|
|
2930
2931
|
}
|
|
2931
2932
|
function te(s) {
|
|
2932
|
-
s._listeners = {}, s.addListener = function(a,
|
|
2933
|
-
return this._listeners[a] = this._listeners[a] || [], this._listeners[a].push(
|
|
2934
|
-
}, s.executeListeners = function(a,
|
|
2933
|
+
s._listeners = {}, s.addListener = function(a, E) {
|
|
2934
|
+
return this._listeners[a] = this._listeners[a] || [], this._listeners[a].push(E), this._listeners[a].length;
|
|
2935
|
+
}, s.executeListeners = function(a, E) {
|
|
2935
2936
|
if (this._listeners[a.name] && this._listeners[a.name].length > 0)
|
|
2936
2937
|
for (var d = 0; d < this._listeners[a.name].length; d++)
|
|
2937
2938
|
this._listeners[a.name][d](a);
|
|
2938
2939
|
else
|
|
2939
|
-
|
|
2940
|
+
E && E(a);
|
|
2940
2941
|
};
|
|
2941
2942
|
}
|
|
2942
2943
|
return i;
|
|
2943
2944
|
}();
|
|
2944
|
-
const
|
|
2945
|
+
const Ao = 2, ko = (e, n) => {
|
|
2945
2946
|
switch (e) {
|
|
2946
2947
|
case le.BOX: {
|
|
2947
|
-
if (n.features.length !==
|
|
2948
|
+
if (n.features.length !== Ao)
|
|
2948
2949
|
throw new Error(`${e} must have 2 points`);
|
|
2949
2950
|
const t = _t(n.features, (o) => {
|
|
2950
2951
|
var r;
|
|
@@ -2968,7 +2969,7 @@ const Oo = 2, Ao = (e, n) => {
|
|
|
2968
2969
|
default:
|
|
2969
2970
|
throw new Error(`${e} type geoJSON still not supported`);
|
|
2970
2971
|
}
|
|
2971
|
-
},
|
|
2972
|
+
}, Ro = (e) => {
|
|
2972
2973
|
const n = e.map((t) => {
|
|
2973
2974
|
const i = He.fromCartesian(t);
|
|
2974
2975
|
return [fe.toDegrees(i.longitude), fe.toDegrees(i.latitude)];
|
|
@@ -2981,22 +2982,22 @@ const Oo = 2, Ao = (e, n) => {
|
|
|
2981
2982
|
coordinates: [n]
|
|
2982
2983
|
}
|
|
2983
2984
|
};
|
|
2984
|
-
},
|
|
2985
|
+
}, No = (e) => {
|
|
2985
2986
|
const n = nn.lineString([
|
|
2986
2987
|
[fe.toDegrees(e.west), fe.toDegrees(e.south)],
|
|
2987
2988
|
[fe.toDegrees(e.east), fe.toDegrees(e.north)]
|
|
2988
2989
|
]);
|
|
2989
2990
|
return on(rn(n));
|
|
2990
|
-
},
|
|
2991
|
+
}, Bo = (e) => {
|
|
2991
2992
|
const n = nn.lineString([
|
|
2992
2993
|
[e.west, e.south],
|
|
2993
2994
|
[e.east, e.north]
|
|
2994
2995
|
]);
|
|
2995
2996
|
return on(rn(n)).geometry.coordinates[0].map((i) => ve.fromRadiansArray(i)[0]);
|
|
2996
2997
|
};
|
|
2997
|
-
class
|
|
2998
|
+
class $a extends lt {
|
|
2998
2999
|
}
|
|
2999
|
-
const
|
|
3000
|
+
const Wa = (e) => {
|
|
3000
3001
|
const { drawState: n, drawingMaterial: t, drawingVertexColor: i, material: o, hollow: r, outlineWidth: c } = e, u = se(), [m, p] = D();
|
|
3001
3002
|
I(() => {
|
|
3002
3003
|
p(
|
|
@@ -3014,7 +3015,7 @@ const za = (e) => {
|
|
|
3014
3015
|
n.handler({
|
|
3015
3016
|
primitive: w,
|
|
3016
3017
|
type: le.POLYGON,
|
|
3017
|
-
geojson:
|
|
3018
|
+
geojson: Ro(w)
|
|
3018
3019
|
});
|
|
3019
3020
|
}
|
|
3020
3021
|
});
|
|
@@ -3025,7 +3026,7 @@ const za = (e) => {
|
|
|
3025
3026
|
n.handler({
|
|
3026
3027
|
primitive: w,
|
|
3027
3028
|
type: le.BOX,
|
|
3028
|
-
geojson:
|
|
3029
|
+
geojson: No(w)
|
|
3029
3030
|
});
|
|
3030
3031
|
}
|
|
3031
3032
|
});
|
|
@@ -3037,22 +3038,22 @@ const za = (e) => {
|
|
|
3037
3038
|
L.stopDrawing(), u.scene.globe.depthTestAgainstTerrain = !0;
|
|
3038
3039
|
}
|
|
3039
3040
|
}, [n, m]);
|
|
3040
|
-
const
|
|
3041
|
+
const v = (L) => {
|
|
3041
3042
|
try {
|
|
3042
|
-
let w = L.coordinates !== void 0 ? L.coordinates :
|
|
3043
|
+
let w = L.coordinates !== void 0 ? L.coordinates : ko(L.type, L.geojson);
|
|
3043
3044
|
if (r !== !0)
|
|
3044
3045
|
switch (L.type) {
|
|
3045
3046
|
case le.BOX:
|
|
3046
|
-
return /* @__PURE__ */ l(
|
|
3047
|
+
return /* @__PURE__ */ l(Io, { coordinates: w, material: o ?? t });
|
|
3047
3048
|
case le.POLYGON:
|
|
3048
|
-
return /* @__PURE__ */ l(
|
|
3049
|
+
return /* @__PURE__ */ l(xo, { hierarchy: new Ji(w), material: o ?? t });
|
|
3049
3050
|
default:
|
|
3050
3051
|
return /* @__PURE__ */ l(oe, {});
|
|
3051
3052
|
}
|
|
3052
3053
|
else {
|
|
3053
3054
|
switch (L.type) {
|
|
3054
3055
|
case le.BOX:
|
|
3055
|
-
w =
|
|
3056
|
+
w = Bo(w);
|
|
3056
3057
|
break;
|
|
3057
3058
|
case le.POLYGON:
|
|
3058
3059
|
w = [...w, w[0]];
|
|
@@ -3060,35 +3061,35 @@ const za = (e) => {
|
|
|
3060
3061
|
default:
|
|
3061
3062
|
return /* @__PURE__ */ l(oe, {});
|
|
3062
3063
|
}
|
|
3063
|
-
return /* @__PURE__ */ l(
|
|
3064
|
+
return /* @__PURE__ */ l(Oo, { clampToGround: !0, positions: w, width: c ?? 1, material: o ?? t });
|
|
3064
3065
|
}
|
|
3065
3066
|
} catch (w) {
|
|
3066
3067
|
return console.error(w), /* @__PURE__ */ l(oe, {});
|
|
3067
3068
|
}
|
|
3068
3069
|
};
|
|
3069
|
-
return /* @__PURE__ */ l(
|
|
3070
|
-
/* @__PURE__ */ N(
|
|
3070
|
+
return /* @__PURE__ */ l(Do, { ...e, children: e.drawings.map((L, w) => /* @__PURE__ */ N(Mo, { name: L.name, children: [
|
|
3071
|
+
/* @__PURE__ */ N(Po, { children: [
|
|
3071
3072
|
/* @__PURE__ */ N("h1", { children: [
|
|
3072
3073
|
"Drawed Entity ",
|
|
3073
3074
|
L.name
|
|
3074
3075
|
] }),
|
|
3075
3076
|
/* @__PURE__ */ l("p", { children: "This is description of drawed entity" })
|
|
3076
3077
|
] }),
|
|
3077
|
-
|
|
3078
|
+
v(L)
|
|
3078
3079
|
] }, L.id)) });
|
|
3079
|
-
},
|
|
3080
|
+
}, Ua = (e) => {
|
|
3080
3081
|
const n = se();
|
|
3081
3082
|
return I(() => {
|
|
3082
|
-
n.extend(
|
|
3083
|
+
n.extend(Qi);
|
|
3083
3084
|
}, [n]), /* @__PURE__ */ l(oe, {});
|
|
3084
|
-
},
|
|
3085
|
+
}, Fo = -25, zt = 2, ja = (e) => {
|
|
3085
3086
|
const n = se(), t = (r, c = ",") => r.slice(r.indexOf(`
|
|
3086
3087
|
`) + 1).split(`
|
|
3087
3088
|
`).map((p) => {
|
|
3088
|
-
const
|
|
3089
|
+
const v = p.split(c);
|
|
3089
3090
|
return {
|
|
3090
|
-
cartographic: He.fromDegrees(parseFloat(
|
|
3091
|
-
cartesian: new Ce(parseFloat(
|
|
3091
|
+
cartographic: He.fromDegrees(parseFloat(v[0]), parseFloat(v[1])),
|
|
3092
|
+
cartesian: new Ce(parseFloat(v[0]), parseFloat(v[1]))
|
|
3092
3093
|
};
|
|
3093
3094
|
}), i = (r) => {
|
|
3094
3095
|
var u;
|
|
@@ -3096,11 +3097,11 @@ const za = (e) => {
|
|
|
3096
3097
|
const c = new FileReader();
|
|
3097
3098
|
c.onload = (m) => {
|
|
3098
3099
|
var w;
|
|
3099
|
-
const p = (w = m.target) == null ? void 0 : w.result,
|
|
3100
|
+
const p = (w = m.target) == null ? void 0 : w.result, v = t(p), L = en.WGS84;
|
|
3100
3101
|
console.log(`Loaded CSV content:
|
|
3101
|
-
`, p),
|
|
3102
|
+
`, p), er(
|
|
3102
3103
|
n.terrainProvider,
|
|
3103
|
-
|
|
3104
|
+
v.map((P) => P.cartographic)
|
|
3104
3105
|
).then(
|
|
3105
3106
|
(P) => {
|
|
3106
3107
|
console.log(P), P = P.slice(0, P.length - 1), n.scene.globe.depthTestAgainstTerrain = !0, n.entities.suspendEvents(), n.entities.removeAll(), P.forEach((A, H) => {
|
|
@@ -3120,15 +3121,15 @@ const za = (e) => {
|
|
|
3120
3121
|
outlineWidth: 4,
|
|
3121
3122
|
outlineColor: lt.BLACK,
|
|
3122
3123
|
verticalOrigin: at.BOTTOM,
|
|
3123
|
-
pixelOffset: new Ce(0,
|
|
3124
|
+
pixelOffset: new Ce(0, Fo)
|
|
3124
3125
|
},
|
|
3125
3126
|
description: `
|
|
3126
|
-
Long: ${
|
|
3127
|
-
Lat: ${
|
|
3127
|
+
Long: ${v[H].cartesian.x} </br>
|
|
3128
|
+
Lat: ${v[H].cartesian.y} </br>
|
|
3128
3129
|
Height(m): <span style="font-weight: 500">${A.height}</span>
|
|
3129
3130
|
`
|
|
3130
3131
|
});
|
|
3131
|
-
}), n.entities.resumeEvents(), r.target.files !== null && (o(`terranian_heights_${r.target.files[0].name}`,
|
|
3132
|
+
}), n.entities.resumeEvents(), r.target.files !== null && (o(`terranian_heights_${r.target.files[0].name}`, v), r.target.value = ""), console.log("Pinned point count is ", n.entities.values.length);
|
|
3132
3133
|
},
|
|
3133
3134
|
(P) => {
|
|
3134
3135
|
console.error("ERROR while sampleTerrainMostDetailed:", P);
|
|
@@ -3146,8 +3147,8 @@ const za = (e) => {
|
|
|
3146
3147
|
c.forEach((w) => {
|
|
3147
3148
|
m += u(w);
|
|
3148
3149
|
});
|
|
3149
|
-
const p = new Blob([m], { type: "text/csv;charset=utf-8;" }),
|
|
3150
|
-
|
|
3150
|
+
const p = new Blob([m], { type: "text/csv;charset=utf-8;" }), v = document.createElement("a"), L = URL.createObjectURL(p);
|
|
3151
|
+
v.setAttribute("href", L), v.setAttribute("download", r), v.style.visibility = "hidden", document.body.appendChild(v), v.click(), document.body.removeChild(v);
|
|
3151
3152
|
};
|
|
3152
3153
|
return /* @__PURE__ */ l(oe, { children: /* @__PURE__ */ l(
|
|
3153
3154
|
"input",
|
|
@@ -3161,7 +3162,7 @@ const za = (e) => {
|
|
|
3161
3162
|
}
|
|
3162
3163
|
) });
|
|
3163
3164
|
};
|
|
3164
|
-
const
|
|
3165
|
+
const Ho = 38, Go = 40, Vo = 13, zo = 14, $o = 27, Wo = 9, Uo = 10, jo = 100, Ko = (e) => {
|
|
3165
3166
|
const [n, t] = D(e.defaultValue ?? ""), [i, o] = D(!1), [r, c] = D({
|
|
3166
3167
|
helperVisible: !1,
|
|
3167
3168
|
left: 0,
|
|
@@ -3205,7 +3206,7 @@ const Fo = 38, Ho = 40, Go = 13, Vo = 14, zo = 27, $o = 9, Wo = 10, Uo = 100, jo
|
|
|
3205
3206
|
let ae = -1;
|
|
3206
3207
|
if (Q > 0) {
|
|
3207
3208
|
const ce = V ? ne : ne - Q + 1;
|
|
3208
|
-
if (ce < 0 || (
|
|
3209
|
+
if (ce < 0 || (v(R, y, ce) && (ae = ce + Q), !ue && ae < 0))
|
|
3209
3210
|
break;
|
|
3210
3211
|
} else {
|
|
3211
3212
|
if (ue && ne > 0)
|
|
@@ -3236,8 +3237,8 @@ const Fo = 38, Ho = 40, Go = 13, Vo = 14, zo = 27, $o = 9, Wo = 10, Uo = 100, jo
|
|
|
3236
3237
|
triggerStr: f,
|
|
3237
3238
|
triggerMatch: f.match(h),
|
|
3238
3239
|
triggerLength: f.length
|
|
3239
|
-
})),
|
|
3240
|
-
const { onChange: h, options: C, spaceRemovers: f, spacer: T, value: _ } = e, S = n, b = y.target.value, M =
|
|
3240
|
+
})), v = (y, h, C) => !y || !y.length || h.substr(C, y.length) === y, L = (y) => {
|
|
3241
|
+
const { onChange: h, options: C, spaceRemovers: f, spacer: T, value: _ } = e, S = n, b = y.target.value, M = sr(w(y.target)).end;
|
|
3241
3242
|
if (b.length || G({
|
|
3242
3243
|
...r,
|
|
3243
3244
|
helperVisible: !1
|
|
@@ -3277,26 +3278,26 @@ const Fo = 38, Ho = 40, Go = 13, Vo = 14, zo = 27, $o = 9, Wo = 10, Uo = 100, jo
|
|
|
3277
3278
|
const { helperVisible: h, options: C, selection: f } = r, { onKeyDown: T, passThroughEnter: _ } = e;
|
|
3278
3279
|
if (h)
|
|
3279
3280
|
switch (y.keyCode) {
|
|
3280
|
-
case
|
|
3281
|
+
case $o:
|
|
3281
3282
|
y.preventDefault(), j();
|
|
3282
3283
|
break;
|
|
3283
|
-
case
|
|
3284
|
+
case Ho:
|
|
3284
3285
|
y.preventDefault(), G({
|
|
3285
3286
|
...r,
|
|
3286
3287
|
selection: (C.length + f - 1) % C.length
|
|
3287
3288
|
});
|
|
3288
3289
|
break;
|
|
3289
|
-
case
|
|
3290
|
+
case Go:
|
|
3290
3291
|
y.preventDefault(), G({
|
|
3291
3292
|
...r,
|
|
3292
3293
|
selection: (f + 1) % C.length
|
|
3293
3294
|
});
|
|
3294
3295
|
break;
|
|
3296
|
+
case zo:
|
|
3295
3297
|
case Vo:
|
|
3296
|
-
case Go:
|
|
3297
3298
|
_ || y.preventDefault(), H(f);
|
|
3298
3299
|
break;
|
|
3299
|
-
case
|
|
3300
|
+
case Wo:
|
|
3300
3301
|
H(f);
|
|
3301
3302
|
break;
|
|
3302
3303
|
default:
|
|
@@ -3319,7 +3320,7 @@ const Fo = 38, Ho = 40, Go = 13, Vo = 14, zo = 27, $o = 9, Wo = 10, Uo = 100, jo
|
|
|
3319
3320
|
caret: y
|
|
3320
3321
|
});
|
|
3321
3322
|
const h = w(u.current);
|
|
3322
|
-
|
|
3323
|
+
ar(h, y);
|
|
3323
3324
|
}, G = (y) => {
|
|
3324
3325
|
setTimeout(() => {
|
|
3325
3326
|
c({
|
|
@@ -3335,9 +3336,9 @@ const Fo = 38, Ho = 40, Go = 13, Vo = 14, zo = 27, $o = 9, Wo = 10, Uo = 100, jo
|
|
|
3335
3336
|
return;
|
|
3336
3337
|
const _ = f.getBoundingClientRect(), S = m(y, h, C);
|
|
3337
3338
|
if (Object.keys(S).length > 0 && T !== null) {
|
|
3338
|
-
const b =
|
|
3339
|
+
const b = or(T, h), M = T.getBoundingClientRect(), { minChars: x, onRequestOptions: W, requestOnlyIfNoOptions: q, mode: R } = e;
|
|
3339
3340
|
let V, Q, ne, ye = "unset";
|
|
3340
|
-
R === "assist" ? (V = f === T ? b.top + T.offsetTop : b.top + _.top, Q = Math.min(b.left + T.offsetLeft -
|
|
3341
|
+
R === "assist" ? (V = f === T ? b.top + T.offsetTop : b.top + _.top, Q = Math.min(b.left + T.offsetLeft - Uo, T.offsetLeft + M.width - jo)) : (V = _.top + f.offsetHeight, Q = f.offsetLeft, ne = f.offsetLeft - f.offsetWidth, ye = `${_.width}px`), S.matchLength >= x && (S.options.length > 1 || S.options.length === 1 && S.options[0].length !== S.matchLength) ? G({
|
|
3341
3342
|
...r,
|
|
3342
3343
|
value: y,
|
|
3343
3344
|
helperVisible: !0,
|
|
@@ -3394,7 +3395,7 @@ const Fo = 38, Ho = 40, Go = 13, Vo = 14, zo = 27, $o = 9, Wo = 10, Uo = 100, jo
|
|
|
3394
3395
|
);
|
|
3395
3396
|
}), ye = V === "ltr" ? { left: h + q } : { right: C + q };
|
|
3396
3397
|
return /* @__PURE__ */ l("ul", { className: "react-autocomplete-input", style: { ...ye, top: b + R, width: x }, children: ne });
|
|
3397
|
-
}, { Component: z, ComponentProps: k, defaultValue: $, disabled: te, onBlur: s, value: a, ...
|
|
3398
|
+
}, { Component: z, ComponentProps: k, defaultValue: $, disabled: te, onBlur: s, value: a, ...E } = e, d = Object.assign({}, E);
|
|
3398
3399
|
return Object.keys(e).forEach((y) => {
|
|
3399
3400
|
delete d[y];
|
|
3400
3401
|
}), /* @__PURE__ */ N(oe, { children: [
|
|
@@ -3410,7 +3411,7 @@ const Fo = 38, Ho = 40, Go = 13, Vo = 14, zo = 27, $o = 9, Wo = 10, Uo = 100, jo
|
|
|
3410
3411
|
}),
|
|
3411
3412
|
O()
|
|
3412
3413
|
] });
|
|
3413
|
-
},
|
|
3414
|
+
}, qo = {
|
|
3414
3415
|
Component: /* @__PURE__ */ l("textarea", {}),
|
|
3415
3416
|
ComponentProps: {},
|
|
3416
3417
|
defaultValue: void 0,
|
|
@@ -3441,9 +3442,9 @@ const Fo = 38, Ho = 40, Go = 13, Vo = 14, zo = 27, $o = 9, Wo = 10, Uo = 100, jo
|
|
|
3441
3442
|
passThroughEnter: !1,
|
|
3442
3443
|
mode: "assist",
|
|
3443
3444
|
direction: "ltr"
|
|
3444
|
-
},
|
|
3445
|
+
}, Ka = (e) => {
|
|
3445
3446
|
let n = {
|
|
3446
|
-
...
|
|
3447
|
+
...qo,
|
|
3447
3448
|
...e
|
|
3448
3449
|
};
|
|
3449
3450
|
return e.mode === "autocomplete" && (n = {
|
|
@@ -3451,7 +3452,7 @@ const Fo = 38, Ho = 40, Go = 13, Vo = 14, zo = 27, $o = 9, Wo = 10, Uo = 100, jo
|
|
|
3451
3452
|
trigger: "",
|
|
3452
3453
|
regex: ".",
|
|
3453
3454
|
spacer: ""
|
|
3454
|
-
}), /* @__PURE__ */ l(
|
|
3455
|
+
}), /* @__PURE__ */ l(Ko, { ...n });
|
|
3455
3456
|
}, yt = {
|
|
3456
3457
|
formatFileModDate: (e, n) => {
|
|
3457
3458
|
const t = sn.getModDate(n);
|
|
@@ -3463,16 +3464,16 @@ const Fo = 38, Ho = 40, Go = 13, Vo = 14, zo = 27, $o = 9, Wo = 10, Uo = 100, jo
|
|
|
3463
3464
|
formatFileSize: (e, n) => {
|
|
3464
3465
|
if (!n || typeof n.size != "number")
|
|
3465
3466
|
return null;
|
|
3466
|
-
const t = n.size, i =
|
|
3467
|
+
const t = n.size, i = ur(t, {
|
|
3467
3468
|
bits: !1,
|
|
3468
3469
|
output: "object"
|
|
3469
3470
|
});
|
|
3470
3471
|
return i.symbol === "B" ? `${Math.round(i.value / 10) / 100} KB` : i.symbol === "KB" ? `${Math.round(i.value)} ${i.symbol}` : `${i.value} ${i.symbol.toUpperCase()}`;
|
|
3471
3472
|
}
|
|
3472
|
-
},
|
|
3473
|
+
}, Yo = {
|
|
3473
3474
|
locale: he.EN,
|
|
3474
3475
|
formatters: { ...yt }
|
|
3475
|
-
},
|
|
3476
|
+
}, Xo = {
|
|
3476
3477
|
locale: he.RU,
|
|
3477
3478
|
formatters: { ...yt },
|
|
3478
3479
|
messages: {
|
|
@@ -3512,7 +3513,7 @@ const Fo = 38, Ho = 40, Go = 13, Vo = 14, zo = 27, $o = 9, Wo = 10, Uo = 100, jo
|
|
|
3512
3513
|
[`chonky.actions.${F.ToggleHiddenFiles.id}.button.name`]: "Скрытые файлы",
|
|
3513
3514
|
[`chonky.actions.${F.ToggleShowFoldersFirst.id}.button.name`]: "Папки в начале"
|
|
3514
3515
|
}
|
|
3515
|
-
},
|
|
3516
|
+
}, Zo = {
|
|
3516
3517
|
locale: he.HE,
|
|
3517
3518
|
formatters: { ...yt },
|
|
3518
3519
|
messages: {
|
|
@@ -3551,24 +3552,24 @@ const Fo = 38, Ho = 40, Go = 13, Vo = 14, zo = 27, $o = 9, Wo = 10, Uo = 100, jo
|
|
|
3551
3552
|
[`chonky.actions.${F.ToggleHiddenFiles.id}.button.name`]: "קבצים נסתרים",
|
|
3552
3553
|
[`chonky.actions.${F.ToggleShowFoldersFirst.id}.button.name`]: "הצגת תיקיות בראש הרשימה"
|
|
3553
3554
|
}
|
|
3554
|
-
},
|
|
3555
|
-
[he.EN]:
|
|
3556
|
-
[he.RU]:
|
|
3557
|
-
[he.HE]:
|
|
3555
|
+
}, Jo = {
|
|
3556
|
+
[he.EN]: Yo,
|
|
3557
|
+
[he.RU]: Xo,
|
|
3558
|
+
[he.HE]: Zo
|
|
3558
3559
|
};
|
|
3559
|
-
class
|
|
3560
|
+
class qa extends sn {
|
|
3560
3561
|
}
|
|
3561
|
-
const
|
|
3562
|
+
const Ya = F, Qo = {
|
|
3562
3563
|
listView: F.EnableListView.id,
|
|
3563
3564
|
gridView: F.EnableGridView.id
|
|
3564
3565
|
};
|
|
3565
|
-
|
|
3566
|
-
const
|
|
3566
|
+
lr({ iconComponent: dr });
|
|
3567
|
+
const Xa = Ee.memo(
|
|
3567
3568
|
Ee.forwardRef(
|
|
3568
3569
|
({
|
|
3569
3570
|
theme: e,
|
|
3570
3571
|
styles: n = { height: "100%", minWidth: "600px" },
|
|
3571
|
-
defaultView: t =
|
|
3572
|
+
defaultView: t = Qo.listView,
|
|
3572
3573
|
readOnlyMode: i = !1,
|
|
3573
3574
|
locale: o,
|
|
3574
3575
|
files: r,
|
|
@@ -3576,7 +3577,7 @@ const qa = Ee.memo(
|
|
|
3576
3577
|
onFileAction: u,
|
|
3577
3578
|
...m
|
|
3578
3579
|
}, p) => {
|
|
3579
|
-
const
|
|
3580
|
+
const v = pe(
|
|
3580
3581
|
($) => null,
|
|
3581
3582
|
// file.thumbnailUrl ? `https://chonky.io${file.thumbnailUrl}` : null,
|
|
3582
3583
|
[]
|
|
@@ -3596,7 +3597,7 @@ const qa = Ee.memo(
|
|
|
3596
3597
|
return s = s.startsWith("--") ? s : `--fp-theme-${L(s)}`, te[s] = a, te;
|
|
3597
3598
|
}, {}) : {}, [e]), [P, A] = D(!1), [H, Y] = D(), [G, U] = D(!1), [j, O] = D(), [z, k] = D();
|
|
3598
3599
|
return I(() => {
|
|
3599
|
-
e && A(!0), Y(t), i ? U(!0) : O([F.CreateFolder, F.DeleteFiles]), o !== void 0 && k(
|
|
3600
|
+
e && A(!0), Y(t), i ? U(!0) : O([F.CreateFolder, F.DeleteFiles]), o !== void 0 && k(Jo[o]);
|
|
3600
3601
|
}, [e, t, i, o]), /* @__PURE__ */ l(
|
|
3601
3602
|
de,
|
|
3602
3603
|
{
|
|
@@ -3605,7 +3606,7 @@ const qa = Ee.memo(
|
|
|
3605
3606
|
...w
|
|
3606
3607
|
},
|
|
3607
3608
|
children: /* @__PURE__ */ l(
|
|
3608
|
-
|
|
3609
|
+
cr,
|
|
3609
3610
|
{
|
|
3610
3611
|
ref: p,
|
|
3611
3612
|
files: r ?? [],
|
|
@@ -3613,7 +3614,7 @@ const qa = Ee.memo(
|
|
|
3613
3614
|
onFileAction: ($) => {
|
|
3614
3615
|
typeof u == "function" && u($);
|
|
3615
3616
|
},
|
|
3616
|
-
thumbnailGenerator:
|
|
3617
|
+
thumbnailGenerator: v,
|
|
3617
3618
|
defaultFileViewActionId: H,
|
|
3618
3619
|
disableDragAndDrop: G,
|
|
3619
3620
|
fileActions: j,
|
|
@@ -3628,99 +3629,100 @@ const qa = Ee.memo(
|
|
|
3628
3629
|
)
|
|
3629
3630
|
);
|
|
3630
3631
|
export {
|
|
3631
|
-
|
|
3632
|
+
Ka as Autocomplete,
|
|
3632
3633
|
dt as BboxCorner,
|
|
3633
3634
|
de as Box,
|
|
3634
3635
|
ht as COORDINATES_MERCATOR_FRACTION_DIGITS,
|
|
3635
3636
|
ut as COORDINATES_WGS_FRACTION_DIGITS,
|
|
3636
|
-
|
|
3637
|
-
|
|
3638
|
-
|
|
3639
|
-
|
|
3640
|
-
|
|
3641
|
-
|
|
3642
|
-
|
|
3643
|
-
|
|
3644
|
-
|
|
3645
|
-
|
|
3646
|
-
|
|
3647
|
-
|
|
3648
|
-
|
|
3649
|
-
|
|
3650
|
-
|
|
3651
|
-
|
|
3652
|
-
|
|
3653
|
-
|
|
3637
|
+
Na as Cesium3DTileset,
|
|
3638
|
+
La as CesiumBoundingSphere,
|
|
3639
|
+
Ta as CesiumCartesian2,
|
|
3640
|
+
ba as CesiumCartesian3,
|
|
3641
|
+
to as CesiumCartographic,
|
|
3642
|
+
Ia as CesiumCesiumTerrainProvider,
|
|
3643
|
+
$a as CesiumColor,
|
|
3644
|
+
wa as CesiumConstantPositionProperty,
|
|
3645
|
+
Ca as CesiumConstantProperty,
|
|
3646
|
+
Do as CesiumCustomDataSource,
|
|
3647
|
+
Wa as CesiumDrawingsDataSource,
|
|
3648
|
+
Sa as CesiumEllipsoid,
|
|
3649
|
+
xa as CesiumEllipsoidTerrainProvider,
|
|
3650
|
+
Mo as CesiumEntity,
|
|
3651
|
+
za as CesiumEntityDescription,
|
|
3652
|
+
Po as CesiumEntityStaticDescription,
|
|
3653
|
+
_a as CesiumGeographicTilingScheme,
|
|
3654
|
+
Ba as CesiumGeojsonLayer,
|
|
3655
|
+
Oa as CesiumHorizontalOrigin,
|
|
3654
3656
|
Xe as CesiumImageryLayer,
|
|
3655
|
-
|
|
3656
|
-
|
|
3657
|
-
|
|
3658
|
-
|
|
3659
|
-
|
|
3660
|
-
|
|
3661
|
-
|
|
3662
|
-
|
|
3663
|
-
|
|
3657
|
+
Aa as CesiumLabelStyle,
|
|
3658
|
+
Ra as CesiumMap,
|
|
3659
|
+
tl as CesiumMath,
|
|
3660
|
+
Va as CesiumOSMLayer,
|
|
3661
|
+
xo as CesiumPolygonGraphics,
|
|
3662
|
+
Ea as CesiumPolylineDashMaterialProperty,
|
|
3663
|
+
Ma as CesiumRectangle,
|
|
3664
|
+
Io as CesiumRectangleGraphics,
|
|
3665
|
+
Pa as CesiumResource,
|
|
3664
3666
|
re as CesiumSceneMode,
|
|
3665
|
-
|
|
3666
|
-
|
|
3667
|
-
|
|
3668
|
-
|
|
3669
|
-
|
|
3670
|
-
|
|
3671
|
-
|
|
3672
|
-
|
|
3673
|
-
|
|
3674
|
-
|
|
3675
|
-
|
|
3667
|
+
Da as CesiumVerticalOrigin,
|
|
3668
|
+
ka as CesiumViewer,
|
|
3669
|
+
Fa as CesiumWMSLayer,
|
|
3670
|
+
Ha as CesiumWMTSLayer,
|
|
3671
|
+
Ga as CesiumXYZLayer,
|
|
3672
|
+
no as CoordinatesTrackerTool,
|
|
3673
|
+
ya as CssBaseline,
|
|
3674
|
+
na as DateRangePicker,
|
|
3675
|
+
ia as DateTimePicker,
|
|
3676
|
+
fr as DateTimeRangePicker,
|
|
3677
|
+
ea as DateTimeRangePickerFormControl,
|
|
3676
3678
|
be as DrawHelper,
|
|
3677
|
-
|
|
3679
|
+
Fr as DrawInteraction,
|
|
3678
3680
|
le as DrawType,
|
|
3679
|
-
|
|
3680
|
-
|
|
3681
|
-
|
|
3682
|
-
|
|
3683
|
-
|
|
3684
|
-
|
|
3685
|
-
|
|
3686
|
-
|
|
3687
|
-
|
|
3688
|
-
|
|
3689
|
-
|
|
3681
|
+
qa as FileHelper,
|
|
3682
|
+
Xa as FilePicker,
|
|
3683
|
+
Ya as FilePickerActions,
|
|
3684
|
+
Qo as FilePickerViewObj,
|
|
3685
|
+
Nr as GeoJSONFeature,
|
|
3686
|
+
Ua as InspectorTool,
|
|
3687
|
+
ga as Legend,
|
|
3688
|
+
pa as MVTSource,
|
|
3689
|
+
Mr as Map,
|
|
3690
|
+
ra as MapFilterContainer,
|
|
3691
|
+
yr as Popover,
|
|
3690
3692
|
ge as Proj,
|
|
3691
|
-
|
|
3692
|
-
|
|
3693
|
-
|
|
3693
|
+
ro as ScaleTrackerTool,
|
|
3694
|
+
va as ScopedCssBaseline,
|
|
3695
|
+
fa as SmartTable,
|
|
3694
3696
|
he as SupportedLocales,
|
|
3695
|
-
|
|
3696
|
-
|
|
3697
|
-
|
|
3698
|
-
|
|
3699
|
-
|
|
3700
|
-
|
|
3701
|
-
|
|
3702
|
-
|
|
3703
|
-
|
|
3704
|
-
|
|
3705
|
-
|
|
3706
|
-
|
|
3697
|
+
ja as TerrainianHeightTool,
|
|
3698
|
+
xr as TileLayer,
|
|
3699
|
+
Br as TileOsm,
|
|
3700
|
+
ca as TileWMS,
|
|
3701
|
+
aa as TileWMTS,
|
|
3702
|
+
ua as TileXYZ,
|
|
3703
|
+
ta as TimeRangeInput,
|
|
3704
|
+
Or as VectorLayer,
|
|
3705
|
+
Rr as VectorSource,
|
|
3706
|
+
oa as VectorTileLayer,
|
|
3707
|
+
so as ZoomLevelTrackerTool,
|
|
3708
|
+
nl as cesiumSampleTerrainMostDetailed,
|
|
3707
3709
|
yt as defaultFormatters,
|
|
3708
|
-
|
|
3709
|
-
|
|
3710
|
-
|
|
3711
|
-
|
|
3710
|
+
ma as getMVTOptions,
|
|
3711
|
+
la as getWMSOptions,
|
|
3712
|
+
sa as getWMTSOptions,
|
|
3713
|
+
da as getXYZOptions,
|
|
3712
3714
|
Qe as isDateRange,
|
|
3713
|
-
|
|
3714
|
-
|
|
3715
|
-
|
|
3716
|
-
|
|
3715
|
+
hr as mapMcToMuiTheme,
|
|
3716
|
+
Ro as polygonToGeoJSON,
|
|
3717
|
+
No as rectangleToGeoJSON,
|
|
3718
|
+
Bo as rectangleToPositions,
|
|
3717
3719
|
se as useCesiumMap,
|
|
3718
3720
|
ke as useMap,
|
|
3719
3721
|
an as useMappedMuiTheme,
|
|
3720
|
-
|
|
3722
|
+
Qa as useMediaQuery,
|
|
3721
3723
|
qe as useTileLayer,
|
|
3722
|
-
|
|
3723
|
-
|
|
3724
|
-
|
|
3725
|
-
|
|
3724
|
+
Dr as useVectorLayer,
|
|
3725
|
+
kr as useVectorSource,
|
|
3726
|
+
$r as useVectorTileLayer,
|
|
3727
|
+
ha as useVectorTileSource
|
|
3726
3728
|
};
|