@map-colonies/react-components 4.6.0 → 4.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/@map-colonies/react-components.es.js +1411 -1352
- package/dist/@map-colonies/react-components.umd.js +8 -8
- package/dist/cesium-map/map.d.ts +1 -0
- package/dist/cesium-map/zoom/zoomButtons.css +33 -0
- package/dist/cesium-map/zoom/zoomButtons.d.ts +2 -0
- package/dist/ol-map/feature.d.ts +2 -0
- package/dist/ol-map/index.d.ts +1 -0
- package/dist/ol-map/legend/index.d.ts +1 -0
- package/dist/ol-map/legend/legend.d.ts +12 -0
- package/package.json +4 -2
|
@@ -1,63 +1,66 @@
|
|
|
1
|
-
(function(){"use strict";try{if(typeof document<"u"){var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var X = (e, n, t) => (
|
|
5
|
-
import { jsx as l, jsxs as N, Fragment as
|
|
6
|
-
import * as
|
|
7
|
-
import Ee, { useState as
|
|
8
|
-
import { isValid as
|
|
9
|
-
import { he as
|
|
10
|
-
import { MuiPickersUtilsProvider as
|
|
11
|
-
import
|
|
12
|
-
import { createTheme as
|
|
13
|
-
import { Box as
|
|
14
|
-
import { useTheme as
|
|
15
|
-
import { default as
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import { Map as
|
|
1
|
+
(function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode('body[dir=rtl] .drpOpener .mdc-text-field{direction:ltr}body[dir=rtl] .drpContainer .MuiInputLabel-formControl{right:0px;left:unset}body[dir=rtl] .drpContainer .MuiInputBase-input{direction:ltr;text-align:end}.map{height:100%;width:100%}.ol-mouse-position{top:auto!important;right:auto!important;bottom:8px;left:8px;background-color:#fff;opacity:.7;font-size:12px;padding:2px;border-radius:2px}.ol-zoom{top:2.5em;right:.5em;left:unset}.trackerPosition{background-color:var(--mdc-theme-surface);z-index:2000;padding:2px;border-radius:2px;font-size:12px;height:24px;text-align:center;line-height:20px;white-space:nowrap}.scalePosition{background-color:var(--mdc-theme-surface);padding:1px;border-radius:2px;font-size:12px;width:110px}.scale-tracker-label{text-align:center}.scale-tracker-bar{background:var(--mdc-theme-on-surface);margin:0 auto;display:block;transition:all .5s ease-in-out}.zoomLevel{z-index:2000;background-color:var(--mdc-theme-surface);border-radius:2px;padding:2px;height:24px}.zoomLevelValue{margin:2px;font-size:14px;line-height:10px;text-align:center}.zoomLevelLabel{font-size:8px;line-height:8px}.mapViewIcon{fill:#fff;width:40px;height:40px;background:#303336;border:1px solid #444;border-radius:4px}.mapViewIcon:hover{background:#48b;border-color:#aef}.mapViewCurrent{fill:#aef;border:1px solid #aef;border-radius:4px}.mapSelector{width:260px;list-style:none;padding-left:0;display:flex;flex-wrap:wrap;grid-gap:4px;min-height:140px;margin-block-start:0px;padding-inline-start:0px}.mapContainerSelected{border:blueviolet 2px solid!important;border-radius:2px}.mapContainer:hover{border:tomato 2px solid;border-radius:2px}.mapContainerImg{width:100%;height:100%}.mapLabel{font-size:12px}.mapLabel:before{content:"\\a0"}.mapScenesContainer{display:flex;gap:8px}.settingsIconContainer,.mapLegendToggleContainer{fill:#fff;width:40px;height:40px;background:#303336;border:1px solid #444;border-radius:4px}.settingsIconContainer:hover,.mapLegendToggleContainer:hover{background:#48b;border-color:#aef}.baseMapsContainer{margin-top:12px;min-height:58%}.settingsDialogPortal{transform:translateZ(0);height:calc(100vh - 220px);max-height:460px;width:280px;position:absolute;top:40px;right:80px}.settingsDialogPortal .mdc-dialog__container{align-items:unset}.settingsDialogPortal .mdc-dialog .mdc-dialog__surface{max-height:unset}body[dir=rtl] .settingsDialogPortal{left:80px;right:unset}.sectionLabel{margin-block-end:.5em}.zoom-buttons-container{display:flex;flex-direction:column;gap:2px;--full-screen-button-offset: 8px;--full-screen-button-size: 29px;--full-screen-button-bottom: 8px;position:absolute;bottom:calc(var(--full-screen-button-offset) + var(--full-screen-button-size) + var(--full-screen-button-bottom));right:var(--full-screen-button-offset);left:unset}body[dir=rtl] .zoom-buttons-container{left:var(--full-screen-button-offset);right:unset}.zoom-button{cursor:pointer;width:29px;height:29px;text-align:center;background:#303336;border:1px solid #444;border-radius:4px;box-sizing:border-box}.zoom-button:hover{background:#48b;border-color:#aef}.mapLegendSidebarContainer{width:340px;height:100%;position:relative;overflow-y:auto;overflow-x:hidden;font-size:16px}.mapLegendSidebarContainer.mdc-drawer--animate{transform:translate(0)!important;transition:none!important}.mapLegendSidebarContainer.mdc-drawer--dismissible{position:relative}div.MuiPaper-root{transition:none!important}.mapLegendCloseBtn{position:absolute;top:0;right:0;cursor:pointer;width:50px;height:50px;padding:20px;font-size:24px}body[dir=rtl] .mapLegendCloseBtn{right:unset;left:0}.mapLegendToggleContainer{display:flex;align-items:center;justify-content:center}.mapLegendIcon{width:2rem;height:2rem;transform:translate(8%,8%)}.sidebarHeaderContainer{text-align:center;margin-top:40px}.sidebarTitle{font-size:1.5rem;font-weight:700}.mapLegend{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:10px 14px}.layerNameContainer{width:90%;display:flex;justify-content:center;align-items:center}.layerName{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.legendImg{width:90%;height:150px;border:1px solid black;border-radius:5px;object-fit:cover;cursor:pointer}.legendActionsContainer{display:flex;flex-direction:row;align-self:center}.legendAction:not(:last-child):after{content:"|";margin:0 4px}.mapLegendsList{display:flex;flex-direction:column;padding:20px 0;width:100%;height:90%}.legendAction{text-decoration:underline;cursor:pointer;font-size:1.1rem;transition:all .1s ease-in-out;width:max-content}.legendAction:hover{filter:brightness(1.2)}.noLegendsContainer{width:100%;height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center}.noLegendsMsg{text-align:center}.cesium-widget-credits{display:none!important}.cesium-viewer-fullscreenContainer{bottom:8px;right:8px;left:unset}body[dir=rtl] .cesium-viewer-fullscreenContainer{left:8px;right:unset}body[dir=rtl] .cesium-viewer-toolbar{left:5px;right:unset}.cesium-button.cesium-fullscreenButton{border-radius:14%}.toolsContainer{color:var(--mdc-theme-on-surface);display:flex;gap:8px;z-index:2000;position:absolute;bottom:12px;right:40px;opacity:.7}body[dir=rtl] .toolsContainer{left:40px;right:unset}.sideToolsContainer{display:flex;flex-direction:row;gap:8px;z-index:2000;position:absolute;top:12px;right:40px}body[dir=rtl] .sideToolsContainer{left:40px;right:unset}.viewer{display:flex;flex-direction:row}.viewer .mdc-linear-progress__bar-inner{border-top-width:10px}.compass.rtl{right:unset;left:20px}.compass.ltr{left:unset;right:20px}.twipsy{display:block;position:absolute;visibility:visible;max-width:200px;min-width:100px;padding:5px;font-size:11px;z-index:1000;opacity:.8;-khtml-opacity:.8;-moz-opacity:.8;filter:alpha(opacity=80)}.twipsy.left .twipsy-arrow{top:50%;right:0;margin-top:-5px;border-top:5px solid transparent;border-bottom:5px solid transparent;border-left:5px solid #000000}.twipsy.right .twipsy-arrow{top:50%;left:0;margin-top:-5px;border-top:5px solid transparent;border-bottom:5px solid transparent;border-right:5px solid #000000}.twipsy-inner{padding:3px 8px;background-color:#000;color:#fff;text-align:center;max-width:200px;text-decoration:none;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}.twipsy-arrow{position:absolute;width:0;height:0}.toolbar{margin:0;padding:0;background:white}.toolbar>.button{margin:5px;padding:5px;border:1px solid #eee;cursor:pointer}.toolbar>.button:hover{background:#eee}.infoWindow{position:absolute;min-width:100px;max-width:300px}.infoWindow #frame{padding:10px;border:1px solid black;background:white}.infoWindow #close{float:right;margin:5px 2px;font-size:small;color:gray;cursor:pointer}.infoWindow #arrow{position:absolute;bottom:-8px;left:50%;margin-left:-10px;border-right:10px solid transparent;border-left:10px solid transparent;border-top:10px solid white}.react-autocomplete-input{background-clip:padding-box;background-color:#fff;bottom:auto;box-shadow:0 6px 12px #0000002d;display:block;font-size:14px;list-style:none;padding:1px;position:absolute;z-index:20000;margin-block-start:unset;margin-block-end:unset}.react-autocomplete-input>li{cursor:pointer;padding:10px;min-width:100px}.react-autocomplete-input>li.active{background-color:#337ab7;color:#fff}body[dir=rtl] .chonky-fileListWrapper [class^=listContainer-]{direction:rtl!important}body[dir=rtl] .chonky-fileEntryClickableWrapper [class^=listFileEntryProperty-],body[dir=rtl] .chonky-navbarContainer{direction:ltr!important}body[dir=rtl] .chonky-chonkyRoot{text-align:right}body[dir=rtl] .chonky-infoText{margin-left:unset;margin-right:12px}body[dir=rtl] .chonky-contextMenuList .MuiListItemText-root,body[dir=rtl] .chonky-dropdownList .MuiListItemText-root{text-align:right}body[dir=rtl] .chonky-icon{margin-right:unset;margin-left:8px}.chonky-chonkyRoot div[class^=folderBackSide]{box-shadow:unset}.chonky-chonkyRoot div[class^=folderBackSide]:after{border-color:var(--fp-theme-background, #fff) var(--fp-theme-background, #fff) transparent transparent}.chonky-chonkyRoot div[class^=listFileEntryIcon-]{color:#d5d5d5}.chonky-chonkyRoot div[class*=previewFile-d]{background-color:#d5d5d5}.chonky-chonkyRoot div[class^=selectionIndicator-]{background:var(--fp-theme-selection-background, #455570)}.chonky-chonkyRoot{background-color:var(--fp-theme-background, #fff)!important}.chonky-contextMenuList{background-color:var(--fp-theme-surface, #fff)!important}button[class*=chonky-activeButton],.chonky-selectionSizeText{color:var(--fp-theme-primary, #24aee9)!important}')),document.head.appendChild(t)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
|
|
2
|
+
var En = Object.defineProperty;
|
|
3
|
+
var Cn = (e, n, t) => n in e ? En(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t;
|
|
4
|
+
var X = (e, n, t) => (Cn(e, typeof n != "symbol" ? n + "" : n, t), t);
|
|
5
|
+
import { jsx as l, jsxs as N, Fragment as oe } from "react/jsx-runtime";
|
|
6
|
+
import * as $t from "react";
|
|
7
|
+
import Ee, { useState as D, useEffect as I, useMemo as Be, forwardRef as wn, createContext as Me, useContext as Pe, useRef as Se, useLayoutEffect as Wt, useCallback as pe } from "react";
|
|
8
|
+
import { isValid as Ie, isBefore as Tn, format as wt, endOfDay as bn, isSameDay as Tt } from "date-fns";
|
|
9
|
+
import { he as Ut, enUS as jt } from "date-fns/locale";
|
|
10
|
+
import { MuiPickersUtilsProvider as Kt, KeyboardDateTimePicker as rt, KeyboardDatePicker as Ln } from "@material-ui/pickers";
|
|
11
|
+
import qt from "@date-io/date-fns";
|
|
12
|
+
import { createTheme as Sn, makeStyles as Fe, createStyles as Ke } from "@material-ui/core/styles";
|
|
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
|
+
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 Za } from "@material-ui/core/useMediaQuery";
|
|
16
|
+
import jn, { registerLocale as Kn } from "react-datepicker";
|
|
17
|
+
import qn from "date-fns/locale/he";
|
|
18
|
+
import De from "moment";
|
|
19
|
+
import Yn from "@turf/rewind";
|
|
20
|
+
import { Map as Xn, View as Zn } from "ol";
|
|
21
21
|
import "ol/ol.css";
|
|
22
|
-
import { format as
|
|
23
|
-
import { defaults as
|
|
24
|
-
import
|
|
25
|
-
import { transform as
|
|
26
|
-
import { Tile as
|
|
27
|
-
import { Vector as
|
|
28
|
-
import { GeoJSON as
|
|
29
|
-
import { Draw as
|
|
30
|
-
import { createBox as
|
|
31
|
-
import
|
|
32
|
-
import { Fill as
|
|
33
|
-
import
|
|
34
|
-
import { getWidth as
|
|
35
|
-
import
|
|
36
|
-
import
|
|
37
|
-
import
|
|
38
|
-
import
|
|
39
|
-
import
|
|
40
|
-
import
|
|
41
|
-
import
|
|
42
|
-
import {
|
|
43
|
-
import
|
|
44
|
-
import
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import
|
|
48
|
-
import Ji from "
|
|
22
|
+
import { format as bt } from "ol/coordinate";
|
|
23
|
+
import { defaults as Jn, FullScreen as Lt } from "ol/control";
|
|
24
|
+
import Je from "ol/control/MousePosition";
|
|
25
|
+
import { transform as Qn, get as ei } from "ol/proj";
|
|
26
|
+
import { Tile as ti, Vector as ni } from "ol/layer";
|
|
27
|
+
import { Vector as ii, OSM as ri, WMTS as oi } from "ol/source";
|
|
28
|
+
import { GeoJSON as Zt, MVT as si } from "ol/format";
|
|
29
|
+
import { Draw as ai } from "ol/interaction";
|
|
30
|
+
import { createBox as li } from "ol/interaction/Draw";
|
|
31
|
+
import ci from "ol/layer/VectorTile";
|
|
32
|
+
import { Fill as di, Stroke as ui, Style as hi, Circle as mi } from "ol/style";
|
|
33
|
+
import pi from "ol/tilegrid/WMTS";
|
|
34
|
+
import { getWidth as gi, getTopLeft as fi } from "ol/extent";
|
|
35
|
+
import yi from "ol/source/TileWMS";
|
|
36
|
+
import vi from "ol/source/XYZ";
|
|
37
|
+
import Ei from "ol/source/VectorTile";
|
|
38
|
+
import St from "ol-ext/legend/Legend";
|
|
39
|
+
import Ci from "ol-ext/control/Legend";
|
|
40
|
+
import "ol-ext/dist/ol-ext.css";
|
|
41
|
+
import wi from "@material-ui/core/TableHead";
|
|
42
|
+
import { createSvgIcon as Jt } from "@material-ui/core/utils";
|
|
43
|
+
import Ti from "@material-ui/core/CssBaseline";
|
|
44
|
+
import bi from "@material-ui/core/ScopedCssBaseline";
|
|
45
|
+
import { createPortal as Li } from "react-dom";
|
|
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
|
+
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 zi, WebMercatorProjection as $i, EventHelper as Wi, EllipsoidGeodesic as Ui, UrlTemplateImageryProvider as mt, WebMapServiceImageryProvider as pt, WebMapTileServiceImageryProvider as gt, Event as ji, SingleTileImageryProvider as Ki, Viewer as qi, Matrix4 as Yi, OpenStreetMapImageryProvider as Xi, Color as lt, PolygonHierarchy as Zi, viewerCesiumInspectorMixin as Ji, sampleTerrainMostDetailed as Qi } from "cesium";
|
|
49
|
+
import { Math as Qa, sampleTerrainMostDetailed as el } from "cesium";
|
|
50
|
+
import { get as Z, isNumber as Ue, isEmpty as ct, isArray as er, cloneDeep as tr, find as _t } from "lodash";
|
|
51
|
+
import nr from "@turf/boolean-point-in-polygon";
|
|
49
52
|
import "@map-colonies/react-core/dist/linear-progress/styles";
|
|
50
|
-
import
|
|
53
|
+
import ir from "@cmcleese/cesium-navigation";
|
|
51
54
|
import "@cmcleese/cesium-navigation/dist/index.css";
|
|
52
|
-
import * as
|
|
53
|
-
import
|
|
54
|
-
import
|
|
55
|
-
import
|
|
56
|
-
import
|
|
57
|
-
import { ChonkyActions as
|
|
58
|
-
import { ChonkyIconFA as
|
|
59
|
-
import
|
|
60
|
-
var
|
|
55
|
+
import * as nn from "@turf/helpers";
|
|
56
|
+
import rn from "@turf/bbox";
|
|
57
|
+
import on from "@turf/bbox-polygon";
|
|
58
|
+
import rr from "textarea-caret";
|
|
59
|
+
import or, { setCaretPosition as sr } from "get-input-selection";
|
|
60
|
+
import { ChonkyActions as F, FileHelper as sn, setChonkyDefaults as ar, FullFileBrowser as lr } from "chonky";
|
|
61
|
+
import { ChonkyIconFA as cr } from "chonky-icon-fontawesome";
|
|
62
|
+
import dr from "filesize";
|
|
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 || {});
|
|
61
64
|
const J = {
|
|
62
65
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
63
66
|
DATE_PICKER: {
|
|
@@ -65,7 +68,7 @@ const J = {
|
|
|
65
68
|
local: {
|
|
66
69
|
setText: "set",
|
|
67
70
|
placeHolderText: "Enter the Date",
|
|
68
|
-
calendarLocale:
|
|
71
|
+
calendarLocale: he.EN
|
|
69
72
|
},
|
|
70
73
|
disableFuture: !0,
|
|
71
74
|
showTime: !1,
|
|
@@ -79,19 +82,19 @@ const J = {
|
|
|
79
82
|
setText: "set",
|
|
80
83
|
startPlaceHolderText: "Start of time",
|
|
81
84
|
endPlaceHolderText: "End of time",
|
|
82
|
-
calendarLocale:
|
|
85
|
+
calendarLocale: he.EN
|
|
83
86
|
},
|
|
84
87
|
renderAsButton: !0,
|
|
85
88
|
offset: 0,
|
|
86
89
|
disableFuture: !0
|
|
87
90
|
}
|
|
88
|
-
},
|
|
91
|
+
}, de = (e) => {
|
|
89
92
|
const { children: n, ...t } = e;
|
|
90
|
-
return /* @__PURE__ */ l(
|
|
91
|
-
},
|
|
93
|
+
return /* @__PURE__ */ l(_n, { ...t, children: n });
|
|
94
|
+
}, an = (e) => {
|
|
92
95
|
const n = e.type === "dark";
|
|
93
|
-
return Ee.useMemo(() =>
|
|
94
|
-
},
|
|
96
|
+
return Ee.useMemo(() => ur(e, n), [n, e]);
|
|
97
|
+
}, ur = (e, n = !1) => Sn({
|
|
95
98
|
palette: {
|
|
96
99
|
type: n ? "dark" : "light",
|
|
97
100
|
primary: {
|
|
@@ -113,114 +116,114 @@ const J = {
|
|
|
113
116
|
}
|
|
114
117
|
}
|
|
115
118
|
});
|
|
116
|
-
const
|
|
117
|
-
(e) =>
|
|
119
|
+
const hr = 2, mr = 0.5, pr = Fe(
|
|
120
|
+
(e) => Ke({
|
|
118
121
|
container: {
|
|
119
|
-
padding: e.spacing(
|
|
122
|
+
padding: e.spacing(hr),
|
|
120
123
|
alignItems: "center"
|
|
121
124
|
},
|
|
122
125
|
setButton: {
|
|
123
126
|
marginTop: e.spacing(1)
|
|
124
127
|
},
|
|
125
128
|
margin: {
|
|
126
|
-
marginLeft: e.spacing(
|
|
129
|
+
marginLeft: e.spacing(mr)
|
|
127
130
|
}
|
|
128
131
|
})
|
|
129
|
-
),
|
|
130
|
-
var
|
|
131
|
-
const n =
|
|
132
|
-
|
|
132
|
+
), gr = (e) => {
|
|
133
|
+
var j, O, z, k;
|
|
134
|
+
const n = pr(), t = Xt(), i = an(t), [o, r] = D(null), [c, u] = D(null), [m, p] = D(J.DATE_RANGE_PICKER.dateFormat), E = 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
|
+
I(() => {
|
|
133
136
|
r(e.from ?? null);
|
|
134
|
-
}, [e.from]),
|
|
137
|
+
}, [e.from]), I(() => {
|
|
135
138
|
u(e.to ?? null);
|
|
136
|
-
}, [e.to]),
|
|
137
|
-
|
|
139
|
+
}, [e.to]), I(() => {
|
|
140
|
+
p(e.dateFormat ?? J.DATE_RANGE_PICKER.dateFormat);
|
|
138
141
|
}, [e.dateFormat]);
|
|
139
|
-
const
|
|
140
|
-
|
|
141
|
-
),
|
|
142
|
+
const G = Boolean(
|
|
143
|
+
Ie(o) && !c || Ie(c) && !o || o && c && Ie(o) && Ie(c) && Tn(o, c)
|
|
144
|
+
), U = () => {
|
|
142
145
|
e.onChange({
|
|
143
|
-
from: o &&
|
|
144
|
-
to: c &&
|
|
146
|
+
from: o && Ie(o) ? o : void 0,
|
|
147
|
+
to: c && Ie(c) ? c : void 0
|
|
145
148
|
});
|
|
146
149
|
};
|
|
147
|
-
return /* @__PURE__ */ l(
|
|
148
|
-
|
|
150
|
+
return /* @__PURE__ */ l(Yt, { theme: i, children: /* @__PURE__ */ l(
|
|
151
|
+
de,
|
|
149
152
|
{
|
|
150
153
|
className: `${n.container} drpContainer`,
|
|
151
154
|
display: "flex",
|
|
152
155
|
flexDirection: E,
|
|
153
156
|
width: E === "column" ? e.contentWidth : "unset",
|
|
154
|
-
children: /* @__PURE__ */ N(
|
|
157
|
+
children: /* @__PURE__ */ N(Kt, { utils: qt, locale: Y, children: [
|
|
155
158
|
/* @__PURE__ */ l(
|
|
156
|
-
|
|
159
|
+
rt,
|
|
157
160
|
{
|
|
158
161
|
variant: "inline",
|
|
159
162
|
placeholder: w,
|
|
160
|
-
onChange: (
|
|
163
|
+
onChange: ($) => r($),
|
|
161
164
|
value: o,
|
|
162
|
-
disableFuture:
|
|
165
|
+
disableFuture: L,
|
|
163
166
|
format: m,
|
|
164
167
|
maxDate: e.maxDate,
|
|
165
168
|
minDate: e.minDate
|
|
166
169
|
}
|
|
167
170
|
),
|
|
168
171
|
/* @__PURE__ */ l(
|
|
169
|
-
|
|
172
|
+
rt,
|
|
170
173
|
{
|
|
171
174
|
variant: "inline",
|
|
172
175
|
placeholder: P,
|
|
173
176
|
className: n.margin,
|
|
174
|
-
onChange: (
|
|
177
|
+
onChange: ($) => u($),
|
|
175
178
|
value: c,
|
|
176
|
-
disableFuture:
|
|
179
|
+
disableFuture: L,
|
|
177
180
|
format: m,
|
|
178
181
|
maxDate: e.maxDate,
|
|
179
182
|
minDate: e.minDate
|
|
180
183
|
}
|
|
181
184
|
),
|
|
182
|
-
/* @__PURE__ */ l(
|
|
183
|
-
|
|
185
|
+
/* @__PURE__ */ l(Nn, { options: t, children: /* @__PURE__ */ l(
|
|
186
|
+
Ne,
|
|
184
187
|
{
|
|
185
188
|
className: `${n.setButton} ${n.margin}`,
|
|
186
189
|
raised: !0,
|
|
187
|
-
onClick:
|
|
188
|
-
disabled: !
|
|
189
|
-
children:
|
|
190
|
+
onClick: U,
|
|
191
|
+
disabled: !G,
|
|
192
|
+
children: A
|
|
190
193
|
}
|
|
191
194
|
) })
|
|
192
195
|
] })
|
|
193
196
|
}
|
|
194
197
|
) });
|
|
195
|
-
},
|
|
198
|
+
}, fr = (e) => {
|
|
196
199
|
const { children: n, ...t } = e;
|
|
197
|
-
return /* @__PURE__ */ l(
|
|
200
|
+
return /* @__PURE__ */ l(Mn, { ...t, children: n });
|
|
198
201
|
};
|
|
199
|
-
const
|
|
200
|
-
var O,
|
|
201
|
-
const [n, t] =
|
|
202
|
-
m(
|
|
203
|
-
}, E = (
|
|
204
|
-
|
|
205
|
-
},
|
|
202
|
+
const Qs = (e) => {
|
|
203
|
+
var O, z;
|
|
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
|
+
m(k.currentTarget);
|
|
206
|
+
}, E = (k) => {
|
|
207
|
+
k.currentTarget.tagName === "I" ? m(k.currentTarget.previousElementSibling) : m(k.currentTarget);
|
|
208
|
+
}, L = () => {
|
|
206
209
|
m(null);
|
|
207
210
|
}, w = Boolean(u), P = e.controlsLayout ?? "column";
|
|
208
|
-
|
|
211
|
+
I(() => {
|
|
209
212
|
t(e.from ?? null);
|
|
210
|
-
}, [e.from]),
|
|
213
|
+
}, [e.from]), I(() => {
|
|
211
214
|
o(e.to ?? null);
|
|
212
|
-
}, [e.to]),
|
|
215
|
+
}, [e.to]), I(() => {
|
|
213
216
|
c(e.dateFormat ?? J.DATE_RANGE_PICKER.dateFormat);
|
|
214
217
|
}, [e.dateFormat]);
|
|
215
|
-
const
|
|
216
|
-
return /* @__PURE__ */ N(
|
|
217
|
-
|
|
218
|
-
|
|
218
|
+
const A = ((O = e.local) == null ? void 0 : O.startPlaceHolderText) ?? J.DATE_RANGE_PICKER.local.startPlaceHolderText, H = ((z = e.local) == null ? void 0 : z.endPlaceHolderText) ?? J.DATE_RANGE_PICKER.local.endPlaceHolderText, Y = e.renderAsButton === void 0 ? J.DATE_RANGE_PICKER.renderAsButton : e.renderAsButton, G = e.offset === void 0 ? J.DATE_RANGE_PICKER.offset : e.offset, U = e.disableFuture === void 0 ? J.DATE_RANGE_PICKER.disableFuture : e.disableFuture, j = Be(() => `${n ? wt(n, r) : A} - ${i ? wt(i, r) : H}`, [n, i, r, A, H]);
|
|
219
|
+
return /* @__PURE__ */ N(oe, { children: [
|
|
220
|
+
Y ? /* @__PURE__ */ l(Ne, { style: { width: e.width }, raised: !0, onClick: p, className: "drpOpener", children: j }) : /* @__PURE__ */ l(
|
|
221
|
+
We,
|
|
219
222
|
{
|
|
220
223
|
className: "drpOpener",
|
|
221
224
|
readOnly: !0,
|
|
222
225
|
style: { width: e.width },
|
|
223
|
-
value:
|
|
226
|
+
value: j,
|
|
224
227
|
onClick: E,
|
|
225
228
|
trailingIcon: {
|
|
226
229
|
icon: "date_range",
|
|
@@ -229,25 +232,25 @@ const Us = (e) => {
|
|
|
229
232
|
}
|
|
230
233
|
}
|
|
231
234
|
),
|
|
232
|
-
/* @__PURE__ */ l(
|
|
233
|
-
|
|
235
|
+
/* @__PURE__ */ l(fr, { open: w, anchorEl: u, onClose: L, anchorOrigin: { vertical: "bottom", horizontal: "left" }, keepMounted: !0, children: /* @__PURE__ */ l(
|
|
236
|
+
gr,
|
|
234
237
|
{
|
|
235
238
|
controlsLayout: P,
|
|
236
|
-
contentWidth: ((u == null ? void 0 : u.clientWidth) ?? 0) -
|
|
239
|
+
contentWidth: ((u == null ? void 0 : u.clientWidth) ?? 0) - G,
|
|
237
240
|
dateFormat: r,
|
|
238
|
-
disableFuture:
|
|
241
|
+
disableFuture: U,
|
|
239
242
|
minDate: e.minDate,
|
|
240
243
|
maxDate: e.maxDate,
|
|
241
244
|
local: e.local,
|
|
242
245
|
from: n ?? void 0,
|
|
243
246
|
to: i ?? void 0,
|
|
244
|
-
onChange: ({ from:
|
|
245
|
-
t(
|
|
247
|
+
onChange: ({ from: k, to: $ }) => {
|
|
248
|
+
t(k ?? null), o($ ?? null), e.onChange({ from: k, to: $ }), L();
|
|
246
249
|
}
|
|
247
250
|
}
|
|
248
251
|
) })
|
|
249
252
|
] });
|
|
250
|
-
},
|
|
253
|
+
}, Qe = (e) => typeof e < "u" && e !== null && "startDate" in e && "endDate" in e, ea = ({
|
|
251
254
|
endDate: e,
|
|
252
255
|
startDate: n,
|
|
253
256
|
setEndDate: t = () => {
|
|
@@ -259,48 +262,48 @@ const Us = (e) => {
|
|
|
259
262
|
endTimeWrapperClassName: c = "",
|
|
260
263
|
timeRangeInputsWrapperClassName: u = "",
|
|
261
264
|
startTimeInputClassName: m = "",
|
|
262
|
-
startTimeLabel:
|
|
265
|
+
startTimeLabel: p = "",
|
|
263
266
|
startTimeWrapperClassName: E = ""
|
|
264
267
|
}) => /* @__PURE__ */ N("div", { className: `timeRangeWrapper ${u}`, children: [
|
|
265
268
|
/* @__PURE__ */ l("div", { className: `startTimeWrapper ${E}`, children: /* @__PURE__ */ l(
|
|
266
|
-
|
|
269
|
+
We,
|
|
267
270
|
{
|
|
268
|
-
label:
|
|
271
|
+
label: p,
|
|
269
272
|
disabled: n === null,
|
|
270
273
|
className: `timeRangeInput ${m}`,
|
|
271
274
|
name: "start-time",
|
|
272
275
|
type: "time",
|
|
273
|
-
value:
|
|
274
|
-
onChange: (
|
|
275
|
-
const w =
|
|
276
|
+
value: De(n).format("HH:mm"),
|
|
277
|
+
onChange: (L) => {
|
|
278
|
+
const w = De(n), P = De(L.currentTarget.value, "HH:mm"), A = w.set({
|
|
276
279
|
hours: P.get("hours"),
|
|
277
280
|
minutes: P.get("minutes")
|
|
278
281
|
});
|
|
279
|
-
i(
|
|
282
|
+
i(A.toDate());
|
|
280
283
|
}
|
|
281
284
|
}
|
|
282
285
|
) }),
|
|
283
286
|
/* @__PURE__ */ l("div", { className: `endTimeWrapper ${c}`, children: /* @__PURE__ */ l(
|
|
284
|
-
|
|
287
|
+
We,
|
|
285
288
|
{
|
|
286
289
|
label: r,
|
|
287
290
|
disabled: e === null,
|
|
288
291
|
className: `timeRangeInput ${o}`,
|
|
289
292
|
name: "end-time",
|
|
290
293
|
type: "time",
|
|
291
|
-
value:
|
|
292
|
-
onChange: (
|
|
293
|
-
const w =
|
|
294
|
+
value: De(e).format("HH:mm"),
|
|
295
|
+
onChange: (L) => {
|
|
296
|
+
const w = De(e), P = De(L.currentTarget.value, "HH:mm"), A = w.set({
|
|
294
297
|
hours: P.get("hours"),
|
|
295
298
|
minutes: P.get("minutes")
|
|
296
299
|
});
|
|
297
|
-
t(
|
|
300
|
+
t(A.toDate());
|
|
298
301
|
}
|
|
299
302
|
}
|
|
300
303
|
) })
|
|
301
|
-
] }),
|
|
304
|
+
] }), yr = wn(
|
|
302
305
|
({ value: e, onClick: n, onInputClick: t, ...i }, o) => /* @__PURE__ */ l(
|
|
303
|
-
|
|
306
|
+
We,
|
|
304
307
|
{
|
|
305
308
|
...i,
|
|
306
309
|
className: "dateRangeCustomInput",
|
|
@@ -312,37 +315,37 @@ const Us = (e) => {
|
|
|
312
315
|
value: e
|
|
313
316
|
}
|
|
314
317
|
)
|
|
315
|
-
),
|
|
318
|
+
), vr = ({ setStartDate: e = () => {
|
|
316
319
|
}, setEndDate: n = () => {
|
|
317
320
|
}, shortcuts: t, dateRange: i, onShortcut: o }) => {
|
|
318
|
-
const [r, c] =
|
|
321
|
+
const [r, c] = D(), u = Be(
|
|
319
322
|
() => t.map((m) => m instanceof Function ? m() : m),
|
|
320
323
|
[t]
|
|
321
324
|
);
|
|
322
|
-
return
|
|
325
|
+
return I(() => {
|
|
323
326
|
for (const m of u) {
|
|
324
|
-
const
|
|
325
|
-
r ? m.id === r && (
|
|
327
|
+
const p = i.startDate && i.endDate && Tt(m.startDate, i.startDate) && Tt(m.endDate, i.endDate);
|
|
328
|
+
r ? m.id === r && (p || c(void 0)) : p && c(m.id);
|
|
326
329
|
}
|
|
327
|
-
}, [i, r, u]), /* @__PURE__ */ l("div", { className: "shortcutsContainer", children: u.map((m,
|
|
330
|
+
}, [i, r, u]), /* @__PURE__ */ l("div", { className: "shortcutsContainer", children: u.map((m, p) => {
|
|
328
331
|
const E = () => {
|
|
329
332
|
e(m.startDate), n(m.endDate);
|
|
330
333
|
};
|
|
331
334
|
return /* @__PURE__ */ l(
|
|
332
|
-
|
|
335
|
+
Ne,
|
|
333
336
|
{
|
|
334
337
|
type: "button",
|
|
335
338
|
className: `shortcut ${r === m.id ? "selected" : ""}`,
|
|
336
|
-
onClick: (
|
|
339
|
+
onClick: (L) => {
|
|
337
340
|
E(), o == null || o({ startDate: m.startDate, endDate: m.endDate });
|
|
338
341
|
},
|
|
339
342
|
outlined: !0,
|
|
340
343
|
children: m.label
|
|
341
344
|
},
|
|
342
|
-
m.id +
|
|
345
|
+
m.id + p
|
|
343
346
|
);
|
|
344
347
|
}) });
|
|
345
|
-
},
|
|
348
|
+
}, ta = Ee.forwardRef((e, n) => {
|
|
346
349
|
const {
|
|
347
350
|
// Time range input props
|
|
348
351
|
// endTimeInputClassName,
|
|
@@ -361,148 +364,148 @@ const Us = (e) => {
|
|
|
361
364
|
inputName: u,
|
|
362
365
|
showMonthYearDropdown: m,
|
|
363
366
|
// withTimeRange,
|
|
364
|
-
withShortcuts:
|
|
367
|
+
withShortcuts: p,
|
|
365
368
|
locale: E = "en"
|
|
366
|
-
} = e, [
|
|
367
|
-
|
|
368
|
-
E === "he" &&
|
|
369
|
-
}, [E]),
|
|
370
|
-
var O,
|
|
371
|
-
((O = e.startDate) == null ? void 0 : O.toString()) !== (
|
|
372
|
-
}, [e.startDate, e.endDate,
|
|
373
|
-
const
|
|
369
|
+
} = e, [L, w] = D(null), [P, A] = D(null), [H, Y] = D(!1), G = r ? { startDate: L, endDate: P } : L;
|
|
370
|
+
I(() => {
|
|
371
|
+
E === "he" && Kn("he", qn);
|
|
372
|
+
}, [E]), I(() => {
|
|
373
|
+
var O, z;
|
|
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
|
+
}, [e.startDate, e.endDate, L, P]);
|
|
376
|
+
const U = Be(() => {
|
|
374
377
|
let O = "pickerContainer" + (E === "he" ? " pickerContainer-rtl" : "");
|
|
375
|
-
return
|
|
376
|
-
}, [E,
|
|
378
|
+
return p && r && (O += " pickerContainer-withShortcuts"), O;
|
|
379
|
+
}, [E, p, r]), j = m ? {
|
|
377
380
|
showMonthDropdown: !0,
|
|
378
381
|
showYearDropdown: !0,
|
|
379
382
|
dropdownMode: "select"
|
|
380
383
|
} : {};
|
|
381
|
-
return /* @__PURE__ */ l("div", { className:
|
|
382
|
-
|
|
384
|
+
return /* @__PURE__ */ l("div", { className: U, style: { direction: E === "he" ? "rtl" : "ltr" }, children: /* @__PURE__ */ l(
|
|
385
|
+
jn,
|
|
383
386
|
{
|
|
384
387
|
...e,
|
|
385
388
|
ref: n,
|
|
386
|
-
onClickOutside: () =>
|
|
387
|
-
open:
|
|
388
|
-
startDate:
|
|
389
|
-
selected:
|
|
390
|
-
endDate:
|
|
389
|
+
onClickOutside: () => Y(!1),
|
|
390
|
+
open: H,
|
|
391
|
+
startDate: Qe(G) ? L : void 0,
|
|
392
|
+
selected: L,
|
|
393
|
+
endDate: Qe(G) ? P : void 0,
|
|
391
394
|
monthsShown: e.monthsShown ?? 2,
|
|
392
395
|
calendarClassName: `pickerCalendar ${t}`,
|
|
393
396
|
weekDayClassName: (O) => `pickerWeek ${(i == null ? void 0 : i(O)) ?? ""}`,
|
|
394
397
|
dayClassName: (O) => `pickerDay ${(i == null ? void 0 : i(O)) ?? ""}`,
|
|
395
398
|
monthClassName: (O) => `pickerMonth ${(o == null ? void 0 : o(O)) ?? ""}`,
|
|
396
|
-
onChange: (O,
|
|
399
|
+
onChange: (O, z) => {
|
|
397
400
|
if (Array.isArray(O)) {
|
|
398
|
-
const [
|
|
399
|
-
w(
|
|
401
|
+
const [k, $] = O;
|
|
402
|
+
w(k), A($), c == null || c({ startDate: k, endDate: $ && bn($) }, z);
|
|
400
403
|
} else
|
|
401
|
-
w(O), c == null || c(O,
|
|
404
|
+
w(O), c == null || c(O, z);
|
|
402
405
|
},
|
|
403
|
-
customInput: /* @__PURE__ */ l(
|
|
404
|
-
|
|
406
|
+
customInput: /* @__PURE__ */ l(yr, { name: u, onInputClick: () => {
|
|
407
|
+
Y(!0);
|
|
405
408
|
} }),
|
|
406
|
-
showTimeInput: !!(
|
|
409
|
+
showTimeInput: !!(p && r),
|
|
407
410
|
timeInputLabel: "",
|
|
408
|
-
customTimeInput:
|
|
409
|
-
c == null || c(O),
|
|
410
|
-
}, shortcuts:
|
|
411
|
+
customTimeInput: p && Qe(G) && /* @__PURE__ */ l(vr, { onShortcut: (O) => {
|
|
412
|
+
c == null || c(O), Y(!1);
|
|
413
|
+
}, shortcuts: p, setEndDate: A, setStartDate: w, dateRange: G }),
|
|
411
414
|
showMonthYearDropdown: void 0,
|
|
412
|
-
...
|
|
415
|
+
...j
|
|
413
416
|
}
|
|
414
417
|
) });
|
|
415
418
|
});
|
|
416
|
-
const
|
|
417
|
-
const n =
|
|
418
|
-
format:
|
|
419
|
-
variant:
|
|
420
|
-
disableFuture:
|
|
421
|
-
local:
|
|
422
|
-
onChange:
|
|
423
|
-
showTime:
|
|
424
|
-
value:
|
|
425
|
-
...
|
|
426
|
-
} = e, { placeHolderText:
|
|
419
|
+
const na = (e) => {
|
|
420
|
+
const n = Xt(), t = an(n), {
|
|
421
|
+
format: i = J.DATE_PICKER.dateFormat,
|
|
422
|
+
variant: o = J.DATE_PICKER.variant,
|
|
423
|
+
disableFuture: r = J.DATE_PICKER.disableFuture,
|
|
424
|
+
local: c,
|
|
425
|
+
onChange: u,
|
|
426
|
+
showTime: m = J.DATE_PICKER.showTime,
|
|
427
|
+
value: p,
|
|
428
|
+
...E
|
|
429
|
+
} = e, { placeHolderText: L = J.DATE_PICKER.local.placeHolderText, calendarLocale: w } = c ?? {
|
|
427
430
|
placeHolderText: J.DATE_PICKER.local.placeHolderText,
|
|
428
|
-
calendarLocale:
|
|
429
|
-
},
|
|
430
|
-
|
|
431
|
+
calendarLocale: he.EN
|
|
432
|
+
}, P = w === he.HE ? Ut : jt, A = (H) => {
|
|
433
|
+
u(H);
|
|
431
434
|
};
|
|
432
|
-
return /* @__PURE__ */ l(
|
|
433
|
-
|
|
434
|
-
|
|
435
|
+
return /* @__PURE__ */ l(Yt, { theme: t, children: /* @__PURE__ */ N(Kt, { utils: qt, locale: P, children: [
|
|
436
|
+
m && /* @__PURE__ */ l(
|
|
437
|
+
rt,
|
|
435
438
|
{
|
|
436
|
-
variant:
|
|
437
|
-
placeholder:
|
|
438
|
-
onChange:
|
|
439
|
-
value:
|
|
440
|
-
disableFuture:
|
|
441
|
-
format:
|
|
442
|
-
...
|
|
439
|
+
variant: o,
|
|
440
|
+
placeholder: L,
|
|
441
|
+
onChange: A,
|
|
442
|
+
value: p,
|
|
443
|
+
disableFuture: r,
|
|
444
|
+
format: i,
|
|
445
|
+
...E
|
|
443
446
|
}
|
|
444
447
|
),
|
|
445
|
-
!
|
|
446
|
-
|
|
448
|
+
!m && /* @__PURE__ */ l(
|
|
449
|
+
Ln,
|
|
447
450
|
{
|
|
448
|
-
variant:
|
|
449
|
-
placeholder:
|
|
450
|
-
onChange:
|
|
451
|
-
value:
|
|
452
|
-
disableFuture:
|
|
453
|
-
format:
|
|
454
|
-
...
|
|
451
|
+
variant: o,
|
|
452
|
+
placeholder: L,
|
|
453
|
+
onChange: A,
|
|
454
|
+
value: p,
|
|
455
|
+
disableFuture: r,
|
|
456
|
+
format: i,
|
|
457
|
+
...E
|
|
455
458
|
}
|
|
456
459
|
)
|
|
457
460
|
] }) });
|
|
458
|
-
},
|
|
459
|
-
(e) =>
|
|
461
|
+
}, Er = 18, Cr = Fe(
|
|
462
|
+
(e) => Ke({
|
|
460
463
|
drawingButton: {
|
|
461
|
-
width: e.spacing(
|
|
464
|
+
width: e.spacing(Er)
|
|
462
465
|
},
|
|
463
466
|
fullWidth: {
|
|
464
467
|
width: "100%",
|
|
465
468
|
marginTop: "36px"
|
|
466
469
|
}
|
|
467
470
|
})
|
|
468
|
-
),
|
|
469
|
-
const n =
|
|
471
|
+
), wr = (e) => {
|
|
472
|
+
const n = Cr(), [t, i] = Ee.useState(null), { isSelectionEnabled: o, onCancelDraw: r, onStartDraw: c, onReset: u } = e, m = (E) => {
|
|
470
473
|
i(E.currentTarget);
|
|
471
|
-
},
|
|
474
|
+
}, p = () => {
|
|
472
475
|
i(null);
|
|
473
476
|
};
|
|
474
|
-
return o ? /* @__PURE__ */ l(
|
|
475
|
-
/* @__PURE__ */ l(
|
|
477
|
+
return o ? /* @__PURE__ */ l(st, { content: "Cancel the ongoing draw", align: "bottomLeft", children: /* @__PURE__ */ l(Ne, { className: n.drawingButton, raised: !0, onClick: r, children: "Cancel Draw" }) }) : /* @__PURE__ */ N(de, { position: "relative", children: [
|
|
478
|
+
/* @__PURE__ */ l(st, { content: "draw an Area of interest to limit the search", align: "bottomLeft", children: /* @__PURE__ */ l(Ne, { className: n.drawingButton, raised: !0, onClick: m, children: "Draw AOI" }) }),
|
|
476
479
|
/* @__PURE__ */ N(
|
|
477
|
-
|
|
480
|
+
Bn,
|
|
478
481
|
{
|
|
479
482
|
className: n.fullWidth,
|
|
480
483
|
open: Boolean(t),
|
|
481
|
-
onClose:
|
|
484
|
+
onClose: p,
|
|
482
485
|
children: [
|
|
483
486
|
/* @__PURE__ */ l(
|
|
484
|
-
|
|
487
|
+
Ze,
|
|
485
488
|
{
|
|
486
489
|
onClick: () => {
|
|
487
|
-
c(
|
|
490
|
+
c(le.POLYGON), p();
|
|
488
491
|
},
|
|
489
492
|
children: "Polygon"
|
|
490
493
|
}
|
|
491
494
|
),
|
|
492
495
|
/* @__PURE__ */ l(
|
|
493
|
-
|
|
496
|
+
Ze,
|
|
494
497
|
{
|
|
495
498
|
onClick: () => {
|
|
496
|
-
c(
|
|
499
|
+
c(le.BOX), p();
|
|
497
500
|
},
|
|
498
501
|
children: "Box"
|
|
499
502
|
}
|
|
500
503
|
),
|
|
501
504
|
/* @__PURE__ */ l(
|
|
502
|
-
|
|
505
|
+
Ze,
|
|
503
506
|
{
|
|
504
507
|
onClick: () => {
|
|
505
|
-
u(),
|
|
508
|
+
u(), p();
|
|
506
509
|
},
|
|
507
510
|
children: "Clear"
|
|
508
511
|
}
|
|
@@ -512,120 +515,120 @@ const qs = (e) => {
|
|
|
512
515
|
)
|
|
513
516
|
] });
|
|
514
517
|
};
|
|
515
|
-
var
|
|
516
|
-
const
|
|
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), Tr = ln.Provider, Mt = 35, Pt = 32, br = 10, Lr = (e) => e !== void 0 && e !== ge.WGS84 ? Qn([Mt, Pt], ge.WGS84, e) : [Mt, Pt], Sr = (e) => {
|
|
517
520
|
switch (e) {
|
|
518
|
-
case
|
|
519
|
-
return (n) =>
|
|
520
|
-
case
|
|
521
|
-
return (n) =>
|
|
521
|
+
case ge.WEB_MERCATOR:
|
|
522
|
+
return (n) => bt(n, "Mercator: {y}m, {x}m", ht);
|
|
523
|
+
case ge.WGS84:
|
|
524
|
+
return (n) => bt(n, "WGS84: {y}°N {x}°E", ut);
|
|
522
525
|
default:
|
|
523
526
|
return (n) => "";
|
|
524
527
|
}
|
|
525
|
-
},
|
|
526
|
-
const e =
|
|
528
|
+
}, ke = () => {
|
|
529
|
+
const e = Pe(ln);
|
|
527
530
|
if (e === null)
|
|
528
531
|
throw new Error("map context is null, please check the provider");
|
|
529
532
|
return e;
|
|
530
|
-
},
|
|
531
|
-
const n = Se(null), { allowFullScreen: t, showMousePosition: i, projection: o } = e, [r] =
|
|
532
|
-
new
|
|
533
|
-
view: new
|
|
534
|
-
projection: o ??
|
|
533
|
+
}, _r = (e) => {
|
|
534
|
+
const n = Se(null), { allowFullScreen: t, showMousePosition: i, projection: o } = e, [r] = D(
|
|
535
|
+
new Xn({
|
|
536
|
+
view: new Zn({
|
|
537
|
+
projection: o ?? ge.WGS84
|
|
535
538
|
}),
|
|
536
|
-
controls:
|
|
539
|
+
controls: Jn()
|
|
537
540
|
})
|
|
538
541
|
);
|
|
539
|
-
|
|
540
|
-
r.getView().setCenter(e.center ??
|
|
541
|
-
}, [r, e.center, e.projection]),
|
|
542
|
-
r.getView().setZoom(e.zoom ??
|
|
542
|
+
I(() => {
|
|
543
|
+
r.getView().setCenter(e.center ?? Lr(e.projection));
|
|
544
|
+
}, [r, e.center, e.projection]), I(() => {
|
|
545
|
+
r.getView().setZoom(e.zoom ?? br);
|
|
543
546
|
}, [r, e.zoom, e.projection]);
|
|
544
547
|
const c = (u, m) => {
|
|
545
548
|
m.getControls().forEach((E) => {
|
|
546
549
|
E instanceof u && m.removeControl(E);
|
|
547
550
|
});
|
|
548
551
|
};
|
|
549
|
-
return
|
|
550
|
-
r.setTarget(n.current), t !== void 0 && t ? r.addControl(new
|
|
551
|
-
}, [r, t]),
|
|
552
|
-
i !== void 0 && i ? (c(
|
|
553
|
-
new
|
|
554
|
-
coordinateFormat:
|
|
555
|
-
projection: o ??
|
|
552
|
+
return I(() => {
|
|
553
|
+
r.setTarget(n.current), t !== void 0 && t ? r.addControl(new Lt()) : c(Lt, r);
|
|
554
|
+
}, [r, t]), I(() => {
|
|
555
|
+
i !== void 0 && i ? (c(Je, r), r.addControl(
|
|
556
|
+
new Je({
|
|
557
|
+
coordinateFormat: Sr(o ?? ge.WGS84),
|
|
558
|
+
projection: o ?? ge.WGS84,
|
|
556
559
|
undefinedHTML: " "
|
|
557
560
|
})
|
|
558
|
-
)) : c(
|
|
559
|
-
}, [r, i, o]), /* @__PURE__ */ N(
|
|
561
|
+
)) : c(Je, r);
|
|
562
|
+
}, [r, i, o]), /* @__PURE__ */ N(Tr, { value: r, children: [
|
|
560
563
|
/* @__PURE__ */ l("div", { className: "map", ref: n }),
|
|
561
564
|
e.children
|
|
562
565
|
] });
|
|
563
|
-
},
|
|
564
|
-
const e =
|
|
566
|
+
}, cn = Me(null), Mr = cn.Provider, qe = () => {
|
|
567
|
+
const e = Pe(cn);
|
|
565
568
|
if (e === null)
|
|
566
569
|
throw new Error("tile layer context is null, please check the provider");
|
|
567
570
|
return e;
|
|
568
|
-
},
|
|
569
|
-
const t =
|
|
570
|
-
return
|
|
571
|
+
}, Pr = ({ options: e, children: n }) => {
|
|
572
|
+
const t = ke(), [i] = D(new ti(e));
|
|
573
|
+
return I(() => (t.addLayer(i), () => {
|
|
571
574
|
t.removeLayer(i);
|
|
572
|
-
}), [t, i]), /* @__PURE__ */ l(
|
|
573
|
-
},
|
|
574
|
-
const e =
|
|
575
|
+
}), [t, i]), /* @__PURE__ */ l(Mr, { value: i, children: n });
|
|
576
|
+
}, dn = Me(null), xr = dn.Provider, Ir = () => {
|
|
577
|
+
const e = Pe(dn);
|
|
575
578
|
if (e === null)
|
|
576
579
|
throw new Error("vector layer context is null, please check the provider");
|
|
577
580
|
return e;
|
|
578
|
-
},
|
|
579
|
-
const n =
|
|
580
|
-
return
|
|
581
|
+
}, Dr = ({ children: e }) => {
|
|
582
|
+
const n = ke(), [t] = D(new ni());
|
|
583
|
+
return I(() => (n.addLayer(t), () => {
|
|
581
584
|
n.removeLayer(t);
|
|
582
|
-
}), [n, t]), /* @__PURE__ */ l(
|
|
583
|
-
},
|
|
584
|
-
const e =
|
|
585
|
+
}), [n, t]), /* @__PURE__ */ l(xr, { value: t, children: e });
|
|
586
|
+
}, un = Me(null), Or = un.Provider, Ar = () => {
|
|
587
|
+
const e = Pe(un);
|
|
585
588
|
if (e === null)
|
|
586
589
|
throw new Error("vector source context is null, please check the provider");
|
|
587
590
|
return e;
|
|
588
|
-
},
|
|
589
|
-
const n =
|
|
590
|
-
return
|
|
591
|
+
}, kr = ({ children: e }) => {
|
|
592
|
+
const n = Ir(), [t] = D(new ii());
|
|
593
|
+
return I(() => {
|
|
591
594
|
n.setSource(t);
|
|
592
|
-
}, [t, n]), /* @__PURE__ */ l(
|
|
593
|
-
},
|
|
594
|
-
const
|
|
595
|
-
return
|
|
596
|
-
const
|
|
597
|
-
return t &&
|
|
598
|
-
|
|
599
|
-
}), i.addFeature(
|
|
600
|
-
|
|
595
|
+
}, [t, n]), /* @__PURE__ */ l(Or, { value: t, children: e });
|
|
596
|
+
}, Rr = ({ geometry: e, fitOptions: n, fit: t, featureStyle: i }) => {
|
|
597
|
+
const o = Ar(), r = ke();
|
|
598
|
+
return Wt(() => {
|
|
599
|
+
const u = new Zt().readFeature(e);
|
|
600
|
+
return t && o.on("addfeature", function() {
|
|
601
|
+
r.getView().fit(o.getExtent(), n);
|
|
602
|
+
}), i && u.setStyle(i), o.addFeature(u), () => {
|
|
603
|
+
o.removeFeature(u);
|
|
601
604
|
};
|
|
602
|
-
}, [e,
|
|
603
|
-
},
|
|
604
|
-
const n =
|
|
605
|
-
return
|
|
606
|
-
n.setSource(new
|
|
605
|
+
}, [e, o, t]), null;
|
|
606
|
+
}, Nr = (e) => {
|
|
607
|
+
const n = qe();
|
|
608
|
+
return I(() => {
|
|
609
|
+
n.setSource(new ri());
|
|
607
610
|
}, [n]), null;
|
|
608
|
-
},
|
|
609
|
-
const t =
|
|
610
|
-
return
|
|
611
|
+
}, Br = ({ drawType: e, onPolygonSelected: n }) => {
|
|
612
|
+
const t = ke();
|
|
613
|
+
return I(() => {
|
|
611
614
|
const i = {
|
|
612
615
|
type: "Circle"
|
|
613
616
|
/* CIRCLE */
|
|
614
617
|
};
|
|
615
618
|
switch (e) {
|
|
616
|
-
case
|
|
617
|
-
i.geometryFunction =
|
|
619
|
+
case le.BOX:
|
|
620
|
+
i.geometryFunction = li();
|
|
618
621
|
break;
|
|
619
|
-
case
|
|
622
|
+
case le.POLYGON:
|
|
620
623
|
i.type = "Polygon";
|
|
621
624
|
break;
|
|
622
625
|
default:
|
|
623
626
|
return;
|
|
624
627
|
}
|
|
625
|
-
const o = new
|
|
628
|
+
const o = new ai(i);
|
|
626
629
|
t.addInteraction(o);
|
|
627
630
|
const r = (c) => {
|
|
628
|
-
const m = new
|
|
631
|
+
const m = new Zt().writeGeometryObject(c.feature.getGeometry());
|
|
629
632
|
n == null || n(m);
|
|
630
633
|
};
|
|
631
634
|
return o.on("drawend", r), () => {
|
|
@@ -633,19 +636,19 @@ const dt = 5, ut = 2, on = Le(null), vr = on.Provider, St = 35, Lt = 32, Er = 10
|
|
|
633
636
|
};
|
|
634
637
|
}, [n, e, t]), null;
|
|
635
638
|
};
|
|
636
|
-
const
|
|
639
|
+
const Fr = (e) => {
|
|
637
640
|
const n = (t) => {
|
|
638
|
-
const i =
|
|
641
|
+
const i = Yn(t);
|
|
639
642
|
e.onPolygonSelection(i);
|
|
640
643
|
};
|
|
641
|
-
return /* @__PURE__ */ N(
|
|
642
|
-
/* @__PURE__ */ l(
|
|
643
|
-
e.selectionPolygon && /* @__PURE__ */ l(
|
|
644
|
+
return /* @__PURE__ */ N(_r, { allowFullScreen: !0, showMousePosition: !0, children: [
|
|
645
|
+
/* @__PURE__ */ l(Pr, { children: /* @__PURE__ */ l(Nr, {}) }),
|
|
646
|
+
e.selectionPolygon && /* @__PURE__ */ l(Dr, { children: /* @__PURE__ */ l(kr, { children: /* @__PURE__ */ l(Rr, { geometry: e.selectionPolygon }) }) }),
|
|
644
647
|
e.children,
|
|
645
|
-
e.drawType !== void 0 && /* @__PURE__ */ l(
|
|
648
|
+
e.drawType !== void 0 && /* @__PURE__ */ l(Br, { drawType: e.drawType, onPolygonSelected: n })
|
|
646
649
|
] });
|
|
647
|
-
},
|
|
648
|
-
(e) =>
|
|
650
|
+
}, et = 1.5, Hr = 80, Gr = Fe(
|
|
651
|
+
(e) => Ke({
|
|
649
652
|
map: {
|
|
650
653
|
height: "100%",
|
|
651
654
|
width: "100%",
|
|
@@ -654,12 +657,12 @@ const kr = (e) => {
|
|
|
654
657
|
absolute: {
|
|
655
658
|
position: "absolute",
|
|
656
659
|
zIndex: 1e3,
|
|
657
|
-
left: e.spacing(
|
|
658
|
-
top: e.spacing(
|
|
660
|
+
left: e.spacing(et),
|
|
661
|
+
top: e.spacing(et)
|
|
659
662
|
},
|
|
660
663
|
contentContainer: {
|
|
661
|
-
marginTop: e.spacing(
|
|
662
|
-
width: e.spacing(
|
|
664
|
+
marginTop: e.spacing(et),
|
|
665
|
+
width: e.spacing(Hr)
|
|
663
666
|
},
|
|
664
667
|
filtersContainer: {
|
|
665
668
|
display: "flex",
|
|
@@ -669,18 +672,18 @@ const kr = (e) => {
|
|
|
669
672
|
marginLeft: e.spacing(1)
|
|
670
673
|
}
|
|
671
674
|
})
|
|
672
|
-
),
|
|
675
|
+
), ia = (e) => {
|
|
673
676
|
var m;
|
|
674
|
-
const [n, t] =
|
|
675
|
-
o(
|
|
677
|
+
const [n, t] = D(), [i, o] = D(), r = Gr(), c = (p) => {
|
|
678
|
+
o(p), t(void 0), e.handlePolygonSelected(p);
|
|
676
679
|
}, u = () => {
|
|
677
680
|
o(void 0), e.handlePolygonReset();
|
|
678
681
|
};
|
|
679
682
|
return /* @__PURE__ */ N("div", { className: r.map, children: [
|
|
680
683
|
/* @__PURE__ */ N("div", { className: `${r.absolute}`, children: [
|
|
681
|
-
/* @__PURE__ */ N(
|
|
684
|
+
/* @__PURE__ */ N(ot, { className: r.filtersContainer, children: [
|
|
682
685
|
/* @__PURE__ */ l(
|
|
683
|
-
|
|
686
|
+
wr,
|
|
684
687
|
{
|
|
685
688
|
onCancelDraw: () => t(void 0),
|
|
686
689
|
onReset: u,
|
|
@@ -688,48 +691,48 @@ const kr = (e) => {
|
|
|
688
691
|
isSelectionEnabled: n !== void 0
|
|
689
692
|
}
|
|
690
693
|
),
|
|
691
|
-
(m = e.filters) == null ? void 0 : m.map((
|
|
694
|
+
(m = e.filters) == null ? void 0 : m.map((p, E) => /* @__PURE__ */ l("div", { className: r.filtersMargin, children: p }, E))
|
|
692
695
|
] }),
|
|
693
|
-
/* @__PURE__ */ l(
|
|
696
|
+
/* @__PURE__ */ l(ot, { color: "red", className: `${r.contentContainer}`, children: e.children })
|
|
694
697
|
] }),
|
|
695
|
-
/* @__PURE__ */ l(
|
|
698
|
+
/* @__PURE__ */ l(Fr, { children: e.mapContent, onPolygonSelection: c, drawType: n, selectionPolygon: i })
|
|
696
699
|
] });
|
|
697
|
-
},
|
|
700
|
+
}, xt = new di({
|
|
698
701
|
color: "rgba(255,255,255,0.4)"
|
|
699
|
-
}),
|
|
702
|
+
}), It = new ui({
|
|
700
703
|
color: "#3399CC",
|
|
701
704
|
width: 1.25
|
|
702
|
-
}),
|
|
703
|
-
new
|
|
704
|
-
image: new
|
|
705
|
-
fill:
|
|
706
|
-
stroke:
|
|
705
|
+
}), Dt = [
|
|
706
|
+
new hi({
|
|
707
|
+
image: new mi({
|
|
708
|
+
fill: xt,
|
|
709
|
+
stroke: It,
|
|
707
710
|
radius: 5
|
|
708
711
|
}),
|
|
709
|
-
fill:
|
|
710
|
-
stroke:
|
|
712
|
+
fill: xt,
|
|
713
|
+
stroke: It
|
|
711
714
|
})
|
|
712
|
-
],
|
|
713
|
-
const e =
|
|
715
|
+
], hn = Me(null), Vr = hn.Provider, zr = () => {
|
|
716
|
+
const e = Pe(hn);
|
|
714
717
|
if (e === null)
|
|
715
718
|
throw new Error("vector tile layer context is null, please check the provider");
|
|
716
719
|
return e;
|
|
717
|
-
},
|
|
718
|
-
const i =
|
|
719
|
-
new
|
|
720
|
+
}, ra = ({ children: e, options: n, style: t }) => {
|
|
721
|
+
const i = ke(), [o] = D(
|
|
722
|
+
new ci({
|
|
720
723
|
...n,
|
|
721
|
-
style: t ||
|
|
724
|
+
style: t || Dt
|
|
722
725
|
})
|
|
723
726
|
);
|
|
724
|
-
return
|
|
727
|
+
return I(() => (i.addLayer(o), () => {
|
|
725
728
|
i.removeLayer(o);
|
|
726
|
-
}), [i, o]),
|
|
727
|
-
o.setStyle(t ||
|
|
728
|
-
}, [o, t]), /* @__PURE__ */ l(
|
|
729
|
-
},
|
|
730
|
-
const n =
|
|
731
|
-
for (let
|
|
732
|
-
i[
|
|
729
|
+
}), [i, o]), I(() => {
|
|
730
|
+
o.setStyle(t || Dt);
|
|
731
|
+
}, [o, t]), /* @__PURE__ */ l(Vr, { value: o, children: e });
|
|
732
|
+
}, tt = 20, $r = 256, Wr = 2, Ur = 2, jr = "REST", oa = (e) => {
|
|
733
|
+
const n = ei(e.projection), t = n.getExtent(), i = new Array(tt), o = new Array(tt), r = gi(t) / $r, c = e.heightWidthRatio !== void 0 ? e.heightWidthRatio : Ur, u = e.requestEncoding !== void 0 ? e.requestEncoding : jr;
|
|
734
|
+
for (let p = 0; p < tt; ++p)
|
|
735
|
+
i[p] = r / Math.pow(Wr, p) / c, o[p] = p.toString();
|
|
733
736
|
return {
|
|
734
737
|
attributions: e.attributions,
|
|
735
738
|
url: e.url,
|
|
@@ -737,8 +740,8 @@ const kr = (e) => {
|
|
|
737
740
|
matrixSet: e.matrixSet,
|
|
738
741
|
format: e.format,
|
|
739
742
|
projection: n,
|
|
740
|
-
tileGrid: new
|
|
741
|
-
origin:
|
|
743
|
+
tileGrid: new pi({
|
|
744
|
+
origin: fi(t),
|
|
742
745
|
resolutions: i,
|
|
743
746
|
matrixIds: o
|
|
744
747
|
}),
|
|
@@ -746,12 +749,12 @@ const kr = (e) => {
|
|
|
746
749
|
requestEncoding: u,
|
|
747
750
|
wrapX: e.wrapX !== void 0 ? e.wrapX : !0
|
|
748
751
|
};
|
|
749
|
-
},
|
|
750
|
-
const n =
|
|
751
|
-
return
|
|
752
|
-
n.setSource(new
|
|
752
|
+
}, sa = (e) => {
|
|
753
|
+
const n = qe(), { options: t } = e;
|
|
754
|
+
return I(() => {
|
|
755
|
+
n.setSource(new oi(t));
|
|
753
756
|
}, [n, t]), null;
|
|
754
|
-
},
|
|
757
|
+
}, aa = (e) => {
|
|
755
758
|
const { attributions: n, url: t, params: i, serverType: o, transition: r } = e;
|
|
756
759
|
return {
|
|
757
760
|
attributions: n,
|
|
@@ -760,53 +763,76 @@ const kr = (e) => {
|
|
|
760
763
|
serverType: o,
|
|
761
764
|
transition: r
|
|
762
765
|
};
|
|
763
|
-
},
|
|
764
|
-
const n =
|
|
765
|
-
return
|
|
766
|
-
n.setSource(new
|
|
766
|
+
}, la = (e) => {
|
|
767
|
+
const n = qe(), { options: t } = e;
|
|
768
|
+
return I(() => {
|
|
769
|
+
n.setSource(new yi(t));
|
|
767
770
|
}, [n, t]), null;
|
|
768
|
-
},
|
|
771
|
+
}, ca = (e) => {
|
|
769
772
|
const { attributions: n, url: t } = e;
|
|
770
773
|
return {
|
|
771
774
|
attributions: n,
|
|
772
775
|
url: t
|
|
773
776
|
};
|
|
774
|
-
},
|
|
775
|
-
const n =
|
|
776
|
-
return
|
|
777
|
-
n.setSource(new
|
|
777
|
+
}, da = (e) => {
|
|
778
|
+
const n = qe(), { options: t } = e;
|
|
779
|
+
return I(() => {
|
|
780
|
+
n.setSource(new vi(t));
|
|
778
781
|
}, [n, t]), null;
|
|
779
|
-
},
|
|
780
|
-
const e =
|
|
782
|
+
}, Kr = Me(null), ua = () => {
|
|
783
|
+
const e = Pe(Kr);
|
|
781
784
|
if (e === null)
|
|
782
785
|
throw new Error("vector tile source context is null, please check the provider");
|
|
783
786
|
return e;
|
|
784
|
-
},
|
|
787
|
+
}, ha = (e) => {
|
|
785
788
|
const { url: n } = e;
|
|
786
789
|
return {
|
|
787
790
|
url: n,
|
|
788
|
-
format: new
|
|
791
|
+
format: new si()
|
|
789
792
|
};
|
|
790
|
-
},
|
|
791
|
-
const t =
|
|
792
|
-
return
|
|
793
|
-
t.setSource(new
|
|
793
|
+
}, ma = ({ children: e, options: n }) => {
|
|
794
|
+
const t = zr();
|
|
795
|
+
return I(() => {
|
|
796
|
+
t.setSource(new Ei(n));
|
|
794
797
|
}, [n, t]), null;
|
|
798
|
+
}, pa = ({ legendItems: e, title: n, isCollapsed: t }) => {
|
|
799
|
+
const i = ke();
|
|
800
|
+
return I(() => {
|
|
801
|
+
const o = new St({
|
|
802
|
+
title: n ?? "",
|
|
803
|
+
margin: 5,
|
|
804
|
+
maxWidth: 300
|
|
805
|
+
}), r = new Ci({
|
|
806
|
+
legend: o,
|
|
807
|
+
collapsed: t === void 0 ? !0 : t
|
|
808
|
+
});
|
|
809
|
+
i.addControl(r);
|
|
810
|
+
const c = new St({ margin: 4 });
|
|
811
|
+
return e.forEach((u) => {
|
|
812
|
+
c.addItem({
|
|
813
|
+
title: u.title,
|
|
814
|
+
style: u.style,
|
|
815
|
+
typeGeom: "Polygon"
|
|
816
|
+
});
|
|
817
|
+
}), o.addItem(c), () => {
|
|
818
|
+
i.removeControl(r);
|
|
819
|
+
};
|
|
820
|
+
}, [i, e, n, t]), /* @__PURE__ */ l(oe, {});
|
|
795
821
|
};
|
|
796
|
-
function
|
|
822
|
+
function qr(e) {
|
|
797
823
|
const { headCells: n, order: t, orderBy: i, onRequestSort: o, isCollapseable: r } = e, c = (u) => (m) => {
|
|
798
824
|
o(m, u);
|
|
799
825
|
};
|
|
800
|
-
return /* @__PURE__ */ l(
|
|
801
|
-
r && /* @__PURE__ */ l(
|
|
826
|
+
return /* @__PURE__ */ l(wi, { children: /* @__PURE__ */ N($e, { children: [
|
|
827
|
+
r && /* @__PURE__ */ l(Ae, {}),
|
|
802
828
|
n.map((u) => /* @__PURE__ */ l(
|
|
803
|
-
|
|
829
|
+
Ae,
|
|
804
830
|
{
|
|
805
831
|
align: u.numeric ? "right" : "left",
|
|
806
832
|
padding: u.disablePadding ? "none" : "default",
|
|
807
833
|
sortDirection: i === u.id ? t : !1,
|
|
808
834
|
children: /* @__PURE__ */ l(
|
|
809
|
-
|
|
835
|
+
Pn,
|
|
810
836
|
{
|
|
811
837
|
active: i === u.id,
|
|
812
838
|
direction: i === u.id ? t : "asc",
|
|
@@ -819,36 +845,36 @@ function Wr(e) {
|
|
|
819
845
|
))
|
|
820
846
|
] }) });
|
|
821
847
|
}
|
|
822
|
-
const
|
|
823
|
-
/* @__PURE__ */
|
|
848
|
+
const Yr = Jt(
|
|
849
|
+
/* @__PURE__ */ $t.createElement("path", {
|
|
824
850
|
d: "M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"
|
|
825
851
|
}),
|
|
826
852
|
"KeyboardArrowDown"
|
|
827
|
-
),
|
|
828
|
-
/* @__PURE__ */
|
|
853
|
+
), Xr = Jt(
|
|
854
|
+
/* @__PURE__ */ $t.createElement("path", {
|
|
829
855
|
d: "M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z"
|
|
830
856
|
}),
|
|
831
857
|
"KeyboardArrowUp"
|
|
832
858
|
);
|
|
833
|
-
function
|
|
834
|
-
const { cellsMetadata: n, isRowSelected: t, item: i, onRowSelected: o, rowIndex: r, isCollapseable: c, collapsedElement: u } = e, [m,
|
|
835
|
-
return /* @__PURE__ */ N(
|
|
836
|
-
/* @__PURE__ */ N(
|
|
859
|
+
function Zr(e) {
|
|
860
|
+
const { cellsMetadata: n, isRowSelected: t, item: i, onRowSelected: o, rowIndex: r, isCollapseable: c, collapsedElement: u } = e, [m, p] = D(!1), E = n.length;
|
|
861
|
+
return /* @__PURE__ */ N(oe, { children: [
|
|
862
|
+
/* @__PURE__ */ N($e, { hover: !0, selected: t, onClick: () => {
|
|
837
863
|
o == null || o(r);
|
|
838
864
|
}, children: [
|
|
839
|
-
c && /* @__PURE__ */ l(
|
|
840
|
-
|
|
865
|
+
c && /* @__PURE__ */ l(Ae, { padding: "checkbox", children: /* @__PURE__ */ l(
|
|
866
|
+
xn,
|
|
841
867
|
{
|
|
842
868
|
"aria-label": "expand row",
|
|
843
869
|
size: "small",
|
|
844
870
|
onClick: (w) => {
|
|
845
|
-
w.stopPropagation(),
|
|
871
|
+
w.stopPropagation(), p(!m);
|
|
846
872
|
},
|
|
847
|
-
children: m ? /* @__PURE__ */ l(
|
|
873
|
+
children: m ? /* @__PURE__ */ l(Xr, {}) : /* @__PURE__ */ l(Yr, {})
|
|
848
874
|
}
|
|
849
875
|
) }),
|
|
850
876
|
n.map((w) => /* @__PURE__ */ l(
|
|
851
|
-
|
|
877
|
+
Ae,
|
|
852
878
|
{
|
|
853
879
|
align: w.numeric ? "right" : "left",
|
|
854
880
|
padding: w.disablePadding ? "none" : "default",
|
|
@@ -857,169 +883,169 @@ function Kr(e) {
|
|
|
857
883
|
w.id + r.toString()
|
|
858
884
|
))
|
|
859
885
|
] }),
|
|
860
|
-
c && /* @__PURE__ */ l(
|
|
886
|
+
c && /* @__PURE__ */ l($e, { children: /* @__PURE__ */ l(Ae, { style: { paddingBottom: 0, paddingTop: 0 }, colSpan: E + 1, children: /* @__PURE__ */ l(In, { in: m, unmountOnExit: !0, timeout: "auto", children: u == null ? void 0 : u(i) }) }) })
|
|
861
887
|
] });
|
|
862
888
|
}
|
|
863
|
-
function
|
|
864
|
-
const [n, t] =
|
|
889
|
+
function ga(e) {
|
|
890
|
+
const [n, t] = D(""), [i, o] = D("asc"), {
|
|
865
891
|
cellsMetadata: r,
|
|
866
892
|
items: c,
|
|
867
893
|
onRequestSort: u,
|
|
868
894
|
onRowSelected: m,
|
|
869
|
-
isCollapseable:
|
|
895
|
+
isCollapseable: p,
|
|
870
896
|
collapsedElement: E,
|
|
871
|
-
isDense:
|
|
897
|
+
isDense: L,
|
|
872
898
|
page: w,
|
|
873
899
|
rowsPerPage: P,
|
|
874
|
-
count:
|
|
875
|
-
handleChangePage:
|
|
876
|
-
handleChangeRowsPerPage:
|
|
900
|
+
count: A,
|
|
901
|
+
handleChangePage: H,
|
|
902
|
+
handleChangeRowsPerPage: Y
|
|
877
903
|
} = e;
|
|
878
|
-
return /* @__PURE__ */ N(
|
|
879
|
-
/* @__PURE__ */ N(
|
|
904
|
+
return /* @__PURE__ */ N(Dn, { component: ot, children: [
|
|
905
|
+
/* @__PURE__ */ N(On, { size: L ? "small" : "medium", children: [
|
|
880
906
|
/* @__PURE__ */ l(
|
|
881
|
-
|
|
907
|
+
qr,
|
|
882
908
|
{
|
|
883
909
|
headCells: r,
|
|
884
|
-
onRequestSort: (
|
|
885
|
-
const O = n ===
|
|
886
|
-
o(O ? "desc" : "asc"), t(
|
|
910
|
+
onRequestSort: (U, j) => {
|
|
911
|
+
const O = n === j && i === "asc";
|
|
912
|
+
o(O ? "desc" : "asc"), t(j), u(j, O ? "desc" : "asc");
|
|
887
913
|
},
|
|
888
914
|
order: i,
|
|
889
915
|
orderBy: n,
|
|
890
|
-
isCollapseable:
|
|
916
|
+
isCollapseable: p
|
|
891
917
|
}
|
|
892
918
|
),
|
|
893
|
-
/* @__PURE__ */ N(
|
|
894
|
-
c.map((
|
|
895
|
-
|
|
919
|
+
/* @__PURE__ */ N(An, { children: [
|
|
920
|
+
c.map((U, j) => /* @__PURE__ */ l(
|
|
921
|
+
Zr,
|
|
896
922
|
{
|
|
897
|
-
item:
|
|
898
|
-
rowIndex:
|
|
899
|
-
isCollapseable:
|
|
923
|
+
item: U,
|
|
924
|
+
rowIndex: j,
|
|
925
|
+
isCollapseable: p,
|
|
900
926
|
cellsMetadata: r,
|
|
901
927
|
collapsedElement: E,
|
|
902
928
|
isRowSelected: !1,
|
|
903
929
|
onRowSelected: m
|
|
904
930
|
},
|
|
905
|
-
|
|
931
|
+
j
|
|
906
932
|
)),
|
|
907
933
|
(c.length === 0 || P > c.length) && /* @__PURE__ */ l(
|
|
908
|
-
|
|
934
|
+
$e,
|
|
909
935
|
{
|
|
910
936
|
style: {
|
|
911
|
-
height: (
|
|
937
|
+
height: (L ? 33 : 53) * (P - c.length)
|
|
912
938
|
},
|
|
913
|
-
children: /* @__PURE__ */ l(
|
|
939
|
+
children: /* @__PURE__ */ l(Ae, { colSpan: p ? r.length + 1 : r.length, children: c.length === 0 && /* @__PURE__ */ l(kn, { align: "center", children: "No results :(" }) })
|
|
914
940
|
}
|
|
915
941
|
)
|
|
916
942
|
] })
|
|
917
943
|
] }),
|
|
918
944
|
/* @__PURE__ */ l(
|
|
919
|
-
|
|
945
|
+
Rn,
|
|
920
946
|
{
|
|
921
947
|
rowsPerPage: P,
|
|
922
948
|
rowsPerPageOptions: [5, 10],
|
|
923
949
|
component: "div",
|
|
924
|
-
count:
|
|
950
|
+
count: A,
|
|
925
951
|
page: w,
|
|
926
|
-
onPageChange:
|
|
927
|
-
onRowsPerPageChange:
|
|
952
|
+
onPageChange: H,
|
|
953
|
+
onRowsPerPageChange: Y
|
|
928
954
|
}
|
|
929
955
|
)
|
|
930
956
|
] });
|
|
931
957
|
}
|
|
932
|
-
const
|
|
958
|
+
const fa = (e) => {
|
|
933
959
|
const { children: n, ...t } = e;
|
|
934
|
-
return /* @__PURE__ */ l(
|
|
935
|
-
},
|
|
960
|
+
return /* @__PURE__ */ l(Ti, { ...t, children: n });
|
|
961
|
+
}, ya = (e) => {
|
|
936
962
|
const { children: n, ...t } = e;
|
|
937
|
-
return /* @__PURE__ */ l(
|
|
938
|
-
},
|
|
939
|
-
const
|
|
963
|
+
return /* @__PURE__ */ l(bi, { ...t, children: n });
|
|
964
|
+
}, Ot = (e) => e * Math.PI / 180, Ge = (e) => e * (180 / Math.PI), Jr = (e) => 0.05 * (5916575505e-1 / Math.pow(2, e - 1) / 2) * (Math.cos(Ot(85.362 / 2)) / Math.sin(Ot(85.362 / 2)));
|
|
965
|
+
const mn = (e, n, t) => {
|
|
940
966
|
let i;
|
|
941
|
-
if (e.scene.mode !==
|
|
967
|
+
if (e.scene.mode !== Le.SCENE2D)
|
|
942
968
|
i = e.scene.pickPosition(new Ce(n, t));
|
|
943
969
|
else {
|
|
944
970
|
const o = e.scene.globe.ellipsoid;
|
|
945
971
|
i = e.camera.pickEllipsoid(new Ce(n, t), o);
|
|
946
972
|
}
|
|
947
|
-
return
|
|
948
|
-
},
|
|
949
|
-
const i =
|
|
973
|
+
return He.fromCartesian(i);
|
|
974
|
+
}, Qr = (e, n, t) => {
|
|
975
|
+
const i = mn(e, n, t);
|
|
950
976
|
return {
|
|
951
977
|
type: "Feature",
|
|
952
978
|
properties: {},
|
|
953
979
|
geometry: {
|
|
954
980
|
type: "Point",
|
|
955
|
-
coordinates: [
|
|
981
|
+
coordinates: [fe.toDegrees(i.longitude), fe.toDegrees(i.latitude)]
|
|
956
982
|
}
|
|
957
983
|
};
|
|
958
|
-
},
|
|
984
|
+
}, pn = (e, n, t) => {
|
|
959
985
|
try {
|
|
960
|
-
const i =
|
|
986
|
+
const i = mn(e, n, t);
|
|
961
987
|
return {
|
|
962
|
-
longitude:
|
|
963
|
-
latitude:
|
|
988
|
+
longitude: fe.toDegrees(i.longitude),
|
|
989
|
+
latitude: fe.toDegrees(i.latitude)
|
|
964
990
|
};
|
|
965
991
|
} catch {
|
|
966
992
|
return;
|
|
967
993
|
}
|
|
968
994
|
};
|
|
969
|
-
class
|
|
995
|
+
class va extends ki {
|
|
970
996
|
}
|
|
971
|
-
class
|
|
997
|
+
class Ea extends Ri {
|
|
972
998
|
}
|
|
973
|
-
class
|
|
999
|
+
class Ca extends Ni {
|
|
974
1000
|
}
|
|
975
|
-
class
|
|
1001
|
+
class wa extends Ce {
|
|
976
1002
|
}
|
|
977
|
-
class
|
|
1003
|
+
class Ta extends ve {
|
|
978
1004
|
}
|
|
979
|
-
class
|
|
1005
|
+
class eo extends He {
|
|
980
1006
|
}
|
|
981
|
-
class
|
|
1007
|
+
class ba extends Bi {
|
|
982
1008
|
}
|
|
983
|
-
class
|
|
1009
|
+
class La extends en {
|
|
984
1010
|
}
|
|
985
|
-
class
|
|
1011
|
+
class Sa extends Fi {
|
|
986
1012
|
}
|
|
987
|
-
class
|
|
1013
|
+
class _a extends Oe {
|
|
988
1014
|
}
|
|
989
|
-
class
|
|
1015
|
+
class Ma extends Hi {
|
|
990
1016
|
}
|
|
991
|
-
class
|
|
1017
|
+
class Pa extends Gi {
|
|
992
1018
|
}
|
|
993
|
-
class
|
|
1019
|
+
class xa extends Vi {
|
|
994
1020
|
}
|
|
995
|
-
const
|
|
996
|
-
const n =
|
|
997
|
-
return
|
|
1021
|
+
const Ia = at, Da = tn, to = (e) => {
|
|
1022
|
+
const n = se(), t = Se(null), [i, o] = D({ x: 0, y: 0 });
|
|
1023
|
+
return I(() => {
|
|
998
1024
|
n.screenSpaceEventHandler.setInputAction((r) => {
|
|
999
1025
|
if (r != null && r.endPosition) {
|
|
1000
1026
|
const c = { ...r.endPosition };
|
|
1001
1027
|
c.x = Math.ceil(c.x), c.y = Math.ceil(c.y), o(c);
|
|
1002
1028
|
}
|
|
1003
|
-
},
|
|
1004
|
-
}, [t, n]),
|
|
1029
|
+
}, zi.MOUSE_MOVE);
|
|
1030
|
+
}, [t, n]), I(() => {
|
|
1005
1031
|
const r = n.scene.globe.ellipsoid;
|
|
1006
1032
|
if (i) {
|
|
1007
|
-
const c =
|
|
1033
|
+
const c = pn(n, i.x, i.y);
|
|
1008
1034
|
if (c) {
|
|
1009
|
-
const u = new
|
|
1035
|
+
const u = new eo(c.longitude, c.latitude);
|
|
1010
1036
|
if (t.current) {
|
|
1011
1037
|
let m = "";
|
|
1012
1038
|
switch (e.projection) {
|
|
1013
|
-
case
|
|
1014
|
-
const E = new
|
|
1015
|
-
m = `Mercator: ${E.y.toFixed(
|
|
1016
|
-
|
|
1039
|
+
case ge.WEB_MERCATOR: {
|
|
1040
|
+
const E = new $i(r).project(u);
|
|
1041
|
+
m = `Mercator: ${E.y.toFixed(ht)}m, ${E.x.toFixed(
|
|
1042
|
+
ht
|
|
1017
1043
|
)}m`, t.current.style.width = "220px";
|
|
1018
1044
|
break;
|
|
1019
1045
|
}
|
|
1020
|
-
case
|
|
1021
|
-
const
|
|
1022
|
-
m = `WGS84: ${u.latitude.toFixed(
|
|
1046
|
+
case ge.WGS84: {
|
|
1047
|
+
const p = u.longitude.toFixed(ut);
|
|
1048
|
+
m = `WGS84: ${u.latitude.toFixed(ut)}°N ${p}°E`, t.current.style.width = "200px";
|
|
1023
1049
|
break;
|
|
1024
1050
|
}
|
|
1025
1051
|
}
|
|
@@ -1029,7 +1055,7 @@ const wa = st, Ta = Jt, Zr = (e) => {
|
|
|
1029
1055
|
}
|
|
1030
1056
|
}, [i, t, n, e.projection]), /* @__PURE__ */ l("div", { className: "trackerPosition", ref: t });
|
|
1031
1057
|
};
|
|
1032
|
-
const
|
|
1058
|
+
const nt = [
|
|
1033
1059
|
1,
|
|
1034
1060
|
2,
|
|
1035
1061
|
3,
|
|
@@ -1062,39 +1088,39 @@ const tt = [
|
|
|
1062
1088
|
2e7,
|
|
1063
1089
|
3e7,
|
|
1064
1090
|
5e7
|
|
1065
|
-
],
|
|
1091
|
+
], no = (e, n, t, i) => {
|
|
1066
1092
|
const o = Z(i, "METERS_UNIT") ?? "m", r = Z(i, "KILOMETERS_UNIT") ?? "km", c = {
|
|
1067
1093
|
barWidth: void 0,
|
|
1068
1094
|
distanceLabel: void 0,
|
|
1069
1095
|
lastLegendUpdate: n.lastLegendUpdate
|
|
1070
|
-
}, u = new
|
|
1096
|
+
}, u = new Ui(), m = new Date().getTime();
|
|
1071
1097
|
if (m < c.lastLegendUpdate + 250)
|
|
1072
1098
|
return;
|
|
1073
1099
|
c.lastLegendUpdate = m;
|
|
1074
|
-
const
|
|
1075
|
-
if (!
|
|
1100
|
+
const p = e.scene.canvas.clientWidth, E = e.scene.canvas.clientHeight, L = e.scene.camera.getPickRay(new Ce(p / 2 | 0, E - 1)), w = e.scene.camera.getPickRay(new Ce(1 + p / 2 | 0, E - 1)), P = e.scene.globe, A = P.pick(L, e.scene), H = P.pick(w, e.scene);
|
|
1101
|
+
if (!A || !H)
|
|
1076
1102
|
return;
|
|
1077
|
-
const
|
|
1078
|
-
u.setEndPoints(
|
|
1079
|
-
const
|
|
1103
|
+
const Y = P.ellipsoid.cartesianToCartographic(A), G = P.ellipsoid.cartesianToCartographic(H);
|
|
1104
|
+
u.setEndPoints(Y, G);
|
|
1105
|
+
const U = u.surfaceDistance, j = 100;
|
|
1080
1106
|
let O;
|
|
1081
|
-
for (let
|
|
1082
|
-
|
|
1083
|
-
if (
|
|
1084
|
-
let
|
|
1085
|
-
O >= 1e3 ?
|
|
1107
|
+
for (let z = nt.length - 1; !Ue(O) && z >= 0; --z)
|
|
1108
|
+
nt[z] / U < j && (O = nt[z]);
|
|
1109
|
+
if (Ue(O)) {
|
|
1110
|
+
let z = "";
|
|
1111
|
+
O >= 1e3 ? z = `${(O / 1e3).toString()} ${r}` : z = `${O.toString()} ${o}`, c.barWidth = O / U | 0, c.distanceLabel = z;
|
|
1086
1112
|
}
|
|
1087
1113
|
t(c);
|
|
1088
|
-
},
|
|
1089
|
-
const n =
|
|
1114
|
+
}, io = (e) => {
|
|
1115
|
+
const n = se(), [t, i] = D({
|
|
1090
1116
|
barWidth: void 0,
|
|
1091
1117
|
distanceLabel: void 0,
|
|
1092
1118
|
lastLegendUpdate: -1
|
|
1093
1119
|
});
|
|
1094
|
-
|
|
1120
|
+
I(() => {
|
|
1095
1121
|
const r = (m) => {
|
|
1096
|
-
|
|
1097
|
-
}, c = new
|
|
1122
|
+
no(n, t, i, e.locale);
|
|
1123
|
+
}, c = new Wi(), u = (m) => {
|
|
1098
1124
|
n.scene.globe.tilesLoaded && (r(new MouseEvent("mouse")), c.removeAll());
|
|
1099
1125
|
};
|
|
1100
1126
|
return c.add(n.scene.globe.tileLoadProgressEvent, u), n.camera.moveEnd.addEventListener(r), () => {
|
|
@@ -1106,7 +1132,7 @@ const tt = [
|
|
|
1106
1132
|
};
|
|
1107
1133
|
}, [n, e.locale, t]);
|
|
1108
1134
|
const o = (r) => 5 + (125 - r) / 2;
|
|
1109
|
-
return /* @__PURE__ */ l("div", { className: "scalePosition", children:
|
|
1135
|
+
return /* @__PURE__ */ l("div", { className: "scalePosition", children: Ue(t.barWidth) && /* @__PURE__ */ N(oe, { children: [
|
|
1110
1136
|
/* @__PURE__ */ l("div", { className: "scale-tracker-label", children: /* @__PURE__ */ l("bdi", { children: t.distanceLabel }) }),
|
|
1111
1137
|
/* @__PURE__ */ l(
|
|
1112
1138
|
"div",
|
|
@@ -1120,30 +1146,30 @@ const tt = [
|
|
|
1120
1146
|
}
|
|
1121
1147
|
)
|
|
1122
1148
|
] }) });
|
|
1123
|
-
},
|
|
1124
|
-
MORPHING:
|
|
1125
|
-
COLUMBUS_VIEW:
|
|
1126
|
-
SCENE2D:
|
|
1127
|
-
SCENE3D:
|
|
1149
|
+
}, re = {
|
|
1150
|
+
MORPHING: Le.MORPHING,
|
|
1151
|
+
COLUMBUS_VIEW: Le.COLUMBUS_VIEW,
|
|
1152
|
+
SCENE2D: Le.SCENE2D,
|
|
1153
|
+
SCENE3D: Le.SCENE3D
|
|
1128
1154
|
};
|
|
1129
|
-
const
|
|
1155
|
+
const At = (e, n) => {
|
|
1130
1156
|
const i = Z(n.scene.globe, "_surface.tileProvider"), o = i._quadtree, r = n.canvas.height, c = Z(n.camera.frustum, "sseDenominator") ?? 1;
|
|
1131
1157
|
for (let u = 0; u <= 19; u++)
|
|
1132
1158
|
if (i.getLevelMaximumGeometricError(u) * r / (e * c) < o.maximumScreenSpaceError)
|
|
1133
1159
|
return u;
|
|
1134
1160
|
return null;
|
|
1135
|
-
},
|
|
1161
|
+
}, ro = (e, n) => {
|
|
1136
1162
|
e = e || 10;
|
|
1137
1163
|
const t = [];
|
|
1138
1164
|
let i = 1e5, o = 0;
|
|
1139
1165
|
for (let r = 1e8; r > i; r = r - i) {
|
|
1140
|
-
const c =
|
|
1166
|
+
const c = At(r, n);
|
|
1141
1167
|
if (c === null)
|
|
1142
1168
|
break;
|
|
1143
1169
|
if (c !== o) {
|
|
1144
1170
|
let u = r, m = r + i;
|
|
1145
1171
|
for (; m - u > e; )
|
|
1146
|
-
r = u + (m - u) / 2,
|
|
1172
|
+
r = u + (m - u) / 2, At(r, n) === c ? u = r : m = r;
|
|
1147
1173
|
t.push({
|
|
1148
1174
|
level: c,
|
|
1149
1175
|
height: Math.round(r)
|
|
@@ -1151,18 +1177,18 @@ const Dt = (e, n) => {
|
|
|
1151
1177
|
}
|
|
1152
1178
|
}
|
|
1153
1179
|
return t;
|
|
1154
|
-
},
|
|
1155
|
-
const t =
|
|
1156
|
-
const E = t.camera,
|
|
1180
|
+
}, oo = ({ locale: e = void 0, valueBy: n = "RENDERED_TILES" }) => {
|
|
1181
|
+
const t = se(), [i, o] = D(1), r = ro(1, t), c = pe(() => {
|
|
1182
|
+
const E = t.camera, L = 0.5;
|
|
1157
1183
|
let w = 0;
|
|
1158
1184
|
switch (t.scene.mode) {
|
|
1159
|
-
case
|
|
1185
|
+
case re.SCENE3D:
|
|
1160
1186
|
w = t.scene.mapProjection.ellipsoid.cartesianToCartographic(E.positionWC).height;
|
|
1161
1187
|
break;
|
|
1162
|
-
case
|
|
1163
|
-
w = (E.frustum.right - E.frustum.left) *
|
|
1188
|
+
case re.SCENE2D:
|
|
1189
|
+
w = (E.frustum.right - E.frustum.left) * L;
|
|
1164
1190
|
break;
|
|
1165
|
-
case
|
|
1191
|
+
case re.COLUMBUS_VIEW:
|
|
1166
1192
|
w = E.position.z;
|
|
1167
1193
|
break;
|
|
1168
1194
|
default:
|
|
@@ -1170,149 +1196,149 @@ const Dt = (e, n) => {
|
|
|
1170
1196
|
break;
|
|
1171
1197
|
}
|
|
1172
1198
|
if (r.length > 0) {
|
|
1173
|
-
const P = r.reduce((
|
|
1199
|
+
const P = r.reduce((A, H) => Math.abs(H.height - w) < Math.abs(A.height - w) ? H : A);
|
|
1174
1200
|
o(P.level);
|
|
1175
1201
|
}
|
|
1176
|
-
}, [t, r]), u =
|
|
1202
|
+
}, [t, r]), u = pe(() => {
|
|
1177
1203
|
let E = 0;
|
|
1178
|
-
t.scene.globe._surface.forEachRenderedTile(function(
|
|
1179
|
-
E = Math.max(E,
|
|
1204
|
+
t.scene.globe._surface.forEachRenderedTile(function(L) {
|
|
1205
|
+
E = Math.max(E, L.level);
|
|
1180
1206
|
}), o(E);
|
|
1181
|
-
}, [t]),
|
|
1207
|
+
}, [t]), p = Be(() => ({
|
|
1182
1208
|
CALCULATION: c,
|
|
1183
1209
|
RENDERED_TILES: u
|
|
1184
1210
|
}), [c, u])[n];
|
|
1185
|
-
return
|
|
1211
|
+
return I(() => {
|
|
1186
1212
|
const E = t.scene.globe.tileLoadProgressEvent.addEventListener(function() {
|
|
1187
|
-
t.scene.globe.tilesLoaded &&
|
|
1213
|
+
t.scene.globe.tilesLoaded && p();
|
|
1188
1214
|
});
|
|
1189
|
-
return t.camera.moveEnd.addEventListener(
|
|
1215
|
+
return t.camera.moveEnd.addEventListener(p), () => {
|
|
1190
1216
|
try {
|
|
1191
|
-
typeof Z(t, "_cesiumWidget") < "u" && (t.camera.moveEnd.removeEventListener(
|
|
1192
|
-
} catch (
|
|
1193
|
-
console.log('CESIUM camera "moveEnd"(from zoom tracker) remove listener failed',
|
|
1217
|
+
typeof Z(t, "_cesiumWidget") < "u" && (t.camera.moveEnd.removeEventListener(p), E());
|
|
1218
|
+
} catch (L) {
|
|
1219
|
+
console.log('CESIUM camera "moveEnd"(from zoom tracker) remove listener failed', L);
|
|
1194
1220
|
}
|
|
1195
1221
|
};
|
|
1196
|
-
}, [t,
|
|
1222
|
+
}, [t, p]), /* @__PURE__ */ N("div", { className: "zoomLevel", children: [
|
|
1197
1223
|
/* @__PURE__ */ l("div", { className: "zoomLevelValue", children: i }),
|
|
1198
1224
|
/* @__PURE__ */ l("div", { className: "zoomLevelLabel", children: Z(e, "ZOOM_LABEL") ?? "zoom" })
|
|
1199
1225
|
] });
|
|
1200
1226
|
};
|
|
1201
|
-
const
|
|
1202
|
-
const n =
|
|
1203
|
-
return
|
|
1227
|
+
const so = -1, ao = (e) => {
|
|
1228
|
+
const n = se(), [t, i] = D(), { sceneModes: o } = e, r = (c) => o.findIndex((u) => u === c) > so;
|
|
1229
|
+
return I(() => {
|
|
1204
1230
|
i(n.scene.mode);
|
|
1205
|
-
}, []), /* @__PURE__ */ N(
|
|
1206
|
-
r(
|
|
1207
|
-
|
|
1231
|
+
}, []), /* @__PURE__ */ N(oe, { children: [
|
|
1232
|
+
r(re.SCENE3D) && /* @__PURE__ */ l(
|
|
1233
|
+
_e,
|
|
1208
1234
|
{
|
|
1209
|
-
icon: /* @__PURE__ */ l("div", { className: `mapViewIcon ${t ===
|
|
1235
|
+
icon: /* @__PURE__ */ l("div", { className: `mapViewIcon ${t === re.SCENE3D ? "mapViewCurrent" : ""}`, children: /* @__PURE__ */ l("svg", { width: "100%", height: "100%", viewBox: "0 0 64 64", children: /* @__PURE__ */ l("path", { d: "m 32.401392,4.9330437 c -7.087603,0 -14.096095,2.884602 -19.10793,7.8946843 -5.0118352,5.010083 -7.9296167,11.987468 -7.9296167,19.072999 0,7.085531 2.9177815,14.097848 7.9296167,19.107931 4.837653,4.835961 11.541408,7.631372 18.374354,7.82482 0.05712,0.01231 0.454119,0.139729 0.454119,0.139729 l 0.03493,-0.104797 c 0.08246,7.84e-4 0.162033,0.03493 0.244525,0.03493 0.08304,0 0.161515,-0.03414 0.244526,-0.03493 l 0.03493,0.104797 c 0,0 0.309474,-0.129487 0.349323,-0.139729 6.867765,-0.168094 13.582903,-2.965206 18.444218,-7.82482 2.558195,-2.5573 4.551081,-5.638134 5.903547,-8.977584 1.297191,-3.202966 2.02607,-6.661489 2.02607,-10.130347 0,-6.237309 -2.366261,-12.31219 -6.322734,-17.116794 -0.0034,-0.02316 0.0049,-0.04488 0,-0.06986 -0.01733,-0.08745 -0.104529,-0.278855 -0.104797,-0.279458 -5.31e-4,-0.0012 -0.522988,-0.628147 -0.523984,-0.62878 -3.47e-4,-2.2e-4 -0.133444,-0.03532 -0.244525,-0.06987 C 51.944299,13.447603 51.751076,13.104317 51.474391,12.827728 46.462556,7.8176457 39.488996,4.9330437 32.401392,4.9330437 z m -2.130866,3.5281554 0.104797,9.6762289 c -4.111695,-0.08361 -7.109829,-0.423664 -9.257041,-0.943171 1.198093,-2.269271 2.524531,-4.124404 3.91241,-5.414496 2.167498,-2.0147811 3.950145,-2.8540169 5.239834,-3.3185619 z m 2.794579,0 c 1.280302,0.4754953 3.022186,1.3285948 5.065173,3.2486979 1.424667,1.338973 2.788862,3.303645 3.982275,5.728886 -2.29082,0.403367 -5.381258,0.621049 -8.942651,0.698645 L 33.065105,8.4611991 z m 5.728886,0.2445256 c 4.004072,1.1230822 7.793098,3.1481363 10.724195,6.0782083 0.03468,0.03466 0.07033,0.06991 0.104797,0.104797 -0.45375,0.313891 -0.923054,0.663002 -1.956205,1.082899 -0.647388,0.263114 -1.906242,0.477396 -2.829511,0.733577 -1.382296,-2.988132 -3.027146,-5.368585 -4.785716,-7.0213781 -0.422866,-0.397432 -0.835818,-0.6453247 -1.25756,-0.9781032 z m -15.33525,0.7685092 c -0.106753,0.09503 -0.207753,0.145402 -0.31439,0.244526 -1.684973,1.5662541 -3.298068,3.8232211 -4.680919,6.5672591 -0.343797,-0.14942 -1.035052,-0.273198 -1.292493,-0.419186 -0.956528,-0.542427 -1.362964,-1.022024 -1.537018,-1.292493 -0.0241,-0.03745 -0.01868,-0.0401 -0.03493,-0.06986 2.250095,-2.163342 4.948824,-3.869984 7.859752,-5.0302421 z m -9.641296,7.0912431 c 0.464973,0.571618 0.937729,1.169056 1.956205,1.746612 0.349907,0.198425 1.107143,0.335404 1.537018,0.523983 -1.20166,3.172984 -1.998037,7.051901 -2.165798,11.772162 C 14.256557,30.361384 12.934823,30.161483 12.280427,29.90959 10.644437,29.279855 9.6888882,28.674891 9.1714586,28.267775 8.6540289,27.860658 8.6474751,27.778724 8.6474751,27.778724 l -0.069864,0.03493 C 9.3100294,23.691285 11.163248,19.798527 13.817445,16.565477 z m 37.552149,0.523984 c 2.548924,3.289983 4.265057,7.202594 4.890513,11.318043 -0.650428,0.410896 -1.756876,1.001936 -3.563088,1.606882 -1.171552,0.392383 -3.163859,0.759153 -4.960377,1.117832 -0.04367,-4.752703 -0.784809,-8.591423 -1.88634,-11.807094 0.917574,-0.263678 2.170552,-0.486495 2.864443,-0.76851 1.274693,-0.518066 2.003942,-1.001558 2.654849,-1.467153 z m -31.439008,2.619917 c 2.487341,0.672766 5.775813,1.137775 10.479669,1.222628 l 0.104797,10.689263 0,0.03493 0,0.733577 c -5.435005,-0.09059 -9.512219,-0.519044 -12.610536,-1.117831 0.106127,-4.776683 0.879334,-8.55791 2.02607,-11.562569 z m 23.264866,0.31439 c 1.073459,3.067541 1.833795,6.821314 1.816476,11.702298 -3.054474,0.423245 -7.062018,0.648559 -11.702298,0.698644 l 0,-0.838373 -0.104796,-10.654331 c 4.082416,-0.0864 7.404468,-0.403886 9.990618,-0.908238 z M 8.2632205,30.922625 c 0.7558676,0.510548 1.5529563,1.013339 3.0041715,1.57195 0.937518,0.360875 2.612202,0.647642 3.91241,0.978102 0.112814,3.85566 0.703989,7.107756 1.606883,9.920754 -1.147172,-0.324262 -2.644553,-0.640648 -3.423359,-0.978102 -1.516688,-0.657177 -2.386627,-1.287332 -2.864443,-1.71168 -0.477816,-0.424347 -0.489051,-0.489051 -0.489051,-0.489051 L 9.8002387,40.319395 C 8.791691,37.621767 8.1584238,34.769583 8.1584238,31.900727 c 0,-0.330153 0.090589,-0.648169 0.1047967,-0.978102 z m 48.2763445,0.419186 c 0.0047,0.188973 0.06986,0.36991 0.06986,0.558916 0,2.938869 -0.620228,5.873558 -1.676747,8.628261 -0.07435,0.07583 -0.06552,0.07411 -0.454119,0.349323 -0.606965,0.429857 -1.631665,1.042044 -3.318562,1.676747 -1.208528,0.454713 -3.204964,0.850894 -5.135038,1.25756 0.84593,-2.765726 1.41808,-6.005357 1.606883,-9.815957 2.232369,-0.413371 4.483758,-0.840201 5.938479,-1.327425 1.410632,-0.472457 2.153108,-0.89469 2.96924,-1.327425 z m -38.530252,2.864443 c 3.208141,0.56697 7.372279,0.898588 12.575603,0.978103 l 0.174662,9.885821 c -4.392517,-0.06139 -8.106722,-0.320566 -10.863925,-0.803441 -1.051954,-2.664695 -1.692909,-6.043794 -1.88634,-10.060483 z m 26.793022,0.31439 c -0.246298,3.923551 -0.877762,7.263679 -1.816476,9.885822 -2.561957,0.361954 -5.766249,0.560708 -9.431703,0.62878 l -0.174661,-9.815957 c 4.491734,-0.04969 8.334769,-0.293032 11.42284,-0.698645 z M 12.035901,44.860585 c 0.09977,0.04523 0.105535,0.09465 0.209594,0.139729 1.337656,0.579602 3.441099,1.058072 5.589157,1.537018 1.545042,3.399208 3.548524,5.969402 5.589157,7.789888 -3.034411,-1.215537 -5.871615,-3.007978 -8.174142,-5.309699 -1.245911,-1.245475 -2.271794,-2.662961 -3.213766,-4.156936 z m 40.69605,0 c -0.941972,1.493975 -1.967855,2.911461 -3.213765,4.156936 -2.74253,2.741571 -6.244106,4.696717 -9.955686,5.868615 0.261347,-0.241079 0.507495,-0.394491 0.768509,-0.663713 1.674841,-1.727516 3.320792,-4.181056 4.645987,-7.265904 2.962447,-0.503021 5.408965,-1.122293 7.161107,-1.781544 0.284034,-0.106865 0.337297,-0.207323 0.593848,-0.31439 z m -31.404076,2.305527 c 2.645807,0.376448 5.701178,0.649995 9.466635,0.698645 l 0.139729,7.789888 c -1.38739,-0.480844 -3.316218,-1.29837 -5.659022,-3.388427 -1.388822,-1.238993 -2.743668,-3.0113 -3.947342,-5.100106 z m 20.365491,0.104797 c -1.04872,2.041937 -2.174337,3.779068 -3.353494,4.995309 -1.853177,1.911459 -3.425515,2.82679 -4.611055,3.353494 l -0.139729,-7.789887 c 3.13091,-0.05714 5.728238,-0.278725 8.104278,-0.558916 z" }) }) }),
|
|
1210
1236
|
onClick: () => {
|
|
1211
|
-
n.scene.morphTo3D(), i(
|
|
1237
|
+
n.scene.morphTo3D(), i(re.SCENE3D);
|
|
1212
1238
|
}
|
|
1213
1239
|
}
|
|
1214
1240
|
),
|
|
1215
|
-
r(
|
|
1216
|
-
|
|
1241
|
+
r(re.SCENE2D) && /* @__PURE__ */ l(
|
|
1242
|
+
_e,
|
|
1217
1243
|
{
|
|
1218
|
-
icon: /* @__PURE__ */ l("div", { className: `mapViewIcon ${t ===
|
|
1244
|
+
icon: /* @__PURE__ */ l("div", { className: `mapViewIcon ${t === re.SCENE2D ? "mapViewCurrent" : ""}`, children: /* @__PURE__ */ l("svg", { width: "100%", height: "100%", viewBox: "0 0 64 64", children: /* @__PURE__ */ l("path", { d: "m 2.9825053,17.550598 0,1.368113 0,26.267766 0,1.368113 1.36811,0 54.9981397,0 1.36811,0 0,-1.368113 0,-26.267766 0,-1.368113 -1.36811,0 -54.9981397,0 -1.36811,0 z m 2.73623,2.736226 10.3292497,0 0,10.466063 -10.3292497,0 0,-10.466063 z m 13.0654697,0 11.69737,0 0,10.466063 -11.69737,0 0,-10.466063 z m 14.43359,0 11.69737,0 0,10.466063 -11.69737,0 0,-10.466063 z m 14.43359,0 10.32926,0 0,10.466063 -10.32926,0 0,-10.466063 z m -41.9326497,13.202288 10.3292497,0 0,10.329252 -10.3292497,0 0,-10.329252 z m 13.0654697,0 11.69737,0 0,10.329252 -11.69737,0 0,-10.329252 z m 14.43359,0 11.69737,0 0,10.329252 -11.69737,0 0,-10.329252 z m 14.43359,0 10.32926,0 0,10.329252 -10.32926,0 0,-10.329252 z" }) }) }),
|
|
1219
1245
|
onClick: () => {
|
|
1220
|
-
n.scene.morphTo2D(), i(
|
|
1246
|
+
n.scene.morphTo2D(), i(re.SCENE2D);
|
|
1221
1247
|
}
|
|
1222
1248
|
}
|
|
1223
1249
|
),
|
|
1224
|
-
r(
|
|
1225
|
-
|
|
1250
|
+
r(re.COLUMBUS_VIEW) && /* @__PURE__ */ l(
|
|
1251
|
+
_e,
|
|
1226
1252
|
{
|
|
1227
|
-
icon: /* @__PURE__ */ l("div", { className: `mapViewIcon ${t ===
|
|
1253
|
+
icon: /* @__PURE__ */ l("div", { className: `mapViewIcon ${t === re.COLUMBUS_VIEW ? "mapViewCurrent" : ""}`, children: /* @__PURE__ */ l("svg", { width: "100%", height: "100%", viewBox: "0 0 64 64", children: /* @__PURE__ */ l("path", { d: "m 14.723969,17.675598 -0.340489,0.817175 -11.1680536,26.183638 -0.817175,1.872692 2.076986,0 54.7506996,0 2.07698,0 -0.81717,-1.872692 -11.16805,-26.183638 -0.34049,-0.817175 -0.91933,0 -32.414586,0 -0.919322,0 z m 1.838643,2.723916 6.196908,0 -2.928209,10.418977 -7.729111,0 4.460412,-10.418977 z m 9.02297,0 4.903049,0 0,10.418977 -7.831258,0 2.928209,-10.418977 z m 7.626964,0 5.584031,0 2.62176,10.418977 -8.205791,0 0,-10.418977 z m 8.410081,0 5.51593,0 4.46042,10.418977 -7.38863,0 -2.58772,-10.418977 z m -30.678091,13.142892 8.103649,0 -2.89416,10.282782 -9.6018026,0 4.3923136,-10.282782 z m 10.929711,0 8.614384,0 0,10.282782 -11.508544,0 2.89416,-10.282782 z m 11.338299,0 8.852721,0 2.58772,10.282782 -11.440441,0 0,-10.282782 z m 11.678781,0 7.86531,0 4.39231,10.282782 -9.6699,0 -2.58772,-10.282782 z" }) }) }),
|
|
1228
1254
|
onClick: () => {
|
|
1229
|
-
n.scene.morphToColumbusView(), i(
|
|
1255
|
+
n.scene.morphToColumbusView(), i(re.COLUMBUS_VIEW);
|
|
1230
1256
|
}
|
|
1231
1257
|
}
|
|
1232
1258
|
)
|
|
1233
1259
|
] });
|
|
1234
1260
|
};
|
|
1235
|
-
const
|
|
1236
|
-
(e) =>
|
|
1261
|
+
const lo = Fe(
|
|
1262
|
+
(e) => Ke({
|
|
1237
1263
|
mapContainer: {
|
|
1238
1264
|
width: "60px",
|
|
1239
1265
|
height: "60px",
|
|
1240
1266
|
border: `${e.palette.background.paper} 2px solid`
|
|
1241
1267
|
}
|
|
1242
1268
|
})
|
|
1243
|
-
),
|
|
1244
|
-
const n =
|
|
1245
|
-
|
|
1246
|
-
const
|
|
1247
|
-
|
|
1269
|
+
), co = (e) => {
|
|
1270
|
+
const n = se(), { baseMaps: t } = e, [i, o] = D(" "), [r, c] = D(), u = lo();
|
|
1271
|
+
I(() => {
|
|
1272
|
+
const p = t == null ? void 0 : t.maps.find((E) => E.isCurrent);
|
|
1273
|
+
p && (c(p), o(p.title !== void 0 ? p.title : " "));
|
|
1248
1274
|
}, [t]);
|
|
1249
|
-
const m = (
|
|
1250
|
-
var E,
|
|
1275
|
+
const m = (p) => {
|
|
1276
|
+
var E, L;
|
|
1251
1277
|
if (t) {
|
|
1252
1278
|
(E = n.layersManager) == null || E.removeBaseMapLayers();
|
|
1253
|
-
const w = t.maps.find((P) => P.id ===
|
|
1254
|
-
w && ((
|
|
1279
|
+
const w = t.maps.find((P) => P.id === p);
|
|
1280
|
+
w && ((L = n.layersManager) == null || L.setBaseMapLayers(w), c(w), t.maps.forEach((P) => {
|
|
1255
1281
|
P.isCurrent = w === P;
|
|
1256
1282
|
}));
|
|
1257
1283
|
}
|
|
1258
1284
|
};
|
|
1259
|
-
return /* @__PURE__ */ N(
|
|
1285
|
+
return /* @__PURE__ */ N(oe, { children: [
|
|
1260
1286
|
/* @__PURE__ */ l("label", { className: "mapLabel", children: i }),
|
|
1261
|
-
/* @__PURE__ */ l("ul", { className: "mapSelector", children: t == null ? void 0 : t.maps.map((
|
|
1287
|
+
/* @__PURE__ */ l("ul", { className: "mapSelector", children: t == null ? void 0 : t.maps.map((p) => /* @__PURE__ */ l("li", { className: `mapContainer ${u.mapContainer} ${p === r ? "mapContainerSelected" : ""}`, children: /* @__PURE__ */ l(
|
|
1262
1288
|
"img",
|
|
1263
1289
|
{
|
|
1264
1290
|
alt: "",
|
|
1265
1291
|
className: "mapContainerImg",
|
|
1266
|
-
src:
|
|
1292
|
+
src: p.thumbnail,
|
|
1267
1293
|
onMouseOver: () => {
|
|
1268
|
-
o(
|
|
1294
|
+
o(p.title);
|
|
1269
1295
|
},
|
|
1270
1296
|
onMouseOut: () => {
|
|
1271
1297
|
o((r == null ? void 0 : r.title) !== void 0 ? r.title : " ");
|
|
1272
1298
|
},
|
|
1273
1299
|
onClick: () => {
|
|
1274
|
-
m(
|
|
1300
|
+
m(p.id);
|
|
1275
1301
|
}
|
|
1276
1302
|
}
|
|
1277
|
-
) },
|
|
1303
|
+
) }, p.id)) })
|
|
1278
1304
|
] });
|
|
1279
1305
|
};
|
|
1280
|
-
const
|
|
1281
|
-
const [n, t] =
|
|
1282
|
-
return
|
|
1283
|
-
const E = (
|
|
1284
|
-
var
|
|
1285
|
-
const w =
|
|
1286
|
-
P && !P.contains(w) && w.id !==
|
|
1306
|
+
const it = "ic_settings_24px", uo = (e) => {
|
|
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
|
+
return I(() => {
|
|
1309
|
+
const E = (L) => {
|
|
1310
|
+
var A;
|
|
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", E, !1), t(!1));
|
|
1287
1313
|
};
|
|
1288
1314
|
return document.addEventListener("click", E, !1), () => {
|
|
1289
1315
|
document.removeEventListener("click", E, !1);
|
|
1290
1316
|
};
|
|
1291
|
-
}), /* @__PURE__ */ N(
|
|
1317
|
+
}), /* @__PURE__ */ N(oe, { children: [
|
|
1292
1318
|
/* @__PURE__ */ l(
|
|
1293
|
-
|
|
1319
|
+
_e,
|
|
1294
1320
|
{
|
|
1295
|
-
icon: /* @__PURE__ */ l("div", { className: "settingsIconContainer", children: /* @__PURE__ */ l("svg", { width: "100%", height: "100%", viewBox: "0 0 24 24", id:
|
|
1321
|
+
icon: /* @__PURE__ */ l("div", { className: "settingsIconContainer", children: /* @__PURE__ */ l("svg", { width: "100%", height: "100%", viewBox: "0 0 24 24", id: it, x: "288", y: "24", children: /* @__PURE__ */ l("path", { d: "M19.43 12.98c.04-.32.07-.64.07-.98s-.03-.66-.07-.98l2.11-1.65c.19-.15.24-.42.12-.64l-2-3.46c-.12-.22-.39-.3-.61-.22l-2.49 1c-.52-.4-1.08-.73-1.69-.98l-.38-2.65A.488.488 0 0 0 14 2h-4c-.25 0-.46.18-.49.42l-.38 2.65c-.61.25-1.17.59-1.69.98l-2.49-1c-.23-.09-.49 0-.61.22l-2 3.46c-.13.22-.07.49.12.64l2.11 1.65c-.04.32-.07.65-.07.98s.03.66.07.98l-2.11 1.65c-.19.15-.24.42-.12.64l2 3.46c.12.22.39.3.61.22l2.49-1c.52.4 1.08.73 1.69.98l.38 2.65c.03.24.24.42.49.42h4c.25 0 .46-.18.49-.42l.38-2.65c.61-.25 1.17-.59 1.69-.98l2.49 1c.23.09.49 0 .61-.22l2-3.46c.12-.22.07-.49-.12-.64l-2.11-1.65zM12 15.5c-1.93 0-3.5-1.57-3.5-3.5s1.57-3.5 3.5-3.5 3.5 1.57 3.5 3.5-1.57 3.5-3.5 3.5z" }) }) }),
|
|
1296
1322
|
onClick: () => {
|
|
1297
1323
|
t(!n);
|
|
1298
1324
|
}
|
|
1299
1325
|
}
|
|
1300
1326
|
),
|
|
1301
1327
|
n && /* @__PURE__ */ l("div", { id: "dialog-portal-example", className: "settingsDialogPortal", ref: c, children: /* @__PURE__ */ N(
|
|
1302
|
-
|
|
1328
|
+
Fn,
|
|
1303
1329
|
{
|
|
1304
1330
|
open: n,
|
|
1305
1331
|
onClosed: () => {
|
|
1306
1332
|
t(!1);
|
|
1307
1333
|
},
|
|
1308
1334
|
children: [
|
|
1309
|
-
/* @__PURE__ */ l(
|
|
1310
|
-
/* @__PURE__ */ N(
|
|
1335
|
+
/* @__PURE__ */ l(Hn, { children: u }),
|
|
1336
|
+
/* @__PURE__ */ N(Gn, { children: [
|
|
1311
1337
|
/* @__PURE__ */ l("h4", { className: "sectionLabel", children: m }),
|
|
1312
|
-
/* @__PURE__ */ l(
|
|
1313
|
-
/* @__PURE__ */ l(
|
|
1314
|
-
/* @__PURE__ */ l("h4", { className: "sectionLabel", children:
|
|
1315
|
-
/* @__PURE__ */ l(
|
|
1338
|
+
/* @__PURE__ */ l(de, { className: "mapScenesContainer", children: /* @__PURE__ */ l(ao, { sceneModes: i }) }),
|
|
1339
|
+
/* @__PURE__ */ l(de, { className: "baseMapsContainer", children: o && /* @__PURE__ */ N(oe, { children: [
|
|
1340
|
+
/* @__PURE__ */ l("h4", { className: "sectionLabel", children: p }),
|
|
1341
|
+
/* @__PURE__ */ l(co, { baseMaps: o })
|
|
1316
1342
|
] }) })
|
|
1317
1343
|
] })
|
|
1318
1344
|
]
|
|
@@ -1320,140 +1346,166 @@ const nt = "ic_settings_24px", so = (e) => {
|
|
|
1320
1346
|
) })
|
|
1321
1347
|
] });
|
|
1322
1348
|
};
|
|
1323
|
-
const
|
|
1349
|
+
const ho = () => {
|
|
1350
|
+
const e = se();
|
|
1351
|
+
return /* @__PURE__ */ l("div", { className: "zoom-buttons-container", children: [
|
|
1352
|
+
{ onClick: () => e.camera.zoomIn(), iconPath: "M48 20h-18v-18h-10v18h-18v10h18v18h10v-18h18z" },
|
|
1353
|
+
{ onClick: () => e.camera.zoomOut(), iconPath: "M2 20h46v10h-46z" }
|
|
1354
|
+
].map((t) => /* @__PURE__ */ l(
|
|
1355
|
+
_e,
|
|
1356
|
+
{
|
|
1357
|
+
icon: /* @__PURE__ */ l("div", { className: "zoom-button", children: /* @__PURE__ */ l(
|
|
1358
|
+
"svg",
|
|
1359
|
+
{
|
|
1360
|
+
fill: "#fff",
|
|
1361
|
+
width: "10px",
|
|
1362
|
+
height: "10px",
|
|
1363
|
+
viewBox: "0 -20 50 50",
|
|
1364
|
+
version: "1.2",
|
|
1365
|
+
baseProfile: "tiny",
|
|
1366
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1367
|
+
overflow: "inherit",
|
|
1368
|
+
children: /* @__PURE__ */ l("path", { d: t.iconPath })
|
|
1369
|
+
}
|
|
1370
|
+
) }),
|
|
1371
|
+
onClick: t.onClick
|
|
1372
|
+
}
|
|
1373
|
+
)) });
|
|
1374
|
+
};
|
|
1375
|
+
const mo = /* @__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: [
|
|
1324
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" }),
|
|
1325
1377
|
/* @__PURE__ */ l("circle", { cx: "270.1", cy: "56.3", r: "56.3" })
|
|
1326
|
-
] }) }),
|
|
1327
|
-
const r =
|
|
1378
|
+
] }) }), po = ({ onClick: e }) => /* @__PURE__ */ l(de, { onClick: e, className: "mapLegendToggleContainer", children: /* @__PURE__ */ l(_e, { icon: mo, className: "mapLegendIcon" }) }), go = ({ legend: { legendImg: e, legendDoc: n, layer: t }, docText: i, imgText: o }) => {
|
|
1379
|
+
const r = pe(() => {
|
|
1328
1380
|
window.open(e, "_blank");
|
|
1329
1381
|
}, [e]);
|
|
1330
|
-
|
|
1382
|
+
pe(() => {
|
|
1331
1383
|
window.open(n, "_blank");
|
|
1332
1384
|
}, [n]);
|
|
1333
|
-
const c =
|
|
1334
|
-
const
|
|
1335
|
-
return (t ?? "").length > 15 ? /* @__PURE__ */ l(
|
|
1336
|
-
}, [t]), u =
|
|
1385
|
+
const c = pe(() => {
|
|
1386
|
+
const p = /* @__PURE__ */ l(de, { className: "layerNameContainer", children: /* @__PURE__ */ l("h3", { style: { maxWidth: `${15}ch` }, className: "layerName", children: t }) });
|
|
1387
|
+
return (t ?? "").length > 15 ? /* @__PURE__ */ l(st, { content: t, children: p }) : p;
|
|
1388
|
+
}, [t]), u = pe(() => [
|
|
1337
1389
|
typeof e == "string" && /* @__PURE__ */ l("a", { className: "legendAction", href: e, target: "_blank", rel: "noreferrer", children: o }),
|
|
1338
1390
|
typeof n == "string" && /* @__PURE__ */ l("a", { className: "legendAction", href: n, target: "_blank", rel: "noreferrer", children: i })
|
|
1339
1391
|
], [e, o, n, i]);
|
|
1340
|
-
return /* @__PURE__ */ N(
|
|
1392
|
+
return /* @__PURE__ */ N(de, { className: "mapLegend", children: [
|
|
1341
1393
|
c(),
|
|
1342
1394
|
/* @__PURE__ */ l("img", { alt: "Map Legend", className: "legendImg", src: e, onClick: r }),
|
|
1343
|
-
/* @__PURE__ */ l(
|
|
1395
|
+
/* @__PURE__ */ l(de, { className: "legendActionsContainer", children: u() })
|
|
1344
1396
|
] });
|
|
1345
|
-
},
|
|
1346
|
-
const o =
|
|
1347
|
-
return /* @__PURE__ */ l(
|
|
1348
|
-
},
|
|
1397
|
+
}, fo = ({ 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(go, { legend: c, docText: n, imgText: t }, `${c.layer}_${u}`)) : o(), [e]);
|
|
1399
|
+
return /* @__PURE__ */ l(de, { className: "mapLegendsList", children: r() });
|
|
1400
|
+
}, yo = ({
|
|
1349
1401
|
isOpen: e,
|
|
1350
1402
|
toggleSidebar: n,
|
|
1351
1403
|
title: t = "Map Legends",
|
|
1352
1404
|
noLegendsText: i = "No legends to display...",
|
|
1353
1405
|
actionsTexts: o = { docText: "Docs", imgText: "View Image" },
|
|
1354
1406
|
legends: r = []
|
|
1355
|
-
}) => e ? /* @__PURE__ */ N(
|
|
1356
|
-
/* @__PURE__ */ l(
|
|
1357
|
-
/* @__PURE__ */ N(
|
|
1358
|
-
/* @__PURE__ */ l(
|
|
1359
|
-
/* @__PURE__ */ l(
|
|
1407
|
+
}) => e ? /* @__PURE__ */ N(Vn, { className: "mapLegendSidebarContainer", modal: !1, dismissible: !0, open: e, children: [
|
|
1408
|
+
/* @__PURE__ */ l(zn, { className: "sidebarHeaderContainer", children: /* @__PURE__ */ l($n, { className: "sidebarTitle", children: t }) }),
|
|
1409
|
+
/* @__PURE__ */ N(Wn, { className: "sidebarContent", children: [
|
|
1410
|
+
/* @__PURE__ */ l(_e, { onClick: n, className: "mapLegendCloseBtn", icon: { icon: "close", size: "small" } }),
|
|
1411
|
+
/* @__PURE__ */ l(fo, { noLegendsText: i, legends: r, actionsTexts: o })
|
|
1360
1412
|
] })
|
|
1361
|
-
] }) : null,
|
|
1413
|
+
] }) : null, me = document.createElement("canvas"), ie = me.getContext("2d"), kt = (e) => {
|
|
1362
1414
|
const i = (e == null ? void 0 : e.data) ?? [];
|
|
1363
1415
|
for (let o = 3; o < i.length; o += 4)
|
|
1364
1416
|
if (i[o] < 255)
|
|
1365
1417
|
return !0;
|
|
1366
1418
|
return !1;
|
|
1367
|
-
},
|
|
1419
|
+
}, vo = async (e, n) => (n && n.tileTransparencyCheckedCounter++, new Promise((t, i) => {
|
|
1368
1420
|
try {
|
|
1369
|
-
|
|
1421
|
+
ie == null || ie.clearRect(0, 0, me.width, me.height);
|
|
1370
1422
|
let o;
|
|
1371
1423
|
if (e instanceof HTMLImageElement)
|
|
1372
1424
|
o = e;
|
|
1373
1425
|
else if (e instanceof ImageBitmap) {
|
|
1374
|
-
|
|
1375
|
-
const r =
|
|
1426
|
+
me.width = e.width, me.height = e.height, ie == null || ie.drawImage(e, 0, 0);
|
|
1427
|
+
const r = ie == null ? void 0 : ie.getImageData(0, 0, me.width, me.height), c = kt(r);
|
|
1376
1428
|
c && n && (n.tileTransparencyCheckedCounter = n.maxTilesForTransparencyCheck), t(c);
|
|
1377
1429
|
return;
|
|
1378
1430
|
} else
|
|
1379
1431
|
o = new Image(), o.crossOrigin = "anonymous", o.src = e;
|
|
1380
1432
|
o.onload = () => {
|
|
1381
|
-
|
|
1382
|
-
const r =
|
|
1383
|
-
|
|
1433
|
+
me.width = o.width, me.height = o.height, ie == null || ie.drawImage(o, 0, 0);
|
|
1434
|
+
const r = ie == null ? void 0 : ie.getImageData(0, 0, me.width, me.height);
|
|
1435
|
+
kt(r) ? (n && (n.tileTransparencyCheckedCounter = n.maxTilesForTransparencyCheck), t(!0)) : t(!1);
|
|
1384
1436
|
};
|
|
1385
1437
|
} catch (o) {
|
|
1386
1438
|
console.error("Could not determine image transparency. Error => ", o), i(o);
|
|
1387
1439
|
}
|
|
1388
1440
|
})), Ve = (e, n) => {
|
|
1389
|
-
const { west: t, east: i, north: o, south: r } = e, { west: c, east: u, north: m, south:
|
|
1390
|
-
return t >= c && i <= u && o <= m && r >=
|
|
1391
|
-
},
|
|
1392
|
-
function
|
|
1441
|
+
const { west: t, east: i, north: o, south: r } = e, { west: c, east: u, north: m, south: p } = n;
|
|
1442
|
+
return t >= c && i <= u && o <= m && r >= p;
|
|
1443
|
+
}, Ye = 3, je = "hasTransparency";
|
|
1444
|
+
function ft(e, n, t, i, o) {
|
|
1393
1445
|
return setTimeout(() => {
|
|
1394
1446
|
var u;
|
|
1395
1447
|
const r = (u = this.layerListInstance.find(
|
|
1396
1448
|
/* eslint-disable */
|
|
1397
1449
|
(m) => {
|
|
1398
|
-
var
|
|
1399
|
-
return ((
|
|
1450
|
+
var p, E;
|
|
1451
|
+
return ((p = m._imageryProvider._resource) == null ? void 0 : p._url) === ((E = this._resource) == null ? void 0 : E._url);
|
|
1400
1452
|
}
|
|
1401
1453
|
/* eslint-enable */
|
|
1402
|
-
)) == null ? void 0 : u.meta, c = Z(r,
|
|
1403
|
-
this.tileTransparencyCheckedCounter <
|
|
1404
|
-
var
|
|
1405
|
-
(
|
|
1406
|
-
{ [
|
|
1454
|
+
)) == null ? void 0 : u.meta, c = Z(r, je) === !0;
|
|
1455
|
+
this.tileTransparencyCheckedCounter < Ye && !c && vo(o == null ? void 0 : o.url, this).then((m) => {
|
|
1456
|
+
var p;
|
|
1457
|
+
(p = this.mapViewer.layersManager) == null || p.addMetaToLayer(
|
|
1458
|
+
{ [je]: m },
|
|
1407
1459
|
/* eslint-disable */
|
|
1408
1460
|
(E) => E._imageryProvider._resource._url === this._resource._url
|
|
1409
1461
|
);
|
|
1410
1462
|
});
|
|
1411
1463
|
}, 0), e(n, t, i, o);
|
|
1412
1464
|
}
|
|
1413
|
-
class
|
|
1465
|
+
class gn extends mt {
|
|
1414
1466
|
constructor(t, i) {
|
|
1415
1467
|
var o;
|
|
1416
1468
|
super(t);
|
|
1417
1469
|
X(this, "layerListInstance");
|
|
1418
1470
|
X(this, "mapViewer");
|
|
1419
|
-
X(this, "maxTilesForTransparencyCheck",
|
|
1471
|
+
X(this, "maxTilesForTransparencyCheck", Ye);
|
|
1420
1472
|
X(this, "tileTransparencyCheckedCounter", 0);
|
|
1421
1473
|
this.layerListInstance = (o = i.layersManager) == null ? void 0 : o.layerList, this.mapViewer = i;
|
|
1422
1474
|
}
|
|
1423
1475
|
requestImage(t, i, o, r) {
|
|
1424
|
-
return
|
|
1476
|
+
return ft.call(this, super.requestImage.bind(this), t, i, o, r);
|
|
1425
1477
|
}
|
|
1426
1478
|
}
|
|
1427
|
-
class
|
|
1479
|
+
class fn extends pt {
|
|
1428
1480
|
constructor(t, i) {
|
|
1429
1481
|
var o;
|
|
1430
1482
|
super(t);
|
|
1431
1483
|
X(this, "layerListInstance");
|
|
1432
1484
|
X(this, "mapViewer");
|
|
1433
|
-
X(this, "maxTilesForTransparencyCheck",
|
|
1485
|
+
X(this, "maxTilesForTransparencyCheck", Ye);
|
|
1434
1486
|
X(this, "tileTransparencyCheckedCounter", 0);
|
|
1435
1487
|
this.layerListInstance = (o = i.layersManager) == null ? void 0 : o.layerList, this.mapViewer = i;
|
|
1436
1488
|
}
|
|
1437
1489
|
requestImage(t, i, o, r) {
|
|
1438
|
-
return
|
|
1490
|
+
return ft.call(this, super.requestImage.bind(this), t, i, o, r);
|
|
1439
1491
|
}
|
|
1440
1492
|
}
|
|
1441
|
-
class
|
|
1493
|
+
class yn extends gt {
|
|
1442
1494
|
constructor(t, i) {
|
|
1443
1495
|
var o;
|
|
1444
1496
|
super(t);
|
|
1445
1497
|
X(this, "layerListInstance");
|
|
1446
1498
|
X(this, "mapViewer");
|
|
1447
|
-
X(this, "maxTilesForTransparencyCheck",
|
|
1499
|
+
X(this, "maxTilesForTransparencyCheck", Ye);
|
|
1448
1500
|
X(this, "tileTransparencyCheckedCounter", 0);
|
|
1449
1501
|
this.layerListInstance = (o = i.layersManager) == null ? void 0 : o.layerList, this.mapViewer = i;
|
|
1450
1502
|
}
|
|
1451
1503
|
requestImage(t, i, o, r) {
|
|
1452
|
-
return
|
|
1504
|
+
return ft.call(this, super.requestImage.bind(this), t, i, o, r);
|
|
1453
1505
|
}
|
|
1454
1506
|
}
|
|
1455
|
-
const
|
|
1456
|
-
class
|
|
1507
|
+
const Eo = 1, Co = -1, Rt = "TRANSPARENT_BASE_LAYER";
|
|
1508
|
+
class wo {
|
|
1457
1509
|
constructor(n, t, i, o) {
|
|
1458
1510
|
X(this, "mapViewer");
|
|
1459
1511
|
X(this, "legendsList");
|
|
@@ -1461,9 +1513,9 @@ class fo {
|
|
|
1461
1513
|
X(this, "layers");
|
|
1462
1514
|
X(this, "legendsExtractor");
|
|
1463
1515
|
X(this, "layerManagerFootprintMetaFieldPath");
|
|
1464
|
-
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 ji(), this.layerManagerFootprintMetaFieldPath = o, i && this.layerUpdated.addEventListener(i, this), this.mapViewer.shouldOptimizedTileRequests && (this.layerUpdated.addEventListener((r) => {
|
|
1465
1517
|
const c = Object.keys(r);
|
|
1466
|
-
c.length === 1 && c[0] ===
|
|
1518
|
+
c.length === 1 && c[0] === je && (this.markRelevantLayersForExtent(), this.hideNonRelevantLayers());
|
|
1467
1519
|
}), this.mapViewer.imageryLayers.layerRemoved.addEventListener(() => {
|
|
1468
1520
|
this.setLegends(), this.markRelevantLayersForExtent(), this.hideNonRelevantLayers();
|
|
1469
1521
|
}), this.mapViewer.imageryLayers.layerMoved.addEventListener(() => {
|
|
@@ -1488,23 +1540,23 @@ class fo {
|
|
|
1488
1540
|
setBaseMapLayers(n) {
|
|
1489
1541
|
n.baseRasteLayers.sort((i, o) => i.zIndex - o.zIndex).forEach((i, o) => {
|
|
1490
1542
|
this.addRasterLayer(i, o, n.id);
|
|
1491
|
-
}), this.mapViewer.shouldOptimizedTileRequests && (this.removeLayer(
|
|
1543
|
+
}), this.mapViewer.shouldOptimizedTileRequests && (this.removeLayer(Rt), this.addTransparentImageryProvider());
|
|
1492
1544
|
}
|
|
1493
1545
|
addRasterLayer(n, t, i) {
|
|
1494
1546
|
let o;
|
|
1495
1547
|
switch (n.type) {
|
|
1496
1548
|
case "XYZ_LAYER": {
|
|
1497
|
-
const r = n.options, c = this.mapViewer.shouldOptimizedTileRequests ? new
|
|
1549
|
+
const r = n.options, c = this.mapViewer.shouldOptimizedTileRequests ? new gn(r, this.mapViewer) : new mt(r);
|
|
1498
1550
|
o = this.mapViewer.imageryLayers.addImageryProvider(c, t);
|
|
1499
1551
|
break;
|
|
1500
1552
|
}
|
|
1501
1553
|
case "WMS_LAYER": {
|
|
1502
|
-
const r = n.options, c = this.mapViewer.shouldOptimizedTileRequests ? new
|
|
1554
|
+
const r = n.options, c = this.mapViewer.shouldOptimizedTileRequests ? new fn(r, this.mapViewer) : new pt(r);
|
|
1503
1555
|
o = this.mapViewer.imageryLayers.addImageryProvider(c, t);
|
|
1504
1556
|
break;
|
|
1505
1557
|
}
|
|
1506
1558
|
case "WMTS_LAYER": {
|
|
1507
|
-
const r = n.options, c = this.mapViewer.shouldOptimizedTileRequests ? new
|
|
1559
|
+
const r = n.options, c = this.mapViewer.shouldOptimizedTileRequests ? new yn(r, this.mapViewer) : new gt(r);
|
|
1508
1560
|
o = this.mapViewer.imageryLayers.addImageryProvider(c, t);
|
|
1509
1561
|
break;
|
|
1510
1562
|
}
|
|
@@ -1576,33 +1628,33 @@ class fo {
|
|
|
1576
1628
|
}
|
|
1577
1629
|
findLayerByPOI(n, t, i = !0) {
|
|
1578
1630
|
if (this.layerManagerFootprintMetaFieldPath) {
|
|
1579
|
-
const o =
|
|
1631
|
+
const o = Qr(this.mapViewer, n, t);
|
|
1580
1632
|
return this.layers.filter((u) => !Z(u.meta, "parentBasetMapId")).filter((u) => {
|
|
1581
1633
|
const m = Z(u.meta, this.layerManagerFootprintMetaFieldPath);
|
|
1582
|
-
return m !== void 0 ?
|
|
1634
|
+
return m !== void 0 ? nr(o.geometry, {
|
|
1583
1635
|
type: "Feature",
|
|
1584
1636
|
properties: {},
|
|
1585
1637
|
geometry: m
|
|
1586
1638
|
}) && (i ? u.show : !0) : (console.warn("[LayerManager] [findLayerByPOI] CesiumImageryLayer has no defined footprint", u.meta), !1);
|
|
1587
1639
|
}).sort((u, m) => {
|
|
1588
|
-
var
|
|
1589
|
-
return ((
|
|
1640
|
+
var p, E;
|
|
1641
|
+
return ((p = m.meta) == null ? void 0 : p.zIndex) - ((E = u.meta) == null ? void 0 : E.zIndex);
|
|
1590
1642
|
});
|
|
1591
1643
|
} else
|
|
1592
1644
|
return console.warn("[LayerManager] [findLayerByPOI]layerManagerFootprintMetaFieldPath is not defined"), [];
|
|
1593
1645
|
}
|
|
1594
1646
|
addTransparentImageryProvider() {
|
|
1595
1647
|
const n = this.mapViewer.imageryLayers.addImageryProvider(
|
|
1596
|
-
new
|
|
1648
|
+
new Ki({
|
|
1597
1649
|
url: "./assets/img/transparent-tile.png",
|
|
1598
1650
|
/* eslint-disable @typescript-eslint/no-magic-numbers */
|
|
1599
|
-
rectangle: new
|
|
1651
|
+
rectangle: new Oe(-3.141592653589793, -1.5707963267948966, 3.141592653589793, 1.5707963267948966)
|
|
1600
1652
|
/* eslint-enable @typescript-eslint/no-magic-numbers */
|
|
1601
1653
|
}),
|
|
1602
1654
|
0
|
|
1603
1655
|
);
|
|
1604
1656
|
n.meta = {
|
|
1605
|
-
id:
|
|
1657
|
+
id: Rt,
|
|
1606
1658
|
skipRelevancyCheck: !0,
|
|
1607
1659
|
parentBasetMapId: "TRANSPARENT_LAYER"
|
|
1608
1660
|
};
|
|
@@ -1617,11 +1669,11 @@ class fo {
|
|
|
1617
1669
|
return this.layers.find((t) => t.meta !== void 0 ? t.meta.id === n : !1);
|
|
1618
1670
|
}
|
|
1619
1671
|
updateLayersOrder(n, t, i) {
|
|
1620
|
-
const o = t > i ?
|
|
1672
|
+
const o = t > i ? Eo : Co, r = t < i ? t : i, c = t < i ? i : t;
|
|
1621
1673
|
this.layers.forEach((u) => {
|
|
1622
|
-
var
|
|
1674
|
+
var p;
|
|
1623
1675
|
if (!Z(u.meta, "parentBasetMapId")) {
|
|
1624
|
-
const E = (
|
|
1676
|
+
const E = (p = u.meta) == null ? void 0 : p.zIndex;
|
|
1625
1677
|
u.meta.zIndex = E >= r && E <= c && E !== t ? E + o : E === t ? i : E;
|
|
1626
1678
|
}
|
|
1627
1679
|
});
|
|
@@ -1636,17 +1688,17 @@ class fo {
|
|
|
1636
1688
|
try {
|
|
1637
1689
|
const i = this.mapViewer.camera.computeViewRectangle();
|
|
1638
1690
|
for (let o = this.layers.length - 1; o >= 0; o--) {
|
|
1639
|
-
const r = this.layers[o], c = !
|
|
1691
|
+
const r = this.layers[o], c = !ct(i) && !ct(r.rectangle) && Oe.intersection(i, r.rectangle);
|
|
1640
1692
|
for (let u = this.layers.length - 1; u >= o; u--) {
|
|
1641
1693
|
if (((n = r.meta) == null ? void 0 : n.skipRelevancyCheck) === !0) {
|
|
1642
1694
|
r.meta = { ...r.meta, relevantToExtent: !0 };
|
|
1643
1695
|
continue;
|
|
1644
1696
|
}
|
|
1645
|
-
const m = this.layers[u],
|
|
1697
|
+
const m = this.layers[u], p = ((t = m.meta) == null ? void 0 : t[je]) === !0;
|
|
1646
1698
|
if (r !== m)
|
|
1647
|
-
if (c instanceof
|
|
1699
|
+
if (c instanceof Oe) {
|
|
1648
1700
|
if (Ve(i, r.rectangle))
|
|
1649
|
-
if (Ve(i, m.rectangle) && !
|
|
1701
|
+
if (Ve(i, m.rectangle) && !p) {
|
|
1650
1702
|
r.meta = {
|
|
1651
1703
|
...r.meta ?? {},
|
|
1652
1704
|
relevantToExtent: !1
|
|
@@ -1657,15 +1709,15 @@ class fo {
|
|
|
1657
1709
|
...r.meta ?? {},
|
|
1658
1710
|
relevantToExtent: !0
|
|
1659
1711
|
};
|
|
1660
|
-
if (Ve(i, m.rectangle) && !
|
|
1712
|
+
if (Ve(i, m.rectangle) && !p) {
|
|
1661
1713
|
r.meta = { ...r.meta ?? {}, relevantToExtent: !1 };
|
|
1662
1714
|
break;
|
|
1663
1715
|
}
|
|
1664
1716
|
if (Ve(r.rectangle, m.rectangle)) {
|
|
1665
1717
|
if (r.meta = {
|
|
1666
1718
|
...r.meta ?? {},
|
|
1667
|
-
relevantToExtent:
|
|
1668
|
-
}, !
|
|
1719
|
+
relevantToExtent: p
|
|
1720
|
+
}, !p)
|
|
1669
1721
|
break;
|
|
1670
1722
|
} else
|
|
1671
1723
|
r.meta = { ...r.meta ?? {}, relevantToExtent: !0 };
|
|
@@ -1674,7 +1726,7 @@ class fo {
|
|
|
1674
1726
|
else
|
|
1675
1727
|
o === this.layers.length - 1 && (r.meta = {
|
|
1676
1728
|
...r.meta ?? {},
|
|
1677
|
-
relevantToExtent: c instanceof
|
|
1729
|
+
relevantToExtent: c instanceof Oe
|
|
1678
1730
|
});
|
|
1679
1731
|
}
|
|
1680
1732
|
}
|
|
@@ -1683,11 +1735,11 @@ class fo {
|
|
|
1683
1735
|
}
|
|
1684
1736
|
}
|
|
1685
1737
|
}
|
|
1686
|
-
const
|
|
1687
|
-
const n =
|
|
1688
|
-
return
|
|
1738
|
+
const To = (e) => {
|
|
1739
|
+
const n = se(), { enableCompass: t = !0, enableZoomControls: i = !1, lockCompassNavigation: o = !1, locale: r = { DIRECTION: "ltr" } } = e;
|
|
1740
|
+
return I(() => {
|
|
1689
1741
|
if (typeof Z(n, "cesiumNavigation") > "u") {
|
|
1690
|
-
n.extend(
|
|
1742
|
+
n.extend(ir, {
|
|
1691
1743
|
enableCompass: t,
|
|
1692
1744
|
enableZoomControls: i,
|
|
1693
1745
|
enableDistanceLegend: !1
|
|
@@ -1695,13 +1747,9 @@ const yo = (e) => {
|
|
|
1695
1747
|
const c = document.querySelector(".compass");
|
|
1696
1748
|
c && r.DIRECTION && c.classList.add(r.DIRECTION);
|
|
1697
1749
|
}
|
|
1698
|
-
return () => {
|
|
1699
|
-
var c;
|
|
1700
|
-
(c = n.cesiumNavigation) == null || c.destroy();
|
|
1701
|
-
};
|
|
1702
1750
|
}, [n, t, i, r.DIRECTION, o]), null;
|
|
1703
|
-
},
|
|
1704
|
-
class
|
|
1751
|
+
}, Nt = 212, Bt = 260, bo = 0;
|
|
1752
|
+
class Oa extends qi {
|
|
1705
1753
|
constructor(t, i) {
|
|
1706
1754
|
super(t, i);
|
|
1707
1755
|
X(this, "layersManager");
|
|
@@ -1714,14 +1762,14 @@ class ba extends Wi {
|
|
|
1714
1762
|
this.useOptimizedTileRequests = t;
|
|
1715
1763
|
}
|
|
1716
1764
|
}
|
|
1717
|
-
const
|
|
1718
|
-
const e =
|
|
1765
|
+
const vn = Me(null), Lo = vn.Provider, se = () => {
|
|
1766
|
+
const e = Pe(vn);
|
|
1719
1767
|
if (e === null)
|
|
1720
1768
|
throw new Error("map context is null, please check the provider");
|
|
1721
1769
|
return e;
|
|
1722
|
-
},
|
|
1723
|
-
var
|
|
1724
|
-
const n = Se(null), [t, i] =
|
|
1770
|
+
}, Aa = (e) => {
|
|
1771
|
+
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(), [E, 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(), [v, d] = D(!1), y = Se(), [h, C] = D(void 0), [f, T] = D(!1), [_, S] = D(), [b, M] = D(), x = {
|
|
1725
1773
|
fullscreenButton: !0,
|
|
1726
1774
|
timeline: !1,
|
|
1727
1775
|
animation: !1,
|
|
@@ -1732,184 +1780,194 @@ const gn = Le(null), Eo = gn.Provider, le = () => {
|
|
|
1732
1780
|
sceneModePicker: !1,
|
|
1733
1781
|
imageryProvider: !1,
|
|
1734
1782
|
...e
|
|
1735
|
-
},
|
|
1736
|
-
const
|
|
1783
|
+
}, W = (K, B, ee, we, Te) => {
|
|
1784
|
+
const xe = t.container, vt = xe.clientWidth, Et = xe.clientHeight, Ct = we + Te;
|
|
1737
1785
|
return {
|
|
1738
|
-
left: `${
|
|
1739
|
-
top: `${
|
|
1786
|
+
left: `${vt - K < ee ? K - (ee - (vt - K)) : K}px`,
|
|
1787
|
+
top: `${Et - B < Ct ? B - (Ct - (Et - B)) : B}px`
|
|
1740
1788
|
};
|
|
1741
|
-
},
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1789
|
+
}, q = pe(
|
|
1790
|
+
(K) => {
|
|
1791
|
+
if (n.current !== null) {
|
|
1792
|
+
const B = n.current.cesiumElement, ee = { x: K.offsetX, y: K.offsetY };
|
|
1793
|
+
d(!1), C(ee), S(pn(B, ee.x, ee.y)), d(!0), y.current = K;
|
|
1794
|
+
}
|
|
1795
|
+
},
|
|
1796
|
+
[n]
|
|
1797
|
+
);
|
|
1798
|
+
I(() => {
|
|
1799
|
+
var K;
|
|
1749
1800
|
if (n.current !== null) {
|
|
1750
|
-
const
|
|
1751
|
-
e.imageryContextMenu && (
|
|
1801
|
+
const B = n.current.cesiumElement;
|
|
1802
|
+
e.imageryContextMenu && (B.scene.canvas.removeEventListener("contextmenu", q), B.scene.canvas.addEventListener("contextmenu", q));
|
|
1752
1803
|
}
|
|
1753
|
-
i((
|
|
1754
|
-
}, [n, e.imageryContextMenu]),
|
|
1755
|
-
var
|
|
1756
|
-
t && (t.shouldOptimizedTileRequests = e.useOptimizedTileRequests ?? !1, t.layersManager = new
|
|
1804
|
+
i((K = n.current) == null ? void 0 : K.cesiumElement);
|
|
1805
|
+
}, [n, e.imageryContextMenu]), I(() => {
|
|
1806
|
+
var K;
|
|
1807
|
+
t && (t.shouldOptimizedTileRequests = e.useOptimizedTileRequests ?? !1, t.layersManager = new wo(
|
|
1757
1808
|
t,
|
|
1758
|
-
(
|
|
1809
|
+
(K = e.legends) == null ? void 0 : K.mapLegendsExtractor,
|
|
1759
1810
|
() => {
|
|
1760
|
-
var
|
|
1761
|
-
|
|
1811
|
+
var B;
|
|
1812
|
+
te((B = t.layersManager) == null ? void 0 : B.legendsList);
|
|
1762
1813
|
},
|
|
1763
1814
|
e.layerManagerFootprintMetaFieldPath
|
|
1764
1815
|
));
|
|
1765
|
-
}, [t]),
|
|
1816
|
+
}, [t]), I(() => {
|
|
1766
1817
|
t && (t.shouldOptimizedTileRequests = e.useOptimizedTileRequests ?? !1);
|
|
1767
|
-
}, [e.useOptimizedTileRequests, t]),
|
|
1768
|
-
|
|
1769
|
-
}, [e.sceneModes]),
|
|
1770
|
-
var
|
|
1818
|
+
}, [e.useOptimizedTileRequests, t]), I(() => {
|
|
1819
|
+
k(e.sceneModes ?? [re.SCENE2D, re.SCENE3D, re.COLUMBUS_VIEW]);
|
|
1820
|
+
}, [e.sceneModes]), I(() => {
|
|
1821
|
+
var B, ee;
|
|
1771
1822
|
a(e.baseMaps);
|
|
1772
|
-
const
|
|
1773
|
-
|
|
1774
|
-
}, [e.baseMaps, t]),
|
|
1775
|
-
r(e.projection ??
|
|
1776
|
-
}, [e.projection]),
|
|
1777
|
-
|
|
1778
|
-
}, [e.locale]),
|
|
1823
|
+
const K = (B = e.baseMaps) == null ? void 0 : B.maps.find((we) => we.isCurrent);
|
|
1824
|
+
K && t && ((ee = t.layersManager) == null || ee.setBaseMapLayers(K));
|
|
1825
|
+
}, [e.baseMaps, t]), I(() => {
|
|
1826
|
+
r(e.projection ?? ge.WGS84);
|
|
1827
|
+
}, [e.projection]), I(() => {
|
|
1828
|
+
j(e.locale);
|
|
1829
|
+
}, [e.locale]), I(() => {
|
|
1779
1830
|
u(e.showMousePosition ?? !0);
|
|
1780
|
-
}, [e.showMousePosition]),
|
|
1781
|
-
|
|
1782
|
-
}, [e.showZoomLevel]),
|
|
1783
|
-
|
|
1784
|
-
}, [e.showScale]),
|
|
1831
|
+
}, [e.showMousePosition]), I(() => {
|
|
1832
|
+
p(e.showZoomLevel ?? !0);
|
|
1833
|
+
}, [e.showZoomLevel]), I(() => {
|
|
1834
|
+
L(e.showScale ?? !0);
|
|
1835
|
+
}, [e.showScale]), I(() => {
|
|
1785
1836
|
P(e.showCompass ?? !0);
|
|
1786
|
-
}, [e.showCompass]),
|
|
1787
|
-
|
|
1788
|
-
}, [e.showLoadingProgress]),
|
|
1789
|
-
const
|
|
1837
|
+
}, [e.showCompass]), I(() => {
|
|
1838
|
+
H(e.showLoadingProgress ?? !0);
|
|
1839
|
+
}, [e.showLoadingProgress]), I(() => {
|
|
1840
|
+
const K = () => {
|
|
1790
1841
|
if (t === void 0)
|
|
1791
1842
|
return {
|
|
1792
1843
|
longitude: 0,
|
|
1793
1844
|
latitude: 0,
|
|
1794
1845
|
height: 0
|
|
1795
1846
|
};
|
|
1796
|
-
const
|
|
1847
|
+
const B = () => {
|
|
1797
1848
|
const ee = t.camera.positionCartographic;
|
|
1798
1849
|
return {
|
|
1799
|
-
longitude:
|
|
1800
|
-
latitude:
|
|
1850
|
+
longitude: Ge(ee.longitude),
|
|
1851
|
+
latitude: Ge(ee.latitude),
|
|
1801
1852
|
height: ee.height
|
|
1802
1853
|
};
|
|
1803
1854
|
};
|
|
1804
|
-
if (t.scene.mode ===
|
|
1855
|
+
if (t.scene.mode === Le.SCENE3D) {
|
|
1805
1856
|
const ee = new Ce(
|
|
1806
1857
|
// eslint-disable-next-line @typescript-eslint/no-magic-numbers
|
|
1807
1858
|
t.container.clientWidth / 2,
|
|
1808
1859
|
// eslint-disable-next-line @typescript-eslint/no-magic-numbers
|
|
1809
1860
|
t.container.clientHeight / 2
|
|
1810
|
-
), we = t.scene.camera.getPickRay(ee),
|
|
1811
|
-
if (!
|
|
1861
|
+
), we = t.scene.camera.getPickRay(ee), Te = t.scene.globe.pick(we, t.scene);
|
|
1862
|
+
if (!Te)
|
|
1812
1863
|
return {
|
|
1813
1864
|
longitude: 0,
|
|
1814
1865
|
latitude: 0,
|
|
1815
1866
|
height: 0
|
|
1816
1867
|
};
|
|
1817
|
-
const
|
|
1818
|
-
return
|
|
1819
|
-
longitude:
|
|
1820
|
-
latitude:
|
|
1868
|
+
const xe = t.scene.globe.ellipsoid.cartesianToCartographic(Te);
|
|
1869
|
+
return xe !== void 0 ? {
|
|
1870
|
+
longitude: Ge(xe.longitude),
|
|
1871
|
+
latitude: Ge(xe.latitude),
|
|
1821
1872
|
height: t.scene.camera.positionCartographic.height
|
|
1822
|
-
} :
|
|
1873
|
+
} : B();
|
|
1823
1874
|
} else
|
|
1824
|
-
return
|
|
1875
|
+
return B();
|
|
1825
1876
|
};
|
|
1826
1877
|
t && (t.camera.moveEnd.addEventListener(() => {
|
|
1827
|
-
if (t.scene.mode !==
|
|
1828
|
-
const
|
|
1829
|
-
position:
|
|
1830
|
-
direction:
|
|
1831
|
-
up:
|
|
1832
|
-
right:
|
|
1833
|
-
transform:
|
|
1834
|
-
frustum:
|
|
1878
|
+
if (t.scene.mode !== Le.MORPHING) {
|
|
1879
|
+
const B = t.camera, ee = {
|
|
1880
|
+
position: K(),
|
|
1881
|
+
direction: B.direction.clone(),
|
|
1882
|
+
up: B.up.clone(),
|
|
1883
|
+
right: B.right.clone(),
|
|
1884
|
+
transform: B.transform.clone(),
|
|
1885
|
+
frustum: B.frustum.clone()
|
|
1835
1886
|
};
|
|
1836
1887
|
O.current = ee;
|
|
1837
1888
|
}
|
|
1838
|
-
}),
|
|
1839
|
-
t.scene.globe.tilesLoaded === !0 ?
|
|
1889
|
+
}), A && t.scene.globe.tileLoadProgressEvent.addEventListener(function() {
|
|
1890
|
+
t.scene.globe.tilesLoaded === !0 ? G(!1) : G(!0);
|
|
1840
1891
|
}));
|
|
1841
|
-
}, [t]),
|
|
1842
|
-
const
|
|
1892
|
+
}, [t]), I(() => {
|
|
1893
|
+
const K = () => {
|
|
1843
1894
|
if (t && O.current) {
|
|
1844
|
-
const
|
|
1895
|
+
const B = O.current;
|
|
1845
1896
|
t.camera.flyTo({
|
|
1846
|
-
destination: ve.fromDegrees(
|
|
1897
|
+
destination: ve.fromDegrees(B.position.longitude, B.position.latitude, B.position.height),
|
|
1847
1898
|
duration: 0
|
|
1848
1899
|
});
|
|
1849
1900
|
}
|
|
1850
1901
|
};
|
|
1851
|
-
return t && t.scene.morphComplete.addEventListener(
|
|
1902
|
+
return t && t.scene.morphComplete.addEventListener(K), () => {
|
|
1852
1903
|
if (t)
|
|
1853
1904
|
try {
|
|
1854
|
-
t.scene.morphComplete.removeEventListener(
|
|
1905
|
+
t.scene.morphComplete.removeEventListener(K);
|
|
1855
1906
|
} catch {
|
|
1856
1907
|
console.error("morphCompleteHandler event not cleaned");
|
|
1857
1908
|
}
|
|
1858
1909
|
};
|
|
1859
|
-
}, [t]),
|
|
1860
|
-
const
|
|
1861
|
-
t &&
|
|
1862
|
-
destination: ve.fromDegrees(
|
|
1910
|
+
}, [t]), I(() => {
|
|
1911
|
+
const K = e.zoom, B = e.center;
|
|
1912
|
+
t && Ue(K) && er(B) && t.camera.flyTo({
|
|
1913
|
+
destination: ve.fromDegrees(B[0], B[1], Jr(K)),
|
|
1863
1914
|
duration: 0
|
|
1864
1915
|
});
|
|
1865
|
-
}, [e.zoom, e.center, t])
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1916
|
+
}, [e.zoom, e.center, t]), I(() => {
|
|
1917
|
+
M(e.displayZoomButtons ?? !0);
|
|
1918
|
+
}, [e.displayZoomButtons]);
|
|
1919
|
+
const R = pe(() => t && Li(
|
|
1920
|
+
/* @__PURE__ */ N(oe, { children: [
|
|
1921
|
+
A && Y && /* @__PURE__ */ l(Un, { style: { position: "absolute", top: 0, height: "10px", zIndex: 4 } }),
|
|
1922
|
+
/* @__PURE__ */ N(de, { className: "sideToolsContainer", children: [
|
|
1923
|
+
/* @__PURE__ */ l(uo, { sceneModes: z, baseMaps: s, locale: U }),
|
|
1924
|
+
/* @__PURE__ */ l(po, { onClick: () => T(!f) })
|
|
1872
1925
|
] }),
|
|
1873
|
-
/* @__PURE__ */ N(
|
|
1874
|
-
c
|
|
1875
|
-
m
|
|
1876
|
-
E
|
|
1877
|
-
w
|
|
1878
|
-
] })
|
|
1926
|
+
/* @__PURE__ */ N(de, { className: "toolsContainer", children: [
|
|
1927
|
+
c && /* @__PURE__ */ l(to, { projection: o }),
|
|
1928
|
+
m && /* @__PURE__ */ l(oo, { locale: U, valueBy: "RENDERED_TILES" }),
|
|
1929
|
+
E && /* @__PURE__ */ l(io, { locale: U }),
|
|
1930
|
+
w && /* @__PURE__ */ l(To, { locale: U })
|
|
1931
|
+
] }),
|
|
1932
|
+
b && /* @__PURE__ */ l(ho, {})
|
|
1879
1933
|
] }),
|
|
1880
1934
|
document.querySelector(".cesium-viewer")
|
|
1881
|
-
), [s,
|
|
1882
|
-
return /* @__PURE__ */ l(
|
|
1935
|
+
), [s, U, t, o, z, c, E, f, Y]);
|
|
1936
|
+
return /* @__PURE__ */ l(Si, { className: "viewer", full: !0, ref: n, ...x, children: /* @__PURE__ */ N(Lo, { value: t, children: [
|
|
1883
1937
|
/* @__PURE__ */ l(
|
|
1884
|
-
|
|
1938
|
+
yo,
|
|
1885
1939
|
{
|
|
1886
|
-
title: (
|
|
1940
|
+
title: (V = e.legends) == null ? void 0 : V.title,
|
|
1887
1941
|
isOpen: f,
|
|
1888
1942
|
toggleSidebar: () => T(!f),
|
|
1889
|
-
noLegendsText: (
|
|
1890
|
-
legends: ((
|
|
1891
|
-
actionsTexts: (
|
|
1943
|
+
noLegendsText: (Q = e.legends) == null ? void 0 : Q.emptyText,
|
|
1944
|
+
legends: ((ne = e.legends) == null ? void 0 : ne.legendsList) ?? $,
|
|
1945
|
+
actionsTexts: (ye = e.legends) == null ? void 0 : ye.actionsTexts
|
|
1892
1946
|
}
|
|
1893
1947
|
),
|
|
1894
1948
|
e.children,
|
|
1895
|
-
|
|
1949
|
+
R(),
|
|
1896
1950
|
e.imageryContextMenu && v && h && _ && Ee.cloneElement(e.imageryContextMenu, {
|
|
1897
|
-
data: (
|
|
1951
|
+
data: (ue = t == null ? void 0 : t.layersManager) == null ? void 0 : ue.findLayerByPOI(
|
|
1952
|
+
h.x,
|
|
1953
|
+
h.y,
|
|
1954
|
+
!1
|
|
1955
|
+
),
|
|
1898
1956
|
position: {
|
|
1899
1957
|
x: h.x,
|
|
1900
1958
|
y: h.y
|
|
1901
1959
|
},
|
|
1902
1960
|
coordinates: _,
|
|
1903
|
-
style:
|
|
1961
|
+
style: W(
|
|
1904
1962
|
h.x,
|
|
1905
1963
|
h.y,
|
|
1906
|
-
((
|
|
1907
|
-
((
|
|
1908
|
-
((
|
|
1964
|
+
((ae = e.imageryContextMenuSize) == null ? void 0 : ae.width) ?? Bt,
|
|
1965
|
+
((ce = e.imageryContextMenuSize) == null ? void 0 : ce.height) ?? Nt,
|
|
1966
|
+
((Re = e.imageryContextMenuSize) == null ? void 0 : Re.dynamicHeightIncrement) ?? bo
|
|
1909
1967
|
),
|
|
1910
1968
|
size: e.imageryContextMenuSize ?? {
|
|
1911
|
-
height:
|
|
1912
|
-
width:
|
|
1969
|
+
height: Nt,
|
|
1970
|
+
width: Bt
|
|
1913
1971
|
},
|
|
1914
1972
|
handleClose: () => {
|
|
1915
1973
|
d(!v);
|
|
@@ -1917,68 +1975,68 @@ const gn = Le(null), Eo = gn.Provider, le = () => {
|
|
|
1917
1975
|
contextEvt: y.current
|
|
1918
1976
|
})
|
|
1919
1977
|
] }) });
|
|
1920
|
-
},
|
|
1921
|
-
const n =
|
|
1978
|
+
}, So = 0, ka = (e) => {
|
|
1979
|
+
const n = se();
|
|
1922
1980
|
return /* @__PURE__ */ l(
|
|
1923
|
-
|
|
1981
|
+
_i,
|
|
1924
1982
|
{
|
|
1925
1983
|
...e,
|
|
1926
1984
|
onReady: (t) => {
|
|
1927
1985
|
e.isZoomTo === !0 && n.zoomTo(t);
|
|
1928
1986
|
const i = n.scene;
|
|
1929
1987
|
i.globe.depthTestAgainstTerrain = !0;
|
|
1930
|
-
const o =
|
|
1988
|
+
const o = He.fromCartesian(t.boundingSphere.center), r = e.heightFromGround ?? So;
|
|
1931
1989
|
if (r) {
|
|
1932
1990
|
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());
|
|
1933
|
-
t.modelMatrix =
|
|
1991
|
+
t.modelMatrix = Yi.fromTranslation(m);
|
|
1934
1992
|
}
|
|
1935
1993
|
}
|
|
1936
1994
|
}
|
|
1937
1995
|
);
|
|
1938
|
-
},
|
|
1939
|
-
|
|
1940
|
-
},
|
|
1996
|
+
}, ze = 180, Ft = 1e-3, Ht = (e) => Math.abs(e) / e, Gt = (e) => {
|
|
1997
|
+
ze - Math.abs(e[0]) < Ft && (e[0] = Ht(e[0]) * (ze - 1)), ze / 2 - Math.abs(e[1]) < Ft && (e[1] = Ht(e[1]) * (ze / 2 - 1));
|
|
1998
|
+
}, Vt = (e) => {
|
|
1941
1999
|
switch (e.type) {
|
|
1942
2000
|
case "LineString":
|
|
1943
2001
|
e.coordinates.forEach((n) => {
|
|
1944
|
-
|
|
2002
|
+
Gt(n);
|
|
1945
2003
|
});
|
|
1946
2004
|
break;
|
|
1947
2005
|
case "Polygon":
|
|
1948
2006
|
e.coordinates.forEach((n) => {
|
|
1949
2007
|
n.forEach((t) => {
|
|
1950
|
-
|
|
2008
|
+
Gt(t);
|
|
1951
2009
|
});
|
|
1952
2010
|
});
|
|
1953
2011
|
break;
|
|
1954
2012
|
}
|
|
1955
|
-
},
|
|
1956
|
-
const { data: n, ...t } = e, i =
|
|
2013
|
+
}, Ra = (e) => {
|
|
2014
|
+
const { data: n, ...t } = e, i = tr(n);
|
|
1957
2015
|
return i && (typeof i.features < "u" ? i.features.forEach((o) => {
|
|
1958
|
-
|
|
1959
|
-
}) :
|
|
1960
|
-
},
|
|
1961
|
-
const { meta: n, ...t } = e, i =
|
|
1962
|
-
return
|
|
2016
|
+
Vt(o.geometry);
|
|
2017
|
+
}) : Vt(i)), /* @__PURE__ */ l(Mi, { data: i, ...t });
|
|
2018
|
+
}, Xe = (e) => {
|
|
2019
|
+
const { meta: n, ...t } = e, i = se();
|
|
2020
|
+
return Wt(() => {
|
|
1963
2021
|
var o;
|
|
1964
2022
|
(o = i.layersManager) == null || o.addMetaToLayer(n, n.searchLayerPredicate);
|
|
1965
|
-
}, [n, i]), /* @__PURE__ */ l(
|
|
1966
|
-
},
|
|
1967
|
-
const { options: n, ...t } = e, i =
|
|
1968
|
-
return /* @__PURE__ */ l(
|
|
1969
|
-
},
|
|
1970
|
-
const { options: n, ...t } = e, i =
|
|
1971
|
-
return /* @__PURE__ */ l(
|
|
1972
|
-
},
|
|
1973
|
-
const { options: n, ...t } = e, i =
|
|
1974
|
-
return /* @__PURE__ */ l(
|
|
1975
|
-
},
|
|
2023
|
+
}, [n, i]), /* @__PURE__ */ l(Pi, { ...t });
|
|
2024
|
+
}, Na = (e) => {
|
|
2025
|
+
const { options: n, ...t } = e, i = se(), o = i.shouldOptimizedTileRequests ? new fn(n, i) : new pt(n);
|
|
2026
|
+
return /* @__PURE__ */ l(Xe, { ...t, imageryProvider: o });
|
|
2027
|
+
}, Ba = (e) => {
|
|
2028
|
+
const { options: n, ...t } = e, i = se(), o = i.shouldOptimizedTileRequests ? new yn(n, i) : new gt(n);
|
|
2029
|
+
return /* @__PURE__ */ l(Xe, { ...t, imageryProvider: o });
|
|
2030
|
+
}, Fa = (e) => {
|
|
2031
|
+
const { options: n, ...t } = e, i = se(), o = i.shouldOptimizedTileRequests ? new gn(n, i) : new mt(n);
|
|
2032
|
+
return /* @__PURE__ */ l(Xe, { ...t, imageryProvider: o });
|
|
2033
|
+
}, Ha = (e) => {
|
|
1976
2034
|
const { options: n, ...t } = e;
|
|
1977
|
-
return /* @__PURE__ */ l(
|
|
1978
|
-
},
|
|
1979
|
-
var
|
|
1980
|
-
var e =
|
|
1981
|
-
function i(s, a = new
|
|
2035
|
+
return /* @__PURE__ */ l(Xe, { ...t, imageryProvider: new Xi(n) });
|
|
2036
|
+
}, _o = (e) => /* @__PURE__ */ l(xi, { ...e }), Ga = (e) => /* @__PURE__ */ l(Qt, { ...e }), Mo = (e) => /* @__PURE__ */ l(Qt, { ...e }), Po = (e) => /* @__PURE__ */ l(Ii, { ...e }), xo = (e) => /* @__PURE__ */ l(Di, { ...e }), Io = (e) => /* @__PURE__ */ l(Oi, { ...e }), Do = (e) => /* @__PURE__ */ l(Ai, { ...e });
|
|
2037
|
+
var be = function() {
|
|
2038
|
+
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), v = new g.Color(1, 1, 1, 1)) {
|
|
1982
2040
|
this._scene = s.scene, t.uniforms.color = a, n = v, this._tooltip = {
|
|
1983
2041
|
setVisible: () => {
|
|
1984
2042
|
},
|
|
@@ -1987,7 +2045,7 @@ var Te = function() {
|
|
|
1987
2045
|
}, this._surfaces = [], this.initialiseHandlers(), this.enhancePrimitives();
|
|
1988
2046
|
}
|
|
1989
2047
|
i.prototype.initialiseHandlers = function() {
|
|
1990
|
-
var s = this._scene, a = this, v = new
|
|
2048
|
+
var s = this._scene, a = this, v = new g.ScreenSpaceEventHandler(s.canvas);
|
|
1991
2049
|
function d(h, C) {
|
|
1992
2050
|
if (a._handlersMuted != !0) {
|
|
1993
2051
|
var f = s.pick(C);
|
|
@@ -1996,31 +2054,31 @@ var Te = function() {
|
|
|
1996
2054
|
}
|
|
1997
2055
|
v.setInputAction(function(h) {
|
|
1998
2056
|
d("leftClick", h.position);
|
|
1999
|
-
},
|
|
2057
|
+
}, g.ScreenSpaceEventType.LEFT_CLICK), v.setInputAction(function(h) {
|
|
2000
2058
|
d("leftDoubleClick", h.position);
|
|
2001
|
-
},
|
|
2059
|
+
}, g.ScreenSpaceEventType.LEFT_DOUBLE_CLICK);
|
|
2002
2060
|
var y;
|
|
2003
2061
|
v.setInputAction(function(h) {
|
|
2004
2062
|
if (a._handlersMuted != !0) {
|
|
2005
2063
|
var C = s.pick(h.endPosition);
|
|
2006
2064
|
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));
|
|
2007
2065
|
}
|
|
2008
|
-
},
|
|
2066
|
+
}, g.ScreenSpaceEventType.MOUSE_MOVE), v.setInputAction(function(h) {
|
|
2009
2067
|
d("leftUp", h.position);
|
|
2010
|
-
},
|
|
2068
|
+
}, g.ScreenSpaceEventType.LEFT_UP), v.setInputAction(function(h) {
|
|
2011
2069
|
d("leftDown", h.position);
|
|
2012
|
-
},
|
|
2070
|
+
}, g.ScreenSpaceEventType.LEFT_DOWN);
|
|
2013
2071
|
}, i.prototype.setListener = function(s, a, v) {
|
|
2014
2072
|
s[a] = v;
|
|
2015
2073
|
}, i.prototype.muteHandlers = function(s) {
|
|
2016
2074
|
this._handlersMuted = s;
|
|
2017
2075
|
}, i.prototype.registerEditableShape = function(s) {
|
|
2018
2076
|
var a = this;
|
|
2019
|
-
|
|
2077
|
+
$(s, "mouseMove", function(v) {
|
|
2020
2078
|
s.setHighlighted(!0), s._editMode || a._tooltip.showAt(v, "Click to edit this shape");
|
|
2021
|
-
}),
|
|
2079
|
+
}), $(s, "mouseOut", function(v) {
|
|
2022
2080
|
s.setHighlighted(!1), a._tooltip.setVisible(!1);
|
|
2023
|
-
}),
|
|
2081
|
+
}), $(s, "leftClick", function(v) {
|
|
2024
2082
|
s.setEditMode(!0);
|
|
2025
2083
|
});
|
|
2026
2084
|
}, i.prototype.startDrawing = function(s) {
|
|
@@ -2037,65 +2095,65 @@ var Te = function() {
|
|
|
2037
2095
|
this._editedSurface && !this._editedSurface.isDestroyed() && this._editedSurface.setEditMode(!1), this._editedSurface = s;
|
|
2038
2096
|
};
|
|
2039
2097
|
var o = {
|
|
2040
|
-
ellipsoid:
|
|
2098
|
+
ellipsoid: g.Ellipsoid.WGS84,
|
|
2041
2099
|
textureRotationAngle: 0,
|
|
2042
2100
|
height: 0,
|
|
2043
2101
|
asynchronous: !0,
|
|
2044
2102
|
show: !0,
|
|
2045
2103
|
debugShowBoundingVolume: !1
|
|
2046
|
-
}, r =
|
|
2047
|
-
appearance: new
|
|
2104
|
+
}, r = k(o, {
|
|
2105
|
+
appearance: new g.EllipsoidSurfaceAppearance({
|
|
2048
2106
|
aboveGround: !1
|
|
2049
2107
|
}),
|
|
2050
2108
|
material: t,
|
|
2051
2109
|
granularity: Math.PI / 180
|
|
2052
|
-
}), c =
|
|
2110
|
+
}), c = k(o, {}), u = k(o, {}), m = k(o, {}), p = k(r, {
|
|
2053
2111
|
rotation: 0
|
|
2054
|
-
}), E =
|
|
2112
|
+
}), E = k(o, {
|
|
2055
2113
|
width: 5,
|
|
2056
2114
|
geodesic: !0,
|
|
2057
2115
|
granularity: 1e4,
|
|
2058
|
-
appearance: new
|
|
2116
|
+
appearance: new g.PolylineMaterialAppearance({
|
|
2059
2117
|
aboveGround: !1
|
|
2060
2118
|
}),
|
|
2061
2119
|
material: t
|
|
2062
|
-
}),
|
|
2120
|
+
}), L = function() {
|
|
2063
2121
|
function s() {
|
|
2064
2122
|
}
|
|
2065
2123
|
return s.prototype.initialiseOptions = function(a) {
|
|
2066
|
-
|
|
2124
|
+
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;
|
|
2067
2125
|
}, s.prototype.setAttribute = function(a, v) {
|
|
2068
2126
|
this[a] = v, this._createPrimitive = !0;
|
|
2069
2127
|
}, s.prototype.getAttribute = function(a) {
|
|
2070
2128
|
return this[a];
|
|
2071
2129
|
}, s.prototype.update = function(a, v, d) {
|
|
2072
|
-
if (!
|
|
2073
|
-
throw new
|
|
2074
|
-
if (!
|
|
2075
|
-
throw new
|
|
2130
|
+
if (!g.defined(this.ellipsoid))
|
|
2131
|
+
throw new g.DeveloperError("this.ellipsoid must be defined.");
|
|
2132
|
+
if (!g.defined(this.appearance))
|
|
2133
|
+
throw new g.DeveloperError("this.material must be defined.");
|
|
2076
2134
|
if (this.granularity < 0)
|
|
2077
|
-
throw new
|
|
2078
|
-
if (this.show && !(!this._createPrimitive && !
|
|
2135
|
+
throw new g.DeveloperError("this.granularity and scene2D/scene3D overrides must be greater than zero.");
|
|
2136
|
+
if (this.show && !(!this._createPrimitive && !g.defined(this._primitive))) {
|
|
2079
2137
|
if (this._createPrimitive || this._ellipsoid !== this.ellipsoid || this._granularity !== this.granularity || this._height !== this.height || this._textureRotationAngle !== this.textureRotationAngle || this._id !== this.id) {
|
|
2080
2138
|
var y = this.getGeometry();
|
|
2081
2139
|
if (!y)
|
|
2082
2140
|
return;
|
|
2083
|
-
this._createPrimitive = !1, this._ellipsoid = this.ellipsoid, this._granularity = this.granularity, this._height = this.height, this._textureRotationAngle = this.textureRotationAngle, this._id = this.id, this._primitive = this._primitive && this._primitive.destroy(), this._primitive = new
|
|
2084
|
-
geometryInstances: new
|
|
2141
|
+
this._createPrimitive = !1, this._ellipsoid = this.ellipsoid, this._granularity = this.granularity, this._height = this.height, this._textureRotationAngle = this.textureRotationAngle, this._id = this.id, this._primitive = this._primitive && this._primitive.destroy(), this._primitive = new g.Primitive({
|
|
2142
|
+
geometryInstances: new g.GeometryInstance({
|
|
2085
2143
|
geometry: y,
|
|
2086
2144
|
id: this.id,
|
|
2087
2145
|
pickPrimitive: this
|
|
2088
2146
|
}),
|
|
2089
2147
|
appearance: this.appearance,
|
|
2090
2148
|
asynchronous: this.asynchronous
|
|
2091
|
-
}), this._outlinePolygon = this._outlinePolygon && this._outlinePolygon.destroy(), this.strokeColor && this.getOutlineGeometry && (this._outlinePolygon = new
|
|
2092
|
-
geometryInstances: new
|
|
2149
|
+
}), this._outlinePolygon = this._outlinePolygon && this._outlinePolygon.destroy(), this.strokeColor && this.getOutlineGeometry && (this._outlinePolygon = new g.Primitive({
|
|
2150
|
+
geometryInstances: new g.GeometryInstance({
|
|
2093
2151
|
geometry: this.getOutlineGeometry(),
|
|
2094
2152
|
attributes: {
|
|
2095
|
-
color:
|
|
2153
|
+
color: g.ColorGeometryInstanceAttribute.fromColor(this.strokeColor)
|
|
2096
2154
|
}
|
|
2097
2155
|
}),
|
|
2098
|
-
appearance: new
|
|
2156
|
+
appearance: new g.PerInstanceColorAppearance({
|
|
2099
2157
|
flat: !0,
|
|
2100
2158
|
renderState: {
|
|
2101
2159
|
depthTest: {
|
|
@@ -2114,66 +2172,66 @@ var Te = function() {
|
|
|
2114
2172
|
}, s.prototype.isDestroyed = function() {
|
|
2115
2173
|
return !1;
|
|
2116
2174
|
}, s.prototype.destroy = function() {
|
|
2117
|
-
return this._primitive = this._primitive && this._primitive.destroy(),
|
|
2175
|
+
return this._primitive = this._primitive && this._primitive.destroy(), g.destroyObject(this);
|
|
2118
2176
|
}, s.prototype.setStrokeStyle = function(a, v) {
|
|
2119
2177
|
(!this.strokeColor || !this.strokeColor.equals(a) || this.strokeWidth != v) && (this._createPrimitive = !0, this.strokeColor = a, this.strokeWidth = v);
|
|
2120
2178
|
}, s;
|
|
2121
2179
|
}();
|
|
2122
2180
|
i.ExtentPrimitive = function() {
|
|
2123
2181
|
function s(a) {
|
|
2124
|
-
if (!
|
|
2125
|
-
throw new
|
|
2126
|
-
a =
|
|
2182
|
+
if (!g.defined(a.extent))
|
|
2183
|
+
throw new g.DeveloperError("Extent is required");
|
|
2184
|
+
a = k(a, r), this.initialiseOptions(a), this.setExtent(a.extent);
|
|
2127
2185
|
}
|
|
2128
|
-
return s.prototype = new
|
|
2186
|
+
return s.prototype = new L(), s.prototype.setExtent = function(a) {
|
|
2129
2187
|
this.setAttribute("extent", a);
|
|
2130
2188
|
}, s.prototype.getExtent = function() {
|
|
2131
2189
|
return this.getAttribute("extent");
|
|
2132
2190
|
}, s.prototype.getGeometry = function() {
|
|
2133
|
-
if (
|
|
2134
|
-
return new
|
|
2191
|
+
if (g.defined(this.extent))
|
|
2192
|
+
return new g.RectangleGeometry({
|
|
2135
2193
|
rectangle: this.extent,
|
|
2136
2194
|
height: this.height,
|
|
2137
|
-
vertexFormat:
|
|
2195
|
+
vertexFormat: g.EllipsoidSurfaceAppearance.VERTEX_FORMAT,
|
|
2138
2196
|
stRotation: this.textureRotationAngle,
|
|
2139
2197
|
ellipsoid: this.ellipsoid,
|
|
2140
2198
|
granularity: this.granularity
|
|
2141
2199
|
});
|
|
2142
2200
|
}, s.prototype.getOutlineGeometry = function() {
|
|
2143
|
-
return new
|
|
2201
|
+
return new g.RectangleOutlineGeometry({
|
|
2144
2202
|
rectangle: this.extent
|
|
2145
2203
|
});
|
|
2146
2204
|
}, s;
|
|
2147
2205
|
}(), i.PolygonPrimitive = function() {
|
|
2148
2206
|
function s(a) {
|
|
2149
|
-
a =
|
|
2207
|
+
a = k(a, r), this.initialiseOptions(a), this.isPolygon = !0;
|
|
2150
2208
|
}
|
|
2151
|
-
return s.prototype = new
|
|
2209
|
+
return s.prototype = new L(), s.prototype.setPositions = function(a) {
|
|
2152
2210
|
this.setAttribute("positions", a);
|
|
2153
2211
|
}, s.prototype.getPositions = function() {
|
|
2154
2212
|
return this.getAttribute("positions");
|
|
2155
2213
|
}, s.prototype.getGeometry = function() {
|
|
2156
|
-
if (!(!
|
|
2157
|
-
return
|
|
2214
|
+
if (!(!g.defined(this.positions) || this.positions.length < 3))
|
|
2215
|
+
return g.PolygonGeometry.fromPositions({
|
|
2158
2216
|
positions: this.positions,
|
|
2159
2217
|
height: this.height,
|
|
2160
|
-
vertexFormat:
|
|
2218
|
+
vertexFormat: g.EllipsoidSurfaceAppearance.VERTEX_FORMAT,
|
|
2161
2219
|
stRotation: this.textureRotationAngle,
|
|
2162
2220
|
ellipsoid: this.ellipsoid,
|
|
2163
2221
|
granularity: this.granularity
|
|
2164
2222
|
});
|
|
2165
2223
|
}, s.prototype.getOutlineGeometry = function() {
|
|
2166
|
-
return
|
|
2224
|
+
return g.PolygonOutlineGeometry.fromPositions({
|
|
2167
2225
|
positions: this.getPositions()
|
|
2168
2226
|
});
|
|
2169
2227
|
}, s;
|
|
2170
2228
|
}(), i.CirclePrimitive = function() {
|
|
2171
2229
|
function s(a) {
|
|
2172
|
-
if (!(
|
|
2173
|
-
throw new
|
|
2174
|
-
a =
|
|
2230
|
+
if (!(g.defined(a.center) && g.defined(a.radius)))
|
|
2231
|
+
throw new g.DeveloperError("Center and radius are required");
|
|
2232
|
+
a = k(a, r), this.initialiseOptions(a), this.setRadius(a.radius);
|
|
2175
2233
|
}
|
|
2176
|
-
return s.prototype = new
|
|
2234
|
+
return s.prototype = new L(), s.prototype.setCenter = function(a) {
|
|
2177
2235
|
this.setAttribute("center", a);
|
|
2178
2236
|
}, s.prototype.setRadius = function(a) {
|
|
2179
2237
|
this.setAttribute("radius", Math.max(0.1, a));
|
|
@@ -2182,29 +2240,29 @@ var Te = function() {
|
|
|
2182
2240
|
}, s.prototype.getRadius = function() {
|
|
2183
2241
|
return this.getAttribute("radius");
|
|
2184
2242
|
}, s.prototype.getGeometry = function() {
|
|
2185
|
-
if (
|
|
2186
|
-
return new
|
|
2243
|
+
if (g.defined(this.center) && g.defined(this.radius))
|
|
2244
|
+
return new g.CircleGeometry({
|
|
2187
2245
|
center: this.center,
|
|
2188
2246
|
radius: this.radius,
|
|
2189
2247
|
height: this.height,
|
|
2190
|
-
vertexFormat:
|
|
2248
|
+
vertexFormat: g.EllipsoidSurfaceAppearance.VERTEX_FORMAT,
|
|
2191
2249
|
stRotation: this.textureRotationAngle,
|
|
2192
2250
|
ellipsoid: this.ellipsoid,
|
|
2193
2251
|
granularity: this.granularity
|
|
2194
2252
|
});
|
|
2195
2253
|
}, s.prototype.getOutlineGeometry = function() {
|
|
2196
|
-
return new
|
|
2254
|
+
return new g.CircleOutlineGeometry({
|
|
2197
2255
|
center: this.getCenter(),
|
|
2198
2256
|
radius: this.getRadius()
|
|
2199
2257
|
});
|
|
2200
2258
|
}, s;
|
|
2201
2259
|
}(), i.EllipsePrimitive = function() {
|
|
2202
2260
|
function s(a) {
|
|
2203
|
-
if (!(
|
|
2204
|
-
throw new
|
|
2205
|
-
a =
|
|
2261
|
+
if (!(g.defined(a.center) && g.defined(a.semiMajorAxis) && g.defined(a.semiMinorAxis)))
|
|
2262
|
+
throw new g.DeveloperError("Center and semi major and semi minor axis are required");
|
|
2263
|
+
a = k(a, p), this.initialiseOptions(a);
|
|
2206
2264
|
}
|
|
2207
|
-
return s.prototype = new
|
|
2265
|
+
return s.prototype = new L(), s.prototype.setCenter = function(a) {
|
|
2208
2266
|
this.setAttribute("center", a);
|
|
2209
2267
|
}, s.prototype.setSemiMajorAxis = function(a) {
|
|
2210
2268
|
a < this.getSemiMinorAxis() || this.setAttribute("semiMajorAxis", a);
|
|
@@ -2221,20 +2279,20 @@ var Te = function() {
|
|
|
2221
2279
|
}, s.prototype.getRotation = function() {
|
|
2222
2280
|
return this.getAttribute("rotation");
|
|
2223
2281
|
}, s.prototype.getGeometry = function() {
|
|
2224
|
-
if (
|
|
2225
|
-
return new
|
|
2282
|
+
if (g.defined(this.center) && g.defined(this.semiMajorAxis) && g.defined(this.semiMinorAxis))
|
|
2283
|
+
return new g.EllipseGeometry({
|
|
2226
2284
|
ellipsoid: this.ellipsoid,
|
|
2227
2285
|
center: this.center,
|
|
2228
2286
|
semiMajorAxis: this.semiMajorAxis,
|
|
2229
2287
|
semiMinorAxis: this.semiMinorAxis,
|
|
2230
2288
|
rotation: this.rotation,
|
|
2231
2289
|
height: this.height,
|
|
2232
|
-
vertexFormat:
|
|
2290
|
+
vertexFormat: g.EllipsoidSurfaceAppearance.VERTEX_FORMAT,
|
|
2233
2291
|
stRotation: this.textureRotationAngle,
|
|
2234
2292
|
granularity: this.granularity
|
|
2235
2293
|
});
|
|
2236
2294
|
}, s.prototype.getOutlineGeometry = function() {
|
|
2237
|
-
return new
|
|
2295
|
+
return new g.EllipseOutlineGeometry({
|
|
2238
2296
|
center: this.getCenter(),
|
|
2239
2297
|
semiMajorAxis: this.getSemiMajorAxis(),
|
|
2240
2298
|
semiMinorAxis: this.getSemiMinorAxis(),
|
|
@@ -2243,9 +2301,9 @@ var Te = function() {
|
|
|
2243
2301
|
}, s;
|
|
2244
2302
|
}(), i.PolylinePrimitive = function() {
|
|
2245
2303
|
function s(a) {
|
|
2246
|
-
a =
|
|
2304
|
+
a = k(a, E), this.initialiseOptions(a);
|
|
2247
2305
|
}
|
|
2248
|
-
return s.prototype = new
|
|
2306
|
+
return s.prototype = new L(), s.prototype.setPositions = function(a) {
|
|
2249
2307
|
this.setAttribute("positions", a);
|
|
2250
2308
|
}, s.prototype.setWidth = function(a) {
|
|
2251
2309
|
this.setAttribute("width", a);
|
|
@@ -2258,12 +2316,12 @@ var Te = function() {
|
|
|
2258
2316
|
}, s.prototype.getGeodesic = function(a) {
|
|
2259
2317
|
return this.getAttribute("geodesic");
|
|
2260
2318
|
}, s.prototype.getGeometry = function() {
|
|
2261
|
-
if (!(!
|
|
2262
|
-
return new
|
|
2319
|
+
if (!(!g.defined(this.positions) || this.positions.length < 2))
|
|
2320
|
+
return new g.PolylineGeometry({
|
|
2263
2321
|
positions: this.positions,
|
|
2264
2322
|
height: this.height,
|
|
2265
2323
|
width: this.width < 1 ? 1 : this.width,
|
|
2266
|
-
vertexFormat:
|
|
2324
|
+
vertexFormat: g.EllipsoidSurfaceAppearance.VERTEX_FORMAT,
|
|
2267
2325
|
ellipsoid: this.ellipsoid
|
|
2268
2326
|
});
|
|
2269
2327
|
}, s;
|
|
@@ -2276,7 +2334,7 @@ var Te = function() {
|
|
|
2276
2334
|
iconUrl: "./assets/img/dragIcon.png",
|
|
2277
2335
|
shiftX: 0,
|
|
2278
2336
|
shiftY: 0
|
|
2279
|
-
},
|
|
2337
|
+
}, A = {
|
|
2280
2338
|
iconUrl: "./assets/img/dragIconLight.png",
|
|
2281
2339
|
shiftX: 0,
|
|
2282
2340
|
shiftY: 0
|
|
@@ -2285,17 +2343,17 @@ var Te = function() {
|
|
|
2285
2343
|
var d = new i.BillboardGroup(this, a);
|
|
2286
2344
|
return d.addBillboards(s, v), d;
|
|
2287
2345
|
}, i.BillboardGroup = function(s, a) {
|
|
2288
|
-
this._drawHelper = s, this._scene = s._scene, this._options =
|
|
2289
|
-
var v = new
|
|
2346
|
+
this._drawHelper = s, this._scene = s._scene, this._options = k(a, w);
|
|
2347
|
+
var v = new g.BillboardCollection();
|
|
2290
2348
|
this._scene.primitives.add(v), this._billboards = v, this._orderedBillboards = [];
|
|
2291
2349
|
}, i.BillboardGroup.prototype.createBillboard = function(s, a) {
|
|
2292
2350
|
var v = this._billboards.add({
|
|
2293
2351
|
show: !0,
|
|
2294
2352
|
position: s,
|
|
2295
|
-
pixelOffset: new
|
|
2296
|
-
eyeOffset: new
|
|
2297
|
-
horizontalOrigin:
|
|
2298
|
-
verticalOrigin:
|
|
2353
|
+
pixelOffset: new g.Cartesian2(this._options.shiftX, this._options.shiftY),
|
|
2354
|
+
eyeOffset: new g.Cartesian3(0, 0, 0),
|
|
2355
|
+
horizontalOrigin: g.HorizontalOrigin.CENTER,
|
|
2356
|
+
verticalOrigin: g.VerticalOrigin.CENTER,
|
|
2299
2357
|
scale: 1,
|
|
2300
2358
|
image: this._options.iconUrl,
|
|
2301
2359
|
color: n
|
|
@@ -2311,32 +2369,32 @@ var Te = function() {
|
|
|
2311
2369
|
var d = this, y = this._scene.screenSpaceCameraController;
|
|
2312
2370
|
if (a.dragHandlers) {
|
|
2313
2371
|
var d = this;
|
|
2314
|
-
|
|
2372
|
+
$(v, "leftDown", function(T) {
|
|
2315
2373
|
function _(M) {
|
|
2316
2374
|
v.position = M;
|
|
2317
|
-
for (var
|
|
2375
|
+
for (var x = 0, W = d._orderedBillboards.length; x < W && d._orderedBillboards[x] != v; ++x)
|
|
2318
2376
|
;
|
|
2319
2377
|
a.dragHandlers.onDrag && a.dragHandlers.onDrag(C(), M);
|
|
2320
2378
|
}
|
|
2321
|
-
function
|
|
2379
|
+
function S(M) {
|
|
2322
2380
|
b.destroy(), h(!0), a.dragHandlers.onDragEnd && a.dragHandlers.onDragEnd(C(), M);
|
|
2323
2381
|
}
|
|
2324
|
-
var b = new
|
|
2382
|
+
var b = new g.ScreenSpaceEventHandler(d._scene.canvas);
|
|
2325
2383
|
b.setInputAction(function(M) {
|
|
2326
|
-
var
|
|
2327
|
-
|
|
2328
|
-
},
|
|
2329
|
-
|
|
2330
|
-
},
|
|
2384
|
+
var x = d._scene.camera.pickEllipsoid(M.endPosition, e);
|
|
2385
|
+
x ? _(x) : S(x);
|
|
2386
|
+
}, g.ScreenSpaceEventType.MOUSE_MOVE), b.setInputAction(function(M) {
|
|
2387
|
+
S(d._scene.camera.pickEllipsoid(M.position, e));
|
|
2388
|
+
}, g.ScreenSpaceEventType.LEFT_UP), h(!1), a.dragHandlers.onDragStart && a.dragHandlers.onDragStart(C(), d._scene.camera.pickEllipsoid(T, e));
|
|
2331
2389
|
});
|
|
2332
2390
|
}
|
|
2333
|
-
a.onDoubleClick &&
|
|
2391
|
+
a.onDoubleClick && $(v, "leftDoubleClick", function(f) {
|
|
2334
2392
|
a.onDoubleClick(C());
|
|
2335
|
-
}), a.onClick &&
|
|
2393
|
+
}), a.onClick && $(v, "leftClick", function(f) {
|
|
2336
2394
|
a.onClick(C());
|
|
2337
|
-
}), a.tooltip && (
|
|
2395
|
+
}), a.tooltip && ($(v, "mouseMove", function(f) {
|
|
2338
2396
|
d._drawHelper._tooltip.showAt(f, a.tooltip());
|
|
2339
|
-
}),
|
|
2397
|
+
}), $(v, "mouseOut", function(f) {
|
|
2340
2398
|
d._drawHelper._tooltip.setVisible(!1);
|
|
2341
2399
|
}));
|
|
2342
2400
|
}
|
|
@@ -2362,95 +2420,95 @@ var Te = function() {
|
|
|
2362
2420
|
}, i.BillboardGroup.prototype.setOnTop = function() {
|
|
2363
2421
|
this._scene.primitives.raiseToTop(this._billboards);
|
|
2364
2422
|
}, i.prototype.startDrawingMarker = function(a) {
|
|
2365
|
-
var a =
|
|
2423
|
+
var a = k(a, w);
|
|
2366
2424
|
this.startDrawing(function() {
|
|
2367
2425
|
h.remove(), C.destroy(), y.setVisible(!1);
|
|
2368
2426
|
});
|
|
2369
2427
|
var v = this, d = this._scene;
|
|
2370
2428
|
d.primitives;
|
|
2371
|
-
var y = this._tooltip, h = new i.BillboardGroup(this, a), C = new
|
|
2429
|
+
var y = this._tooltip, h = new i.BillboardGroup(this, a), C = new g.ScreenSpaceEventHandler(d.canvas);
|
|
2372
2430
|
C.setInputAction(function(f) {
|
|
2373
2431
|
if (f.position != null) {
|
|
2374
2432
|
var T = d.camera.pickEllipsoid(f.position, e);
|
|
2375
2433
|
T && (h.addBillboard(T), v.stopDrawing(), a.callback(T));
|
|
2376
2434
|
}
|
|
2377
|
-
},
|
|
2435
|
+
}, g.ScreenSpaceEventType.LEFT_CLICK), C.setInputAction(function(f) {
|
|
2378
2436
|
var T = f.endPosition;
|
|
2379
2437
|
if (T != null) {
|
|
2380
2438
|
var _ = d.camera.pickEllipsoid(T, e);
|
|
2381
2439
|
_ ? y.showAt(
|
|
2382
2440
|
T,
|
|
2383
|
-
"<p>Click to add your marker. Position is: </p>" +
|
|
2441
|
+
"<p>Click to add your marker. Position is: </p>" + j(e.cartesianToCartographic(_))
|
|
2384
2442
|
) : y.showAt(T, "<p>Click on the globe to add your marker.</p>");
|
|
2385
2443
|
}
|
|
2386
|
-
},
|
|
2444
|
+
}, g.ScreenSpaceEventType.MOUSE_MOVE);
|
|
2387
2445
|
}, i.prototype.startDrawingPolygon = function(a) {
|
|
2388
|
-
var a =
|
|
2446
|
+
var a = k(a, r);
|
|
2389
2447
|
this.startDrawingPolyshape(!0, a);
|
|
2390
2448
|
}, i.prototype.startDrawingPolyline = function(a) {
|
|
2391
|
-
var a =
|
|
2449
|
+
var a = k(a, E);
|
|
2392
2450
|
this.startDrawingPolyshape(!1, a);
|
|
2393
2451
|
}, i.prototype.startDrawingPolyshape = function(s, a) {
|
|
2394
2452
|
this.startDrawing(function() {
|
|
2395
|
-
y.remove(f), _.remove(),
|
|
2453
|
+
y.remove(f), _.remove(), S.destroy(), h.setVisible(!1), G(d);
|
|
2396
2454
|
});
|
|
2397
2455
|
var v = this, d = this._scene, y = d.primitives, h = this._tooltip, C = s ? 3 : 2, f;
|
|
2398
|
-
s ? f = new
|
|
2399
|
-
var T = [], _ = new i.BillboardGroup(this, w),
|
|
2400
|
-
|
|
2456
|
+
s ? f = new be.PolygonPrimitive(a) : f = new be.PolylinePrimitive(a), f.asynchronous = !1, y.add(f);
|
|
2457
|
+
var T = [], _ = new i.BillboardGroup(this, w), S = new g.ScreenSpaceEventHandler(d.canvas);
|
|
2458
|
+
Y(d), S.setInputAction(function(b) {
|
|
2401
2459
|
if (b.position != null) {
|
|
2402
2460
|
var M = d.camera.pickEllipsoid(b.position, e);
|
|
2403
2461
|
M && (T.length == 0 && (T.push(M.clone()), _.addBillboard(T[0])), T.length >= C && (f.positions = T, f._createPrimitive = !0), T.push(M), _.addBillboard(M));
|
|
2404
2462
|
}
|
|
2405
|
-
},
|
|
2463
|
+
}, g.ScreenSpaceEventType.LEFT_CLICK), S.setInputAction(function(b) {
|
|
2406
2464
|
var M = b.endPosition;
|
|
2407
2465
|
if (M != null)
|
|
2408
2466
|
if (T.length == 0)
|
|
2409
2467
|
h.showAt(M, "<p>Click to add first point</p>");
|
|
2410
2468
|
else {
|
|
2411
|
-
var
|
|
2412
|
-
|
|
2469
|
+
var x = d.camera.pickEllipsoid(M, e);
|
|
2470
|
+
x && (T.pop(), x.y += 1 + Math.random(), T.push(x), T.length >= C && (f.positions = T, f._createPrimitive = !0), _.getBillboard(T.length - 1).position = x, h.showAt(
|
|
2413
2471
|
M,
|
|
2414
2472
|
"<p>Click to add new point (" + T.length + ")</p>" + (T.length > C ? "<p>Double click to finish drawing</p>" : "")
|
|
2415
2473
|
));
|
|
2416
2474
|
}
|
|
2417
|
-
},
|
|
2475
|
+
}, g.ScreenSpaceEventType.MOUSE_MOVE), S.setInputAction(function(b) {
|
|
2418
2476
|
var M = b.position;
|
|
2419
2477
|
if (M != null) {
|
|
2420
2478
|
if (T.length < C + 2)
|
|
2421
2479
|
return;
|
|
2422
|
-
var
|
|
2423
|
-
|
|
2480
|
+
var x = d.camera.pickEllipsoid(M, e);
|
|
2481
|
+
x && (G(d), v.stopDrawing(), typeof a.callback == "function" && (T.length - 1, a.callback(T)));
|
|
2424
2482
|
}
|
|
2425
|
-
},
|
|
2483
|
+
}, g.ScreenSpaceEventType.LEFT_DOUBLE_CLICK);
|
|
2426
2484
|
};
|
|
2427
|
-
function
|
|
2485
|
+
function H(s) {
|
|
2428
2486
|
return e.cartographicArrayToCartesianArray([
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
|
|
2432
|
-
|
|
2487
|
+
g.Rectangle.northwest(s),
|
|
2488
|
+
g.Rectangle.northeast(s),
|
|
2489
|
+
g.Rectangle.southeast(s),
|
|
2490
|
+
g.Rectangle.southwest(s)
|
|
2433
2491
|
]);
|
|
2434
2492
|
}
|
|
2435
|
-
function
|
|
2493
|
+
function Y(s) {
|
|
2436
2494
|
s && (s.canvas.style.cursor = "crosshair");
|
|
2437
2495
|
}
|
|
2438
|
-
function
|
|
2496
|
+
function G(s) {
|
|
2439
2497
|
s && (s.canvas.style.cursor = "");
|
|
2440
2498
|
}
|
|
2441
2499
|
i.prototype.startDrawingExtent = function(a) {
|
|
2442
|
-
var a =
|
|
2500
|
+
var a = k(a, r);
|
|
2443
2501
|
this.startDrawing(function() {
|
|
2444
|
-
f != null && y.remove(f), T != null && T.remove(), _.destroy(), h.setVisible(!1),
|
|
2502
|
+
f != null && y.remove(f), T != null && T.remove(), _.destroy(), h.setVisible(!1), G(d);
|
|
2445
2503
|
});
|
|
2446
|
-
var v = this, d = this._scene, y = this._scene.primitives, h = this._tooltip, C = null, f = null, T = null, _ = new
|
|
2447
|
-
|
|
2448
|
-
function
|
|
2449
|
-
f == null && (f = new
|
|
2504
|
+
var v = this, d = this._scene, y = this._scene.primitives, h = this._tooltip, C = null, f = null, T = null, _ = new g.ScreenSpaceEventHandler(d.canvas);
|
|
2505
|
+
Y(d);
|
|
2506
|
+
function S(b) {
|
|
2507
|
+
f == null && (f = new be.ExtentPrimitive({
|
|
2450
2508
|
extent: b,
|
|
2451
2509
|
material: a.material
|
|
2452
2510
|
}), f.asynchronous = !1, y.add(f)), f.setExtent(b);
|
|
2453
|
-
var M =
|
|
2511
|
+
var M = H(b);
|
|
2454
2512
|
T == null ? (T = new i.BillboardGroup(v, w), T.addBillboards(M)) : T.updateBillboardsPositions(M);
|
|
2455
2513
|
}
|
|
2456
2514
|
_.setInputAction(function(b) {
|
|
@@ -2459,53 +2517,53 @@ var Te = function() {
|
|
|
2459
2517
|
if (M)
|
|
2460
2518
|
if (f == null) {
|
|
2461
2519
|
C = e.cartesianToCartographic(M);
|
|
2462
|
-
var
|
|
2463
|
-
|
|
2520
|
+
var x = U(C, C);
|
|
2521
|
+
S(x);
|
|
2464
2522
|
} else
|
|
2465
|
-
v.stopDrawing(), typeof a.callback == "function" && a.callback(
|
|
2523
|
+
v.stopDrawing(), typeof a.callback == "function" && a.callback(U(C, e.cartesianToCartographic(M)));
|
|
2466
2524
|
}
|
|
2467
|
-
},
|
|
2525
|
+
}, g.ScreenSpaceEventType.LEFT_DOWN), _.setInputAction(function(b) {
|
|
2468
2526
|
var M = b.endPosition;
|
|
2469
2527
|
if (M != null)
|
|
2470
2528
|
if (f == null)
|
|
2471
2529
|
h.showAt(M, "<p>Click to start drawing rectangle</p>");
|
|
2472
2530
|
else {
|
|
2473
|
-
var
|
|
2474
|
-
if (
|
|
2475
|
-
var
|
|
2476
|
-
|
|
2531
|
+
var x = d.camera.pickEllipsoid(M, e);
|
|
2532
|
+
if (x) {
|
|
2533
|
+
var W = U(C, e.cartesianToCartographic(x));
|
|
2534
|
+
S(W), h.showAt(M, "<p>Drag to change rectangle extent</p><p>Click again to finish drawing</p>");
|
|
2477
2535
|
}
|
|
2478
2536
|
}
|
|
2479
|
-
},
|
|
2537
|
+
}, g.ScreenSpaceEventType.MOUSE_MOVE);
|
|
2480
2538
|
}, i.prototype.startDrawingCircle = function(a) {
|
|
2481
|
-
var a =
|
|
2539
|
+
var a = k(a, r);
|
|
2482
2540
|
this.startDrawing(function() {
|
|
2483
2541
|
C != null && y.remove(C), f.remove(), T.destroy(), h.setVisible(!1);
|
|
2484
2542
|
});
|
|
2485
|
-
var v = this, d = this._scene, y = this._scene.primitives, h = this._tooltip, C = null, f = null, T = new
|
|
2543
|
+
var v = this, d = this._scene, y = this._scene.primitives, h = this._tooltip, C = null, f = null, T = new g.ScreenSpaceEventHandler(d.canvas);
|
|
2486
2544
|
T.setInputAction(function(_) {
|
|
2487
2545
|
if (_.position != null) {
|
|
2488
|
-
var
|
|
2489
|
-
|
|
2490
|
-
center:
|
|
2546
|
+
var S = d.camera.pickEllipsoid(_.position, e);
|
|
2547
|
+
S && (C == null ? (C = new i.CirclePrimitive({
|
|
2548
|
+
center: S,
|
|
2491
2549
|
radius: 0,
|
|
2492
2550
|
asynchronous: !1,
|
|
2493
2551
|
material: a.material
|
|
2494
|
-
}), y.add(C), f = new i.BillboardGroup(v, w), f.addBillboards([
|
|
2552
|
+
}), y.add(C), f = new i.BillboardGroup(v, w), f.addBillboards([S])) : (typeof a.callback == "function" && a.callback(C.getCenter(), C.getRadius()), v.stopDrawing()));
|
|
2495
2553
|
}
|
|
2496
|
-
},
|
|
2497
|
-
var
|
|
2498
|
-
if (
|
|
2554
|
+
}, g.ScreenSpaceEventType.LEFT_DOWN), T.setInputAction(function(_) {
|
|
2555
|
+
var S = _.endPosition;
|
|
2556
|
+
if (S != null)
|
|
2499
2557
|
if (C == null)
|
|
2500
|
-
h.showAt(
|
|
2558
|
+
h.showAt(S, "<p>Click to start drawing the circle</p>");
|
|
2501
2559
|
else {
|
|
2502
|
-
var b = d.camera.pickEllipsoid(
|
|
2503
|
-
b && (C.setRadius(
|
|
2560
|
+
var b = d.camera.pickEllipsoid(S, e);
|
|
2561
|
+
b && (C.setRadius(g.Cartesian3.distance(C.getCenter(), b)), f.updateBillboardsPositions(b), h.showAt(S, "<p>Move mouse to change circle radius</p><p>Click again to finish drawing</p>"));
|
|
2504
2562
|
}
|
|
2505
|
-
},
|
|
2563
|
+
}, g.ScreenSpaceEventType.MOUSE_MOVE);
|
|
2506
2564
|
}, i.prototype.enhancePrimitives = function() {
|
|
2507
2565
|
var s = this;
|
|
2508
|
-
|
|
2566
|
+
g.Billboard.prototype.setEditable = function() {
|
|
2509
2567
|
if (this._editable)
|
|
2510
2568
|
return;
|
|
2511
2569
|
this._editable = !0;
|
|
@@ -2513,24 +2571,24 @@ var Te = function() {
|
|
|
2513
2571
|
function h(C) {
|
|
2514
2572
|
s._scene.screenSpaceCameraController.enableRotate = C;
|
|
2515
2573
|
}
|
|
2516
|
-
|
|
2517
|
-
function f(
|
|
2518
|
-
d.position =
|
|
2574
|
+
$(d, "leftDown", function(C) {
|
|
2575
|
+
function f(S) {
|
|
2576
|
+
d.position = S, y.executeListeners({ name: "drag", positions: S });
|
|
2519
2577
|
}
|
|
2520
|
-
function T(
|
|
2521
|
-
_.destroy(), h(!0), y.executeListeners({ name: "dragEnd", positions:
|
|
2578
|
+
function T(S) {
|
|
2579
|
+
_.destroy(), h(!0), y.executeListeners({ name: "dragEnd", positions: S });
|
|
2522
2580
|
}
|
|
2523
|
-
var _ = new
|
|
2524
|
-
_.setInputAction(function(
|
|
2525
|
-
var b = s._scene.camera.pickEllipsoid(
|
|
2581
|
+
var _ = new g.ScreenSpaceEventHandler(s._scene.canvas);
|
|
2582
|
+
_.setInputAction(function(S) {
|
|
2583
|
+
var b = s._scene.camera.pickEllipsoid(S.endPosition, e);
|
|
2526
2584
|
b ? f(b) : T(b);
|
|
2527
|
-
},
|
|
2528
|
-
T(s._scene.camera.pickEllipsoid(
|
|
2529
|
-
},
|
|
2530
|
-
}),
|
|
2585
|
+
}, g.ScreenSpaceEventType.MOUSE_MOVE), _.setInputAction(function(S) {
|
|
2586
|
+
T(s._scene.camera.pickEllipsoid(S.position, e));
|
|
2587
|
+
}, g.ScreenSpaceEventType.LEFT_UP), h(!1);
|
|
2588
|
+
}), te(d);
|
|
2531
2589
|
};
|
|
2532
2590
|
function a(d) {
|
|
2533
|
-
s._scene, !(this._highlighted && this._highlighted == d) && this._editMode !== !0 && (this._highlighted = d, d ? (s.setHighlighted(this), this._strokeColor = this.strokeColor, this.setStrokeStyle(
|
|
2591
|
+
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));
|
|
2534
2592
|
}
|
|
2535
2593
|
function v(d) {
|
|
2536
2594
|
if (this._editMode != d)
|
|
@@ -2538,34 +2596,34 @@ var Te = function() {
|
|
|
2538
2596
|
s.setEdited(this);
|
|
2539
2597
|
var y = s._scene, h = this;
|
|
2540
2598
|
if (this._markers == null) {
|
|
2541
|
-
let
|
|
2542
|
-
var Q =
|
|
2543
|
-
Q < f.countBillboards() && (f.getBillboard(Q).position =
|
|
2544
|
-
},
|
|
2599
|
+
let x = function(R, V) {
|
|
2600
|
+
var Q = R - 1 < 0 ? V.length - 1 : R - 1;
|
|
2601
|
+
Q < f.countBillboards() && (f.getBillboard(Q).position = q(Q)), Q = R, Q < f.countBillboards() && (f.getBillboard(Q).position = q(Q));
|
|
2602
|
+
}, W = function() {
|
|
2545
2603
|
h.executeListeners({
|
|
2546
2604
|
name: "onEdited",
|
|
2547
2605
|
positions: h.positions
|
|
2548
2606
|
});
|
|
2549
|
-
},
|
|
2550
|
-
var
|
|
2607
|
+
}, q = function(R) {
|
|
2608
|
+
var V = h.positions;
|
|
2551
2609
|
return e.cartographicToCartesian(
|
|
2552
|
-
new
|
|
2553
|
-
e.cartesianToCartographic(
|
|
2554
|
-
e.cartesianToCartographic(
|
|
2610
|
+
new g.EllipsoidGeodesic(
|
|
2611
|
+
e.cartesianToCartographic(V[R]),
|
|
2612
|
+
e.cartesianToCartographic(V[R < V.length - 1 ? R + 1 : 0])
|
|
2555
2613
|
).interpolateUsingFraction(0.5)
|
|
2556
2614
|
);
|
|
2557
2615
|
};
|
|
2558
|
-
var C = new i.BillboardGroup(s, P), f = new i.BillboardGroup(s,
|
|
2616
|
+
var C = new i.BillboardGroup(s, P), f = new i.BillboardGroup(s, A), T = {
|
|
2559
2617
|
dragHandlers: {
|
|
2560
|
-
onDrag: function(
|
|
2561
|
-
h.positions[
|
|
2618
|
+
onDrag: function(R, V) {
|
|
2619
|
+
h.positions[R] = V, x(R, h.positions), h._createPrimitive = !0;
|
|
2562
2620
|
},
|
|
2563
|
-
onDragEnd: function(
|
|
2564
|
-
h._createPrimitive = !0,
|
|
2621
|
+
onDragEnd: function(R, V) {
|
|
2622
|
+
h._createPrimitive = !0, W();
|
|
2565
2623
|
}
|
|
2566
2624
|
},
|
|
2567
|
-
onDoubleClick: function(
|
|
2568
|
-
h.positions.length < 4 || (h.positions.splice(
|
|
2625
|
+
onDoubleClick: function(R) {
|
|
2626
|
+
h.positions.length < 4 || (h.positions.splice(R, 1), h._createPrimitive = !0, C.removeBillboard(R), f.removeBillboard(R), x(R, h.positions), W());
|
|
2569
2627
|
},
|
|
2570
2628
|
tooltip: function() {
|
|
2571
2629
|
if (h.positions.length > 3)
|
|
@@ -2573,34 +2631,34 @@ var Te = function() {
|
|
|
2573
2631
|
}
|
|
2574
2632
|
};
|
|
2575
2633
|
C.addBillboards(h.positions, T), this._markers = C;
|
|
2576
|
-
for (var _ = [],
|
|
2577
|
-
_.push(
|
|
2634
|
+
for (var _ = [], S = 0, b = h.positions.length + (this.isPolygon ? 0 : -1); S < b; S++)
|
|
2635
|
+
_.push(q(S));
|
|
2578
2636
|
var M = {
|
|
2579
2637
|
dragHandlers: {
|
|
2580
|
-
onDragStart: function(
|
|
2581
|
-
this.index =
|
|
2638
|
+
onDragStart: function(R, V) {
|
|
2639
|
+
this.index = R + 1, h.positions.splice(this.index, 0, V), h._createPrimitive = !0;
|
|
2582
2640
|
},
|
|
2583
|
-
onDrag: function(
|
|
2584
|
-
h.positions[this.index] =
|
|
2641
|
+
onDrag: function(R, V) {
|
|
2642
|
+
h.positions[this.index] = V, h._createPrimitive = !0;
|
|
2585
2643
|
},
|
|
2586
|
-
onDragEnd: function(
|
|
2587
|
-
C.insertBillboard(this.index,
|
|
2644
|
+
onDragEnd: function(R, V) {
|
|
2645
|
+
C.insertBillboard(this.index, V, T), f.getBillboard(this.index - 1).position = q(this.index - 1), f.insertBillboard(this.index, q(this.index), M), h._createPrimitive = !0, W();
|
|
2588
2646
|
}
|
|
2589
2647
|
},
|
|
2590
2648
|
tooltip: function() {
|
|
2591
2649
|
return "Drag to create a new point";
|
|
2592
2650
|
}
|
|
2593
2651
|
};
|
|
2594
|
-
f.addBillboards(_, M), this._editMarkers = f, this._globeClickhandler = new
|
|
2595
|
-
var
|
|
2596
|
-
|
|
2597
|
-
},
|
|
2652
|
+
f.addBillboards(_, M), this._editMarkers = f, this._globeClickhandler = new g.ScreenSpaceEventHandler(y.canvas), this._globeClickhandler.setInputAction(function(R) {
|
|
2653
|
+
var V = y.pick(R.position);
|
|
2654
|
+
V && V.primitive || h.setEditMode(!1);
|
|
2655
|
+
}, g.ScreenSpaceEventType.LEFT_CLICK), C.setOnTop(), f.setOnTop();
|
|
2598
2656
|
}
|
|
2599
2657
|
this._editMode = !0;
|
|
2600
2658
|
} else
|
|
2601
2659
|
this._markers != null && (this._markers.remove(), this._editMarkers.remove(), this._markers = null, this._editMarkers = null, this._globeClickhandler.destroy()), this._editMode = !1;
|
|
2602
2660
|
}
|
|
2603
|
-
|
|
2661
|
+
be.PolylinePrimitive.prototype.setEditable = function() {
|
|
2604
2662
|
if (!this.setEditMode) {
|
|
2605
2663
|
var d = this;
|
|
2606
2664
|
d.isPolygon = !1, d.asynchronous = !1, s.registerEditableShape(d), d.setEditMode = v;
|
|
@@ -2608,13 +2666,13 @@ var Te = function() {
|
|
|
2608
2666
|
d.setHighlighted = function(h) {
|
|
2609
2667
|
this._editMode !== !0 && (h ? (s.setHighlighted(this), this.setWidth(y * 2)) : this.setWidth(y));
|
|
2610
2668
|
}, d.getExtent = function() {
|
|
2611
|
-
return
|
|
2612
|
-
},
|
|
2669
|
+
return g.Rectangle.fromCartographicArray(e.cartesianArrayToCartographicArray(this.positions));
|
|
2670
|
+
}, te(d), d.setEditMode(!1);
|
|
2613
2671
|
}
|
|
2614
|
-
},
|
|
2672
|
+
}, be.PolygonPrimitive.prototype.setEditable = function() {
|
|
2615
2673
|
var d = this;
|
|
2616
|
-
d.asynchronous = !1, s._scene, s.registerEditableShape(d), d.setEditMode = v, d.setHighlighted = a,
|
|
2617
|
-
},
|
|
2674
|
+
d.asynchronous = !1, s._scene, s.registerEditableShape(d), d.setEditMode = v, d.setHighlighted = a, te(d), d.setEditMode(!1);
|
|
2675
|
+
}, be.ExtentPrimitive.prototype.setEditable = function() {
|
|
2618
2676
|
if (!this.setEditMode) {
|
|
2619
2677
|
var d = this, y = s._scene;
|
|
2620
2678
|
s.registerEditableShape(d), d.asynchronous = !1, d.setEditMode = function(h) {
|
|
@@ -2629,11 +2687,11 @@ var Te = function() {
|
|
|
2629
2687
|
};
|
|
2630
2688
|
var C = new i.BillboardGroup(s, P), f = {
|
|
2631
2689
|
dragHandlers: {
|
|
2632
|
-
onDrag: function(_,
|
|
2690
|
+
onDrag: function(_, S) {
|
|
2633
2691
|
var b = C.getBillboard((_ + 2) % 4).position;
|
|
2634
|
-
d.setExtent(
|
|
2692
|
+
d.setExtent(U(e.cartesianToCartographic(b), e.cartesianToCartographic(S))), C.updateBillboardsPositions(H(d.extent));
|
|
2635
2693
|
},
|
|
2636
|
-
onDragEnd: function(_,
|
|
2694
|
+
onDragEnd: function(_, S) {
|
|
2637
2695
|
T();
|
|
2638
2696
|
}
|
|
2639
2697
|
},
|
|
@@ -2641,15 +2699,15 @@ var Te = function() {
|
|
|
2641
2699
|
return "Drag to change the corners of this extent";
|
|
2642
2700
|
}
|
|
2643
2701
|
};
|
|
2644
|
-
C.addBillboards(
|
|
2645
|
-
var
|
|
2646
|
-
|
|
2647
|
-
},
|
|
2702
|
+
C.addBillboards(H(d.extent), f), this._markers = C, this._globeClickhandler = new g.ScreenSpaceEventHandler(y.canvas), this._globeClickhandler.setInputAction(function(_) {
|
|
2703
|
+
var S = y.pick(_.position);
|
|
2704
|
+
S && !S.isDestroyed() && S.primitive || d.setEditMode(!1);
|
|
2705
|
+
}, g.ScreenSpaceEventType.LEFT_CLICK), C.setOnTop();
|
|
2648
2706
|
}
|
|
2649
2707
|
this._editMode = !0;
|
|
2650
2708
|
} else
|
|
2651
2709
|
this._markers != null && (this._markers.remove(), this._markers = null, this._globeClickhandler.destroy()), this._editMode = !1;
|
|
2652
|
-
}, d.setHighlighted = a,
|
|
2710
|
+
}, d.setHighlighted = a, te(d), d.setEditMode(!1);
|
|
2653
2711
|
}
|
|
2654
2712
|
}, i.EllipsePrimitive.prototype.setEditable = function() {
|
|
2655
2713
|
if (!this.setEditMode) {
|
|
@@ -2661,7 +2719,7 @@ var Te = function() {
|
|
|
2661
2719
|
var C = this;
|
|
2662
2720
|
if (this._markers == null) {
|
|
2663
2721
|
let _ = function() {
|
|
2664
|
-
return
|
|
2722
|
+
return g.EllipseOutlineGeometry(
|
|
2665
2723
|
e,
|
|
2666
2724
|
d.getCenter(),
|
|
2667
2725
|
d.getSemiMajorAxis(),
|
|
@@ -2669,7 +2727,7 @@ var Te = function() {
|
|
|
2669
2727
|
d.getRotation() + Math.PI / 2,
|
|
2670
2728
|
Math.PI / 2
|
|
2671
2729
|
).splice(0, 4);
|
|
2672
|
-
},
|
|
2730
|
+
}, S = function() {
|
|
2673
2731
|
d.executeListeners({
|
|
2674
2732
|
name: "onEdited",
|
|
2675
2733
|
center: d.getCenter(),
|
|
@@ -2681,37 +2739,37 @@ var Te = function() {
|
|
|
2681
2739
|
var f = new i.BillboardGroup(s, P), T = {
|
|
2682
2740
|
dragHandlers: {
|
|
2683
2741
|
onDrag: function(b, M) {
|
|
2684
|
-
var
|
|
2685
|
-
b % 2 == 0 ? d.setSemiMajorAxis(
|
|
2742
|
+
var x = g.Cartesian3.distance(d.getCenter(), M);
|
|
2743
|
+
b % 2 == 0 ? d.setSemiMajorAxis(x) : d.setSemiMinorAxis(x), f.updateBillboardsPositions(_());
|
|
2686
2744
|
},
|
|
2687
2745
|
onDragEnd: function(b, M) {
|
|
2688
|
-
|
|
2746
|
+
S();
|
|
2689
2747
|
}
|
|
2690
2748
|
},
|
|
2691
2749
|
tooltip: function() {
|
|
2692
2750
|
return "Drag to change the excentricity and radius";
|
|
2693
2751
|
}
|
|
2694
2752
|
};
|
|
2695
|
-
f.addBillboards(_(), T), this._markers = f, this._globeClickhandler = new
|
|
2753
|
+
f.addBillboards(_(), T), this._markers = f, this._globeClickhandler = new g.ScreenSpaceEventHandler(y.canvas), this._globeClickhandler.setInputAction(function(b) {
|
|
2696
2754
|
var M = y.pick(b.position);
|
|
2697
2755
|
M && M.primitive || C.setEditMode(!1);
|
|
2698
|
-
},
|
|
2756
|
+
}, g.ScreenSpaceEventType.LEFT_CLICK), f.setOnTop();
|
|
2699
2757
|
}
|
|
2700
2758
|
this._editMode = !0;
|
|
2701
2759
|
} else
|
|
2702
2760
|
this._markers != null && (this._markers.remove(), this._markers = null, this._globeClickhandler.destroy()), this._editMode = !1;
|
|
2703
|
-
}, d.setHighlighted = a,
|
|
2761
|
+
}, d.setHighlighted = a, te(d), d.setEditMode(!1);
|
|
2704
2762
|
}
|
|
2705
2763
|
}, i.CirclePrimitive.prototype.getCircleCartesianCoordinates = function(d) {
|
|
2706
|
-
for (var y =
|
|
2707
|
-
new
|
|
2764
|
+
for (var y = g.CircleOutlineGeometry.createGeometry(
|
|
2765
|
+
new g.CircleOutlineGeometry({
|
|
2708
2766
|
ellipsoid: e,
|
|
2709
2767
|
center: this.getCenter(),
|
|
2710
2768
|
radius: this.getRadius(),
|
|
2711
2769
|
granularity: d
|
|
2712
2770
|
})
|
|
2713
2771
|
), h = 0, C, f = []; h < y.attributes.position.values.length; h += 3)
|
|
2714
|
-
C = y.attributes.position.values, f.push(new
|
|
2772
|
+
C = y.attributes.position.values, f.push(new g.Cartesian3(C[h], C[h + 1], C[h + 2]));
|
|
2715
2773
|
return f;
|
|
2716
2774
|
}, i.CirclePrimitive.prototype.setEditable = function() {
|
|
2717
2775
|
if (!this.setEditMode) {
|
|
@@ -2723,8 +2781,8 @@ var Te = function() {
|
|
|
2723
2781
|
var C = this;
|
|
2724
2782
|
if (this._markers == null) {
|
|
2725
2783
|
let _ = function() {
|
|
2726
|
-
return C.getCircleCartesianCoordinates(
|
|
2727
|
-
},
|
|
2784
|
+
return C.getCircleCartesianCoordinates(g.Math.PI_OVER_TWO);
|
|
2785
|
+
}, S = function() {
|
|
2728
2786
|
d.executeListeners({
|
|
2729
2787
|
name: "onEdited",
|
|
2730
2788
|
center: d.getCenter(),
|
|
@@ -2734,31 +2792,31 @@ var Te = function() {
|
|
|
2734
2792
|
var f = new i.BillboardGroup(s, P), T = {
|
|
2735
2793
|
dragHandlers: {
|
|
2736
2794
|
onDrag: function(b, M) {
|
|
2737
|
-
d.setRadius(
|
|
2795
|
+
d.setRadius(g.Cartesian3.distance(d.getCenter(), M)), f.updateBillboardsPositions(_());
|
|
2738
2796
|
},
|
|
2739
2797
|
onDragEnd: function(b, M) {
|
|
2740
|
-
|
|
2798
|
+
S();
|
|
2741
2799
|
}
|
|
2742
2800
|
},
|
|
2743
2801
|
tooltip: function() {
|
|
2744
2802
|
return "Drag to change the radius";
|
|
2745
2803
|
}
|
|
2746
2804
|
};
|
|
2747
|
-
f.addBillboards(_(), T), this._markers = f, this._globeClickhandler = new
|
|
2805
|
+
f.addBillboards(_(), T), this._markers = f, this._globeClickhandler = new g.ScreenSpaceEventHandler(y.canvas), this._globeClickhandler.setInputAction(function(b) {
|
|
2748
2806
|
var M = y.pick(b.position);
|
|
2749
2807
|
M && M.primitive || C.setEditMode(!1);
|
|
2750
|
-
},
|
|
2808
|
+
}, g.ScreenSpaceEventType.LEFT_CLICK), f.setOnTop();
|
|
2751
2809
|
}
|
|
2752
2810
|
this._editMode = !0;
|
|
2753
2811
|
} else
|
|
2754
2812
|
this._markers != null && (this._markers.remove(), this._markers = null, this._globeClickhandler.destroy()), this._editMode = !1;
|
|
2755
|
-
}, d.setHighlighted = a,
|
|
2813
|
+
}, d.setHighlighted = a, te(d), d.setEditMode(!1);
|
|
2756
2814
|
}
|
|
2757
2815
|
};
|
|
2758
2816
|
}, i.DrawHelperWidget = function() {
|
|
2759
2817
|
function s(a, v) {
|
|
2760
|
-
if (!
|
|
2761
|
-
throw new
|
|
2818
|
+
if (!g.defined(v.container))
|
|
2819
|
+
throw new g.DeveloperError("Container is required");
|
|
2762
2820
|
var d = {
|
|
2763
2821
|
markerIcon: "./assets/img/glyphicons_242_google_maps.png",
|
|
2764
2822
|
polylineIcon: "./assets/img/glyphicons_097_vector_path_line.png",
|
|
@@ -2771,16 +2829,16 @@ var Te = function() {
|
|
|
2771
2829
|
extentDrawingOptions: u,
|
|
2772
2830
|
circleDrawingOptions: m
|
|
2773
2831
|
};
|
|
2774
|
-
|
|
2832
|
+
z(v, d);
|
|
2775
2833
|
var y = this, h = document.createElement("DIV");
|
|
2776
2834
|
h.className = "toolbar", v.container.appendChild(h);
|
|
2777
|
-
function C(_,
|
|
2778
|
-
var
|
|
2779
|
-
|
|
2780
|
-
var
|
|
2781
|
-
|
|
2782
|
-
var
|
|
2783
|
-
return
|
|
2835
|
+
function C(_, S, b, M) {
|
|
2836
|
+
var x = document.createElement("DIV");
|
|
2837
|
+
x.className = "button", x.title = b, h.appendChild(x), x.onclick = M;
|
|
2838
|
+
var W = document.createElement("SPAN");
|
|
2839
|
+
x.appendChild(W);
|
|
2840
|
+
var q = document.createElement("IMG");
|
|
2841
|
+
return q.src = S, W.appendChild(q), x;
|
|
2784
2842
|
}
|
|
2785
2843
|
var f = a._scene;
|
|
2786
2844
|
C("marker", v.markerIcon, "Click to start drawing a 2D marker", function() {
|
|
@@ -2818,11 +2876,11 @@ var Te = function() {
|
|
|
2818
2876
|
});
|
|
2819
2877
|
}), C("circle", v.circleIcon, "Click to start drawing a Circle", function() {
|
|
2820
2878
|
a.startDrawingCircle({
|
|
2821
|
-
callback: function(_,
|
|
2879
|
+
callback: function(_, S) {
|
|
2822
2880
|
y.executeListeners({
|
|
2823
2881
|
name: "circleCreated",
|
|
2824
2882
|
center: _,
|
|
2825
|
-
radius:
|
|
2883
|
+
radius: S
|
|
2826
2884
|
});
|
|
2827
2885
|
}
|
|
2828
2886
|
});
|
|
@@ -2830,19 +2888,19 @@ var Te = function() {
|
|
|
2830
2888
|
var T = document.createElement("DIV");
|
|
2831
2889
|
T.className = "divider", h.appendChild(T), C("clear", v.clearIcon, "Remove all primitives", function() {
|
|
2832
2890
|
f.primitives.removeAll();
|
|
2833
|
-
}),
|
|
2891
|
+
}), te(this);
|
|
2834
2892
|
}
|
|
2835
2893
|
return s;
|
|
2836
2894
|
}(), i.prototype.addToolbar = function(s, a) {
|
|
2837
|
-
return a =
|
|
2895
|
+
return a = k(a, { container: s }), new i.DrawHelperWidget(this, a);
|
|
2838
2896
|
};
|
|
2839
|
-
function
|
|
2840
|
-
var v = new
|
|
2897
|
+
function U(s, a) {
|
|
2898
|
+
var v = new g.Rectangle();
|
|
2841
2899
|
v.west = Math.min(s.longitude, a.longitude), v.east = Math.max(s.longitude, a.longitude), v.south = Math.min(s.latitude, a.latitude), v.north = Math.max(s.latitude, a.latitude);
|
|
2842
|
-
var d =
|
|
2900
|
+
var d = g.Math.EPSILON7;
|
|
2843
2901
|
return v.east - v.west < d && (v.east += d * 2), v.north - v.south < d && (v.north += d * 2), v;
|
|
2844
2902
|
}
|
|
2845
|
-
function
|
|
2903
|
+
function j(s, a) {
|
|
2846
2904
|
return s.longitude.toFixed(a || 3) + ", " + s.latitude.toFixed(a || 3);
|
|
2847
2905
|
}
|
|
2848
2906
|
function O(s, a) {
|
|
@@ -2855,22 +2913,22 @@ var Te = function() {
|
|
|
2855
2913
|
a[v] = typeof a[v] > "u" ? O(s[v], null) : a[v];
|
|
2856
2914
|
return a;
|
|
2857
2915
|
}
|
|
2858
|
-
function
|
|
2916
|
+
function z(s, a) {
|
|
2859
2917
|
s = s || {};
|
|
2860
2918
|
var v;
|
|
2861
2919
|
for (v in a)
|
|
2862
2920
|
s[v] === void 0 && (s[v] = O(a[v]));
|
|
2863
2921
|
}
|
|
2864
|
-
function
|
|
2922
|
+
function k(s, a) {
|
|
2865
2923
|
var v = O(s), d;
|
|
2866
2924
|
for (d in a)
|
|
2867
2925
|
v[d] === void 0 && (v[d] = O(a[d]));
|
|
2868
2926
|
return v;
|
|
2869
2927
|
}
|
|
2870
|
-
function
|
|
2928
|
+
function $(s, a, v) {
|
|
2871
2929
|
s[a] = v;
|
|
2872
2930
|
}
|
|
2873
|
-
function
|
|
2931
|
+
function te(s) {
|
|
2874
2932
|
s._listeners = {}, s.addListener = function(a, v) {
|
|
2875
2933
|
return this._listeners[a] = this._listeners[a] || [], this._listeners[a].push(v), this._listeners[a].length;
|
|
2876
2934
|
}, s.executeListeners = function(a, v) {
|
|
@@ -2883,22 +2941,22 @@ var Te = function() {
|
|
|
2883
2941
|
}
|
|
2884
2942
|
return i;
|
|
2885
2943
|
}();
|
|
2886
|
-
const
|
|
2944
|
+
const Oo = 2, Ao = (e, n) => {
|
|
2887
2945
|
switch (e) {
|
|
2888
|
-
case
|
|
2889
|
-
if (n.features.length !==
|
|
2946
|
+
case le.BOX: {
|
|
2947
|
+
if (n.features.length !== Oo)
|
|
2890
2948
|
throw new Error(`${e} must have 2 points`);
|
|
2891
|
-
const t =
|
|
2949
|
+
const t = _t(n.features, (o) => {
|
|
2892
2950
|
var r;
|
|
2893
|
-
return ((r = o.properties) == null ? void 0 : r.type) ===
|
|
2894
|
-
}), i =
|
|
2951
|
+
return ((r = o.properties) == null ? void 0 : r.type) === dt.BOTTOM_LEFT;
|
|
2952
|
+
}), i = _t(n.features, (o) => {
|
|
2895
2953
|
var r;
|
|
2896
|
-
return ((r = o.properties) == null ? void 0 : r.type) ===
|
|
2954
|
+
return ((r = o.properties) == null ? void 0 : r.type) === dt.TOP_RIGHT;
|
|
2897
2955
|
});
|
|
2898
2956
|
if (i && t) {
|
|
2899
2957
|
if (t.geometry.coordinates[0] === i.geometry.coordinates[0] && t.geometry.coordinates[1] === i.geometry.coordinates[1])
|
|
2900
2958
|
throw new Error(`${e} must define BOTTOM_LEFT and TOP_RIGHT different points`);
|
|
2901
|
-
return
|
|
2959
|
+
return Oe.fromDegrees(
|
|
2902
2960
|
t.geometry.coordinates[0],
|
|
2903
2961
|
t.geometry.coordinates[1],
|
|
2904
2962
|
i.geometry.coordinates[0],
|
|
@@ -2910,10 +2968,10 @@ const Mo = 2, Po = (e, n) => {
|
|
|
2910
2968
|
default:
|
|
2911
2969
|
throw new Error(`${e} type geoJSON still not supported`);
|
|
2912
2970
|
}
|
|
2913
|
-
},
|
|
2971
|
+
}, ko = (e) => {
|
|
2914
2972
|
const n = e.map((t) => {
|
|
2915
|
-
const i =
|
|
2916
|
-
return [
|
|
2973
|
+
const i = He.fromCartesian(t);
|
|
2974
|
+
return [fe.toDegrees(i.longitude), fe.toDegrees(i.latitude)];
|
|
2917
2975
|
});
|
|
2918
2976
|
return n.push(n[0]), {
|
|
2919
2977
|
type: "Feature",
|
|
@@ -2923,51 +2981,51 @@ const Mo = 2, Po = (e, n) => {
|
|
|
2923
2981
|
coordinates: [n]
|
|
2924
2982
|
}
|
|
2925
2983
|
};
|
|
2926
|
-
},
|
|
2927
|
-
const n =
|
|
2928
|
-
[
|
|
2929
|
-
[
|
|
2984
|
+
}, Ro = (e) => {
|
|
2985
|
+
const n = nn.lineString([
|
|
2986
|
+
[fe.toDegrees(e.west), fe.toDegrees(e.south)],
|
|
2987
|
+
[fe.toDegrees(e.east), fe.toDegrees(e.north)]
|
|
2930
2988
|
]);
|
|
2931
|
-
return
|
|
2932
|
-
},
|
|
2933
|
-
const n =
|
|
2989
|
+
return on(rn(n));
|
|
2990
|
+
}, No = (e) => {
|
|
2991
|
+
const n = nn.lineString([
|
|
2934
2992
|
[e.west, e.south],
|
|
2935
2993
|
[e.east, e.north]
|
|
2936
2994
|
]);
|
|
2937
|
-
return
|
|
2995
|
+
return on(rn(n)).geometry.coordinates[0].map((i) => ve.fromRadiansArray(i)[0]);
|
|
2938
2996
|
};
|
|
2939
|
-
class
|
|
2997
|
+
class Va extends lt {
|
|
2940
2998
|
}
|
|
2941
|
-
const
|
|
2942
|
-
const { drawState: n, drawingMaterial: t, drawingVertexColor: i, material: o, hollow: r, outlineWidth: c } = e, u =
|
|
2943
|
-
|
|
2944
|
-
|
|
2999
|
+
const za = (e) => {
|
|
3000
|
+
const { drawState: n, drawingMaterial: t, drawingVertexColor: i, material: o, hollow: r, outlineWidth: c } = e, u = se(), [m, p] = D();
|
|
3001
|
+
I(() => {
|
|
3002
|
+
p(
|
|
2945
3003
|
// eslint-disable-next-line
|
|
2946
|
-
new
|
|
3004
|
+
new be(u, t, i)
|
|
2947
3005
|
);
|
|
2948
|
-
}, []),
|
|
3006
|
+
}, []), I(() => {
|
|
2949
3007
|
if (m) {
|
|
2950
|
-
const
|
|
3008
|
+
const L = m;
|
|
2951
3009
|
if (n.drawing)
|
|
2952
3010
|
switch (n.type) {
|
|
2953
|
-
case
|
|
2954
|
-
u.scene.globe.depthTestAgainstTerrain = !1,
|
|
3011
|
+
case le.POLYGON:
|
|
3012
|
+
u.scene.globe.depthTestAgainstTerrain = !1, L.startDrawingPolygon({
|
|
2955
3013
|
callback: (w) => {
|
|
2956
3014
|
n.handler({
|
|
2957
3015
|
primitive: w,
|
|
2958
|
-
type:
|
|
2959
|
-
geojson:
|
|
3016
|
+
type: le.POLYGON,
|
|
3017
|
+
geojson: ko(w)
|
|
2960
3018
|
});
|
|
2961
3019
|
}
|
|
2962
3020
|
});
|
|
2963
3021
|
break;
|
|
2964
|
-
case
|
|
2965
|
-
u.scene.globe.depthTestAgainstTerrain = !1,
|
|
3022
|
+
case le.BOX:
|
|
3023
|
+
u.scene.globe.depthTestAgainstTerrain = !1, L.startDrawingExtent({
|
|
2966
3024
|
callback: (w) => {
|
|
2967
3025
|
n.handler({
|
|
2968
3026
|
primitive: w,
|
|
2969
|
-
type:
|
|
2970
|
-
geojson:
|
|
3027
|
+
type: le.BOX,
|
|
3028
|
+
geojson: Ro(w)
|
|
2971
3029
|
});
|
|
2972
3030
|
}
|
|
2973
3031
|
});
|
|
@@ -2976,60 +3034,60 @@ const Aa = (e) => {
|
|
|
2976
3034
|
throw new Error(`[CESIUM DRAW]: ${n.type} unrecognized primitive to draw.`);
|
|
2977
3035
|
}
|
|
2978
3036
|
else
|
|
2979
|
-
|
|
3037
|
+
L.stopDrawing(), u.scene.globe.depthTestAgainstTerrain = !0;
|
|
2980
3038
|
}
|
|
2981
3039
|
}, [n, m]);
|
|
2982
|
-
const E = (
|
|
3040
|
+
const E = (L) => {
|
|
2983
3041
|
try {
|
|
2984
|
-
let w =
|
|
3042
|
+
let w = L.coordinates !== void 0 ? L.coordinates : Ao(L.type, L.geojson);
|
|
2985
3043
|
if (r !== !0)
|
|
2986
|
-
switch (
|
|
2987
|
-
case
|
|
2988
|
-
return /* @__PURE__ */ l(
|
|
2989
|
-
case
|
|
2990
|
-
return /* @__PURE__ */ l(
|
|
3044
|
+
switch (L.type) {
|
|
3045
|
+
case le.BOX:
|
|
3046
|
+
return /* @__PURE__ */ l(xo, { coordinates: w, material: o ?? t });
|
|
3047
|
+
case le.POLYGON:
|
|
3048
|
+
return /* @__PURE__ */ l(Po, { hierarchy: new Zi(w), material: o ?? t });
|
|
2991
3049
|
default:
|
|
2992
|
-
return /* @__PURE__ */ l(
|
|
3050
|
+
return /* @__PURE__ */ l(oe, {});
|
|
2993
3051
|
}
|
|
2994
3052
|
else {
|
|
2995
|
-
switch (
|
|
2996
|
-
case
|
|
2997
|
-
w =
|
|
3053
|
+
switch (L.type) {
|
|
3054
|
+
case le.BOX:
|
|
3055
|
+
w = No(w);
|
|
2998
3056
|
break;
|
|
2999
|
-
case
|
|
3057
|
+
case le.POLYGON:
|
|
3000
3058
|
w = [...w, w[0]];
|
|
3001
3059
|
break;
|
|
3002
3060
|
default:
|
|
3003
|
-
return /* @__PURE__ */ l(
|
|
3061
|
+
return /* @__PURE__ */ l(oe, {});
|
|
3004
3062
|
}
|
|
3005
|
-
return /* @__PURE__ */ l(
|
|
3063
|
+
return /* @__PURE__ */ l(Do, { clampToGround: !0, positions: w, width: c ?? 1, material: o ?? t });
|
|
3006
3064
|
}
|
|
3007
3065
|
} catch (w) {
|
|
3008
|
-
return console.error(w), /* @__PURE__ */ l(
|
|
3066
|
+
return console.error(w), /* @__PURE__ */ l(oe, {});
|
|
3009
3067
|
}
|
|
3010
3068
|
};
|
|
3011
|
-
return /* @__PURE__ */ l(
|
|
3012
|
-
/* @__PURE__ */ N(
|
|
3069
|
+
return /* @__PURE__ */ l(Io, { ...e, children: e.drawings.map((L, w) => /* @__PURE__ */ N(_o, { name: L.name, children: [
|
|
3070
|
+
/* @__PURE__ */ N(Mo, { children: [
|
|
3013
3071
|
/* @__PURE__ */ N("h1", { children: [
|
|
3014
3072
|
"Drawed Entity ",
|
|
3015
|
-
|
|
3073
|
+
L.name
|
|
3016
3074
|
] }),
|
|
3017
3075
|
/* @__PURE__ */ l("p", { children: "This is description of drawed entity" })
|
|
3018
3076
|
] }),
|
|
3019
|
-
E(
|
|
3020
|
-
] },
|
|
3021
|
-
},
|
|
3022
|
-
const n =
|
|
3023
|
-
return
|
|
3024
|
-
n.extend(
|
|
3025
|
-
}, [n]), /* @__PURE__ */ l(
|
|
3026
|
-
},
|
|
3027
|
-
const n =
|
|
3077
|
+
E(L)
|
|
3078
|
+
] }, L.id)) });
|
|
3079
|
+
}, $a = (e) => {
|
|
3080
|
+
const n = se();
|
|
3081
|
+
return I(() => {
|
|
3082
|
+
n.extend(Ji);
|
|
3083
|
+
}, [n]), /* @__PURE__ */ l(oe, {});
|
|
3084
|
+
}, Bo = -25, zt = 2, Wa = (e) => {
|
|
3085
|
+
const n = se(), t = (r, c = ",") => r.slice(r.indexOf(`
|
|
3028
3086
|
`) + 1).split(`
|
|
3029
|
-
`).map((
|
|
3030
|
-
const E =
|
|
3087
|
+
`).map((p) => {
|
|
3088
|
+
const E = p.split(c);
|
|
3031
3089
|
return {
|
|
3032
|
-
cartographic:
|
|
3090
|
+
cartographic: He.fromDegrees(parseFloat(E[0]), parseFloat(E[1])),
|
|
3033
3091
|
cartesian: new Ce(parseFloat(E[0]), parseFloat(E[1]))
|
|
3034
3092
|
};
|
|
3035
3093
|
}), i = (r) => {
|
|
@@ -3038,36 +3096,36 @@ const Aa = (e) => {
|
|
|
3038
3096
|
const c = new FileReader();
|
|
3039
3097
|
c.onload = (m) => {
|
|
3040
3098
|
var w;
|
|
3041
|
-
const
|
|
3099
|
+
const p = (w = m.target) == null ? void 0 : w.result, E = t(p), L = en.WGS84;
|
|
3042
3100
|
console.log(`Loaded CSV content:
|
|
3043
|
-
`,
|
|
3101
|
+
`, p), Qi(
|
|
3044
3102
|
n.terrainProvider,
|
|
3045
3103
|
E.map((P) => P.cartographic)
|
|
3046
3104
|
).then(
|
|
3047
3105
|
(P) => {
|
|
3048
|
-
console.log(P), P = P.slice(0, P.length - 1), n.scene.globe.depthTestAgainstTerrain = !0, n.entities.suspendEvents(), n.entities.removeAll(), P.forEach((
|
|
3106
|
+
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) => {
|
|
3049
3107
|
n.entities.add({
|
|
3050
|
-
name: (
|
|
3051
|
-
position:
|
|
3108
|
+
name: (H + zt).toString(),
|
|
3109
|
+
position: L.cartographicToCartesian(A),
|
|
3052
3110
|
billboard: {
|
|
3053
|
-
verticalOrigin:
|
|
3111
|
+
verticalOrigin: at.BOTTOM,
|
|
3054
3112
|
scale: 0.7,
|
|
3055
3113
|
image: "assets/img/map-marker.gif"
|
|
3056
3114
|
},
|
|
3057
3115
|
label: {
|
|
3058
|
-
text: (
|
|
3116
|
+
text: (H + zt).toString(),
|
|
3059
3117
|
font: "14pt monospace",
|
|
3060
|
-
fillColor:
|
|
3061
|
-
style:
|
|
3118
|
+
fillColor: lt.BLACK,
|
|
3119
|
+
style: tn.FILL_AND_OUTLINE,
|
|
3062
3120
|
outlineWidth: 4,
|
|
3063
|
-
outlineColor:
|
|
3064
|
-
verticalOrigin:
|
|
3065
|
-
pixelOffset: new Ce(0,
|
|
3121
|
+
outlineColor: lt.BLACK,
|
|
3122
|
+
verticalOrigin: at.BOTTOM,
|
|
3123
|
+
pixelOffset: new Ce(0, Bo)
|
|
3066
3124
|
},
|
|
3067
3125
|
description: `
|
|
3068
|
-
Long: ${E[
|
|
3069
|
-
Lat: ${E[
|
|
3070
|
-
Height(m): <span style="font-weight: 500">${
|
|
3126
|
+
Long: ${E[H].cartesian.x} </br>
|
|
3127
|
+
Lat: ${E[H].cartesian.y} </br>
|
|
3128
|
+
Height(m): <span style="font-weight: 500">${A.height}</span>
|
|
3071
3129
|
`
|
|
3072
3130
|
});
|
|
3073
3131
|
}), n.entities.resumeEvents(), r.target.files !== null && (o(`terranian_heights_${r.target.files[0].name}`, E), r.target.value = ""), console.log("Pinned point count is ", n.entities.values.length);
|
|
@@ -3088,10 +3146,10 @@ const Aa = (e) => {
|
|
|
3088
3146
|
c.forEach((w) => {
|
|
3089
3147
|
m += u(w);
|
|
3090
3148
|
});
|
|
3091
|
-
const
|
|
3092
|
-
E.setAttribute("href",
|
|
3149
|
+
const p = new Blob([m], { type: "text/csv;charset=utf-8;" }), E = document.createElement("a"), L = URL.createObjectURL(p);
|
|
3150
|
+
E.setAttribute("href", L), E.setAttribute("download", r), E.style.visibility = "hidden", document.body.appendChild(E), E.click(), document.body.removeChild(E);
|
|
3093
3151
|
};
|
|
3094
|
-
return /* @__PURE__ */ l(
|
|
3152
|
+
return /* @__PURE__ */ l(oe, { children: /* @__PURE__ */ l(
|
|
3095
3153
|
"input",
|
|
3096
3154
|
{
|
|
3097
3155
|
type: "file",
|
|
@@ -3103,8 +3161,8 @@ const Aa = (e) => {
|
|
|
3103
3161
|
}
|
|
3104
3162
|
) });
|
|
3105
3163
|
};
|
|
3106
|
-
const
|
|
3107
|
-
const [n, t] =
|
|
3164
|
+
const Fo = 38, Ho = 40, Go = 13, Vo = 14, zo = 27, $o = 9, Wo = 10, Uo = 100, jo = (e) => {
|
|
3165
|
+
const [n, t] = D(e.defaultValue ?? ""), [i, o] = D(!1), [r, c] = D({
|
|
3108
3166
|
helperVisible: !1,
|
|
3109
3167
|
left: 0,
|
|
3110
3168
|
right: 0,
|
|
@@ -3118,92 +3176,92 @@ const Ao = 38, ko = 40, Ro = 13, No = 14, Bo = 27, Fo = 9, Ho = 10, Vo = 100, Go
|
|
|
3118
3176
|
caret: 0,
|
|
3119
3177
|
width: "unset"
|
|
3120
3178
|
}), u = Se(null);
|
|
3121
|
-
|
|
3179
|
+
I(() => (window.addEventListener("resize", A), () => {
|
|
3122
3180
|
try {
|
|
3123
|
-
window.removeEventListener("resize",
|
|
3181
|
+
window.removeEventListener("resize", A);
|
|
3124
3182
|
} catch (y) {
|
|
3125
3183
|
console.log('WINDOW "resize" remove listener failed', y);
|
|
3126
3184
|
}
|
|
3127
|
-
}), []),
|
|
3185
|
+
}), []), I(() => {
|
|
3128
3186
|
typeof e.value < "u" && t(e.value), typeof e.defaultValue < "u" && t(e.defaultValue);
|
|
3129
|
-
}, [e.value, e.defaultValue]),
|
|
3187
|
+
}, [e.value, e.defaultValue]), I(() => {
|
|
3130
3188
|
const { options: y } = e, { caret: h } = r;
|
|
3131
|
-
|
|
3189
|
+
U(n, h, y);
|
|
3132
3190
|
}, [e]);
|
|
3133
3191
|
const m = (y, h, C) => {
|
|
3134
|
-
const { trigger: f, matchAny: T, regex: _ } = e,
|
|
3192
|
+
const { trigger: f, matchAny: T, regex: _ } = e, S = new RegExp(_);
|
|
3135
3193
|
let b = f;
|
|
3136
3194
|
Array.isArray(b) || (b = new Array(f)), b.sort();
|
|
3137
3195
|
const M = {};
|
|
3138
|
-
Array.isArray(C) && b.forEach((
|
|
3139
|
-
M[
|
|
3196
|
+
Array.isArray(C) && b.forEach((q) => {
|
|
3197
|
+
M[q] = C;
|
|
3140
3198
|
});
|
|
3141
|
-
const
|
|
3142
|
-
let
|
|
3143
|
-
for (let
|
|
3144
|
-
const { triggerStr:
|
|
3145
|
-
for (let
|
|
3146
|
-
const
|
|
3147
|
-
let
|
|
3199
|
+
const x = p(b, S);
|
|
3200
|
+
let W = {};
|
|
3201
|
+
for (let q = 0; q < x.length; q++) {
|
|
3202
|
+
const { triggerStr: R, triggerMatch: V, triggerLength: Q } = x[q];
|
|
3203
|
+
for (let ne = h - 1; ne >= 0; --ne) {
|
|
3204
|
+
const ue = y.substring(ne, h).match(S);
|
|
3205
|
+
let ae = -1;
|
|
3148
3206
|
if (Q > 0) {
|
|
3149
|
-
const
|
|
3150
|
-
if (
|
|
3207
|
+
const ce = V ? ne : ne - Q + 1;
|
|
3208
|
+
if (ce < 0 || (E(R, y, ce) && (ae = ce + Q), !ue && ae < 0))
|
|
3151
3209
|
break;
|
|
3152
3210
|
} else {
|
|
3153
|
-
if (
|
|
3211
|
+
if (ue && ne > 0)
|
|
3154
3212
|
continue;
|
|
3155
|
-
if (
|
|
3213
|
+
if (ae = ne === 0 && ue ? 0 : ne + 1, h - ae === 0)
|
|
3156
3214
|
break;
|
|
3157
3215
|
}
|
|
3158
|
-
if (
|
|
3159
|
-
const
|
|
3160
|
-
if (!Array.isArray(
|
|
3216
|
+
if (ae >= 0) {
|
|
3217
|
+
const ce = M[R];
|
|
3218
|
+
if (!Array.isArray(ce))
|
|
3161
3219
|
continue;
|
|
3162
|
-
const
|
|
3163
|
-
const
|
|
3164
|
-
return
|
|
3165
|
-
}),
|
|
3166
|
-
|
|
3167
|
-
...
|
|
3168
|
-
trigger:
|
|
3169
|
-
matchStart:
|
|
3170
|
-
matchLength:
|
|
3171
|
-
options:
|
|
3220
|
+
const Re = y.substring(ae, h), K = ce.filter((we) => {
|
|
3221
|
+
const Te = we.toLowerCase().indexOf(Re.toLowerCase());
|
|
3222
|
+
return Te !== -1 && (T || Te === 0);
|
|
3223
|
+
}), B = R, ee = Re.length;
|
|
3224
|
+
W = {
|
|
3225
|
+
...W,
|
|
3226
|
+
trigger: B,
|
|
3227
|
+
matchStart: ae,
|
|
3228
|
+
matchLength: ee,
|
|
3229
|
+
options: K
|
|
3172
3230
|
};
|
|
3173
3231
|
}
|
|
3174
3232
|
}
|
|
3175
3233
|
}
|
|
3176
|
-
return
|
|
3177
|
-
},
|
|
3234
|
+
return W;
|
|
3235
|
+
}, p = (y, h) => y.map((f) => ({
|
|
3178
3236
|
triggerStr: f,
|
|
3179
3237
|
triggerMatch: f.match(h),
|
|
3180
3238
|
triggerLength: f.length
|
|
3181
|
-
})), E = (y, h, C) => !y || !y.length || h.substr(C, y.length) === y,
|
|
3182
|
-
const { onChange: h, options: C, spaceRemovers: f, spacer: T, value: _ } = e,
|
|
3183
|
-
if (b.length ||
|
|
3239
|
+
})), E = (y, h, C) => !y || !y.length || h.substr(C, y.length) === y, L = (y) => {
|
|
3240
|
+
const { onChange: h, options: C, spaceRemovers: f, spacer: T, value: _ } = e, S = n, b = y.target.value, M = or(w(y.target)).end;
|
|
3241
|
+
if (b.length || G({
|
|
3184
3242
|
...r,
|
|
3185
3243
|
helperVisible: !1
|
|
3186
|
-
}), t(b),
|
|
3244
|
+
}), t(b), G({
|
|
3187
3245
|
...r,
|
|
3188
3246
|
caret: M,
|
|
3189
3247
|
value: y.target.value
|
|
3190
3248
|
}), !b.length || !M)
|
|
3191
3249
|
return h(y.target.value);
|
|
3192
3250
|
if (i && f.length && b.length > 2 && T.length) {
|
|
3193
|
-
for (let
|
|
3194
|
-
if (
|
|
3195
|
-
if (
|
|
3196
|
-
const
|
|
3197
|
-
return
|
|
3251
|
+
for (let x = 0; x < Math.max(S.length, b.length); ++x)
|
|
3252
|
+
if (S[x] !== b[x]) {
|
|
3253
|
+
if (x >= 2 && b[x - 1] === T && f.indexOf(b[x - 2]) === -1 && f.indexOf(b[x]) !== -1 && !ct(m(b.substring(0, x - 2), M - 3, C))) {
|
|
3254
|
+
const W = `${b.slice(0, x - 1)}${b.slice(x, x + 1)}${b.slice(x - 1, x)}${b.slice(x + 1)}`;
|
|
3255
|
+
return Y(x + 1), u.current !== null && (u.current.value = W), _ || G({
|
|
3198
3256
|
...r,
|
|
3199
|
-
value:
|
|
3200
|
-
}), h(
|
|
3257
|
+
value: W
|
|
3258
|
+
}), h(W);
|
|
3201
3259
|
}
|
|
3202
3260
|
break;
|
|
3203
3261
|
}
|
|
3204
3262
|
o(!1);
|
|
3205
3263
|
}
|
|
3206
|
-
return
|
|
3264
|
+
return U(b, M, C), h(y.target.value);
|
|
3207
3265
|
}, w = (y) => {
|
|
3208
3266
|
if (y !== void 0)
|
|
3209
3267
|
if (y.children.length > 0) {
|
|
@@ -3219,27 +3277,27 @@ const Ao = 38, ko = 40, Ro = 13, No = 14, Bo = 27, Fo = 9, Ho = 10, Vo = 100, Go
|
|
|
3219
3277
|
const { helperVisible: h, options: C, selection: f } = r, { onKeyDown: T, passThroughEnter: _ } = e;
|
|
3220
3278
|
if (h)
|
|
3221
3279
|
switch (y.keyCode) {
|
|
3222
|
-
case
|
|
3223
|
-
y.preventDefault(),
|
|
3280
|
+
case zo:
|
|
3281
|
+
y.preventDefault(), j();
|
|
3224
3282
|
break;
|
|
3225
|
-
case
|
|
3226
|
-
y.preventDefault(),
|
|
3283
|
+
case Fo:
|
|
3284
|
+
y.preventDefault(), G({
|
|
3227
3285
|
...r,
|
|
3228
3286
|
selection: (C.length + f - 1) % C.length
|
|
3229
3287
|
});
|
|
3230
3288
|
break;
|
|
3231
|
-
case
|
|
3232
|
-
y.preventDefault(),
|
|
3289
|
+
case Ho:
|
|
3290
|
+
y.preventDefault(), G({
|
|
3233
3291
|
...r,
|
|
3234
3292
|
selection: (f + 1) % C.length
|
|
3235
3293
|
});
|
|
3236
3294
|
break;
|
|
3237
|
-
case
|
|
3238
|
-
case
|
|
3239
|
-
_ || y.preventDefault(),
|
|
3295
|
+
case Vo:
|
|
3296
|
+
case Go:
|
|
3297
|
+
_ || y.preventDefault(), H(f);
|
|
3240
3298
|
break;
|
|
3241
|
-
case
|
|
3242
|
-
|
|
3299
|
+
case $o:
|
|
3300
|
+
H(f);
|
|
3243
3301
|
break;
|
|
3244
3302
|
default:
|
|
3245
3303
|
T(y);
|
|
@@ -3247,112 +3305,112 @@ const Ao = 38, ko = 40, Ro = 13, No = 14, Bo = 27, Fo = 9, Ho = 10, Vo = 100, Go
|
|
|
3247
3305
|
}
|
|
3248
3306
|
else
|
|
3249
3307
|
T(y);
|
|
3250
|
-
},
|
|
3251
|
-
|
|
3308
|
+
}, A = () => {
|
|
3309
|
+
G({
|
|
3252
3310
|
...r,
|
|
3253
3311
|
helperVisible: !1
|
|
3254
3312
|
});
|
|
3255
|
-
},
|
|
3256
|
-
const { spacer: h, onSelect: C, changeOnSelect: f } = e, { matchStart: T, matchLength: _, options:
|
|
3257
|
-
|
|
3258
|
-
},
|
|
3259
|
-
|
|
3313
|
+
}, H = (y) => {
|
|
3314
|
+
const { spacer: h, onSelect: C, changeOnSelect: f } = e, { matchStart: T, matchLength: _, options: S, trigger: b } = r, M = S[y], x = n, W = x.substring(0, T - b.length), q = x.substring(T + _), R = { target: u.current }, V = f(b, M);
|
|
3315
|
+
R.target !== null && (R.target.value = `${W}${V}${h}${q}`), L(R), R.target !== null && C(R.target.value), j(), Y(W.length + V.length + 1), o(!0);
|
|
3316
|
+
}, Y = (y) => {
|
|
3317
|
+
G({
|
|
3260
3318
|
...r,
|
|
3261
3319
|
caret: y
|
|
3262
3320
|
});
|
|
3263
3321
|
const h = w(u.current);
|
|
3264
|
-
|
|
3265
|
-
},
|
|
3322
|
+
sr(h, y);
|
|
3323
|
+
}, G = (y) => {
|
|
3266
3324
|
setTimeout(() => {
|
|
3267
3325
|
c({
|
|
3268
3326
|
...y
|
|
3269
3327
|
});
|
|
3270
3328
|
}, 0);
|
|
3271
|
-
},
|
|
3329
|
+
}, U = (y, h, C) => {
|
|
3272
3330
|
const f = u.current;
|
|
3273
3331
|
if (u.current === null)
|
|
3274
3332
|
return;
|
|
3275
3333
|
const T = w(f);
|
|
3276
3334
|
if (T === void 0)
|
|
3277
3335
|
return;
|
|
3278
|
-
const _ = f.getBoundingClientRect(),
|
|
3279
|
-
if (Object.keys(
|
|
3280
|
-
const b =
|
|
3281
|
-
let
|
|
3282
|
-
|
|
3336
|
+
const _ = f.getBoundingClientRect(), S = m(y, h, C);
|
|
3337
|
+
if (Object.keys(S).length > 0 && T !== null) {
|
|
3338
|
+
const b = rr(T, h), M = T.getBoundingClientRect(), { minChars: x, onRequestOptions: W, requestOnlyIfNoOptions: q, mode: R } = e;
|
|
3339
|
+
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 - Wo, T.offsetLeft + M.width - Uo)) : (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({
|
|
3283
3341
|
...r,
|
|
3284
3342
|
value: y,
|
|
3285
3343
|
helperVisible: !0,
|
|
3286
|
-
top:
|
|
3344
|
+
top: V,
|
|
3287
3345
|
left: Q,
|
|
3288
|
-
right:
|
|
3289
|
-
width:
|
|
3290
|
-
...
|
|
3291
|
-
}) : ((!
|
|
3346
|
+
right: ne,
|
|
3347
|
+
width: ye,
|
|
3348
|
+
...S
|
|
3349
|
+
}) : ((!q || !S.options.length) && W(y.substr(S.matchStart, S.matchLength)), j());
|
|
3292
3350
|
} else
|
|
3293
|
-
|
|
3294
|
-
},
|
|
3351
|
+
j();
|
|
3352
|
+
}, j = () => {
|
|
3295
3353
|
setTimeout(() => {
|
|
3296
|
-
|
|
3354
|
+
G({
|
|
3297
3355
|
...r,
|
|
3298
3356
|
helperVisible: !1,
|
|
3299
3357
|
selection: 0
|
|
3300
3358
|
});
|
|
3301
3359
|
}, 100);
|
|
3302
3360
|
}, O = () => {
|
|
3303
|
-
const { helperVisible: y, left: h, right: C, matchStart: f, matchLength: T, options: _, selection:
|
|
3361
|
+
const { helperVisible: y, left: h, right: C, matchStart: f, matchLength: T, options: _, selection: S, top: b, value: M, width: x } = r;
|
|
3304
3362
|
if (!y)
|
|
3305
3363
|
return null;
|
|
3306
|
-
const { maxOptions:
|
|
3364
|
+
const { maxOptions: W, offsetX: q, offsetY: R, direction: V } = e;
|
|
3307
3365
|
if (_.length === 0)
|
|
3308
3366
|
return null;
|
|
3309
|
-
if (
|
|
3310
|
-
return
|
|
3367
|
+
if (S >= _.length)
|
|
3368
|
+
return G({
|
|
3311
3369
|
...r,
|
|
3312
3370
|
selection: 0
|
|
3313
3371
|
}), null;
|
|
3314
|
-
const Q =
|
|
3315
|
-
const
|
|
3372
|
+
const Q = W === 0 ? _.length : W, ne = _.slice(0, Q).map((ue, ae) => {
|
|
3373
|
+
const ce = ue.toLowerCase().indexOf(M.substr(f, T).toLowerCase());
|
|
3316
3374
|
return /* @__PURE__ */ N(
|
|
3317
3375
|
"li",
|
|
3318
3376
|
{
|
|
3319
|
-
className:
|
|
3377
|
+
className: ae === S ? "active" : void 0,
|
|
3320
3378
|
onClick: () => {
|
|
3321
|
-
|
|
3379
|
+
H(ae);
|
|
3322
3380
|
},
|
|
3323
3381
|
onMouseEnter: () => {
|
|
3324
|
-
|
|
3382
|
+
G({
|
|
3325
3383
|
...r,
|
|
3326
|
-
selection:
|
|
3384
|
+
selection: ae
|
|
3327
3385
|
});
|
|
3328
3386
|
},
|
|
3329
3387
|
children: [
|
|
3330
|
-
|
|
3331
|
-
/* @__PURE__ */ l("strong", { children:
|
|
3332
|
-
|
|
3388
|
+
ue.slice(0, ce),
|
|
3389
|
+
/* @__PURE__ */ l("strong", { children: ue.substr(ce, T) }),
|
|
3390
|
+
ue.slice(ce + T)
|
|
3333
3391
|
]
|
|
3334
3392
|
},
|
|
3335
|
-
|
|
3393
|
+
ue
|
|
3336
3394
|
);
|
|
3337
|
-
}),
|
|
3338
|
-
return /* @__PURE__ */ l("ul", { className: "react-autocomplete-input", style: { ...
|
|
3339
|
-
}, { Component:
|
|
3395
|
+
}), ye = V === "ltr" ? { left: h + q } : { right: C + q };
|
|
3396
|
+
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, ...v } = e, d = Object.assign({}, v);
|
|
3340
3398
|
return Object.keys(e).forEach((y) => {
|
|
3341
3399
|
delete d[y];
|
|
3342
|
-
}), /* @__PURE__ */ N(
|
|
3343
|
-
Ee.cloneElement(
|
|
3344
|
-
disabled:
|
|
3400
|
+
}), /* @__PURE__ */ N(oe, { children: [
|
|
3401
|
+
Ee.cloneElement(z, {
|
|
3402
|
+
disabled: te,
|
|
3345
3403
|
onBlur: s,
|
|
3346
|
-
onChange:
|
|
3404
|
+
onChange: L,
|
|
3347
3405
|
onKeyDown: P,
|
|
3348
3406
|
ref: u,
|
|
3349
3407
|
value: n,
|
|
3350
3408
|
...d,
|
|
3351
|
-
...
|
|
3409
|
+
...k
|
|
3352
3410
|
}),
|
|
3353
3411
|
O()
|
|
3354
3412
|
] });
|
|
3355
|
-
},
|
|
3413
|
+
}, Ko = {
|
|
3356
3414
|
Component: /* @__PURE__ */ l("textarea", {}),
|
|
3357
3415
|
ComponentProps: {},
|
|
3358
3416
|
defaultValue: void 0,
|
|
@@ -3383,9 +3441,9 @@ const Ao = 38, ko = 40, Ro = 13, No = 14, Bo = 27, Fo = 9, Ho = 10, Vo = 100, Go
|
|
|
3383
3441
|
passThroughEnter: !1,
|
|
3384
3442
|
mode: "assist",
|
|
3385
3443
|
direction: "ltr"
|
|
3386
|
-
},
|
|
3444
|
+
}, Ua = (e) => {
|
|
3387
3445
|
let n = {
|
|
3388
|
-
...
|
|
3446
|
+
...Ko,
|
|
3389
3447
|
...e
|
|
3390
3448
|
};
|
|
3391
3449
|
return e.mode === "autocomplete" && (n = {
|
|
@@ -3393,10 +3451,10 @@ const Ao = 38, ko = 40, Ro = 13, No = 14, Bo = 27, Fo = 9, Ho = 10, Vo = 100, Go
|
|
|
3393
3451
|
trigger: "",
|
|
3394
3452
|
regex: ".",
|
|
3395
3453
|
spacer: ""
|
|
3396
|
-
}), /* @__PURE__ */ l(
|
|
3397
|
-
},
|
|
3454
|
+
}), /* @__PURE__ */ l(jo, { ...n });
|
|
3455
|
+
}, yt = {
|
|
3398
3456
|
formatFileModDate: (e, n) => {
|
|
3399
|
-
const t =
|
|
3457
|
+
const t = sn.getModDate(n);
|
|
3400
3458
|
return t ? e.formatDate(t, {
|
|
3401
3459
|
dateStyle: "short",
|
|
3402
3460
|
timeStyle: "short"
|
|
@@ -3405,18 +3463,18 @@ const Ao = 38, ko = 40, Ro = 13, No = 14, Bo = 27, Fo = 9, Ho = 10, Vo = 100, Go
|
|
|
3405
3463
|
formatFileSize: (e, n) => {
|
|
3406
3464
|
if (!n || typeof n.size != "number")
|
|
3407
3465
|
return null;
|
|
3408
|
-
const t = n.size, i =
|
|
3466
|
+
const t = n.size, i = dr(t, {
|
|
3409
3467
|
bits: !1,
|
|
3410
3468
|
output: "object"
|
|
3411
3469
|
});
|
|
3412
3470
|
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()}`;
|
|
3413
3471
|
}
|
|
3414
|
-
},
|
|
3415
|
-
locale:
|
|
3416
|
-
formatters: { ...
|
|
3417
|
-
},
|
|
3418
|
-
locale:
|
|
3419
|
-
formatters: { ...
|
|
3472
|
+
}, qo = {
|
|
3473
|
+
locale: he.EN,
|
|
3474
|
+
formatters: { ...yt }
|
|
3475
|
+
}, Yo = {
|
|
3476
|
+
locale: he.RU,
|
|
3477
|
+
formatters: { ...yt },
|
|
3420
3478
|
messages: {
|
|
3421
3479
|
"chonky.toolbar.searchPlaceholder": "Поиск",
|
|
3422
3480
|
"chonky.toolbar.visibleFileCount": `{fileCount, plural,
|
|
@@ -3439,24 +3497,24 @@ const Ao = 38, ko = 40, Ro = 13, No = 14, Bo = 27, Fo = 9, Ho = 10, Vo = 100, Go
|
|
|
3439
3497
|
// Actions
|
|
3440
3498
|
["chonky.actionGroups.Actions"]: "Действия",
|
|
3441
3499
|
["chonky.actionGroups.Options"]: "Опции",
|
|
3442
|
-
[`chonky.actions.${
|
|
3443
|
-
[`chonky.actions.${
|
|
3444
|
-
[`chonky.actions.${
|
|
3445
|
-
[`chonky.actions.${
|
|
3446
|
-
[`chonky.actions.${
|
|
3447
|
-
[`chonky.actions.${
|
|
3448
|
-
[`chonky.actions.${
|
|
3449
|
-
[`chonky.actions.${
|
|
3450
|
-
[`chonky.actions.${
|
|
3451
|
-
[`chonky.actions.${
|
|
3452
|
-
[`chonky.actions.${
|
|
3453
|
-
[`chonky.actions.${
|
|
3454
|
-
[`chonky.actions.${
|
|
3455
|
-
[`chonky.actions.${
|
|
3500
|
+
[`chonky.actions.${F.OpenParentFolder.id}.button.name`]: "Открыть родительскую папку",
|
|
3501
|
+
[`chonky.actions.${F.CreateFolder.id}.button.name`]: "Новая папка",
|
|
3502
|
+
[`chonky.actions.${F.CreateFolder.id}.button.tooltip`]: "Создать новую папку",
|
|
3503
|
+
[`chonky.actions.${F.DeleteFiles.id}.button.name`]: "Удалить файлы",
|
|
3504
|
+
[`chonky.actions.${F.OpenSelection.id}.button.name`]: "Открыть выделение",
|
|
3505
|
+
[`chonky.actions.${F.SelectAllFiles.id}.button.name`]: "Выделить все",
|
|
3506
|
+
[`chonky.actions.${F.ClearSelection.id}.button.name`]: "Сбросить выделение",
|
|
3507
|
+
[`chonky.actions.${F.EnableListView.id}.button.name`]: "Показать список",
|
|
3508
|
+
[`chonky.actions.${F.EnableGridView.id}.button.name`]: "Показать иконки",
|
|
3509
|
+
[`chonky.actions.${F.SortFilesByName.id}.button.name`]: "Сорт. по имени",
|
|
3510
|
+
[`chonky.actions.${F.SortFilesBySize.id}.button.name`]: "Сорт. по размеру",
|
|
3511
|
+
[`chonky.actions.${F.SortFilesByDate.id}.button.name`]: "Сорт. по дате",
|
|
3512
|
+
[`chonky.actions.${F.ToggleHiddenFiles.id}.button.name`]: "Скрытые файлы",
|
|
3513
|
+
[`chonky.actions.${F.ToggleShowFoldersFirst.id}.button.name`]: "Папки в начале"
|
|
3456
3514
|
}
|
|
3457
|
-
},
|
|
3458
|
-
locale:
|
|
3459
|
-
formatters: { ...
|
|
3515
|
+
}, Xo = {
|
|
3516
|
+
locale: he.HE,
|
|
3517
|
+
formatters: { ...yt },
|
|
3460
3518
|
messages: {
|
|
3461
3519
|
"chonky.toolbar.searchPlaceholder": "חיפוש",
|
|
3462
3520
|
"chonky.toolbar.visibleFileCount": `{fileCount, plural,
|
|
@@ -3478,52 +3536,52 @@ const Ao = 38, ko = 40, Ro = 13, No = 14, Bo = 27, Fo = 9, Ho = 10, Vo = 100, Go
|
|
|
3478
3536
|
// Actions
|
|
3479
3537
|
["chonky.actionGroups.Actions"]: "פעולות",
|
|
3480
3538
|
["chonky.actionGroups.Options"]: "אפשרויות",
|
|
3481
|
-
[`chonky.actions.${
|
|
3482
|
-
[`chonky.actions.${
|
|
3483
|
-
[`chonky.actions.${
|
|
3484
|
-
[`chonky.actions.${
|
|
3485
|
-
[`chonky.actions.${
|
|
3486
|
-
[`chonky.actions.${
|
|
3487
|
-
[`chonky.actions.${
|
|
3488
|
-
[`chonky.actions.${
|
|
3489
|
-
[`chonky.actions.${
|
|
3490
|
-
[`chonky.actions.${
|
|
3491
|
-
[`chonky.actions.${
|
|
3492
|
-
[`chonky.actions.${
|
|
3493
|
-
[`chonky.actions.${
|
|
3494
|
-
[`chonky.actions.${
|
|
3539
|
+
[`chonky.actions.${F.OpenParentFolder.id}.button.name`]: "פתח סיפריית אב",
|
|
3540
|
+
[`chonky.actions.${F.CreateFolder.id}.button.name`]: "סיפרייה חדשה",
|
|
3541
|
+
[`chonky.actions.${F.CreateFolder.id}.button.tooltip`]: "צור סיפרייה חדשה",
|
|
3542
|
+
[`chonky.actions.${F.DeleteFiles.id}.button.name`]: "מחק",
|
|
3543
|
+
[`chonky.actions.${F.OpenSelection.id}.button.name`]: "פתח את הבחירה",
|
|
3544
|
+
[`chonky.actions.${F.SelectAllFiles.id}.button.name`]: "בחר הכל",
|
|
3545
|
+
[`chonky.actions.${F.ClearSelection.id}.button.name`]: "אפס את הבחירה",
|
|
3546
|
+
[`chonky.actions.${F.EnableListView.id}.button.name`]: "תצוגת רשימה",
|
|
3547
|
+
[`chonky.actions.${F.EnableGridView.id}.button.name`]: "תצוגת גריד",
|
|
3548
|
+
[`chonky.actions.${F.SortFilesByName.id}.button.name`]: "מיון לפי שם",
|
|
3549
|
+
[`chonky.actions.${F.SortFilesBySize.id}.button.name`]: "מיון לפי גודל",
|
|
3550
|
+
[`chonky.actions.${F.SortFilesByDate.id}.button.name`]: "מיון לפי תאריך",
|
|
3551
|
+
[`chonky.actions.${F.ToggleHiddenFiles.id}.button.name`]: "קבצים נסתרים",
|
|
3552
|
+
[`chonky.actions.${F.ToggleShowFoldersFirst.id}.button.name`]: "הצגת תיקיות בראש הרשימה"
|
|
3495
3553
|
}
|
|
3496
|
-
},
|
|
3497
|
-
[
|
|
3498
|
-
[
|
|
3499
|
-
[
|
|
3554
|
+
}, Zo = {
|
|
3555
|
+
[he.EN]: qo,
|
|
3556
|
+
[he.RU]: Yo,
|
|
3557
|
+
[he.HE]: Xo
|
|
3500
3558
|
};
|
|
3501
|
-
class
|
|
3559
|
+
class ja extends sn {
|
|
3502
3560
|
}
|
|
3503
|
-
const
|
|
3504
|
-
listView:
|
|
3505
|
-
gridView:
|
|
3561
|
+
const Ka = F, Jo = {
|
|
3562
|
+
listView: F.EnableListView.id,
|
|
3563
|
+
gridView: F.EnableGridView.id
|
|
3506
3564
|
};
|
|
3507
|
-
|
|
3508
|
-
const
|
|
3565
|
+
ar({ iconComponent: cr });
|
|
3566
|
+
const qa = Ee.memo(
|
|
3509
3567
|
Ee.forwardRef(
|
|
3510
3568
|
({
|
|
3511
3569
|
theme: e,
|
|
3512
3570
|
styles: n = { height: "100%", minWidth: "600px" },
|
|
3513
|
-
defaultView: t =
|
|
3571
|
+
defaultView: t = Jo.listView,
|
|
3514
3572
|
readOnlyMode: i = !1,
|
|
3515
3573
|
locale: o,
|
|
3516
3574
|
files: r,
|
|
3517
3575
|
folderChain: c,
|
|
3518
3576
|
onFileAction: u,
|
|
3519
3577
|
...m
|
|
3520
|
-
},
|
|
3521
|
-
const E =
|
|
3522
|
-
(
|
|
3578
|
+
}, p) => {
|
|
3579
|
+
const E = pe(
|
|
3580
|
+
($) => null,
|
|
3523
3581
|
// file.thumbnailUrl ? `https://chonky.io${file.thumbnailUrl}` : null,
|
|
3524
3582
|
[]
|
|
3525
3583
|
);
|
|
3526
|
-
|
|
3584
|
+
Fe({
|
|
3527
3585
|
"@global": {
|
|
3528
3586
|
".chonky-dropdownList": {
|
|
3529
3587
|
backgroundColor: `${e == null ? void 0 : e.surface} !important`
|
|
@@ -3533,34 +3591,34 @@ const Ha = Ee.memo(
|
|
|
3533
3591
|
}
|
|
3534
3592
|
}
|
|
3535
3593
|
})();
|
|
3536
|
-
const
|
|
3594
|
+
const L = ($) => $.replace(/([A-Z])/g, (te) => "-" + te.toLowerCase()), w = Be(() => e !== void 0 ? Object.keys(e).reduce((te, s) => {
|
|
3537
3595
|
const a = e[s];
|
|
3538
|
-
return s = s.startsWith("--") ? s : `--fp-theme-${
|
|
3539
|
-
}, {}) : {}, [e]), [P,
|
|
3540
|
-
return
|
|
3541
|
-
e &&
|
|
3596
|
+
return s = s.startsWith("--") ? s : `--fp-theme-${L(s)}`, te[s] = a, te;
|
|
3597
|
+
}, {}) : {}, [e]), [P, A] = D(!1), [H, Y] = D(), [G, U] = D(!1), [j, O] = D(), [z, k] = D();
|
|
3598
|
+
return I(() => {
|
|
3599
|
+
e && A(!0), Y(t), i ? U(!0) : O([F.CreateFolder, F.DeleteFiles]), o !== void 0 && k(Zo[o]);
|
|
3542
3600
|
}, [e, t, i, o]), /* @__PURE__ */ l(
|
|
3543
|
-
|
|
3601
|
+
de,
|
|
3544
3602
|
{
|
|
3545
3603
|
style: {
|
|
3546
3604
|
...n,
|
|
3547
3605
|
...w
|
|
3548
3606
|
},
|
|
3549
3607
|
children: /* @__PURE__ */ l(
|
|
3550
|
-
|
|
3608
|
+
lr,
|
|
3551
3609
|
{
|
|
3552
|
-
ref:
|
|
3610
|
+
ref: p,
|
|
3553
3611
|
files: r ?? [],
|
|
3554
3612
|
folderChain: c,
|
|
3555
|
-
onFileAction: (
|
|
3556
|
-
typeof u == "function" && u(
|
|
3613
|
+
onFileAction: ($) => {
|
|
3614
|
+
typeof u == "function" && u($);
|
|
3557
3615
|
},
|
|
3558
3616
|
thumbnailGenerator: E,
|
|
3559
|
-
defaultFileViewActionId:
|
|
3560
|
-
disableDragAndDrop:
|
|
3561
|
-
fileActions:
|
|
3617
|
+
defaultFileViewActionId: H,
|
|
3618
|
+
disableDragAndDrop: G,
|
|
3619
|
+
fileActions: j,
|
|
3562
3620
|
darkMode: P,
|
|
3563
|
-
i18n:
|
|
3621
|
+
i18n: z,
|
|
3564
3622
|
...m
|
|
3565
3623
|
}
|
|
3566
3624
|
)
|
|
@@ -3570,98 +3628,99 @@ const Ha = Ee.memo(
|
|
|
3570
3628
|
)
|
|
3571
3629
|
);
|
|
3572
3630
|
export {
|
|
3573
|
-
|
|
3574
|
-
|
|
3575
|
-
|
|
3576
|
-
|
|
3577
|
-
|
|
3578
|
-
|
|
3579
|
-
|
|
3580
|
-
|
|
3581
|
-
|
|
3582
|
-
|
|
3583
|
-
|
|
3584
|
-
|
|
3585
|
-
|
|
3586
|
-
|
|
3587
|
-
|
|
3588
|
-
|
|
3589
|
-
|
|
3590
|
-
|
|
3591
|
-
|
|
3592
|
-
|
|
3593
|
-
|
|
3594
|
-
|
|
3595
|
-
|
|
3596
|
-
|
|
3597
|
-
|
|
3598
|
-
|
|
3599
|
-
|
|
3600
|
-
|
|
3601
|
-
|
|
3602
|
-
|
|
3603
|
-
|
|
3604
|
-
|
|
3605
|
-
|
|
3606
|
-
|
|
3607
|
-
|
|
3608
|
-
|
|
3609
|
-
|
|
3610
|
-
|
|
3611
|
-
|
|
3612
|
-
|
|
3613
|
-
|
|
3614
|
-
|
|
3615
|
-
|
|
3616
|
-
|
|
3617
|
-
|
|
3618
|
-
|
|
3619
|
-
|
|
3620
|
-
|
|
3621
|
-
|
|
3622
|
-
|
|
3623
|
-
|
|
3624
|
-
|
|
3625
|
-
|
|
3626
|
-
|
|
3627
|
-
|
|
3628
|
-
|
|
3629
|
-
|
|
3630
|
-
|
|
3631
|
-
|
|
3632
|
-
|
|
3633
|
-
|
|
3634
|
-
|
|
3635
|
-
|
|
3636
|
-
|
|
3637
|
-
|
|
3638
|
-
|
|
3639
|
-
|
|
3640
|
-
|
|
3641
|
-
|
|
3642
|
-
|
|
3643
|
-
|
|
3644
|
-
Dr as
|
|
3645
|
-
|
|
3646
|
-
|
|
3647
|
-
|
|
3648
|
-
|
|
3649
|
-
|
|
3650
|
-
|
|
3651
|
-
|
|
3652
|
-
|
|
3653
|
-
|
|
3654
|
-
|
|
3655
|
-
|
|
3656
|
-
|
|
3657
|
-
|
|
3658
|
-
|
|
3659
|
-
|
|
3660
|
-
|
|
3661
|
-
|
|
3662
|
-
|
|
3663
|
-
|
|
3664
|
-
Ir as
|
|
3665
|
-
|
|
3666
|
-
|
|
3631
|
+
Ua as Autocomplete,
|
|
3632
|
+
dt as BboxCorner,
|
|
3633
|
+
de as Box,
|
|
3634
|
+
ht as COORDINATES_MERCATOR_FRACTION_DIGITS,
|
|
3635
|
+
ut as COORDINATES_WGS_FRACTION_DIGITS,
|
|
3636
|
+
ka as Cesium3DTileset,
|
|
3637
|
+
ba as CesiumBoundingSphere,
|
|
3638
|
+
wa as CesiumCartesian2,
|
|
3639
|
+
Ta as CesiumCartesian3,
|
|
3640
|
+
eo as CesiumCartographic,
|
|
3641
|
+
xa as CesiumCesiumTerrainProvider,
|
|
3642
|
+
Va as CesiumColor,
|
|
3643
|
+
Ca as CesiumConstantPositionProperty,
|
|
3644
|
+
Ea as CesiumConstantProperty,
|
|
3645
|
+
Io as CesiumCustomDataSource,
|
|
3646
|
+
za as CesiumDrawingsDataSource,
|
|
3647
|
+
La as CesiumEllipsoid,
|
|
3648
|
+
Pa as CesiumEllipsoidTerrainProvider,
|
|
3649
|
+
_o as CesiumEntity,
|
|
3650
|
+
Ga as CesiumEntityDescription,
|
|
3651
|
+
Mo as CesiumEntityStaticDescription,
|
|
3652
|
+
Sa as CesiumGeographicTilingScheme,
|
|
3653
|
+
Ra as CesiumGeojsonLayer,
|
|
3654
|
+
Xe as CesiumImageryLayer,
|
|
3655
|
+
Da as CesiumLabelStyle,
|
|
3656
|
+
Aa as CesiumMap,
|
|
3657
|
+
Qa as CesiumMath,
|
|
3658
|
+
Ha as CesiumOSMLayer,
|
|
3659
|
+
Po as CesiumPolygonGraphics,
|
|
3660
|
+
va as CesiumPolylineDashMaterialProperty,
|
|
3661
|
+
_a as CesiumRectangle,
|
|
3662
|
+
xo as CesiumRectangleGraphics,
|
|
3663
|
+
Ma as CesiumResource,
|
|
3664
|
+
re as CesiumSceneMode,
|
|
3665
|
+
Ia as CesiumVerticalOrigin,
|
|
3666
|
+
Oa as CesiumViewer,
|
|
3667
|
+
Na as CesiumWMSLayer,
|
|
3668
|
+
Ba as CesiumWMTSLayer,
|
|
3669
|
+
Fa as CesiumXYZLayer,
|
|
3670
|
+
to as CoordinatesTrackerTool,
|
|
3671
|
+
fa as CssBaseline,
|
|
3672
|
+
ta as DateRangePicker,
|
|
3673
|
+
na as DateTimePicker,
|
|
3674
|
+
gr as DateTimeRangePicker,
|
|
3675
|
+
Qs as DateTimeRangePickerFormControl,
|
|
3676
|
+
be as DrawHelper,
|
|
3677
|
+
Br as DrawInteraction,
|
|
3678
|
+
le as DrawType,
|
|
3679
|
+
ja as FileHelper,
|
|
3680
|
+
qa as FilePicker,
|
|
3681
|
+
Ka as FilePickerActions,
|
|
3682
|
+
Jo as FilePickerViewObj,
|
|
3683
|
+
Rr as GeoJSONFeature,
|
|
3684
|
+
$a as InspectorTool,
|
|
3685
|
+
pa as Legend,
|
|
3686
|
+
ma as MVTSource,
|
|
3687
|
+
_r as Map,
|
|
3688
|
+
ia as MapFilterContainer,
|
|
3689
|
+
fr as Popover,
|
|
3690
|
+
ge as Proj,
|
|
3691
|
+
io as ScaleTrackerTool,
|
|
3692
|
+
ya as ScopedCssBaseline,
|
|
3693
|
+
ga as SmartTable,
|
|
3694
|
+
he as SupportedLocales,
|
|
3695
|
+
Wa as TerrainianHeightTool,
|
|
3696
|
+
Pr as TileLayer,
|
|
3697
|
+
Nr as TileOsm,
|
|
3698
|
+
la as TileWMS,
|
|
3699
|
+
sa as TileWMTS,
|
|
3700
|
+
da as TileXYZ,
|
|
3701
|
+
ea as TimeRangeInput,
|
|
3702
|
+
Dr as VectorLayer,
|
|
3703
|
+
kr as VectorSource,
|
|
3704
|
+
ra as VectorTileLayer,
|
|
3705
|
+
oo as ZoomLevelTrackerTool,
|
|
3706
|
+
el as cesiumSampleTerrainMostDetailed,
|
|
3707
|
+
yt as defaultFormatters,
|
|
3708
|
+
ha as getMVTOptions,
|
|
3709
|
+
aa as getWMSOptions,
|
|
3710
|
+
oa as getWMTSOptions,
|
|
3711
|
+
ca as getXYZOptions,
|
|
3712
|
+
Qe as isDateRange,
|
|
3713
|
+
ur as mapMcToMuiTheme,
|
|
3714
|
+
ko as polygonToGeoJSON,
|
|
3715
|
+
Ro as rectangleToGeoJSON,
|
|
3716
|
+
No as rectangleToPositions,
|
|
3717
|
+
se as useCesiumMap,
|
|
3718
|
+
ke as useMap,
|
|
3719
|
+
an as useMappedMuiTheme,
|
|
3720
|
+
Za as useMediaQuery,
|
|
3721
|
+
qe as useTileLayer,
|
|
3722
|
+
Ir as useVectorLayer,
|
|
3723
|
+
Ar as useVectorSource,
|
|
3724
|
+
zr as useVectorTileLayer,
|
|
3725
|
+
ua as useVectorTileSource
|
|
3667
3726
|
};
|