@map-colonies/react-components 4.0.3 → 4.1.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 +1312 -1761
- package/dist/@map-colonies/react-components.umd.js +3 -3
- package/dist/assets/img/dragIcon.png +0 -0
- package/dist/assets/img/dragIconLight.png +0 -0
- package/dist/assets/img/glyphicons_067_cleaning.png +0 -0
- package/dist/assets/img/glyphicons_094_vector_path_square.png +0 -0
- package/dist/assets/img/glyphicons_095_vector_path_circle.png +0 -0
- package/dist/assets/img/glyphicons_096_vector_path_polygon.png +0 -0
- package/dist/assets/img/glyphicons_097_vector_path_line.png +0 -0
- package/dist/assets/img/glyphicons_242_google_maps.png +0 -0
- package/dist/assets/img/map-marker.gif +0 -0
- package/dist/assets/img/transparent-tile.png +0 -0
- package/dist/cesium-map/layers-manager.d.ts +4 -1
- package/dist/cesium-map/map.d.ts +3 -1
- package/dist/cesium-map/proxied.types.d.ts +1 -1
- package/dist/cssbaseline/index.d.ts +1 -1
- package/dist/file-picker/file-picker.d.ts +2 -2
- package/dist/smart-table/icons/KeyboardArrowDown.js +6 -3
- package/dist/smart-table/icons/KeyboardArrowUp.js +6 -3
- package/dist/smart-table/icons/utils/createSvgIcon.js +1 -1
- package/package.json +8 -8
- package/dist/fonts/material-icons/MaterialIcons-Regular.eot +0 -0
- package/dist/fonts/material-icons/MaterialIcons-Regular.ijmap +0 -1
- package/dist/fonts/material-icons/MaterialIcons-Regular.svg +0 -2373
- package/dist/fonts/material-icons/MaterialIcons-Regular.ttf +0 -0
- package/dist/fonts/material-icons/MaterialIcons-Regular.woff +0 -0
- package/dist/fonts/material-icons/MaterialIcons-Regular.woff2 +0 -0
- package/dist/fonts/material-icons/README.md +0 -9
- package/dist/fonts/material-icons/codepoints +0 -932
- package/dist/fonts/material-icons/material-icons.css +0 -36
|
@@ -1,50 +1,50 @@
|
|
|
1
1
|
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.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}.distance-legend-label{text-align:center}.distance-legend-scale-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}.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}.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(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
import { jsx as l, jsxs as
|
|
6
|
-
import * as
|
|
7
|
-
import
|
|
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 { Map as
|
|
2
|
+
var Xt = Object.defineProperty;
|
|
3
|
+
var Zt = (e, n, t) => n in e ? Xt(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t;
|
|
4
|
+
var X = (e, n, t) => (Zt(e, typeof n != "symbol" ? n + "" : n, t), t);
|
|
5
|
+
import { jsx as l, jsxs as R, Fragment as re } from "react/jsx-runtime";
|
|
6
|
+
import * as bt from "react";
|
|
7
|
+
import Ee, { useState as k, useEffect as I, useMemo as Tt, createContext as Le, useRef as ve, useContext as Pe, useCallback as me, useLayoutEffect as Jt } from "react";
|
|
8
|
+
import { isValid as Ce, isBefore as Qt, format as ot } from "date-fns";
|
|
9
|
+
import { he as _t, enUS as St } from "date-fns/locale";
|
|
10
|
+
import { MuiPickersUtilsProvider as Lt, KeyboardDateTimePicker as We, KeyboardDatePicker as en } from "@material-ui/pickers";
|
|
11
|
+
import Pt from "@date-io/date-fns";
|
|
12
|
+
import { createTheme as tn, makeStyles as Me, createStyles as Be } from "@material-ui/core/styles";
|
|
13
|
+
import { Box as nn, ThemeProvider as Mt, Popover as rn, Paper as je, TableRow as Ie, TableCell as be, TableSortLabel as on, IconButton as sn, Collapse as an, TableContainer as ln, Table as cn, TableBody as dn, Typography as un, TablePagination as hn } from "@material-ui/core";
|
|
14
|
+
import { useTheme as At, ThemeProvider as pn, Button as Oe, TextField as mn, Tooltip as Ke, Menu as gn, MenuItem as He, Icon as Te, Dialog as fn, DialogTitle as yn, DialogContent as vn, Drawer as En, DrawerHeader as Cn, DrawerTitle as wn, DrawerContent as bn } from "@map-colonies/react-core";
|
|
15
|
+
import { default as _s } from "@material-ui/core/useMediaQuery";
|
|
16
|
+
import Tn from "@turf/rewind";
|
|
17
|
+
import { Map as _n, View as Sn } from "ol";
|
|
18
18
|
import "ol/ol.css";
|
|
19
|
-
import { format as
|
|
20
|
-
import { defaults as
|
|
21
|
-
import
|
|
22
|
-
import { transform as
|
|
23
|
-
import { Tile as
|
|
24
|
-
import { Vector as
|
|
25
|
-
import { GeoJSON as
|
|
26
|
-
import { Draw as
|
|
27
|
-
import { createBox as
|
|
28
|
-
import
|
|
29
|
-
import { createSvgIcon as
|
|
30
|
-
import
|
|
31
|
-
import
|
|
32
|
-
import { createPortal as
|
|
33
|
-
import { Viewer as
|
|
19
|
+
import { format as st } from "ol/coordinate";
|
|
20
|
+
import { defaults as Ln, FullScreen as at } from "ol/control";
|
|
21
|
+
import Ve from "ol/control/MousePosition";
|
|
22
|
+
import { transform as Pn } from "ol/proj";
|
|
23
|
+
import { Tile as Mn, Vector as An } from "ol/layer";
|
|
24
|
+
import { Vector as xn, OSM as kn } from "ol/source";
|
|
25
|
+
import { GeoJSON as xt } from "ol/format";
|
|
26
|
+
import { Draw as In } from "ol/interaction";
|
|
27
|
+
import { createBox as On } from "ol/interaction/Draw";
|
|
28
|
+
import Dn from "@material-ui/core/TableHead";
|
|
29
|
+
import { createSvgIcon as kt } from "@material-ui/core/utils";
|
|
30
|
+
import Rn from "@material-ui/core/CssBaseline";
|
|
31
|
+
import Bn from "@material-ui/core/ScopedCssBaseline";
|
|
32
|
+
import { createPortal as Nn } from "react-dom";
|
|
33
|
+
import { Viewer as Fn, Cesium3DTileset as Gn, GeoJsonDataSource as Hn, ImageryLayer as Vn, Entity as zn, EntityDescription as It, PolygonGraphics as $n, RectangleGraphics as Un, CustomDataSource as Wn, PolylineGraphics as jn } from "resium";
|
|
34
34
|
import * as p from "cesium";
|
|
35
|
-
import { ScreenSpaceEventType as
|
|
36
|
-
import { Math as
|
|
37
|
-
import { get as Q, isNumber as
|
|
38
|
-
import
|
|
39
|
-
import * as
|
|
40
|
-
import
|
|
41
|
-
import
|
|
42
|
-
import
|
|
43
|
-
import
|
|
44
|
-
import { ChonkyActions as N, FileHelper as
|
|
45
|
-
import { ChonkyIconFA as
|
|
46
|
-
import
|
|
47
|
-
var
|
|
35
|
+
import { ScreenSpaceEventType as Kn, Cartesian3 as ge, Math as le, WebMercatorProjection as qn, EventHelper as Yn, EllipsoidGeodesic as Xn, Cartesian2 as _e, SceneMode as ye, Cartographic as Ne, UrlTemplateImageryProvider as Je, WebMapServiceImageryProvider as Qe, WebMapTileServiceImageryProvider as et, Event as Zn, SingleTileImageryProvider as Jn, Rectangle as we, Viewer as Qn, Matrix4 as ei, OpenStreetMapImageryProvider as ti, Color as ni, PolygonHierarchy as ii, PolylineDashMaterialProperty as ri, ConstantProperty as oi, ConstantPositionProperty as si, BoundingSphere as ai, Ellipsoid as li, GeographicTilingScheme as ci, Resource as di, EllipsoidTerrainProvider as ui, CesiumTerrainProvider as hi, VerticalOrigin as pi, LabelStyle as mi } from "cesium";
|
|
36
|
+
import { Math as Ls, sampleTerrainMostDetailed as Ps } from "cesium";
|
|
37
|
+
import { get as Q, isNumber as De, isEmpty as qe, isArray as gi, find as lt } from "lodash";
|
|
38
|
+
import fi from "@turf/boolean-point-in-polygon";
|
|
39
|
+
import * as Ot from "@turf/helpers";
|
|
40
|
+
import Dt from "@turf/bbox";
|
|
41
|
+
import Rt from "@turf/bbox-polygon";
|
|
42
|
+
import yi from "textarea-caret";
|
|
43
|
+
import vi, { setCaretPosition as Ei } from "get-input-selection";
|
|
44
|
+
import { ChonkyActions as N, FileHelper as Bt, setChonkyDefaults as Ci, FullFileBrowser as wi } from "chonky";
|
|
45
|
+
import { ChonkyIconFA as bi } from "chonky-icon-fontawesome";
|
|
46
|
+
import Ti from "filesize";
|
|
47
|
+
var ie = /* @__PURE__ */ ((e) => (e.BOX = "BOX", e.POLYGON = "POLYGON", e.UNKNOWN = "UNKNOWN", e))(ie || {}), ce = /* @__PURE__ */ ((e) => (e.HE = "he", e.EN = "en", e.RU = "ru", e))(ce || {}), Ye = /* @__PURE__ */ ((e) => (e.TOP_RIGHT = "TOP_RIGHT", e.BOTTOM_LEFT = "BOTTOM_LEFT", e))(Ye || {});
|
|
48
48
|
const Z = {
|
|
49
49
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
50
50
|
DATE_PICKER: {
|
|
@@ -74,14 +74,11 @@ const Z = {
|
|
|
74
74
|
}
|
|
75
75
|
}, ae = (e) => {
|
|
76
76
|
const { children: n, ...t } = e;
|
|
77
|
-
return /* @__PURE__ */ l(
|
|
78
|
-
},
|
|
77
|
+
return /* @__PURE__ */ l(nn, { ...t, children: n });
|
|
78
|
+
}, Nt = (e) => {
|
|
79
79
|
const n = e.type === "dark";
|
|
80
|
-
return
|
|
81
|
-
|
|
82
|
-
e
|
|
83
|
-
]);
|
|
84
|
-
}, Ei = (e, n = !1) => Zt({
|
|
80
|
+
return Ee.useMemo(() => _i(e, n), [n, e]);
|
|
81
|
+
}, _i = (e, n = !1) => tn({
|
|
85
82
|
palette: {
|
|
86
83
|
type: n ? "dark" : "light",
|
|
87
84
|
primary: {
|
|
@@ -103,131 +100,114 @@ const Z = {
|
|
|
103
100
|
}
|
|
104
101
|
}
|
|
105
102
|
});
|
|
106
|
-
const
|
|
107
|
-
(e) =>
|
|
103
|
+
const Si = 2, Li = 0.5, Pi = Me(
|
|
104
|
+
(e) => Be({
|
|
108
105
|
container: {
|
|
109
|
-
padding: e.spacing(
|
|
106
|
+
padding: e.spacing(Si),
|
|
110
107
|
alignItems: "center"
|
|
111
108
|
},
|
|
112
109
|
setButton: {
|
|
113
110
|
marginTop: e.spacing(1)
|
|
114
111
|
},
|
|
115
112
|
margin: {
|
|
116
|
-
marginLeft: e.spacing(
|
|
113
|
+
marginLeft: e.spacing(Li)
|
|
117
114
|
}
|
|
118
115
|
})
|
|
119
|
-
),
|
|
120
|
-
var
|
|
121
|
-
const n =
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
}, [e.
|
|
127
|
-
u(e.to ?? null);
|
|
128
|
-
}, [e.to]), k(() => {
|
|
116
|
+
), Mi = (e) => {
|
|
117
|
+
var z, V, W, D;
|
|
118
|
+
const n = Pi(), t = At(), i = Nt(t), [a, r] = k(null), [d, h] = k(null), [v, C] = k(Z.DATE_RANGE_PICKER.dateFormat), S = e.controlsLayout ?? Z.DATE_RANGE_PICKER.controlsLayout, x = e.disableFuture ?? Z.DATE_RANGE_PICKER.disableFuture, L = ((z = e.local) == null ? void 0 : z.startPlaceHolderText) ?? Z.DATE_RANGE_PICKER.local.startPlaceHolderText, B = ((V = e.local) == null ? void 0 : V.endPlaceHolderText) ?? Z.DATE_RANGE_PICKER.local.endPlaceHolderText, U = ((W = e.local) == null ? void 0 : W.setText) ?? Z.DATE_RANGE_PICKER.local.setText, J = (((D = e.local) == null ? void 0 : D.calendarLocale) ?? Z.DATE_RANGE_PICKER.local.calendarLocale) === ce.HE ? _t : St;
|
|
119
|
+
I(() => {
|
|
120
|
+
r(e.from ?? null);
|
|
121
|
+
}, [e.from]), I(() => {
|
|
122
|
+
h(e.to ?? null);
|
|
123
|
+
}, [e.to]), I(() => {
|
|
129
124
|
C(e.dateFormat ?? Z.DATE_RANGE_PICKER.dateFormat);
|
|
130
125
|
}, [e.dateFormat]);
|
|
131
|
-
const
|
|
132
|
-
|
|
133
|
-
),
|
|
126
|
+
const G = Boolean(
|
|
127
|
+
Ce(a) && !d || Ce(d) && !a || a && d && Ce(a) && Ce(d) && Qt(a, d)
|
|
128
|
+
), Y = () => {
|
|
134
129
|
e.onChange({
|
|
135
|
-
from: a &&
|
|
136
|
-
to: d &&
|
|
130
|
+
from: a && Ce(a) ? a : void 0,
|
|
131
|
+
to: d && Ce(d) ? d : void 0
|
|
137
132
|
});
|
|
138
133
|
};
|
|
139
|
-
return /* @__PURE__ */ l(
|
|
134
|
+
return /* @__PURE__ */ l(Mt, { theme: i, children: /* @__PURE__ */ l(
|
|
140
135
|
ae,
|
|
141
136
|
{
|
|
142
137
|
className: `${n.container} drpContainer`,
|
|
143
138
|
display: "flex",
|
|
144
139
|
flexDirection: S,
|
|
145
140
|
width: S === "column" ? e.contentWidth : "unset",
|
|
146
|
-
children: /* @__PURE__ */
|
|
141
|
+
children: /* @__PURE__ */ R(Lt, { utils: Pt, locale: J, children: [
|
|
147
142
|
/* @__PURE__ */ l(
|
|
148
|
-
|
|
143
|
+
We,
|
|
149
144
|
{
|
|
150
145
|
variant: "inline",
|
|
151
146
|
placeholder: L,
|
|
152
|
-
onChange: ($) =>
|
|
147
|
+
onChange: ($) => r($),
|
|
153
148
|
value: a,
|
|
154
|
-
disableFuture:
|
|
149
|
+
disableFuture: x,
|
|
155
150
|
format: v,
|
|
156
151
|
maxDate: e.maxDate,
|
|
157
152
|
minDate: e.minDate
|
|
158
153
|
}
|
|
159
154
|
),
|
|
160
155
|
/* @__PURE__ */ l(
|
|
161
|
-
|
|
156
|
+
We,
|
|
162
157
|
{
|
|
163
158
|
variant: "inline",
|
|
164
|
-
placeholder:
|
|
159
|
+
placeholder: B,
|
|
165
160
|
className: n.margin,
|
|
166
|
-
onChange: ($) =>
|
|
161
|
+
onChange: ($) => h($),
|
|
167
162
|
value: d,
|
|
168
|
-
disableFuture:
|
|
163
|
+
disableFuture: x,
|
|
169
164
|
format: v,
|
|
170
165
|
maxDate: e.maxDate,
|
|
171
166
|
minDate: e.minDate
|
|
172
167
|
}
|
|
173
168
|
),
|
|
174
|
-
/* @__PURE__ */ l(
|
|
175
|
-
|
|
169
|
+
/* @__PURE__ */ l(pn, { use: t, children: /* @__PURE__ */ l(
|
|
170
|
+
Oe,
|
|
176
171
|
{
|
|
177
172
|
className: `${n.setButton} ${n.margin}`,
|
|
178
173
|
raised: !0,
|
|
179
|
-
onClick:
|
|
180
|
-
disabled: !
|
|
181
|
-
children:
|
|
174
|
+
onClick: Y,
|
|
175
|
+
disabled: !G,
|
|
176
|
+
children: U
|
|
182
177
|
}
|
|
183
178
|
) })
|
|
184
179
|
] })
|
|
185
180
|
}
|
|
186
181
|
) });
|
|
187
|
-
},
|
|
182
|
+
}, Ai = (e) => {
|
|
188
183
|
const { children: n, ...t } = e;
|
|
189
|
-
return /* @__PURE__ */ l(
|
|
184
|
+
return /* @__PURE__ */ l(rn, { ...t, children: n });
|
|
190
185
|
};
|
|
191
|
-
const
|
|
192
|
-
var V,
|
|
193
|
-
const [n, t] =
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
v(O.currentTarget);
|
|
199
|
-
}, S = (O) => {
|
|
200
|
-
O.currentTarget.tagName === "I" ? v(
|
|
201
|
-
O.currentTarget.previousElementSibling
|
|
202
|
-
) : v(O.currentTarget);
|
|
203
|
-
}, A = () => {
|
|
186
|
+
const Ho = (e) => {
|
|
187
|
+
var V, W;
|
|
188
|
+
const [n, t] = k(null), [i, a] = k(null), [r, d] = k(Z.DATE_RANGE_PICKER.dateFormat), [h, v] = Ee.useState(null), C = (D) => {
|
|
189
|
+
v(D.currentTarget);
|
|
190
|
+
}, S = (D) => {
|
|
191
|
+
D.currentTarget.tagName === "I" ? v(D.currentTarget.previousElementSibling) : v(D.currentTarget);
|
|
192
|
+
}, x = () => {
|
|
204
193
|
v(null);
|
|
205
|
-
}, L = Boolean(
|
|
206
|
-
|
|
194
|
+
}, L = Boolean(h), B = e.controlsLayout ?? "column";
|
|
195
|
+
I(() => {
|
|
207
196
|
t(e.from ?? null);
|
|
208
|
-
}, [e.from]),
|
|
197
|
+
}, [e.from]), I(() => {
|
|
209
198
|
a(e.to ?? null);
|
|
210
|
-
}, [e.to]),
|
|
199
|
+
}, [e.to]), I(() => {
|
|
211
200
|
d(e.dateFormat ?? Z.DATE_RANGE_PICKER.dateFormat);
|
|
212
201
|
}, [e.dateFormat]);
|
|
213
|
-
const
|
|
214
|
-
return /* @__PURE__ */
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
{
|
|
218
|
-
style: { width: e.width },
|
|
219
|
-
raised: !0,
|
|
220
|
-
onClick: C,
|
|
221
|
-
className: "drpOpener",
|
|
222
|
-
children: U
|
|
223
|
-
}
|
|
224
|
-
) : /* @__PURE__ */ l(
|
|
225
|
-
dn,
|
|
202
|
+
const U = ((V = e.local) == null ? void 0 : V.startPlaceHolderText) ?? Z.DATE_RANGE_PICKER.local.startPlaceHolderText, K = ((W = e.local) == null ? void 0 : W.endPlaceHolderText) ?? Z.DATE_RANGE_PICKER.local.endPlaceHolderText, J = e.renderAsButton === void 0 ? Z.DATE_RANGE_PICKER.renderAsButton : e.renderAsButton, G = e.offset === void 0 ? Z.DATE_RANGE_PICKER.offset : e.offset, Y = e.disableFuture === void 0 ? Z.DATE_RANGE_PICKER.disableFuture : e.disableFuture, z = Tt(() => `${n ? ot(n, r) : U} - ${i ? ot(i, r) : K}`, [n, i, r, U, K]);
|
|
203
|
+
return /* @__PURE__ */ R(re, { children: [
|
|
204
|
+
J ? /* @__PURE__ */ l(Oe, { style: { width: e.width }, raised: !0, onClick: C, className: "drpOpener", children: z }) : /* @__PURE__ */ l(
|
|
205
|
+
mn,
|
|
226
206
|
{
|
|
227
207
|
className: "drpOpener",
|
|
228
208
|
readOnly: !0,
|
|
229
209
|
style: { width: e.width },
|
|
230
|
-
value:
|
|
210
|
+
value: z,
|
|
231
211
|
onClick: S,
|
|
232
212
|
trailingIcon: {
|
|
233
213
|
icon: "date_range",
|
|
@@ -236,115 +216,87 @@ const Ro = (e) => {
|
|
|
236
216
|
}
|
|
237
217
|
}
|
|
238
218
|
),
|
|
239
|
-
/* @__PURE__ */ l(
|
|
240
|
-
|
|
219
|
+
/* @__PURE__ */ l(Ai, { open: L, anchorEl: h, onClose: x, anchorOrigin: { vertical: "bottom", horizontal: "left" }, keepMounted: !0, children: /* @__PURE__ */ l(
|
|
220
|
+
Mi,
|
|
241
221
|
{
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
minDate: e.minDate,
|
|
255
|
-
maxDate: e.maxDate,
|
|
256
|
-
local: e.local,
|
|
257
|
-
from: n ?? void 0,
|
|
258
|
-
to: i ?? void 0,
|
|
259
|
-
onChange: ({ from: O, to: $ }) => {
|
|
260
|
-
t(O ?? null), a($ ?? null), e.onChange({ from: O, to: $ }), A();
|
|
261
|
-
}
|
|
262
|
-
}
|
|
263
|
-
)
|
|
222
|
+
controlsLayout: B,
|
|
223
|
+
contentWidth: ((h == null ? void 0 : h.clientWidth) ?? 0) - G,
|
|
224
|
+
dateFormat: r,
|
|
225
|
+
disableFuture: Y,
|
|
226
|
+
minDate: e.minDate,
|
|
227
|
+
maxDate: e.maxDate,
|
|
228
|
+
local: e.local,
|
|
229
|
+
from: n ?? void 0,
|
|
230
|
+
to: i ?? void 0,
|
|
231
|
+
onChange: ({ from: D, to: $ }) => {
|
|
232
|
+
t(D ?? null), a($ ?? null), e.onChange({ from: D, to: $ }), x();
|
|
233
|
+
}
|
|
264
234
|
}
|
|
265
|
-
)
|
|
235
|
+
) })
|
|
266
236
|
] });
|
|
267
237
|
};
|
|
268
|
-
const
|
|
269
|
-
const n =
|
|
270
|
-
format:
|
|
238
|
+
const Vo = (e) => {
|
|
239
|
+
const n = At(), t = Nt(n), [i, a] = k(e.value), {
|
|
240
|
+
format: r = Z.DATE_PICKER.dateFormat,
|
|
271
241
|
variant: d = Z.DATE_PICKER.variant,
|
|
272
|
-
disableFuture:
|
|
242
|
+
disableFuture: h = Z.DATE_PICKER.disableFuture,
|
|
273
243
|
local: v,
|
|
274
244
|
onChange: C,
|
|
275
245
|
showTime: S = Z.DATE_PICKER.showTime,
|
|
276
|
-
value:
|
|
246
|
+
value: x,
|
|
277
247
|
...L
|
|
278
|
-
} = e, {
|
|
279
|
-
placeHolderText: R = Z.DATE_PICKER.local.placeHolderText,
|
|
280
|
-
calendarLocale: z
|
|
281
|
-
} = v ?? {
|
|
248
|
+
} = e, { placeHolderText: B = Z.DATE_PICKER.local.placeHolderText, calendarLocale: U } = v ?? {
|
|
282
249
|
placeHolderText: Z.DATE_PICKER.local.placeHolderText,
|
|
283
250
|
calendarLocale: ce.EN
|
|
284
|
-
},
|
|
285
|
-
a(
|
|
251
|
+
}, K = U === ce.HE ? _t : St, J = (G) => {
|
|
252
|
+
a(G), C(G);
|
|
286
253
|
};
|
|
287
|
-
return /* @__PURE__ */ l(
|
|
254
|
+
return /* @__PURE__ */ l(Mt, { theme: t, children: /* @__PURE__ */ R(Lt, { utils: Pt, locale: K, children: [
|
|
288
255
|
S && /* @__PURE__ */ l(
|
|
289
|
-
|
|
256
|
+
We,
|
|
290
257
|
{
|
|
291
258
|
variant: d,
|
|
292
|
-
placeholder:
|
|
293
|
-
onChange:
|
|
259
|
+
placeholder: B,
|
|
260
|
+
onChange: J,
|
|
294
261
|
value: i,
|
|
295
|
-
disableFuture:
|
|
296
|
-
format:
|
|
262
|
+
disableFuture: h,
|
|
263
|
+
format: r,
|
|
297
264
|
...L
|
|
298
265
|
}
|
|
299
266
|
),
|
|
300
267
|
!S && /* @__PURE__ */ l(
|
|
301
|
-
|
|
268
|
+
en,
|
|
302
269
|
{
|
|
303
270
|
variant: d,
|
|
304
|
-
placeholder:
|
|
305
|
-
onChange:
|
|
271
|
+
placeholder: B,
|
|
272
|
+
onChange: J,
|
|
306
273
|
value: i,
|
|
307
|
-
disableFuture:
|
|
308
|
-
format:
|
|
274
|
+
disableFuture: h,
|
|
275
|
+
format: r,
|
|
309
276
|
...L
|
|
310
277
|
}
|
|
311
278
|
)
|
|
312
279
|
] }) });
|
|
313
|
-
},
|
|
314
|
-
(e) =>
|
|
280
|
+
}, xi = 18, ki = Me(
|
|
281
|
+
(e) => Be({
|
|
315
282
|
drawingButton: {
|
|
316
|
-
width: e.spacing(
|
|
283
|
+
width: e.spacing(xi)
|
|
317
284
|
},
|
|
318
285
|
fullWidth: {
|
|
319
286
|
width: "100%",
|
|
320
287
|
marginTop: "36px"
|
|
321
288
|
}
|
|
322
289
|
})
|
|
323
|
-
),
|
|
324
|
-
const n =
|
|
290
|
+
), Ii = (e) => {
|
|
291
|
+
const n = ki(), [t, i] = Ee.useState(null), { isSelectionEnabled: a, onCancelDraw: r, onStartDraw: d, onReset: h } = e, v = (S) => {
|
|
325
292
|
i(S.currentTarget);
|
|
326
293
|
}, C = () => {
|
|
327
294
|
i(null);
|
|
328
295
|
};
|
|
329
|
-
return a ? /* @__PURE__ */ l(Ke, { content: "Cancel the ongoing draw", align: "bottomLeft", children: /* @__PURE__ */ l(
|
|
330
|
-
/* @__PURE__ */ l(
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
content: "draw an Area of interest to limit the search",
|
|
334
|
-
align: "bottomLeft",
|
|
335
|
-
children: /* @__PURE__ */ l(
|
|
336
|
-
ke,
|
|
337
|
-
{
|
|
338
|
-
className: n.drawingButton,
|
|
339
|
-
raised: !0,
|
|
340
|
-
onClick: v,
|
|
341
|
-
children: "Draw AOI"
|
|
342
|
-
}
|
|
343
|
-
)
|
|
344
|
-
}
|
|
345
|
-
),
|
|
346
|
-
/* @__PURE__ */ D(
|
|
347
|
-
un,
|
|
296
|
+
return a ? /* @__PURE__ */ l(Ke, { content: "Cancel the ongoing draw", align: "bottomLeft", children: /* @__PURE__ */ l(Oe, { className: n.drawingButton, raised: !0, onClick: r, children: "Cancel Draw" }) }) : /* @__PURE__ */ R(ae, { position: "relative", children: [
|
|
297
|
+
/* @__PURE__ */ l(Ke, { content: "draw an Area of interest to limit the search", align: "bottomLeft", children: /* @__PURE__ */ l(Oe, { className: n.drawingButton, raised: !0, onClick: v, children: "Draw AOI" }) }),
|
|
298
|
+
/* @__PURE__ */ R(
|
|
299
|
+
gn,
|
|
348
300
|
{
|
|
349
301
|
className: n.fullWidth,
|
|
350
302
|
open: Boolean(t),
|
|
@@ -354,7 +306,7 @@ const Bo = (e) => {
|
|
|
354
306
|
He,
|
|
355
307
|
{
|
|
356
308
|
onClick: () => {
|
|
357
|
-
d(
|
|
309
|
+
d(ie.POLYGON), C();
|
|
358
310
|
},
|
|
359
311
|
children: "Polygon"
|
|
360
312
|
}
|
|
@@ -363,7 +315,7 @@ const Bo = (e) => {
|
|
|
363
315
|
He,
|
|
364
316
|
{
|
|
365
317
|
onClick: () => {
|
|
366
|
-
d(
|
|
318
|
+
d(ie.BOX), C();
|
|
367
319
|
},
|
|
368
320
|
children: "Box"
|
|
369
321
|
}
|
|
@@ -372,7 +324,7 @@ const Bo = (e) => {
|
|
|
372
324
|
He,
|
|
373
325
|
{
|
|
374
326
|
onClick: () => {
|
|
375
|
-
|
|
327
|
+
h(), C();
|
|
376
328
|
},
|
|
377
329
|
children: "Clear"
|
|
378
330
|
}
|
|
@@ -382,155 +334,138 @@ const Bo = (e) => {
|
|
|
382
334
|
)
|
|
383
335
|
] });
|
|
384
336
|
};
|
|
385
|
-
var
|
|
386
|
-
const
|
|
337
|
+
var he = /* @__PURE__ */ ((e) => (e.WGS84 = "EPSG:4326", e.WEB_MERCATOR = "EPSG:3857", e))(he || {});
|
|
338
|
+
const Xe = 5, Ze = 2, Ft = Le(null), Oi = Ft.Provider, ct = 35, dt = 32, Di = 10, Ri = (e) => e !== void 0 && e !== he.WGS84 ? Pn([ct, dt], he.WGS84, e) : [ct, dt], Bi = (e) => {
|
|
387
339
|
switch (e) {
|
|
388
|
-
case
|
|
389
|
-
return (n) =>
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
Xe
|
|
393
|
-
);
|
|
394
|
-
case ue.WGS84:
|
|
395
|
-
return (n) => ot(
|
|
396
|
-
n,
|
|
397
|
-
"WGS84: {y}°N {x}°E",
|
|
398
|
-
Ye
|
|
399
|
-
);
|
|
340
|
+
case he.WEB_MERCATOR:
|
|
341
|
+
return (n) => st(n, "Mercator: {y}m, {x}m", Ze);
|
|
342
|
+
case he.WGS84:
|
|
343
|
+
return (n) => st(n, "WGS84: {y}°N {x}°E", Xe);
|
|
400
344
|
default:
|
|
401
345
|
return (n) => "";
|
|
402
346
|
}
|
|
403
|
-
},
|
|
404
|
-
const e = Pe(
|
|
347
|
+
}, tt = () => {
|
|
348
|
+
const e = Pe(Ft);
|
|
405
349
|
if (e === null)
|
|
406
350
|
throw new Error("map context is null, please check the provider");
|
|
407
351
|
return e;
|
|
408
|
-
},
|
|
409
|
-
const n =
|
|
410
|
-
new
|
|
411
|
-
view: new
|
|
412
|
-
projection: a ??
|
|
352
|
+
}, Ni = (e) => {
|
|
353
|
+
const n = ve(null), { allowFullScreen: t, showMousePosition: i, projection: a } = e, [r] = k(
|
|
354
|
+
new _n({
|
|
355
|
+
view: new Sn({
|
|
356
|
+
projection: a ?? he.WGS84
|
|
413
357
|
}),
|
|
414
|
-
controls:
|
|
358
|
+
controls: Ln()
|
|
415
359
|
})
|
|
416
360
|
);
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
}, [
|
|
420
|
-
|
|
421
|
-
}, [
|
|
422
|
-
const d = (
|
|
361
|
+
I(() => {
|
|
362
|
+
r.getView().setCenter(e.center ?? Ri(e.projection));
|
|
363
|
+
}, [r, e.center, e.projection]), I(() => {
|
|
364
|
+
r.getView().setZoom(e.zoom ?? Di);
|
|
365
|
+
}, [r, e.zoom, e.projection]);
|
|
366
|
+
const d = (h, v) => {
|
|
423
367
|
v.getControls().forEach((S) => {
|
|
424
|
-
S instanceof
|
|
368
|
+
S instanceof h && v.removeControl(S);
|
|
425
369
|
});
|
|
426
370
|
};
|
|
427
|
-
return
|
|
428
|
-
|
|
429
|
-
}, [
|
|
430
|
-
i !== void 0 && i ? (d(
|
|
431
|
-
new
|
|
432
|
-
coordinateFormat:
|
|
433
|
-
projection: a ??
|
|
371
|
+
return I(() => {
|
|
372
|
+
r.setTarget(n.current), t !== void 0 && t ? r.addControl(new at()) : d(at, r);
|
|
373
|
+
}, [r, t]), I(() => {
|
|
374
|
+
i !== void 0 && i ? (d(Ve, r), r.addControl(
|
|
375
|
+
new Ve({
|
|
376
|
+
coordinateFormat: Bi(a ?? he.WGS84),
|
|
377
|
+
projection: a ?? he.WGS84,
|
|
434
378
|
undefinedHTML: " "
|
|
435
379
|
})
|
|
436
|
-
)) : d(
|
|
437
|
-
}, [
|
|
380
|
+
)) : d(Ve, r);
|
|
381
|
+
}, [r, i, a]), /* @__PURE__ */ R(Oi, { value: r, children: [
|
|
438
382
|
/* @__PURE__ */ l("div", { className: "map", ref: n }),
|
|
439
383
|
e.children
|
|
440
384
|
] });
|
|
441
|
-
},
|
|
442
|
-
const e = Pe(
|
|
385
|
+
}, Gt = Le(null), Fi = Gt.Provider, Gi = () => {
|
|
386
|
+
const e = Pe(Gt);
|
|
443
387
|
if (e === null)
|
|
444
388
|
throw new Error("tile layer context is null, please check the provider");
|
|
445
389
|
return e;
|
|
446
|
-
},
|
|
447
|
-
const t =
|
|
448
|
-
return
|
|
390
|
+
}, Hi = ({ options: e, children: n }) => {
|
|
391
|
+
const t = tt(), [i] = k(new Mn(e));
|
|
392
|
+
return I(() => (t.addLayer(i), () => {
|
|
449
393
|
t.removeLayer(i);
|
|
450
|
-
}), [t, i]), /* @__PURE__ */ l(
|
|
451
|
-
},
|
|
452
|
-
const e = Pe(
|
|
394
|
+
}), [t, i]), /* @__PURE__ */ l(Fi, { value: i, children: n });
|
|
395
|
+
}, Ht = Le(null), Vi = Ht.Provider, zi = () => {
|
|
396
|
+
const e = Pe(Ht);
|
|
453
397
|
if (e === null)
|
|
454
398
|
throw new Error("vector layer context is null, please check the provider");
|
|
455
399
|
return e;
|
|
456
|
-
},
|
|
457
|
-
const n =
|
|
458
|
-
return
|
|
400
|
+
}, $i = ({ children: e }) => {
|
|
401
|
+
const n = tt(), [t] = k(new An());
|
|
402
|
+
return I(() => (n.addLayer(t), () => {
|
|
459
403
|
n.removeLayer(t);
|
|
460
|
-
}), [n, t]), /* @__PURE__ */ l(
|
|
461
|
-
},
|
|
462
|
-
const e = Pe(
|
|
404
|
+
}), [n, t]), /* @__PURE__ */ l(Vi, { value: t, children: e });
|
|
405
|
+
}, Vt = Le(null), Ui = Vt.Provider, Wi = () => {
|
|
406
|
+
const e = Pe(Vt);
|
|
463
407
|
if (e === null)
|
|
464
408
|
throw new Error("vector source context is null, please check the provider");
|
|
465
409
|
return e;
|
|
466
|
-
},
|
|
467
|
-
const n =
|
|
468
|
-
return
|
|
410
|
+
}, ji = ({ children: e }) => {
|
|
411
|
+
const n = zi(), [t] = k(new xn());
|
|
412
|
+
return I(() => {
|
|
469
413
|
n.setSource(t);
|
|
470
|
-
}, [t, n]), /* @__PURE__ */ l(
|
|
471
|
-
},
|
|
472
|
-
const n =
|
|
473
|
-
return
|
|
474
|
-
const i = new
|
|
414
|
+
}, [t, n]), /* @__PURE__ */ l(Ui, { value: t, children: e });
|
|
415
|
+
}, Ki = ({ geometry: e }) => {
|
|
416
|
+
const n = Wi();
|
|
417
|
+
return I(() => {
|
|
418
|
+
const i = new xt().readFeature(e);
|
|
475
419
|
return n.addFeature(i), () => {
|
|
476
420
|
n.removeFeature(i);
|
|
477
421
|
};
|
|
478
422
|
}, [e, n]), null;
|
|
479
|
-
},
|
|
480
|
-
const n =
|
|
481
|
-
return
|
|
482
|
-
n.setSource(new
|
|
423
|
+
}, qi = (e) => {
|
|
424
|
+
const n = Gi();
|
|
425
|
+
return I(() => {
|
|
426
|
+
n.setSource(new kn());
|
|
483
427
|
}, [n]), null;
|
|
484
|
-
},
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
}) => {
|
|
488
|
-
const t = et();
|
|
489
|
-
return k(() => {
|
|
428
|
+
}, Yi = ({ drawType: e, onPolygonSelected: n }) => {
|
|
429
|
+
const t = tt();
|
|
430
|
+
return I(() => {
|
|
490
431
|
const i = {
|
|
491
432
|
type: "Circle"
|
|
492
433
|
/* CIRCLE */
|
|
493
434
|
};
|
|
494
435
|
switch (e) {
|
|
495
|
-
case
|
|
496
|
-
i.geometryFunction =
|
|
436
|
+
case ie.BOX:
|
|
437
|
+
i.geometryFunction = On();
|
|
497
438
|
break;
|
|
498
|
-
case
|
|
439
|
+
case ie.POLYGON:
|
|
499
440
|
i.type = "Polygon";
|
|
500
441
|
break;
|
|
501
442
|
default:
|
|
502
443
|
return;
|
|
503
444
|
}
|
|
504
|
-
const a = new
|
|
445
|
+
const a = new In(i);
|
|
505
446
|
t.addInteraction(a);
|
|
506
|
-
const
|
|
507
|
-
const v = new
|
|
447
|
+
const r = (d) => {
|
|
448
|
+
const v = new xt().writeGeometryObject(d.feature.getGeometry());
|
|
508
449
|
n == null || n(v);
|
|
509
450
|
};
|
|
510
|
-
return a.on("drawend",
|
|
511
|
-
a.un("drawend",
|
|
451
|
+
return a.on("drawend", r), () => {
|
|
452
|
+
a.un("drawend", r), t.removeInteraction(a);
|
|
512
453
|
};
|
|
513
454
|
}, [n, e, t]), null;
|
|
514
455
|
};
|
|
515
|
-
const
|
|
456
|
+
const Xi = (e) => {
|
|
516
457
|
const n = (t) => {
|
|
517
|
-
const i =
|
|
458
|
+
const i = Tn(t);
|
|
518
459
|
e.onPolygonSelection(i);
|
|
519
460
|
};
|
|
520
|
-
return /* @__PURE__ */
|
|
521
|
-
/* @__PURE__ */ l(
|
|
522
|
-
e.selectionPolygon && /* @__PURE__ */ l(
|
|
461
|
+
return /* @__PURE__ */ R(Ni, { allowFullScreen: !0, showMousePosition: !0, children: [
|
|
462
|
+
/* @__PURE__ */ l(Hi, { children: /* @__PURE__ */ l(qi, {}) }),
|
|
463
|
+
e.selectionPolygon && /* @__PURE__ */ l($i, { children: /* @__PURE__ */ l(ji, { children: /* @__PURE__ */ l(Ki, { geometry: e.selectionPolygon }) }) }),
|
|
523
464
|
e.children,
|
|
524
|
-
e.drawType !== void 0 && /* @__PURE__ */ l(
|
|
525
|
-
Ui,
|
|
526
|
-
{
|
|
527
|
-
drawType: e.drawType,
|
|
528
|
-
onPolygonSelected: n
|
|
529
|
-
}
|
|
530
|
-
)
|
|
465
|
+
e.drawType !== void 0 && /* @__PURE__ */ l(Yi, { drawType: e.drawType, onPolygonSelected: n })
|
|
531
466
|
] });
|
|
532
|
-
},
|
|
533
|
-
(e) =>
|
|
467
|
+
}, ze = 1.5, Zi = 80, Ji = Me(
|
|
468
|
+
(e) => Be({
|
|
534
469
|
map: {
|
|
535
470
|
height: "100%",
|
|
536
471
|
width: "100%",
|
|
@@ -539,12 +474,12 @@ const Wi = (e) => {
|
|
|
539
474
|
absolute: {
|
|
540
475
|
position: "absolute",
|
|
541
476
|
zIndex: 1e3,
|
|
542
|
-
left: e.spacing(
|
|
543
|
-
top: e.spacing(
|
|
477
|
+
left: e.spacing(ze),
|
|
478
|
+
top: e.spacing(ze)
|
|
544
479
|
},
|
|
545
480
|
contentContainer: {
|
|
546
|
-
marginTop: e.spacing(
|
|
547
|
-
width: e.spacing(
|
|
481
|
+
marginTop: e.spacing(ze),
|
|
482
|
+
width: e.spacing(Zi)
|
|
548
483
|
},
|
|
549
484
|
filtersContainer: {
|
|
550
485
|
display: "flex",
|
|
@@ -554,231 +489,198 @@ const Wi = (e) => {
|
|
|
554
489
|
marginLeft: e.spacing(1)
|
|
555
490
|
}
|
|
556
491
|
})
|
|
557
|
-
),
|
|
492
|
+
), zo = (e) => {
|
|
558
493
|
var v;
|
|
559
|
-
const [n, t] =
|
|
494
|
+
const [n, t] = k(), [i, a] = k(), r = Ji(), d = (C) => {
|
|
560
495
|
a(C), t(void 0), e.handlePolygonSelected(C);
|
|
561
|
-
},
|
|
496
|
+
}, h = () => {
|
|
562
497
|
a(void 0), e.handlePolygonReset();
|
|
563
498
|
};
|
|
564
|
-
return /* @__PURE__ */
|
|
565
|
-
/* @__PURE__ */
|
|
566
|
-
/* @__PURE__ */
|
|
499
|
+
return /* @__PURE__ */ R("div", { className: r.map, children: [
|
|
500
|
+
/* @__PURE__ */ R("div", { className: `${r.absolute}`, children: [
|
|
501
|
+
/* @__PURE__ */ R(je, { className: r.filtersContainer, children: [
|
|
567
502
|
/* @__PURE__ */ l(
|
|
568
|
-
|
|
503
|
+
Ii,
|
|
569
504
|
{
|
|
570
505
|
onCancelDraw: () => t(void 0),
|
|
571
|
-
onReset:
|
|
506
|
+
onReset: h,
|
|
572
507
|
onStartDraw: t,
|
|
573
508
|
isSelectionEnabled: n !== void 0
|
|
574
509
|
}
|
|
575
510
|
),
|
|
576
|
-
(v = e.filters) == null ? void 0 : v.map((C, S) => /* @__PURE__ */ l("div", { className:
|
|
511
|
+
(v = e.filters) == null ? void 0 : v.map((C, S) => /* @__PURE__ */ l("div", { className: r.filtersMargin, children: C }, S))
|
|
577
512
|
] }),
|
|
578
|
-
/* @__PURE__ */ l(
|
|
513
|
+
/* @__PURE__ */ l(je, { color: "red", className: `${r.contentContainer}`, children: e.children })
|
|
579
514
|
] }),
|
|
580
|
-
/* @__PURE__ */ l(
|
|
581
|
-
Wi,
|
|
582
|
-
{
|
|
583
|
-
children: e.mapContent,
|
|
584
|
-
onPolygonSelection: d,
|
|
585
|
-
drawType: n,
|
|
586
|
-
selectionPolygon: i
|
|
587
|
-
}
|
|
588
|
-
)
|
|
515
|
+
/* @__PURE__ */ l(Xi, { children: e.mapContent, onPolygonSelection: d, drawType: n, selectionPolygon: i })
|
|
589
516
|
] });
|
|
590
517
|
};
|
|
591
|
-
function
|
|
592
|
-
const { headCells: n, order: t, orderBy: i, onRequestSort: a, isCollapseable:
|
|
593
|
-
a(v,
|
|
518
|
+
function Qi(e) {
|
|
519
|
+
const { headCells: n, order: t, orderBy: i, onRequestSort: a, isCollapseable: r } = e, d = (h) => (v) => {
|
|
520
|
+
a(v, h);
|
|
594
521
|
};
|
|
595
|
-
return /* @__PURE__ */ l(
|
|
596
|
-
|
|
597
|
-
n.map((
|
|
598
|
-
|
|
522
|
+
return /* @__PURE__ */ l(Dn, { children: /* @__PURE__ */ R(Ie, { children: [
|
|
523
|
+
r && /* @__PURE__ */ l(be, {}),
|
|
524
|
+
n.map((h) => /* @__PURE__ */ l(
|
|
525
|
+
be,
|
|
599
526
|
{
|
|
600
|
-
align:
|
|
601
|
-
padding:
|
|
602
|
-
sortDirection: i ===
|
|
527
|
+
align: h.numeric ? "right" : "left",
|
|
528
|
+
padding: h.disablePadding ? "none" : "default",
|
|
529
|
+
sortDirection: i === h.id ? t : !1,
|
|
603
530
|
children: /* @__PURE__ */ l(
|
|
604
|
-
|
|
531
|
+
on,
|
|
605
532
|
{
|
|
606
|
-
active: i ===
|
|
607
|
-
direction: i ===
|
|
608
|
-
onClick: d(
|
|
609
|
-
children:
|
|
533
|
+
active: i === h.id,
|
|
534
|
+
direction: i === h.id ? t : "asc",
|
|
535
|
+
onClick: d(h.id),
|
|
536
|
+
children: h.label
|
|
610
537
|
}
|
|
611
538
|
)
|
|
612
539
|
},
|
|
613
|
-
|
|
540
|
+
h.id
|
|
614
541
|
))
|
|
615
542
|
] }) });
|
|
616
543
|
}
|
|
617
|
-
const
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
/* @__PURE__ */ D(Ie, { hover: !0, selected: t, onClick: () => {
|
|
634
|
-
a == null || a(o);
|
|
544
|
+
const er = kt(
|
|
545
|
+
/* @__PURE__ */ bt.createElement("path", {
|
|
546
|
+
d: "M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"
|
|
547
|
+
}),
|
|
548
|
+
"KeyboardArrowDown"
|
|
549
|
+
), tr = kt(
|
|
550
|
+
/* @__PURE__ */ bt.createElement("path", {
|
|
551
|
+
d: "M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z"
|
|
552
|
+
}),
|
|
553
|
+
"KeyboardArrowUp"
|
|
554
|
+
);
|
|
555
|
+
function nr(e) {
|
|
556
|
+
const { cellsMetadata: n, isRowSelected: t, item: i, onRowSelected: a, rowIndex: r, isCollapseable: d, collapsedElement: h } = e, [v, C] = k(!1), S = n.length;
|
|
557
|
+
return /* @__PURE__ */ R(re, { children: [
|
|
558
|
+
/* @__PURE__ */ R(Ie, { hover: !0, selected: t, onClick: () => {
|
|
559
|
+
a == null || a(r);
|
|
635
560
|
}, children: [
|
|
636
|
-
d && /* @__PURE__ */ l(
|
|
637
|
-
|
|
561
|
+
d && /* @__PURE__ */ l(be, { padding: "checkbox", children: /* @__PURE__ */ l(
|
|
562
|
+
sn,
|
|
638
563
|
{
|
|
639
564
|
"aria-label": "expand row",
|
|
640
565
|
size: "small",
|
|
641
566
|
onClick: (L) => {
|
|
642
567
|
L.stopPropagation(), C(!v);
|
|
643
568
|
},
|
|
644
|
-
children: v ? /* @__PURE__ */ l(
|
|
569
|
+
children: v ? /* @__PURE__ */ l(tr, {}) : /* @__PURE__ */ l(er, {})
|
|
645
570
|
}
|
|
646
571
|
) }),
|
|
647
572
|
n.map((L) => /* @__PURE__ */ l(
|
|
648
|
-
|
|
573
|
+
be,
|
|
649
574
|
{
|
|
650
575
|
align: L.numeric ? "right" : "left",
|
|
651
576
|
padding: L.disablePadding ? "none" : "default",
|
|
652
577
|
children: L.transform ? L.transform(i[L.id]) : i[L.id]
|
|
653
578
|
},
|
|
654
|
-
L.id +
|
|
579
|
+
L.id + r.toString()
|
|
655
580
|
))
|
|
656
581
|
] }),
|
|
657
|
-
d && /* @__PURE__ */ l(Ie, { children: /* @__PURE__ */ l(
|
|
658
|
-
we,
|
|
659
|
-
{
|
|
660
|
-
style: { paddingBottom: 0, paddingTop: 0 },
|
|
661
|
-
colSpan: S + 1,
|
|
662
|
-
children: /* @__PURE__ */ l(nn, { in: v, unmountOnExit: !0, timeout: "auto", children: u == null ? void 0 : u(i) })
|
|
663
|
-
}
|
|
664
|
-
) })
|
|
582
|
+
d && /* @__PURE__ */ l(Ie, { children: /* @__PURE__ */ l(be, { style: { paddingBottom: 0, paddingTop: 0 }, colSpan: S + 1, children: /* @__PURE__ */ l(an, { in: v, unmountOnExit: !0, timeout: "auto", children: h == null ? void 0 : h(i) }) }) })
|
|
665
583
|
] });
|
|
666
584
|
}
|
|
667
|
-
function
|
|
668
|
-
const [n, t] =
|
|
669
|
-
cellsMetadata:
|
|
585
|
+
function $o(e) {
|
|
586
|
+
const [n, t] = k(""), [i, a] = k("asc"), {
|
|
587
|
+
cellsMetadata: r,
|
|
670
588
|
items: d,
|
|
671
|
-
onRequestSort:
|
|
589
|
+
onRequestSort: h,
|
|
672
590
|
onRowSelected: v,
|
|
673
591
|
isCollapseable: C,
|
|
674
592
|
collapsedElement: S,
|
|
675
|
-
isDense:
|
|
593
|
+
isDense: x,
|
|
676
594
|
page: L,
|
|
677
|
-
rowsPerPage:
|
|
678
|
-
count:
|
|
679
|
-
handleChangePage:
|
|
680
|
-
handleChangeRowsPerPage:
|
|
595
|
+
rowsPerPage: B,
|
|
596
|
+
count: U,
|
|
597
|
+
handleChangePage: K,
|
|
598
|
+
handleChangeRowsPerPage: J
|
|
681
599
|
} = e;
|
|
682
|
-
return /* @__PURE__ */
|
|
683
|
-
/* @__PURE__ */
|
|
600
|
+
return /* @__PURE__ */ R(ln, { component: je, children: [
|
|
601
|
+
/* @__PURE__ */ R(cn, { size: x ? "small" : "medium", children: [
|
|
684
602
|
/* @__PURE__ */ l(
|
|
685
|
-
|
|
603
|
+
Qi,
|
|
686
604
|
{
|
|
687
|
-
headCells:
|
|
688
|
-
onRequestSort: (
|
|
689
|
-
const V = n ===
|
|
690
|
-
a(V ? "desc" : "asc"), t(
|
|
605
|
+
headCells: r,
|
|
606
|
+
onRequestSort: (Y, z) => {
|
|
607
|
+
const V = n === z && i === "asc";
|
|
608
|
+
a(V ? "desc" : "asc"), t(z), h(z, V ? "desc" : "asc");
|
|
691
609
|
},
|
|
692
610
|
order: i,
|
|
693
611
|
orderBy: n,
|
|
694
612
|
isCollapseable: C
|
|
695
613
|
}
|
|
696
614
|
),
|
|
697
|
-
/* @__PURE__ */
|
|
698
|
-
d.map((
|
|
699
|
-
|
|
615
|
+
/* @__PURE__ */ R(dn, { children: [
|
|
616
|
+
d.map((Y, z) => /* @__PURE__ */ l(
|
|
617
|
+
nr,
|
|
700
618
|
{
|
|
701
|
-
item:
|
|
702
|
-
rowIndex:
|
|
619
|
+
item: Y,
|
|
620
|
+
rowIndex: z,
|
|
703
621
|
isCollapseable: C,
|
|
704
|
-
cellsMetadata:
|
|
622
|
+
cellsMetadata: r,
|
|
705
623
|
collapsedElement: S,
|
|
706
624
|
isRowSelected: !1,
|
|
707
625
|
onRowSelected: v
|
|
708
626
|
},
|
|
709
|
-
|
|
627
|
+
z
|
|
710
628
|
)),
|
|
711
|
-
(d.length === 0 ||
|
|
629
|
+
(d.length === 0 || B > d.length) && /* @__PURE__ */ l(
|
|
712
630
|
Ie,
|
|
713
631
|
{
|
|
714
632
|
style: {
|
|
715
|
-
height: (
|
|
633
|
+
height: (x ? 33 : 53) * (B - d.length)
|
|
716
634
|
},
|
|
717
|
-
children: /* @__PURE__ */ l(
|
|
718
|
-
we,
|
|
719
|
-
{
|
|
720
|
-
colSpan: C ? o.length + 1 : o.length,
|
|
721
|
-
children: d.length === 0 && /* @__PURE__ */ l(an, { align: "center", children: "No results :(" })
|
|
722
|
-
}
|
|
723
|
-
)
|
|
635
|
+
children: /* @__PURE__ */ l(be, { colSpan: C ? r.length + 1 : r.length, children: d.length === 0 && /* @__PURE__ */ l(un, { align: "center", children: "No results :(" }) })
|
|
724
636
|
}
|
|
725
637
|
)
|
|
726
638
|
] })
|
|
727
639
|
] }),
|
|
728
640
|
/* @__PURE__ */ l(
|
|
729
|
-
|
|
641
|
+
hn,
|
|
730
642
|
{
|
|
731
|
-
rowsPerPage:
|
|
643
|
+
rowsPerPage: B,
|
|
732
644
|
rowsPerPageOptions: [5, 10],
|
|
733
645
|
component: "div",
|
|
734
|
-
count:
|
|
646
|
+
count: U,
|
|
735
647
|
page: L,
|
|
736
|
-
onPageChange:
|
|
737
|
-
onRowsPerPageChange:
|
|
648
|
+
onPageChange: K,
|
|
649
|
+
onRowsPerPageChange: J
|
|
738
650
|
}
|
|
739
651
|
)
|
|
740
652
|
] });
|
|
741
653
|
}
|
|
742
|
-
const
|
|
654
|
+
const Uo = (e) => {
|
|
743
655
|
const { children: n, ...t } = e;
|
|
744
|
-
return /* @__PURE__ */ l(
|
|
745
|
-
},
|
|
656
|
+
return /* @__PURE__ */ l(Rn, { ...t, children: n });
|
|
657
|
+
}, Wo = (e) => {
|
|
746
658
|
const { children: n, ...t } = e;
|
|
747
|
-
return /* @__PURE__ */ l(
|
|
748
|
-
},
|
|
749
|
-
const
|
|
750
|
-
const n =
|
|
751
|
-
return
|
|
752
|
-
n.screenSpaceEventHandler.setInputAction(
|
|
753
|
-
(
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
);
|
|
758
|
-
}, [t, n]), k(() => {
|
|
759
|
-
const o = n.scene.globe.ellipsoid, d = n.camera.pickEllipsoid(
|
|
760
|
-
new me(i.x, i.y),
|
|
761
|
-
o
|
|
762
|
-
);
|
|
659
|
+
return /* @__PURE__ */ l(Bn, { ...t, children: n });
|
|
660
|
+
}, ut = (e) => e * Math.PI / 180, xe = (e) => e * (180 / Math.PI), ir = (e) => 0.05 * (5916575505e-1 / Math.pow(2, e - 1) / 2) * (Math.cos(ut(85.362 / 2)) / Math.sin(ut(85.362 / 2)));
|
|
661
|
+
const rr = (e) => {
|
|
662
|
+
const n = pe(), t = ve(null), [i, a] = k({ x: 0, y: 0 });
|
|
663
|
+
return I(() => {
|
|
664
|
+
n.screenSpaceEventHandler.setInputAction((r) => {
|
|
665
|
+
r != null && r.endPosition && a({ ...r.endPosition });
|
|
666
|
+
}, Kn.MOUSE_MOVE);
|
|
667
|
+
}, [t, n]), I(() => {
|
|
668
|
+
const r = n.scene.globe.ellipsoid, d = n.camera.pickEllipsoid(new ge(i.x, i.y), r);
|
|
763
669
|
if (d) {
|
|
764
|
-
const
|
|
670
|
+
const h = r.cartesianToCartographic(d);
|
|
765
671
|
if (t.current) {
|
|
766
672
|
let v = "";
|
|
767
673
|
switch (e.projection) {
|
|
768
|
-
case
|
|
769
|
-
const S = new
|
|
770
|
-
v = `Mercator: ${S.y.toFixed(
|
|
771
|
-
|
|
772
|
-
)}m
|
|
674
|
+
case he.WEB_MERCATOR: {
|
|
675
|
+
const S = new qn(r).project(h);
|
|
676
|
+
v = `Mercator: ${S.y.toFixed(Ze)}m, ${S.x.toFixed(
|
|
677
|
+
Ze
|
|
678
|
+
)}m`, t.current.style.width = "220px";
|
|
773
679
|
break;
|
|
774
680
|
}
|
|
775
|
-
case
|
|
776
|
-
const C = le.toDegrees(
|
|
777
|
-
|
|
778
|
-
).toFixed(Ye);
|
|
779
|
-
v = `WGS84: ${le.toDegrees(
|
|
780
|
-
u.latitude
|
|
781
|
-
).toFixed(Ye)}°N ${C}°E`, t.current.style.width = "200px";
|
|
681
|
+
case he.WGS84: {
|
|
682
|
+
const C = le.toDegrees(h.longitude).toFixed(Xe);
|
|
683
|
+
v = `WGS84: ${le.toDegrees(h.latitude).toFixed(Xe)}°N ${C}°E`, t.current.style.width = "200px";
|
|
782
684
|
break;
|
|
783
685
|
}
|
|
784
686
|
}
|
|
@@ -787,7 +689,7 @@ const Qi = (e) => {
|
|
|
787
689
|
}
|
|
788
690
|
}, [i, t, n, e.projection]), /* @__PURE__ */ l("div", { className: "trackerPosition", ref: t });
|
|
789
691
|
};
|
|
790
|
-
const
|
|
692
|
+
const $e = [
|
|
791
693
|
1,
|
|
792
694
|
2,
|
|
793
695
|
3,
|
|
@@ -820,64 +722,51 @@ const ze = [
|
|
|
820
722
|
2e7,
|
|
821
723
|
3e7,
|
|
822
724
|
5e7
|
|
823
|
-
],
|
|
824
|
-
const a = Q(i, "METERS_UNIT") ?? "m",
|
|
725
|
+
], or = (e, n, t, i) => {
|
|
726
|
+
const a = Q(i, "METERS_UNIT") ?? "m", r = Q(i, "KILOMETERS_UNIT") ?? "km", d = {
|
|
825
727
|
barWidth: void 0,
|
|
826
728
|
distanceLabel: void 0,
|
|
827
729
|
lastLegendUpdate: n.lastLegendUpdate
|
|
828
|
-
},
|
|
730
|
+
}, h = new Xn(), v = new Date().getTime();
|
|
829
731
|
if (v < d.lastLegendUpdate + 250)
|
|
830
732
|
return;
|
|
831
733
|
d.lastLegendUpdate = v;
|
|
832
|
-
const C = e.scene.canvas.clientWidth, S = e.scene.canvas.clientHeight,
|
|
833
|
-
|
|
834
|
-
), L = e.scene.camera.getPickRay(
|
|
835
|
-
new Te(1 + C / 2 | 0, S - 1)
|
|
836
|
-
), R = e.scene.globe, z = R.pick(A, e.scene), j = R.pick(L, e.scene);
|
|
837
|
-
if (!z || !j)
|
|
734
|
+
const C = e.scene.canvas.clientWidth, S = e.scene.canvas.clientHeight, x = e.scene.camera.getPickRay(new _e(C / 2 | 0, S - 1)), L = e.scene.camera.getPickRay(new _e(1 + C / 2 | 0, S - 1)), B = e.scene.globe, U = B.pick(x, e.scene), K = B.pick(L, e.scene);
|
|
735
|
+
if (!U || !K)
|
|
838
736
|
return;
|
|
839
|
-
const
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
j
|
|
843
|
-
);
|
|
844
|
-
u.setEndPoints(Y, F);
|
|
845
|
-
const X = u.surfaceDistance, U = 100;
|
|
737
|
+
const J = B.ellipsoid.cartesianToCartographic(U), G = B.ellipsoid.cartesianToCartographic(K);
|
|
738
|
+
h.setEndPoints(J, G);
|
|
739
|
+
const Y = h.surfaceDistance, z = 100;
|
|
846
740
|
let V;
|
|
847
|
-
for (let
|
|
848
|
-
|
|
849
|
-
if (
|
|
850
|
-
let
|
|
851
|
-
V >= 1e3 ?
|
|
741
|
+
for (let W = $e.length - 1; !De(V) && W >= 0; --W)
|
|
742
|
+
$e[W] / Y < z && (V = $e[W]);
|
|
743
|
+
if (De(V)) {
|
|
744
|
+
let W = "";
|
|
745
|
+
V >= 1e3 ? W = `${(V / 1e3).toString()} ${r}` : W = `${V.toString()} ${a}`, d.barWidth = V / Y | 0, d.distanceLabel = W;
|
|
852
746
|
}
|
|
853
747
|
t(d);
|
|
854
|
-
},
|
|
855
|
-
const n =
|
|
748
|
+
}, sr = (e) => {
|
|
749
|
+
const n = pe(), [t, i] = k({
|
|
856
750
|
barWidth: void 0,
|
|
857
751
|
distanceLabel: void 0,
|
|
858
752
|
lastLegendUpdate: -1
|
|
859
753
|
});
|
|
860
|
-
|
|
861
|
-
const
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
i,
|
|
866
|
-
e.locale
|
|
867
|
-
);
|
|
868
|
-
}, d = new Un(), u = (v) => {
|
|
869
|
-
n.scene.globe.tilesLoaded && (o(new MouseEvent("mouse")), d.removeAll());
|
|
754
|
+
I(() => {
|
|
755
|
+
const r = (v) => {
|
|
756
|
+
or(n, t, i, e.locale);
|
|
757
|
+
}, d = new Yn(), h = (v) => {
|
|
758
|
+
n.scene.globe.tilesLoaded && (r(new MouseEvent("mouse")), d.removeAll());
|
|
870
759
|
};
|
|
871
|
-
return d.add(n.scene.globe.tileLoadProgressEvent,
|
|
760
|
+
return d.add(n.scene.globe.tileLoadProgressEvent, h), n.camera.moveEnd.addEventListener(r), () => {
|
|
872
761
|
try {
|
|
873
|
-
Q(n, "_cesiumWidget") != null && n.camera.moveEnd.removeEventListener(
|
|
762
|
+
Q(n, "_cesiumWidget") != null && n.camera.moveEnd.removeEventListener(r);
|
|
874
763
|
} catch (v) {
|
|
875
764
|
console.log('CESIUM camera "moveEnd" remove listener failed', v);
|
|
876
765
|
}
|
|
877
766
|
};
|
|
878
767
|
}, [n, e.locale, t]);
|
|
879
|
-
const a = (
|
|
880
|
-
return /* @__PURE__ */ l("div", { className: "scalePosition", children:
|
|
768
|
+
const a = (r) => 5 + (125 - r) / 2;
|
|
769
|
+
return /* @__PURE__ */ l("div", { className: "scalePosition", children: De(t.barWidth) && /* @__PURE__ */ R(re, { children: [
|
|
881
770
|
/* @__PURE__ */ l("div", { className: "distance-legend-label", children: t.distanceLabel }),
|
|
882
771
|
/* @__PURE__ */ l(
|
|
883
772
|
"div",
|
|
@@ -897,45 +786,43 @@ const ze = [
|
|
|
897
786
|
SCENE2D: ye.SCENE2D,
|
|
898
787
|
SCENE3D: ye.SCENE3D
|
|
899
788
|
};
|
|
900
|
-
const
|
|
901
|
-
const i = Q(n.scene.globe, "_surface.tileProvider"), a = i._quadtree,
|
|
902
|
-
for (let
|
|
903
|
-
if (i.getLevelMaximumGeometricError(
|
|
904
|
-
return
|
|
789
|
+
const ht = (e, n) => {
|
|
790
|
+
const i = Q(n.scene.globe, "_surface.tileProvider"), a = i._quadtree, r = n.canvas.height, d = Q(n.camera.frustum, "sseDenominator") ?? 1;
|
|
791
|
+
for (let h = 0; h <= 19; h++)
|
|
792
|
+
if (i.getLevelMaximumGeometricError(h) * r / (e * d) < a.maximumScreenSpaceError)
|
|
793
|
+
return h;
|
|
905
794
|
return null;
|
|
906
|
-
},
|
|
795
|
+
}, ar = (e, n) => {
|
|
907
796
|
e = e || 10;
|
|
908
797
|
const t = [];
|
|
909
798
|
let i = 1e5, a = 0;
|
|
910
|
-
for (let
|
|
911
|
-
const d =
|
|
799
|
+
for (let r = 1e8; r > i; r = r - i) {
|
|
800
|
+
const d = ht(r, n);
|
|
912
801
|
if (d === null)
|
|
913
802
|
break;
|
|
914
803
|
if (d !== a) {
|
|
915
|
-
let
|
|
916
|
-
for (; v -
|
|
917
|
-
|
|
804
|
+
let h = r, v = r + i;
|
|
805
|
+
for (; v - h > e; )
|
|
806
|
+
r = h + (v - h) / 2, ht(r, n) === d ? h = r : v = r;
|
|
918
807
|
t.push({
|
|
919
808
|
level: d,
|
|
920
|
-
height: Math.round(
|
|
921
|
-
}), a = d, t.length >= 2 && (i = (t[t.length - 2].height -
|
|
809
|
+
height: Math.round(r)
|
|
810
|
+
}), a = d, t.length >= 2 && (i = (t[t.length - 2].height - r) / 1e3);
|
|
922
811
|
}
|
|
923
812
|
}
|
|
924
813
|
return t;
|
|
925
|
-
},
|
|
926
|
-
const n =
|
|
927
|
-
return
|
|
928
|
-
const
|
|
929
|
-
const d = n.camera,
|
|
814
|
+
}, lr = (e) => {
|
|
815
|
+
const n = pe(), [t, i] = k(1), a = ar(1, n);
|
|
816
|
+
return I(() => {
|
|
817
|
+
const r = () => {
|
|
818
|
+
const d = n.camera, h = 0.5;
|
|
930
819
|
let v = 0;
|
|
931
820
|
switch (n.scene.mode) {
|
|
932
821
|
case ne.SCENE3D:
|
|
933
|
-
v = n.scene.mapProjection.ellipsoid.cartesianToCartographic(
|
|
934
|
-
d.positionWC
|
|
935
|
-
).height;
|
|
822
|
+
v = n.scene.mapProjection.ellipsoid.cartesianToCartographic(d.positionWC).height;
|
|
936
823
|
break;
|
|
937
824
|
case ne.SCENE2D:
|
|
938
|
-
v = (d.frustum.right - d.frustum.left) *
|
|
825
|
+
v = (d.frustum.right - d.frustum.left) * h;
|
|
939
826
|
break;
|
|
940
827
|
case ne.COLUMBUS_VIEW:
|
|
941
828
|
v = d.position.z;
|
|
@@ -945,70 +832,49 @@ const ut = (e, n) => {
|
|
|
945
832
|
break;
|
|
946
833
|
}
|
|
947
834
|
if (a.length > 0) {
|
|
948
|
-
const C = a.reduce((S,
|
|
835
|
+
const C = a.reduce((S, x) => Math.abs(x.height - v) < Math.abs(S.height - v) ? x : S);
|
|
949
836
|
i(C.level);
|
|
950
837
|
}
|
|
951
838
|
};
|
|
952
|
-
return n.camera.moveEnd.addEventListener(
|
|
839
|
+
return n.camera.moveEnd.addEventListener(r), () => {
|
|
953
840
|
try {
|
|
954
|
-
Q(n, "_cesiumWidget") != null && n.camera.moveEnd.removeEventListener(
|
|
841
|
+
Q(n, "_cesiumWidget") != null && n.camera.moveEnd.removeEventListener(r);
|
|
955
842
|
} catch (d) {
|
|
956
|
-
console.log(
|
|
957
|
-
'CESIUM camera "moveEnd"(from zoom tracker) remove listener failed',
|
|
958
|
-
d
|
|
959
|
-
);
|
|
843
|
+
console.log('CESIUM camera "moveEnd"(from zoom tracker) remove listener failed', d);
|
|
960
844
|
}
|
|
961
845
|
};
|
|
962
|
-
}, [n, a.length]), /* @__PURE__ */
|
|
846
|
+
}, [n, a.length]), /* @__PURE__ */ R("div", { className: "zoomLevel", children: [
|
|
963
847
|
/* @__PURE__ */ l("div", { className: "zoomLevelValue", children: t }),
|
|
964
848
|
/* @__PURE__ */ l("div", { className: "zoomLevelLabel", children: Q(e.locale, "ZOOM_LABEL") ?? "zoom" })
|
|
965
849
|
] });
|
|
966
850
|
};
|
|
967
|
-
const
|
|
968
|
-
const n =
|
|
969
|
-
return
|
|
851
|
+
const cr = -1, dr = (e) => {
|
|
852
|
+
const n = pe(), [t, i] = k(), { sceneModes: a } = e, r = (d) => a.findIndex((h) => h === d) > cr;
|
|
853
|
+
return I(() => {
|
|
970
854
|
i(n.scene.mode);
|
|
971
|
-
}, []), /* @__PURE__ */
|
|
972
|
-
|
|
973
|
-
|
|
855
|
+
}, []), /* @__PURE__ */ R(re, { children: [
|
|
856
|
+
r(ne.SCENE3D) && /* @__PURE__ */ l(
|
|
857
|
+
Te,
|
|
974
858
|
{
|
|
975
|
-
icon: /* @__PURE__ */ l(
|
|
976
|
-
"div",
|
|
977
|
-
{
|
|
978
|
-
className: `mapViewIcon ${t === ne.SCENE3D ? "mapViewCurrent" : ""}`,
|
|
979
|
-
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" }) })
|
|
980
|
-
}
|
|
981
|
-
),
|
|
859
|
+
icon: /* @__PURE__ */ l("div", { className: `mapViewIcon ${t === ne.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" }) }) }),
|
|
982
860
|
onClick: () => {
|
|
983
861
|
n.scene.morphTo3D(), i(ne.SCENE3D);
|
|
984
862
|
}
|
|
985
863
|
}
|
|
986
864
|
),
|
|
987
|
-
|
|
988
|
-
|
|
865
|
+
r(ne.SCENE2D) && /* @__PURE__ */ l(
|
|
866
|
+
Te,
|
|
989
867
|
{
|
|
990
|
-
icon: /* @__PURE__ */ l(
|
|
991
|
-
"div",
|
|
992
|
-
{
|
|
993
|
-
className: `mapViewIcon ${t === ne.SCENE2D ? "mapViewCurrent" : ""}`,
|
|
994
|
-
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" }) })
|
|
995
|
-
}
|
|
996
|
-
),
|
|
868
|
+
icon: /* @__PURE__ */ l("div", { className: `mapViewIcon ${t === ne.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" }) }) }),
|
|
997
869
|
onClick: () => {
|
|
998
870
|
n.scene.morphTo2D(), i(ne.SCENE2D);
|
|
999
871
|
}
|
|
1000
872
|
}
|
|
1001
873
|
),
|
|
1002
|
-
|
|
1003
|
-
|
|
874
|
+
r(ne.COLUMBUS_VIEW) && /* @__PURE__ */ l(
|
|
875
|
+
Te,
|
|
1004
876
|
{
|
|
1005
|
-
icon: /* @__PURE__ */ l(
|
|
1006
|
-
"div",
|
|
1007
|
-
{
|
|
1008
|
-
className: `mapViewIcon ${t === ne.COLUMBUS_VIEW ? "mapViewCurrent" : ""}`,
|
|
1009
|
-
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" }) })
|
|
1010
|
-
}
|
|
1011
|
-
),
|
|
877
|
+
icon: /* @__PURE__ */ l("div", { className: `mapViewIcon ${t === ne.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" }) }) }),
|
|
1012
878
|
onClick: () => {
|
|
1013
879
|
n.scene.morphToColumbusView(), i(ne.COLUMBUS_VIEW);
|
|
1014
880
|
}
|
|
@@ -1016,269 +882,154 @@ const rr = -1, or = (e) => {
|
|
|
1016
882
|
)
|
|
1017
883
|
] });
|
|
1018
884
|
};
|
|
1019
|
-
const
|
|
1020
|
-
(e) =>
|
|
885
|
+
const ur = Me(
|
|
886
|
+
(e) => Be({
|
|
1021
887
|
mapContainer: {
|
|
1022
888
|
width: "60px",
|
|
1023
889
|
height: "60px",
|
|
1024
890
|
border: `${e.palette.background.paper} 2px solid`
|
|
1025
891
|
}
|
|
1026
892
|
})
|
|
1027
|
-
),
|
|
1028
|
-
const n =
|
|
1029
|
-
|
|
893
|
+
), hr = (e) => {
|
|
894
|
+
const n = pe(), { baseMaps: t } = e, [i, a] = k(" "), [r, d] = k(), h = ur();
|
|
895
|
+
I(() => {
|
|
1030
896
|
const C = t == null ? void 0 : t.maps.find((S) => S.isCurrent);
|
|
1031
897
|
C && (d(C), a(C.title !== void 0 ? C.title : " "));
|
|
1032
898
|
}, [t]);
|
|
1033
899
|
const v = (C) => {
|
|
1034
|
-
var S,
|
|
900
|
+
var S, x;
|
|
1035
901
|
if (t) {
|
|
1036
902
|
(S = n.layersManager) == null || S.removeBaseMapLayers();
|
|
1037
|
-
const L = t.maps.find(
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
L && ((A = n.layersManager) == null || A.setBaseMapLayers(L), d(L), t.maps.forEach((R) => {
|
|
1041
|
-
R.isCurrent = L === R;
|
|
903
|
+
const L = t.maps.find((B) => B.id === C);
|
|
904
|
+
L && ((x = n.layersManager) == null || x.setBaseMapLayers(L), d(L), t.maps.forEach((B) => {
|
|
905
|
+
B.isCurrent = L === B;
|
|
1042
906
|
}));
|
|
1043
907
|
}
|
|
1044
908
|
};
|
|
1045
|
-
return /* @__PURE__ */
|
|
909
|
+
return /* @__PURE__ */ R(re, { children: [
|
|
1046
910
|
/* @__PURE__ */ l("label", { className: "mapLabel", children: i }),
|
|
1047
|
-
/* @__PURE__ */ l("ul", { className: "mapSelector", children: t == null ? void 0 : t.maps.map((C) => /* @__PURE__ */ l(
|
|
1048
|
-
"
|
|
911
|
+
/* @__PURE__ */ l("ul", { className: "mapSelector", children: t == null ? void 0 : t.maps.map((C) => /* @__PURE__ */ l("li", { className: `mapContainer ${h.mapContainer} ${C === r ? "mapContainerSelected" : ""}`, children: /* @__PURE__ */ l(
|
|
912
|
+
"img",
|
|
1049
913
|
{
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
},
|
|
1065
|
-
onClick: () => {
|
|
1066
|
-
v(C.id);
|
|
1067
|
-
}
|
|
1068
|
-
}
|
|
1069
|
-
)
|
|
1070
|
-
},
|
|
1071
|
-
C.id
|
|
1072
|
-
)) })
|
|
914
|
+
alt: "",
|
|
915
|
+
className: "mapContainerImg",
|
|
916
|
+
src: C.thumbnail,
|
|
917
|
+
onMouseOver: () => {
|
|
918
|
+
a(C.title);
|
|
919
|
+
},
|
|
920
|
+
onMouseOut: () => {
|
|
921
|
+
a((r == null ? void 0 : r.title) !== void 0 ? r.title : " ");
|
|
922
|
+
},
|
|
923
|
+
onClick: () => {
|
|
924
|
+
v(C.id);
|
|
925
|
+
}
|
|
926
|
+
}
|
|
927
|
+
) }, C.id)) })
|
|
1073
928
|
] });
|
|
1074
929
|
};
|
|
1075
|
-
const
|
|
1076
|
-
const [n, t] =
|
|
1077
|
-
return
|
|
1078
|
-
const S = (
|
|
1079
|
-
var
|
|
1080
|
-
const L =
|
|
1081
|
-
|
|
930
|
+
const Ue = "ic_settings_24px", pr = (e) => {
|
|
931
|
+
const [n, t] = k(!1), { sceneModes: i, baseMaps: a, locale: r } = e, d = ve(null), h = Q(r, "MAP_SETTINGS_DIALOG_TITLE") ?? "Map Settings", v = Q(r, "MAP_SETTINGS_SCENE_MODE_TITLE") ?? "Scene Mode", C = Q(r, "MAP_SETTINGS_BASE_MAP_TITLE") ?? "Base Map";
|
|
932
|
+
return I(() => {
|
|
933
|
+
const S = (x) => {
|
|
934
|
+
var U;
|
|
935
|
+
const L = x.target, B = Q(d, "current");
|
|
936
|
+
B && !B.contains(L) && L.id !== Ue && ((U = L.parentElement) == null ? void 0 : U.id) !== Ue && (document.removeEventListener("click", S, !1), t(!1));
|
|
1082
937
|
};
|
|
1083
938
|
return document.addEventListener("click", S, !1), () => {
|
|
1084
939
|
document.removeEventListener("click", S, !1);
|
|
1085
940
|
};
|
|
1086
|
-
}), /* @__PURE__ */
|
|
941
|
+
}), /* @__PURE__ */ R(re, { children: [
|
|
1087
942
|
/* @__PURE__ */ l(
|
|
1088
|
-
|
|
943
|
+
Te,
|
|
1089
944
|
{
|
|
1090
|
-
icon: /* @__PURE__ */ l("div", { className: "settingsIconContainer", children: /* @__PURE__ */ l(
|
|
1091
|
-
"svg",
|
|
1092
|
-
{
|
|
1093
|
-
width: "100%",
|
|
1094
|
-
height: "100%",
|
|
1095
|
-
viewBox: "0 0 24 24",
|
|
1096
|
-
id: $e,
|
|
1097
|
-
x: "288",
|
|
1098
|
-
y: "24",
|
|
1099
|
-
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" })
|
|
1100
|
-
}
|
|
1101
|
-
) }),
|
|
945
|
+
icon: /* @__PURE__ */ l("div", { className: "settingsIconContainer", children: /* @__PURE__ */ l("svg", { width: "100%", height: "100%", viewBox: "0 0 24 24", id: Ue, 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" }) }) }),
|
|
1102
946
|
onClick: () => {
|
|
1103
947
|
t(!n);
|
|
1104
948
|
}
|
|
1105
949
|
}
|
|
1106
950
|
),
|
|
1107
|
-
n && /* @__PURE__ */ l(
|
|
1108
|
-
|
|
951
|
+
n && /* @__PURE__ */ l("div", { id: "dialog-portal-example", className: "settingsDialogPortal", ref: d, children: /* @__PURE__ */ R(
|
|
952
|
+
fn,
|
|
1109
953
|
{
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
{
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
/* @__PURE__ */ l(
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
/* @__PURE__ */ l(ae, { className: "baseMapsContainer", children: a && /* @__PURE__ */ D(oe, { children: [
|
|
1126
|
-
/* @__PURE__ */ l("h4", { className: "sectionLabel", children: C }),
|
|
1127
|
-
/* @__PURE__ */ l(ar, { baseMaps: a })
|
|
1128
|
-
] }) })
|
|
1129
|
-
] })
|
|
1130
|
-
]
|
|
1131
|
-
}
|
|
1132
|
-
)
|
|
954
|
+
open: n,
|
|
955
|
+
onClosed: () => {
|
|
956
|
+
t(!1);
|
|
957
|
+
},
|
|
958
|
+
children: [
|
|
959
|
+
/* @__PURE__ */ l(yn, { children: h }),
|
|
960
|
+
/* @__PURE__ */ R(vn, { children: [
|
|
961
|
+
/* @__PURE__ */ l("h4", { className: "sectionLabel", children: v }),
|
|
962
|
+
/* @__PURE__ */ l(ae, { className: "mapScenesContainer", children: /* @__PURE__ */ l(dr, { sceneModes: i }) }),
|
|
963
|
+
/* @__PURE__ */ l(ae, { className: "baseMapsContainer", children: a && /* @__PURE__ */ R(re, { children: [
|
|
964
|
+
/* @__PURE__ */ l("h4", { className: "sectionLabel", children: C }),
|
|
965
|
+
/* @__PURE__ */ l(hr, { baseMaps: a })
|
|
966
|
+
] }) })
|
|
967
|
+
] })
|
|
968
|
+
]
|
|
1133
969
|
}
|
|
1134
|
-
)
|
|
970
|
+
) })
|
|
1135
971
|
] });
|
|
1136
972
|
};
|
|
1137
|
-
const
|
|
1138
|
-
"
|
|
1139
|
-
{
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
height: "24",
|
|
1143
|
-
width: "24",
|
|
1144
|
-
viewBox: "0 0 612 612",
|
|
1145
|
-
children: /* @__PURE__ */ D("g", { xmlns: "http://www.w3.org/2000/svg", children: [
|
|
1146
|
-
/* @__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" }),
|
|
1147
|
-
/* @__PURE__ */ l("circle", { cx: "270.1", cy: "56.3", r: "56.3" })
|
|
1148
|
-
] })
|
|
1149
|
-
}
|
|
1150
|
-
), dr = ({ onClick: e }) => /* @__PURE__ */ l(ae, { onClick: e, className: "mapLegendToggleContainer", children: /* @__PURE__ */ l(be, { icon: cr, className: "mapLegendIcon" }) }), ur = ({
|
|
1151
|
-
legend: { legendImg: e, legendDoc: n, layer: t },
|
|
1152
|
-
docText: i,
|
|
1153
|
-
imgText: a
|
|
1154
|
-
}) => {
|
|
1155
|
-
const o = ge(() => {
|
|
973
|
+
const mr = /* @__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__ */ R("g", { xmlns: "http://www.w3.org/2000/svg", children: [
|
|
974
|
+
/* @__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" }),
|
|
975
|
+
/* @__PURE__ */ l("circle", { cx: "270.1", cy: "56.3", r: "56.3" })
|
|
976
|
+
] }) }), gr = ({ onClick: e }) => /* @__PURE__ */ l(ae, { onClick: e, className: "mapLegendToggleContainer", children: /* @__PURE__ */ l(Te, { icon: mr, className: "mapLegendIcon" }) }), fr = ({ legend: { legendImg: e, legendDoc: n, layer: t }, docText: i, imgText: a }) => {
|
|
977
|
+
const r = me(() => {
|
|
1156
978
|
window.open(e, "_blank");
|
|
1157
979
|
}, [e]);
|
|
1158
|
-
|
|
980
|
+
me(() => {
|
|
1159
981
|
window.open(n, "_blank");
|
|
1160
982
|
}, [n]);
|
|
1161
|
-
const d =
|
|
1162
|
-
const C = /* @__PURE__ */ l(ae, { className: "layerNameContainer", children: /* @__PURE__ */ l(
|
|
1163
|
-
"h3",
|
|
1164
|
-
{
|
|
1165
|
-
style: { maxWidth: `${15}ch` },
|
|
1166
|
-
className: "layerName",
|
|
1167
|
-
children: t
|
|
1168
|
-
}
|
|
1169
|
-
) });
|
|
983
|
+
const d = me(() => {
|
|
984
|
+
const C = /* @__PURE__ */ l(ae, { className: "layerNameContainer", children: /* @__PURE__ */ l("h3", { style: { maxWidth: `${15}ch` }, className: "layerName", children: t }) });
|
|
1170
985
|
return (t ?? "").length > 15 ? /* @__PURE__ */ l(Ke, { content: t, children: C }) : C;
|
|
1171
|
-
}, [t]),
|
|
1172
|
-
typeof e == "string" && /* @__PURE__ */ l(
|
|
1173
|
-
|
|
1174
|
-
{
|
|
1175
|
-
className: "legendAction",
|
|
1176
|
-
href: e,
|
|
1177
|
-
target: "_blank",
|
|
1178
|
-
rel: "noreferrer",
|
|
1179
|
-
children: a
|
|
1180
|
-
}
|
|
1181
|
-
),
|
|
1182
|
-
typeof n == "string" && /* @__PURE__ */ l(
|
|
1183
|
-
"a",
|
|
1184
|
-
{
|
|
1185
|
-
className: "legendAction",
|
|
1186
|
-
href: n,
|
|
1187
|
-
target: "_blank",
|
|
1188
|
-
rel: "noreferrer",
|
|
1189
|
-
children: i
|
|
1190
|
-
}
|
|
1191
|
-
)
|
|
986
|
+
}, [t]), h = me(() => [
|
|
987
|
+
typeof e == "string" && /* @__PURE__ */ l("a", { className: "legendAction", href: e, target: "_blank", rel: "noreferrer", children: a }),
|
|
988
|
+
typeof n == "string" && /* @__PURE__ */ l("a", { className: "legendAction", href: n, target: "_blank", rel: "noreferrer", children: i })
|
|
1192
989
|
], [e, a, n, i]);
|
|
1193
|
-
return /* @__PURE__ */
|
|
990
|
+
return /* @__PURE__ */ R(ae, { className: "mapLegend", children: [
|
|
1194
991
|
d(),
|
|
1195
|
-
/* @__PURE__ */ l(
|
|
1196
|
-
|
|
1197
|
-
{
|
|
1198
|
-
alt: "Map Legend",
|
|
1199
|
-
className: "legendImg",
|
|
1200
|
-
src: e,
|
|
1201
|
-
onClick: o
|
|
1202
|
-
}
|
|
1203
|
-
),
|
|
1204
|
-
/* @__PURE__ */ l(ae, { className: "legendActionsContainer", children: u() })
|
|
992
|
+
/* @__PURE__ */ l("img", { alt: "Map Legend", className: "legendImg", src: e, onClick: r }),
|
|
993
|
+
/* @__PURE__ */ l(ae, { className: "legendActionsContainer", children: h() })
|
|
1205
994
|
] });
|
|
1206
|
-
},
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
}) => {
|
|
1211
|
-
const a = ge(() => /* @__PURE__ */ l(ae, { className: "noLegendsContainer", children: /* @__PURE__ */ l("h2", { className: "noLegendsMsg", children: i }) }), [i]), o = ge(() => e.length ? e.map((d, u) => /* @__PURE__ */ l(
|
|
1212
|
-
ur,
|
|
1213
|
-
{
|
|
1214
|
-
legend: d,
|
|
1215
|
-
docText: n,
|
|
1216
|
-
imgText: t
|
|
1217
|
-
},
|
|
1218
|
-
`${d.layer}_${u}`
|
|
1219
|
-
)) : a(), [e]);
|
|
1220
|
-
return /* @__PURE__ */ l(ae, { className: "mapLegendsList", children: o() });
|
|
1221
|
-
}, pr = ({
|
|
995
|
+
}, yr = ({ legends: e, actionsTexts: { docText: n, imgText: t }, noLegendsText: i }) => {
|
|
996
|
+
const a = me(() => /* @__PURE__ */ l(ae, { className: "noLegendsContainer", children: /* @__PURE__ */ l("h2", { className: "noLegendsMsg", children: i }) }), [i]), r = me(() => e.length ? e.map((d, h) => /* @__PURE__ */ l(fr, { legend: d, docText: n, imgText: t }, `${d.layer}_${h}`)) : a(), [e]);
|
|
997
|
+
return /* @__PURE__ */ l(ae, { className: "mapLegendsList", children: r() });
|
|
998
|
+
}, vr = ({
|
|
1222
999
|
isOpen: e,
|
|
1223
1000
|
toggleSidebar: n,
|
|
1224
1001
|
title: t = "Map Legends",
|
|
1225
1002
|
noLegendsText: i = "No legends to display...",
|
|
1226
1003
|
actionsTexts: a = { docText: "Docs", imgText: "View Image" },
|
|
1227
|
-
legends:
|
|
1228
|
-
}) => e ? /* @__PURE__ */
|
|
1229
|
-
|
|
1230
|
-
{
|
|
1231
|
-
className: "
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
children: [
|
|
1236
|
-
/* @__PURE__ */ l(fn, { className: "sidebarHeaderContainer", children: /* @__PURE__ */ l(yn, { className: "sidebarTitle", children: t }) }),
|
|
1237
|
-
/* @__PURE__ */ D(vn, { className: "sidebarContent", children: [
|
|
1238
|
-
/* @__PURE__ */ l(
|
|
1239
|
-
be,
|
|
1240
|
-
{
|
|
1241
|
-
onClick: n,
|
|
1242
|
-
className: "mapLegendCloseBtn",
|
|
1243
|
-
icon: { icon: "close", size: "small" }
|
|
1244
|
-
}
|
|
1245
|
-
),
|
|
1246
|
-
/* @__PURE__ */ l(
|
|
1247
|
-
hr,
|
|
1248
|
-
{
|
|
1249
|
-
noLegendsText: i,
|
|
1250
|
-
legends: o,
|
|
1251
|
-
actionsTexts: a
|
|
1252
|
-
}
|
|
1253
|
-
)
|
|
1254
|
-
] })
|
|
1255
|
-
]
|
|
1256
|
-
}
|
|
1257
|
-
) : null, Nt = (e, n, t) => {
|
|
1004
|
+
legends: r = []
|
|
1005
|
+
}) => e ? /* @__PURE__ */ R(En, { className: "mapLegendSidebarContainer", modal: !1, dismissible: !0, open: e, children: [
|
|
1006
|
+
/* @__PURE__ */ l(Cn, { className: "sidebarHeaderContainer", children: /* @__PURE__ */ l(wn, { className: "sidebarTitle", children: t }) }),
|
|
1007
|
+
/* @__PURE__ */ R(bn, { className: "sidebarContent", children: [
|
|
1008
|
+
/* @__PURE__ */ l(Te, { onClick: n, className: "mapLegendCloseBtn", icon: { icon: "close", size: "small" } }),
|
|
1009
|
+
/* @__PURE__ */ l(yr, { noLegendsText: i, legends: r, actionsTexts: a })
|
|
1010
|
+
] })
|
|
1011
|
+
] }) : null, zt = (e, n, t) => {
|
|
1258
1012
|
let i;
|
|
1259
1013
|
if (e.scene.mode !== ye.SCENE2D)
|
|
1260
|
-
i = e.scene.pickPosition(new
|
|
1014
|
+
i = e.scene.pickPosition(new _e(n, t));
|
|
1261
1015
|
else {
|
|
1262
1016
|
const a = e.scene.globe.ellipsoid;
|
|
1263
|
-
i = e.camera.pickEllipsoid(new
|
|
1017
|
+
i = e.camera.pickEllipsoid(new _e(n, t), a);
|
|
1264
1018
|
}
|
|
1265
|
-
return
|
|
1266
|
-
},
|
|
1267
|
-
const i =
|
|
1019
|
+
return Ne.fromCartesian(i);
|
|
1020
|
+
}, Er = (e, n, t) => {
|
|
1021
|
+
const i = zt(e, n, t);
|
|
1268
1022
|
return {
|
|
1269
1023
|
type: "Feature",
|
|
1270
1024
|
properties: {},
|
|
1271
1025
|
geometry: {
|
|
1272
1026
|
type: "Point",
|
|
1273
|
-
coordinates: [
|
|
1274
|
-
le.toDegrees(i.longitude),
|
|
1275
|
-
le.toDegrees(i.latitude)
|
|
1276
|
-
]
|
|
1027
|
+
coordinates: [le.toDegrees(i.longitude), le.toDegrees(i.latitude)]
|
|
1277
1028
|
}
|
|
1278
1029
|
};
|
|
1279
|
-
},
|
|
1030
|
+
}, Cr = (e, n, t) => {
|
|
1280
1031
|
try {
|
|
1281
|
-
const i =
|
|
1032
|
+
const i = zt(e, n, t);
|
|
1282
1033
|
return {
|
|
1283
1034
|
longitude: le.toDegrees(i.longitude),
|
|
1284
1035
|
latitude: le.toDegrees(i.latitude)
|
|
@@ -1286,149 +1037,112 @@ const cr = /* @__PURE__ */ l(
|
|
|
1286
1037
|
} catch {
|
|
1287
1038
|
return;
|
|
1288
1039
|
}
|
|
1289
|
-
},
|
|
1040
|
+
}, ue = document.createElement("canvas"), te = ue.getContext("2d"), pt = (e) => {
|
|
1290
1041
|
const i = (e == null ? void 0 : e.data) ?? [];
|
|
1291
1042
|
for (let a = 3; a < i.length; a += 4)
|
|
1292
1043
|
if (i[a] < 255)
|
|
1293
1044
|
return !0;
|
|
1294
1045
|
return !1;
|
|
1295
|
-
},
|
|
1046
|
+
}, wr = async (e, n) => (n && n.tileTransparencyCheckedCounter++, new Promise((t, i) => {
|
|
1296
1047
|
try {
|
|
1297
|
-
te == null || te.clearRect(0, 0,
|
|
1048
|
+
te == null || te.clearRect(0, 0, ue.width, ue.height);
|
|
1298
1049
|
let a;
|
|
1299
1050
|
if (e instanceof HTMLImageElement)
|
|
1300
1051
|
a = e;
|
|
1301
1052
|
else if (e instanceof ImageBitmap) {
|
|
1302
|
-
|
|
1303
|
-
const
|
|
1304
|
-
0,
|
|
1305
|
-
0,
|
|
1306
|
-
de.width,
|
|
1307
|
-
de.height
|
|
1308
|
-
), d = ht(o);
|
|
1053
|
+
ue.width = e.width, ue.height = e.height, te == null || te.drawImage(e, 0, 0);
|
|
1054
|
+
const r = te == null ? void 0 : te.getImageData(0, 0, ue.width, ue.height), d = pt(r);
|
|
1309
1055
|
d && n && (n.tileTransparencyCheckedCounter = n.maxTilesForTransparencyCheck), t(d);
|
|
1310
1056
|
return;
|
|
1311
1057
|
} else
|
|
1312
1058
|
a = new Image(), a.crossOrigin = "anonymous", a.src = e;
|
|
1313
1059
|
a.onload = () => {
|
|
1314
|
-
|
|
1315
|
-
const
|
|
1316
|
-
|
|
1317
|
-
0,
|
|
1318
|
-
de.width,
|
|
1319
|
-
de.height
|
|
1320
|
-
);
|
|
1321
|
-
ht(o) ? (n && (n.tileTransparencyCheckedCounter = n.maxTilesForTransparencyCheck), t(!0)) : t(!1);
|
|
1060
|
+
ue.width = a.width, ue.height = a.height, te == null || te.drawImage(a, 0, 0);
|
|
1061
|
+
const r = te == null ? void 0 : te.getImageData(0, 0, ue.width, ue.height);
|
|
1062
|
+
pt(r) ? (n && (n.tileTransparencyCheckedCounter = n.maxTilesForTransparencyCheck), t(!0)) : t(!1);
|
|
1322
1063
|
};
|
|
1323
1064
|
} catch (a) {
|
|
1324
1065
|
console.error("Could not determine image transparency. Error => ", a), i(a);
|
|
1325
1066
|
}
|
|
1326
|
-
})),
|
|
1327
|
-
const { west: t, east: i, north: a, south:
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
south: C
|
|
1332
|
-
} = n;
|
|
1333
|
-
return t >= d && i <= u && a <= v && o >= C;
|
|
1334
|
-
}, Ne = 3, De = "hasTransparency";
|
|
1335
|
-
function tt(e, n, t, i, a) {
|
|
1067
|
+
})), ke = (e, n) => {
|
|
1068
|
+
const { west: t, east: i, north: a, south: r } = e, { west: d, east: h, north: v, south: C } = n;
|
|
1069
|
+
return t >= d && i <= h && a <= v && r >= C;
|
|
1070
|
+
}, Fe = 3, Re = "hasTransparency";
|
|
1071
|
+
function nt(e, n, t, i, a) {
|
|
1336
1072
|
return setTimeout(() => {
|
|
1337
|
-
var
|
|
1338
|
-
const
|
|
1073
|
+
var h;
|
|
1074
|
+
const r = (h = this.layerListInstance.find(
|
|
1339
1075
|
/* eslint-disable */
|
|
1340
1076
|
(v) => {
|
|
1341
1077
|
var C, S;
|
|
1342
1078
|
return ((C = v._imageryProvider._resource) == null ? void 0 : C._url) === ((S = this._resource) == null ? void 0 : S._url);
|
|
1343
1079
|
}
|
|
1344
1080
|
/* eslint-enable */
|
|
1345
|
-
)) == null ? void 0 :
|
|
1346
|
-
this.tileTransparencyCheckedCounter <
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
}
|
|
1355
|
-
);
|
|
1081
|
+
)) == null ? void 0 : h.meta, d = Q(r, Re) === !0;
|
|
1082
|
+
this.tileTransparencyCheckedCounter < Fe && !d && wr(a == null ? void 0 : a.url, this).then((v) => {
|
|
1083
|
+
var C;
|
|
1084
|
+
(C = this.mapViewer.layersManager) == null || C.addMetaToLayer(
|
|
1085
|
+
{ [Re]: v },
|
|
1086
|
+
/* eslint-disable */
|
|
1087
|
+
(S) => S._imageryProvider._resource._url === this._resource._url
|
|
1088
|
+
);
|
|
1089
|
+
});
|
|
1356
1090
|
}, 0), e(n, t, i, a);
|
|
1357
1091
|
}
|
|
1358
|
-
class
|
|
1092
|
+
class $t extends Je {
|
|
1359
1093
|
constructor(t, i) {
|
|
1360
1094
|
var a;
|
|
1361
1095
|
super(t);
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1096
|
+
X(this, "layerListInstance");
|
|
1097
|
+
X(this, "mapViewer");
|
|
1098
|
+
X(this, "maxTilesForTransparencyCheck", Fe);
|
|
1099
|
+
X(this, "tileTransparencyCheckedCounter", 0);
|
|
1366
1100
|
this.layerListInstance = (a = i.layersManager) == null ? void 0 : a.layerList, this.mapViewer = i;
|
|
1367
1101
|
}
|
|
1368
|
-
requestImage(t, i, a,
|
|
1369
|
-
return
|
|
1370
|
-
this,
|
|
1371
|
-
super.requestImage.bind(this),
|
|
1372
|
-
t,
|
|
1373
|
-
i,
|
|
1374
|
-
a,
|
|
1375
|
-
o
|
|
1376
|
-
);
|
|
1102
|
+
requestImage(t, i, a, r) {
|
|
1103
|
+
return nt.call(this, super.requestImage.bind(this), t, i, a, r);
|
|
1377
1104
|
}
|
|
1378
1105
|
}
|
|
1379
|
-
class
|
|
1106
|
+
class Ut extends Qe {
|
|
1380
1107
|
constructor(t, i) {
|
|
1381
1108
|
var a;
|
|
1382
1109
|
super(t);
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1110
|
+
X(this, "layerListInstance");
|
|
1111
|
+
X(this, "mapViewer");
|
|
1112
|
+
X(this, "maxTilesForTransparencyCheck", Fe);
|
|
1113
|
+
X(this, "tileTransparencyCheckedCounter", 0);
|
|
1387
1114
|
this.layerListInstance = (a = i.layersManager) == null ? void 0 : a.layerList, this.mapViewer = i;
|
|
1388
1115
|
}
|
|
1389
|
-
requestImage(t, i, a,
|
|
1390
|
-
return
|
|
1391
|
-
this,
|
|
1392
|
-
super.requestImage.bind(this),
|
|
1393
|
-
t,
|
|
1394
|
-
i,
|
|
1395
|
-
a,
|
|
1396
|
-
o
|
|
1397
|
-
);
|
|
1116
|
+
requestImage(t, i, a, r) {
|
|
1117
|
+
return nt.call(this, super.requestImage.bind(this), t, i, a, r);
|
|
1398
1118
|
}
|
|
1399
1119
|
}
|
|
1400
|
-
class
|
|
1120
|
+
class Wt extends et {
|
|
1401
1121
|
constructor(t, i) {
|
|
1402
1122
|
var a;
|
|
1403
1123
|
super(t);
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1124
|
+
X(this, "layerListInstance");
|
|
1125
|
+
X(this, "mapViewer");
|
|
1126
|
+
X(this, "maxTilesForTransparencyCheck", Fe);
|
|
1127
|
+
X(this, "tileTransparencyCheckedCounter", 0);
|
|
1408
1128
|
this.layerListInstance = (a = i.layersManager) == null ? void 0 : a.layerList, this.mapViewer = i;
|
|
1409
1129
|
}
|
|
1410
|
-
requestImage(t, i, a,
|
|
1411
|
-
return
|
|
1412
|
-
this,
|
|
1413
|
-
super.requestImage.bind(this),
|
|
1414
|
-
t,
|
|
1415
|
-
i,
|
|
1416
|
-
a,
|
|
1417
|
-
o
|
|
1418
|
-
);
|
|
1130
|
+
requestImage(t, i, a, r) {
|
|
1131
|
+
return nt.call(this, super.requestImage.bind(this), t, i, a, r);
|
|
1419
1132
|
}
|
|
1420
1133
|
}
|
|
1421
|
-
const
|
|
1422
|
-
class
|
|
1423
|
-
constructor(n, t, i) {
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1134
|
+
const br = 1, Tr = -1, mt = "TRANSPARENT_BASE_LAYER";
|
|
1135
|
+
class _r {
|
|
1136
|
+
constructor(n, t, i, a) {
|
|
1137
|
+
X(this, "mapViewer");
|
|
1138
|
+
X(this, "legendsList");
|
|
1139
|
+
X(this, "layerUpdated");
|
|
1140
|
+
X(this, "layers");
|
|
1141
|
+
X(this, "legendsExtractor");
|
|
1142
|
+
X(this, "layerManagerFootprintMetaFieldPath");
|
|
1143
|
+
this.mapViewer = n, this.layers = this.mapViewer.imageryLayers._layers, this.legendsList = [], this.legendsExtractor = t, this.layerUpdated = new Zn(), this.layerManagerFootprintMetaFieldPath = a, i && this.layerUpdated.addEventListener(i, this), this.mapViewer.shouldOptimizedTileRequests && (this.layerUpdated.addEventListener((r) => {
|
|
1144
|
+
const d = Object.keys(r);
|
|
1145
|
+
d.length === 1 && d[0] === Re && (this.markRelevantLayersForExtent(), this.hideNonRelevantLayers());
|
|
1432
1146
|
}), this.mapViewer.imageryLayers.layerRemoved.addEventListener(() => {
|
|
1433
1147
|
this.setLegends(), this.markRelevantLayersForExtent(), this.hideNonRelevantLayers();
|
|
1434
1148
|
}), this.mapViewer.imageryLayers.layerMoved.addEventListener(() => {
|
|
@@ -1442,44 +1156,35 @@ class Er {
|
|
|
1442
1156
|
get layerList() {
|
|
1443
1157
|
return this.layers;
|
|
1444
1158
|
}
|
|
1445
|
-
|
|
1159
|
+
// It's a general place to extend layer's data. Should be done when all providers(different types) are initialized
|
|
1446
1160
|
addMetaToLayer(n, t) {
|
|
1447
|
-
const i = this.layers.
|
|
1448
|
-
|
|
1161
|
+
const i = this.layers.map((a) => a.imageryProvider.readyPromise);
|
|
1162
|
+
Promise.all(i).then((a) => {
|
|
1163
|
+
const r = this.layers.find(t);
|
|
1164
|
+
r && (r.meta = { ...r.meta ?? {}, ...n }, this.setLegends(), this.layerUpdated.raiseEvent(n));
|
|
1165
|
+
});
|
|
1449
1166
|
}
|
|
1450
|
-
/* eslint-enable */
|
|
1451
1167
|
setBaseMapLayers(n) {
|
|
1452
|
-
n.baseRasteLayers.sort(
|
|
1453
|
-
(i, a) => i.zIndex - a.zIndex
|
|
1454
|
-
).forEach((i, a) => {
|
|
1168
|
+
n.baseRasteLayers.sort((i, a) => i.zIndex - a.zIndex).forEach((i, a) => {
|
|
1455
1169
|
this.addRasterLayer(i, a, n.id);
|
|
1456
|
-
}), this.mapViewer.shouldOptimizedTileRequests && (this.removeLayer(
|
|
1170
|
+
}), this.mapViewer.shouldOptimizedTileRequests && (this.removeLayer(mt), this.addTransparentImageryProvider());
|
|
1457
1171
|
}
|
|
1458
1172
|
addRasterLayer(n, t, i) {
|
|
1459
1173
|
let a;
|
|
1460
1174
|
switch (n.type) {
|
|
1461
1175
|
case "XYZ_LAYER": {
|
|
1462
|
-
const
|
|
1463
|
-
a = this.mapViewer.imageryLayers.addImageryProvider(
|
|
1464
|
-
d,
|
|
1465
|
-
t
|
|
1466
|
-
);
|
|
1176
|
+
const r = n.options, d = this.mapViewer.shouldOptimizedTileRequests ? new $t(r, this.mapViewer) : new Je(r);
|
|
1177
|
+
a = this.mapViewer.imageryLayers.addImageryProvider(d, t);
|
|
1467
1178
|
break;
|
|
1468
1179
|
}
|
|
1469
1180
|
case "WMS_LAYER": {
|
|
1470
|
-
const
|
|
1471
|
-
a = this.mapViewer.imageryLayers.addImageryProvider(
|
|
1472
|
-
d,
|
|
1473
|
-
t
|
|
1474
|
-
);
|
|
1181
|
+
const r = n.options, d = this.mapViewer.shouldOptimizedTileRequests ? new Ut(r, this.mapViewer) : new Qe(r);
|
|
1182
|
+
a = this.mapViewer.imageryLayers.addImageryProvider(d, t);
|
|
1475
1183
|
break;
|
|
1476
1184
|
}
|
|
1477
1185
|
case "WMTS_LAYER": {
|
|
1478
|
-
const
|
|
1479
|
-
a = this.mapViewer.imageryLayers.addImageryProvider(
|
|
1480
|
-
d,
|
|
1481
|
-
t
|
|
1482
|
-
);
|
|
1186
|
+
const r = n.options, d = this.mapViewer.shouldOptimizedTileRequests ? new Wt(r, this.mapViewer) : new et(r);
|
|
1187
|
+
a = this.mapViewer.imageryLayers.addImageryProvider(d, t);
|
|
1483
1188
|
break;
|
|
1484
1189
|
}
|
|
1485
1190
|
}
|
|
@@ -1506,31 +1211,23 @@ class Er {
|
|
|
1506
1211
|
raise(n, t = 1) {
|
|
1507
1212
|
const i = this.findLayerById(n), a = (i == null ? void 0 : i.meta).zIndex;
|
|
1508
1213
|
if (i)
|
|
1509
|
-
for (let
|
|
1214
|
+
for (let r = 0; r < t; r++)
|
|
1510
1215
|
this.mapViewer.imageryLayers.raise(i);
|
|
1511
1216
|
this.updateLayersOrder(n, a, a + t);
|
|
1512
1217
|
}
|
|
1513
1218
|
lower(n, t = 1) {
|
|
1514
|
-
const i = this.findLayerById(n), a = (i == null ? void 0 : i.meta).zIndex,
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
if (d - t <= o && (t = d - o), i)
|
|
1518
|
-
for (let u = 0; u < t; u++)
|
|
1219
|
+
const i = this.findLayerById(n), a = (i == null ? void 0 : i.meta).zIndex, r = this.getBaseLayersCount(), d = this.mapViewer.imageryLayers.indexOf(i);
|
|
1220
|
+
if (d - t <= r && (t = d - r), i)
|
|
1221
|
+
for (let h = 0; h < t; h++)
|
|
1519
1222
|
this.mapViewer.imageryLayers.lower(i);
|
|
1520
1223
|
this.updateLayersOrder(n, a, a - t);
|
|
1521
1224
|
}
|
|
1522
1225
|
raiseToTop(n) {
|
|
1523
1226
|
const t = this.findLayerById(n), i = (t == null ? void 0 : t.meta).zIndex;
|
|
1524
|
-
t && this.mapViewer.imageryLayers.raiseToTop(t), this.updateLayersOrder(
|
|
1525
|
-
n,
|
|
1526
|
-
i,
|
|
1527
|
-
this.mapViewer.imageryLayers.length - this.getBaseLayersCount() - 1
|
|
1528
|
-
);
|
|
1227
|
+
t && this.mapViewer.imageryLayers.raiseToTop(t), this.updateLayersOrder(n, i, this.mapViewer.imageryLayers.length - this.getBaseLayersCount() - 1);
|
|
1529
1228
|
}
|
|
1530
1229
|
lowerToBottom(n) {
|
|
1531
|
-
const t = this.findLayerById(n), i = this.getBaseLayersCount(), a = this.mapViewer.imageryLayers.indexOf(
|
|
1532
|
-
t
|
|
1533
|
-
);
|
|
1230
|
+
const t = this.findLayerById(n), i = this.getBaseLayersCount(), a = this.mapViewer.imageryLayers.indexOf(t);
|
|
1534
1231
|
this.lower(n, a - i);
|
|
1535
1232
|
}
|
|
1536
1233
|
length() {
|
|
@@ -1547,43 +1244,46 @@ class Er {
|
|
|
1547
1244
|
});
|
|
1548
1245
|
}
|
|
1549
1246
|
get(n) {
|
|
1550
|
-
const t = this.findLayerById(n), i = this.mapViewer.imageryLayers.indexOf(
|
|
1551
|
-
t
|
|
1552
|
-
);
|
|
1247
|
+
const t = this.findLayerById(n), i = this.mapViewer.imageryLayers.indexOf(t);
|
|
1553
1248
|
return i ? this.mapViewer.imageryLayers.get(i) : void 0;
|
|
1554
1249
|
}
|
|
1250
|
+
pickImageryLayers(n) {
|
|
1251
|
+
var a;
|
|
1252
|
+
const t = this.mapViewer.camera.getPickRay(n);
|
|
1253
|
+
let i;
|
|
1254
|
+
return t && (i = (a = this.mapViewer.imageryLayers.pickImageryLayers(t, this.mapViewer.scene)) == null ? void 0 : a.filter((r) => !Q(r.meta, "parentBasetMapId"))), i;
|
|
1255
|
+
}
|
|
1555
1256
|
findLayerByPOI(n, t) {
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1257
|
+
if (this.layerManagerFootprintMetaFieldPath) {
|
|
1258
|
+
const i = Er(this.mapViewer, n, t);
|
|
1259
|
+
return this.layers.filter((d) => !Q(d.meta, "parentBasetMapId")).filter((d) => {
|
|
1260
|
+
const h = Q(d.meta, this.layerManagerFootprintMetaFieldPath);
|
|
1261
|
+
return h !== void 0 ? fi(i.geometry, {
|
|
1262
|
+
type: "Feature",
|
|
1263
|
+
properties: {},
|
|
1264
|
+
geometry: h
|
|
1265
|
+
}) && d.show : (console.warn("[LayerManager] [findLayerByPOI] CesiumImageryLayer has no defined footprint", d.meta), !1);
|
|
1266
|
+
}).sort((d, h) => {
|
|
1267
|
+
var v, C;
|
|
1268
|
+
return ((v = h.meta) == null ? void 0 : v.zIndex) - ((C = d.meta) == null ? void 0 : C.zIndex);
|
|
1269
|
+
});
|
|
1270
|
+
} else
|
|
1271
|
+
return console.warn("[LayerManager] [findLayerByPOI]layerManagerFootprintMetaFieldPath is not defined"), [];
|
|
1568
1272
|
}
|
|
1569
1273
|
addTransparentImageryProvider() {
|
|
1570
1274
|
const n = this.mapViewer.imageryLayers.addImageryProvider(
|
|
1571
|
-
new
|
|
1275
|
+
new Jn({
|
|
1572
1276
|
url: "./assets/img/transparent-tile.png",
|
|
1573
1277
|
/* eslint-disable @typescript-eslint/no-magic-numbers */
|
|
1574
|
-
rectangle: new
|
|
1575
|
-
-3.141592653589793,
|
|
1576
|
-
-1.5707963267948966,
|
|
1577
|
-
3.141592653589793,
|
|
1578
|
-
1.5707963267948966
|
|
1579
|
-
)
|
|
1278
|
+
rectangle: new we(-3.141592653589793, -1.5707963267948966, 3.141592653589793, 1.5707963267948966)
|
|
1580
1279
|
/* eslint-enable @typescript-eslint/no-magic-numbers */
|
|
1581
1280
|
}),
|
|
1582
1281
|
0
|
|
1583
1282
|
);
|
|
1584
1283
|
n.meta = {
|
|
1585
|
-
id:
|
|
1586
|
-
skipRelevancyCheck: !0
|
|
1284
|
+
id: mt,
|
|
1285
|
+
skipRelevancyCheck: !0,
|
|
1286
|
+
parentBasetMapId: "TRANSPARENT_LAYER"
|
|
1587
1287
|
};
|
|
1588
1288
|
}
|
|
1589
1289
|
setLegends() {
|
|
@@ -1596,12 +1296,12 @@ class Er {
|
|
|
1596
1296
|
return this.layers.find((t) => t.meta !== void 0 ? t.meta.id === n : !1);
|
|
1597
1297
|
}
|
|
1598
1298
|
updateLayersOrder(n, t, i) {
|
|
1599
|
-
const a = t > i ?
|
|
1600
|
-
this.layers.forEach((
|
|
1299
|
+
const a = t > i ? br : Tr, r = t < i ? t : i, d = t < i ? i : t;
|
|
1300
|
+
this.layers.forEach((h) => {
|
|
1601
1301
|
var C;
|
|
1602
|
-
if (!Q(
|
|
1603
|
-
const S = (C =
|
|
1604
|
-
|
|
1302
|
+
if (!Q(h.meta, "parentBasetMapId")) {
|
|
1303
|
+
const S = (C = h.meta) == null ? void 0 : C.zIndex;
|
|
1304
|
+
h.meta.zIndex = S >= r && S <= d && S !== t ? S + a : S === t ? i : S;
|
|
1605
1305
|
}
|
|
1606
1306
|
});
|
|
1607
1307
|
}
|
|
@@ -1615,45 +1315,45 @@ class Er {
|
|
|
1615
1315
|
try {
|
|
1616
1316
|
const i = this.mapViewer.camera.computeViewRectangle();
|
|
1617
1317
|
for (let a = this.layers.length - 1; a >= 0; a--) {
|
|
1618
|
-
const
|
|
1619
|
-
for (let
|
|
1620
|
-
if (((n =
|
|
1621
|
-
|
|
1318
|
+
const r = this.layers[a], d = !qe(i) && !qe(r.rectangle) && we.intersection(i, r.rectangle);
|
|
1319
|
+
for (let h = this.layers.length - 1; h >= a; h--) {
|
|
1320
|
+
if (((n = r.meta) == null ? void 0 : n.skipRelevancyCheck) === !0) {
|
|
1321
|
+
r.meta = { ...r.meta, relevantToExtent: !0 };
|
|
1622
1322
|
continue;
|
|
1623
1323
|
}
|
|
1624
|
-
const v = this.layers[
|
|
1625
|
-
if (
|
|
1626
|
-
if (d instanceof
|
|
1627
|
-
if (
|
|
1628
|
-
if (
|
|
1629
|
-
|
|
1630
|
-
...
|
|
1324
|
+
const v = this.layers[h], C = ((t = v.meta) == null ? void 0 : t[Re]) === !0;
|
|
1325
|
+
if (r !== v)
|
|
1326
|
+
if (d instanceof we) {
|
|
1327
|
+
if (ke(i, r.rectangle))
|
|
1328
|
+
if (ke(i, v.rectangle) && !C) {
|
|
1329
|
+
r.meta = {
|
|
1330
|
+
...r.meta ?? {},
|
|
1631
1331
|
relevantToExtent: !1
|
|
1632
1332
|
};
|
|
1633
1333
|
break;
|
|
1634
1334
|
} else
|
|
1635
|
-
|
|
1636
|
-
...
|
|
1335
|
+
r.meta = {
|
|
1336
|
+
...r.meta ?? {},
|
|
1637
1337
|
relevantToExtent: !0
|
|
1638
1338
|
};
|
|
1639
|
-
if (
|
|
1640
|
-
|
|
1339
|
+
if (ke(i, v.rectangle) && !C) {
|
|
1340
|
+
r.meta = { ...r.meta ?? {}, relevantToExtent: !1 };
|
|
1641
1341
|
break;
|
|
1642
1342
|
}
|
|
1643
|
-
if (
|
|
1644
|
-
if (
|
|
1645
|
-
...
|
|
1343
|
+
if (ke(r.rectangle, v.rectangle)) {
|
|
1344
|
+
if (r.meta = {
|
|
1345
|
+
...r.meta ?? {},
|
|
1646
1346
|
relevantToExtent: C
|
|
1647
1347
|
}, !C)
|
|
1648
1348
|
break;
|
|
1649
1349
|
} else
|
|
1650
|
-
|
|
1350
|
+
r.meta = { ...r.meta ?? {}, relevantToExtent: !0 };
|
|
1651
1351
|
} else
|
|
1652
|
-
|
|
1352
|
+
r.meta = { ...r.meta ?? {}, relevantToExtent: !1 };
|
|
1653
1353
|
else
|
|
1654
|
-
a === this.layers.length - 1 && (
|
|
1655
|
-
...
|
|
1656
|
-
relevantToExtent: d instanceof
|
|
1354
|
+
a === this.layers.length - 1 && (r.meta = {
|
|
1355
|
+
...r.meta ?? {},
|
|
1356
|
+
relevantToExtent: d instanceof we
|
|
1657
1357
|
});
|
|
1658
1358
|
}
|
|
1659
1359
|
}
|
|
@@ -1662,12 +1362,12 @@ class Er {
|
|
|
1662
1362
|
}
|
|
1663
1363
|
}
|
|
1664
1364
|
}
|
|
1665
|
-
const
|
|
1666
|
-
class
|
|
1365
|
+
const gt = 212, ft = 260, Sr = 0;
|
|
1366
|
+
class jo extends Qn {
|
|
1667
1367
|
constructor(t, i) {
|
|
1668
1368
|
super(t, i);
|
|
1669
|
-
|
|
1670
|
-
|
|
1369
|
+
X(this, "layersManager");
|
|
1370
|
+
X(this, "useOptimizedTileRequests");
|
|
1671
1371
|
}
|
|
1672
1372
|
get shouldOptimizedTileRequests() {
|
|
1673
1373
|
return this.useOptimizedTileRequests ?? !1;
|
|
@@ -1676,16 +1376,14 @@ class Vo extends qn {
|
|
|
1676
1376
|
this.useOptimizedTileRequests = t;
|
|
1677
1377
|
}
|
|
1678
1378
|
}
|
|
1679
|
-
const
|
|
1680
|
-
const e = Pe(
|
|
1379
|
+
const jt = Le(null), Lr = jt.Provider, pe = () => {
|
|
1380
|
+
const e = Pe(jt);
|
|
1681
1381
|
if (e === null)
|
|
1682
1382
|
throw new Error("map context is null, please check the provider");
|
|
1683
1383
|
return e;
|
|
1684
|
-
},
|
|
1685
|
-
var
|
|
1686
|
-
const n =
|
|
1687
|
-
!1
|
|
1688
|
-
), [c, g] = I(), h = {
|
|
1384
|
+
}, Ko = (e) => {
|
|
1385
|
+
var T, b, w, _, P, H, j, O;
|
|
1386
|
+
const n = ve(null), [t, i] = k(), [a, r] = k(), [d, h] = k(), [v, C] = k(), [S, x] = k(), [L, B] = k(), U = ve(), [K, J] = k(), [G, Y] = k([]), [z, V] = k(), [W, D] = k(!1), $ = ve(), [q, o] = k(void 0), [s, f] = k(!1), [c, g] = k(), u = {
|
|
1689
1387
|
fullscreenButton: !0,
|
|
1690
1388
|
timeline: !1,
|
|
1691
1389
|
animation: !1,
|
|
@@ -1695,68 +1393,56 @@ const Vt = Se(null), wr = Vt.Provider, br = 1e4, he = () => {
|
|
|
1695
1393
|
homeButton: !1,
|
|
1696
1394
|
sceneModePicker: !1,
|
|
1697
1395
|
...e
|
|
1698
|
-
}, y = (M,
|
|
1699
|
-
const
|
|
1396
|
+
}, y = (M, A, F, de, oe) => {
|
|
1397
|
+
const ee = t.container, se = ee.clientWidth, Se = ee.clientHeight, Ae = de + oe;
|
|
1700
1398
|
return {
|
|
1701
|
-
left: `${
|
|
1702
|
-
top: `${
|
|
1399
|
+
left: `${se - M < F ? M - (F - (se - M)) : M}px`,
|
|
1400
|
+
top: `${Se - A < Ae ? A - (Ae - (Se - A)) : A}px`
|
|
1703
1401
|
};
|
|
1704
|
-
}
|
|
1705
|
-
|
|
1402
|
+
}, m = me((M) => {
|
|
1403
|
+
if (n.current !== null) {
|
|
1404
|
+
const A = n.current.cesiumElement, F = { x: M.offsetX, y: M.offsetY };
|
|
1405
|
+
D(!1), o(F), g(Cr(A, F.x, F.y)), D(!0), $.current = M;
|
|
1406
|
+
}
|
|
1407
|
+
}, [n]);
|
|
1408
|
+
I(() => {
|
|
1706
1409
|
var M;
|
|
1707
1410
|
if (n.current !== null) {
|
|
1708
|
-
const
|
|
1709
|
-
e.imageryContextMenu &&
|
|
1710
|
-
(B) => {
|
|
1711
|
-
const G = B.position;
|
|
1712
|
-
$(!1), r(G), g(
|
|
1713
|
-
gr(x, G.x, G.y)
|
|
1714
|
-
), $(!0);
|
|
1715
|
-
},
|
|
1716
|
-
Pt.RIGHT_CLICK
|
|
1717
|
-
);
|
|
1411
|
+
const A = n.current.cesiumElement;
|
|
1412
|
+
e.imageryContextMenu && (A.scene.canvas.removeEventListener("contextmenu", m), A.scene.canvas.addEventListener("contextmenu", m));
|
|
1718
1413
|
}
|
|
1719
1414
|
i((M = n.current) == null ? void 0 : M.cesiumElement);
|
|
1720
|
-
}, [n, e.imageryContextMenu]),
|
|
1415
|
+
}, [n, e.imageryContextMenu]), I(() => {
|
|
1721
1416
|
var M;
|
|
1722
|
-
t && (t.shouldOptimizedTileRequests = e.useOptimizedTileRequests ?? !1, t.layersManager = new
|
|
1417
|
+
t && (t.shouldOptimizedTileRequests = e.useOptimizedTileRequests ?? !1, t.layersManager = new _r(
|
|
1723
1418
|
t,
|
|
1724
1419
|
(M = e.legends) == null ? void 0 : M.mapLegendsExtractor,
|
|
1725
1420
|
() => {
|
|
1726
|
-
var
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
}
|
|
1421
|
+
var A;
|
|
1422
|
+
Y((A = t.layersManager) == null ? void 0 : A.legendsList);
|
|
1423
|
+
},
|
|
1424
|
+
e.layerManagerFootprintMetaFieldPath
|
|
1731
1425
|
));
|
|
1732
|
-
}, [t]),
|
|
1426
|
+
}, [t]), I(() => {
|
|
1733
1427
|
t && (t.shouldOptimizedTileRequests = e.useOptimizedTileRequests ?? !1);
|
|
1734
|
-
}, [e.useOptimizedTileRequests, t]),
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
M && t && ((B = t.layersManager) == null || B.setBaseMapLayers(M));
|
|
1749
|
-
}, [e.baseMaps, t]), k(() => {
|
|
1750
|
-
o(e.projection ?? ue.WGS84);
|
|
1751
|
-
}, [e.projection]), k(() => {
|
|
1752
|
-
R(e.locale);
|
|
1753
|
-
}, [e.locale]), k(() => {
|
|
1754
|
-
u(e.showMousePosition ?? !0);
|
|
1755
|
-
}, [e.showMousePosition]), k(() => {
|
|
1428
|
+
}, [e.useOptimizedTileRequests, t]), I(() => {
|
|
1429
|
+
J(e.sceneModes ?? [ne.SCENE2D, ne.SCENE3D, ne.COLUMBUS_VIEW]);
|
|
1430
|
+
}, [e.sceneModes]), I(() => {
|
|
1431
|
+
var A, F;
|
|
1432
|
+
V(e.baseMaps);
|
|
1433
|
+
const M = (A = e.baseMaps) == null ? void 0 : A.maps.find((de) => de.isCurrent);
|
|
1434
|
+
M && t && ((F = t.layersManager) == null || F.setBaseMapLayers(M));
|
|
1435
|
+
}, [e.baseMaps, t]), I(() => {
|
|
1436
|
+
r(e.projection ?? he.WGS84);
|
|
1437
|
+
}, [e.projection]), I(() => {
|
|
1438
|
+
B(e.locale);
|
|
1439
|
+
}, [e.locale]), I(() => {
|
|
1440
|
+
h(e.showMousePosition ?? !0);
|
|
1441
|
+
}, [e.showMousePosition]), I(() => {
|
|
1756
1442
|
C(e.showZoomLevel ?? !0);
|
|
1757
|
-
}, [e.showZoomLevel]),
|
|
1758
|
-
|
|
1759
|
-
}, [e.showScale]),
|
|
1443
|
+
}, [e.showZoomLevel]), I(() => {
|
|
1444
|
+
x(e.showScale ?? !0);
|
|
1445
|
+
}, [e.showScale]), I(() => {
|
|
1760
1446
|
const M = () => {
|
|
1761
1447
|
if (t === void 0)
|
|
1762
1448
|
return {
|
|
@@ -1764,135 +1450,97 @@ const Vt = Se(null), wr = Vt.Provider, br = 1e4, he = () => {
|
|
|
1764
1450
|
latitude: 0,
|
|
1765
1451
|
height: 0
|
|
1766
1452
|
};
|
|
1767
|
-
const
|
|
1768
|
-
const
|
|
1453
|
+
const A = () => {
|
|
1454
|
+
const F = t.camera.positionCartographic;
|
|
1769
1455
|
return {
|
|
1770
|
-
longitude:
|
|
1771
|
-
latitude:
|
|
1772
|
-
height:
|
|
1456
|
+
longitude: xe(F.longitude),
|
|
1457
|
+
latitude: xe(F.latitude),
|
|
1458
|
+
height: F.height
|
|
1773
1459
|
};
|
|
1774
1460
|
};
|
|
1775
1461
|
if (t.scene.mode === ye.SCENE3D) {
|
|
1776
|
-
const
|
|
1462
|
+
const F = new _e(
|
|
1777
1463
|
// eslint-disable-next-line @typescript-eslint/no-magic-numbers
|
|
1778
1464
|
t.container.clientWidth / 2,
|
|
1779
1465
|
// eslint-disable-next-line @typescript-eslint/no-magic-numbers
|
|
1780
1466
|
t.container.clientHeight / 2
|
|
1781
|
-
),
|
|
1782
|
-
pe,
|
|
1783
|
-
t.scene
|
|
1784
|
-
), ee = t.scene.globe.ellipsoid.cartesianToCartographic(
|
|
1785
|
-
ie
|
|
1786
|
-
);
|
|
1467
|
+
), de = t.scene.camera.getPickRay(F), oe = t.scene.globe.pick(de, t.scene), ee = t.scene.globe.ellipsoid.cartesianToCartographic(oe);
|
|
1787
1468
|
return ee !== void 0 ? {
|
|
1788
|
-
longitude:
|
|
1789
|
-
latitude:
|
|
1469
|
+
longitude: xe(ee.longitude),
|
|
1470
|
+
latitude: xe(ee.latitude),
|
|
1790
1471
|
height: t.scene.camera.positionCartographic.height
|
|
1791
|
-
} :
|
|
1472
|
+
} : A();
|
|
1792
1473
|
} else
|
|
1793
|
-
return
|
|
1794
|
-
}
|
|
1795
|
-
|
|
1796
|
-
|
|
1474
|
+
return A();
|
|
1475
|
+
};
|
|
1476
|
+
t && t.camera.moveEnd.addEventListener(() => {
|
|
1477
|
+
if (t.scene.mode !== ye.MORPHING) {
|
|
1478
|
+
const A = t.camera, F = {
|
|
1797
1479
|
position: M(),
|
|
1798
|
-
direction:
|
|
1799
|
-
up:
|
|
1800
|
-
right:
|
|
1801
|
-
transform:
|
|
1802
|
-
frustum:
|
|
1480
|
+
direction: A.direction.clone(),
|
|
1481
|
+
up: A.up.clone(),
|
|
1482
|
+
right: A.right.clone(),
|
|
1483
|
+
transform: A.transform.clone(),
|
|
1484
|
+
frustum: A.frustum.clone()
|
|
1803
1485
|
};
|
|
1804
|
-
|
|
1486
|
+
U.current = F;
|
|
1805
1487
|
}
|
|
1806
|
-
}
|
|
1807
|
-
|
|
1808
|
-
clearInterval(x);
|
|
1809
|
-
};
|
|
1810
|
-
}, [t]), k(() => {
|
|
1488
|
+
});
|
|
1489
|
+
}, [t]), I(() => {
|
|
1811
1490
|
const M = () => {
|
|
1812
|
-
t &&
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
)
|
|
1818
|
-
|
|
1819
|
-
});
|
|
1491
|
+
if (t && U.current) {
|
|
1492
|
+
const A = U.current;
|
|
1493
|
+
t.camera.flyTo({
|
|
1494
|
+
destination: ge.fromDegrees(A.position.longitude, A.position.latitude, A.position.height),
|
|
1495
|
+
duration: 0
|
|
1496
|
+
});
|
|
1497
|
+
}
|
|
1820
1498
|
};
|
|
1821
1499
|
return t && t.scene.morphComplete.addEventListener(M), () => {
|
|
1822
1500
|
if (t)
|
|
1823
1501
|
try {
|
|
1824
|
-
t.scene.morphComplete.removeEventListener(
|
|
1825
|
-
M
|
|
1826
|
-
);
|
|
1502
|
+
t.scene.morphComplete.removeEventListener(M);
|
|
1827
1503
|
} catch {
|
|
1828
1504
|
console.error("morphCompleteHandler event not cleaned");
|
|
1829
1505
|
}
|
|
1830
1506
|
};
|
|
1831
|
-
}, [t
|
|
1832
|
-
const M = e.zoom,
|
|
1833
|
-
t &&
|
|
1834
|
-
destination:
|
|
1835
|
-
x[0],
|
|
1836
|
-
x[1],
|
|
1837
|
-
Ji(M)
|
|
1838
|
-
),
|
|
1507
|
+
}, [t]), I(() => {
|
|
1508
|
+
const M = e.zoom, A = e.center;
|
|
1509
|
+
t && De(M) && gi(A) && t.camera.flyTo({
|
|
1510
|
+
destination: ge.fromDegrees(A[0], A[1], ir(M)),
|
|
1839
1511
|
duration: 0
|
|
1840
1512
|
});
|
|
1841
1513
|
}, [e.zoom, e.center, t]);
|
|
1842
|
-
const
|
|
1843
|
-
/* @__PURE__ */
|
|
1844
|
-
/* @__PURE__ */
|
|
1845
|
-
/* @__PURE__ */ l(
|
|
1846
|
-
|
|
1847
|
-
{
|
|
1848
|
-
sceneModes: Y,
|
|
1849
|
-
baseMaps: V,
|
|
1850
|
-
locale: L
|
|
1851
|
-
}
|
|
1852
|
-
),
|
|
1853
|
-
/* @__PURE__ */ l(
|
|
1854
|
-
dr,
|
|
1855
|
-
{
|
|
1856
|
-
onClick: () => f(!s)
|
|
1857
|
-
}
|
|
1858
|
-
)
|
|
1514
|
+
const E = me(() => t && Nn(
|
|
1515
|
+
/* @__PURE__ */ R(re, { children: [
|
|
1516
|
+
/* @__PURE__ */ R(ae, { className: "sideToolsContainer", children: [
|
|
1517
|
+
/* @__PURE__ */ l(pr, { sceneModes: K, baseMaps: z, locale: L }),
|
|
1518
|
+
/* @__PURE__ */ l(gr, { onClick: () => f(!s) })
|
|
1859
1519
|
] }),
|
|
1860
|
-
/* @__PURE__ */
|
|
1861
|
-
d === !0 ? /* @__PURE__ */ l(
|
|
1862
|
-
v === !0 ? /* @__PURE__ */ l(
|
|
1863
|
-
S === !0 ? /* @__PURE__ */ l(
|
|
1520
|
+
/* @__PURE__ */ R(ae, { className: "toolsContainer", children: [
|
|
1521
|
+
d === !0 ? /* @__PURE__ */ l(rr, { projection: a }) : /* @__PURE__ */ l(re, {}),
|
|
1522
|
+
v === !0 ? /* @__PURE__ */ l(lr, { locale: L }) : /* @__PURE__ */ l(re, {}),
|
|
1523
|
+
S === !0 ? /* @__PURE__ */ l(sr, { locale: L }) : /* @__PURE__ */ l(re, {})
|
|
1864
1524
|
] })
|
|
1865
1525
|
] }),
|
|
1866
1526
|
document.querySelector(".cesium-viewer")
|
|
1867
|
-
), [
|
|
1868
|
-
|
|
1869
|
-
L,
|
|
1870
|
-
t,
|
|
1871
|
-
a,
|
|
1872
|
-
Y,
|
|
1873
|
-
d,
|
|
1874
|
-
S,
|
|
1875
|
-
s
|
|
1876
|
-
]);
|
|
1877
|
-
return /* @__PURE__ */ l(Dn, { className: "viewer", full: !0, ref: n, ...h, children: /* @__PURE__ */ D(wr, { value: t, children: [
|
|
1527
|
+
), [z, L, t, a, K, d, S, s]);
|
|
1528
|
+
return /* @__PURE__ */ l(Fn, { className: "viewer", full: !0, ref: n, ...u, children: /* @__PURE__ */ R(Lr, { value: t, children: [
|
|
1878
1529
|
/* @__PURE__ */ l(
|
|
1879
|
-
|
|
1530
|
+
vr,
|
|
1880
1531
|
{
|
|
1881
|
-
title: (
|
|
1532
|
+
title: (T = e.legends) == null ? void 0 : T.title,
|
|
1882
1533
|
isOpen: s,
|
|
1883
1534
|
toggleSidebar: () => f(!s),
|
|
1884
|
-
noLegendsText: (
|
|
1885
|
-
legends: ((
|
|
1886
|
-
actionsTexts: (
|
|
1535
|
+
noLegendsText: (b = e.legends) == null ? void 0 : b.emptyText,
|
|
1536
|
+
legends: ((w = e.legends) == null ? void 0 : w.legendsList) ?? G,
|
|
1537
|
+
actionsTexts: (_ = e.legends) == null ? void 0 : _.actionsTexts
|
|
1887
1538
|
}
|
|
1888
1539
|
),
|
|
1889
1540
|
e.children,
|
|
1890
|
-
|
|
1891
|
-
e.imageryContextMenu &&
|
|
1892
|
-
data: (
|
|
1893
|
-
q.x,
|
|
1894
|
-
q.y
|
|
1895
|
-
),
|
|
1541
|
+
E(),
|
|
1542
|
+
e.imageryContextMenu && W && q && c && Ee.cloneElement(e.imageryContextMenu, {
|
|
1543
|
+
data: (P = t == null ? void 0 : t.layersManager) == null ? void 0 : P.findLayerByPOI(q.x, q.y),
|
|
1896
1544
|
position: {
|
|
1897
1545
|
x: q.x,
|
|
1898
1546
|
y: q.y
|
|
@@ -1901,87 +1549,84 @@ const Vt = Se(null), wr = Vt.Provider, br = 1e4, he = () => {
|
|
|
1901
1549
|
style: y(
|
|
1902
1550
|
q.x,
|
|
1903
1551
|
q.y,
|
|
1904
|
-
((
|
|
1905
|
-
((
|
|
1906
|
-
((
|
|
1552
|
+
((H = e.imageryContextMenuSize) == null ? void 0 : H.width) ?? ft,
|
|
1553
|
+
((j = e.imageryContextMenuSize) == null ? void 0 : j.height) ?? gt,
|
|
1554
|
+
((O = e.imageryContextMenuSize) == null ? void 0 : O.dynamicHeightIncrement) ?? Sr
|
|
1907
1555
|
),
|
|
1908
1556
|
size: e.imageryContextMenuSize ?? {
|
|
1909
|
-
height:
|
|
1910
|
-
width:
|
|
1557
|
+
height: gt,
|
|
1558
|
+
width: ft
|
|
1911
1559
|
},
|
|
1912
1560
|
handleClose: () => {
|
|
1913
|
-
|
|
1914
|
-
}
|
|
1561
|
+
D(!W);
|
|
1562
|
+
},
|
|
1563
|
+
contextEvt: $.current
|
|
1915
1564
|
})
|
|
1916
1565
|
] }) });
|
|
1917
|
-
},
|
|
1918
|
-
const n =
|
|
1566
|
+
}, Pr = 0, qo = (e) => {
|
|
1567
|
+
const n = pe();
|
|
1919
1568
|
return /* @__PURE__ */ l(
|
|
1920
|
-
|
|
1569
|
+
Gn,
|
|
1921
1570
|
{
|
|
1922
1571
|
...e,
|
|
1923
1572
|
onReady: (t) => {
|
|
1924
1573
|
e.isZoomTo === !0 && n.zoomTo(t);
|
|
1925
1574
|
const i = n.scene;
|
|
1926
1575
|
i.globe.depthTestAgainstTerrain = !0;
|
|
1927
|
-
const a =
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
const d = me.fromRadians(
|
|
1932
|
-
a.longitude,
|
|
1933
|
-
a.latitude,
|
|
1934
|
-
a.height
|
|
1935
|
-
), u = me.fromRadians(
|
|
1936
|
-
a.longitude,
|
|
1937
|
-
a.latitude,
|
|
1938
|
-
a.height + o
|
|
1939
|
-
), v = me.subtract(
|
|
1940
|
-
u,
|
|
1941
|
-
d,
|
|
1942
|
-
new me()
|
|
1943
|
-
);
|
|
1944
|
-
t.modelMatrix = Yn.fromTranslation(v);
|
|
1576
|
+
const a = Ne.fromCartesian(t.boundingSphere.center), r = e.heightFromGround ?? Pr;
|
|
1577
|
+
if (r) {
|
|
1578
|
+
const d = ge.fromRadians(a.longitude, a.latitude, a.height), h = ge.fromRadians(a.longitude, a.latitude, a.height + r), v = ge.subtract(h, d, new ge());
|
|
1579
|
+
t.modelMatrix = ei.fromTranslation(v);
|
|
1945
1580
|
}
|
|
1946
1581
|
}
|
|
1947
1582
|
}
|
|
1948
1583
|
);
|
|
1949
|
-
},
|
|
1950
|
-
|
|
1951
|
-
|
|
1584
|
+
}, yt = 180, vt = 1e-3, Et = -1, Ct = (e) => Math.abs(e) / e, wt = (e) => {
|
|
1585
|
+
Math.abs(e[0]) === yt && Math.abs(e[1]) === yt / 2 && (e[0] += Et * Ct(e[0]) * vt, e[1] += Et * Ct(e[1]) * vt);
|
|
1586
|
+
}, Mr = (e) => {
|
|
1587
|
+
switch (e.type) {
|
|
1588
|
+
case "LineString":
|
|
1589
|
+
e.coordinates.forEach((n) => {
|
|
1590
|
+
wt(n);
|
|
1591
|
+
});
|
|
1592
|
+
break;
|
|
1593
|
+
case "Polygon":
|
|
1594
|
+
e.coordinates.forEach((n) => {
|
|
1595
|
+
n.forEach((t) => {
|
|
1596
|
+
wt(t);
|
|
1597
|
+
});
|
|
1598
|
+
});
|
|
1599
|
+
break;
|
|
1600
|
+
}
|
|
1601
|
+
}, Yo = (e) => {
|
|
1602
|
+
var i;
|
|
1603
|
+
const { data: n, ...t } = e;
|
|
1604
|
+
return (i = n == null ? void 0 : n.features) == null || i.forEach((a) => {
|
|
1605
|
+
Mr(a.geometry);
|
|
1606
|
+
}), /* @__PURE__ */ l(Hn, { data: n, ...t });
|
|
1607
|
+
}, Ge = (e) => {
|
|
1608
|
+
const { meta: n, ...t } = e, i = pe();
|
|
1609
|
+
return Jt(() => {
|
|
1952
1610
|
var a;
|
|
1953
|
-
(a = i.layersManager) == null || a.addMetaToLayer(
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
},
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
}, Ko = (e) => {
|
|
1966
|
-
const { options: n, ...t } = e, i = he(), a = i.shouldOptimizedTileRequests ? new Gt(n, i) : new Qe(n);
|
|
1967
|
-
return /* @__PURE__ */ l(Fe, { ...t, imageryProvider: a });
|
|
1968
|
-
}, jo = (e) => {
|
|
1969
|
-
const { options: n, ...t } = e, i = he(), a = i.shouldOptimizedTileRequests ? new Ft(n, i) : new Ze(n);
|
|
1970
|
-
return /* @__PURE__ */ l(Fe, { ...t, imageryProvider: a });
|
|
1971
|
-
}, qo = (e) => {
|
|
1611
|
+
(a = i.layersManager) == null || a.addMetaToLayer(n, n.searchLayerPredicate);
|
|
1612
|
+
}, [n, i]), /* @__PURE__ */ l(Vn, { ...t });
|
|
1613
|
+
}, Xo = (e) => {
|
|
1614
|
+
const { options: n, ...t } = e, i = pe(), a = i.shouldOptimizedTileRequests ? new Ut(n, i) : new Qe(n);
|
|
1615
|
+
return /* @__PURE__ */ l(Ge, { ...t, imageryProvider: a });
|
|
1616
|
+
}, Zo = (e) => {
|
|
1617
|
+
const { options: n, ...t } = e, i = pe(), a = i.shouldOptimizedTileRequests ? new Wt(n, i) : new et(n);
|
|
1618
|
+
return /* @__PURE__ */ l(Ge, { ...t, imageryProvider: a });
|
|
1619
|
+
}, Jo = (e) => {
|
|
1620
|
+
const { options: n, ...t } = e, i = pe(), a = i.shouldOptimizedTileRequests ? new $t(n, i) : new Je(n);
|
|
1621
|
+
return /* @__PURE__ */ l(Ge, { ...t, imageryProvider: a });
|
|
1622
|
+
}, Qo = (e) => {
|
|
1972
1623
|
const { options: n, ...t } = e;
|
|
1973
|
-
return /* @__PURE__ */ l(
|
|
1974
|
-
|
|
1975
|
-
{
|
|
1976
|
-
...t,
|
|
1977
|
-
imageryProvider: new Xn(n)
|
|
1978
|
-
}
|
|
1979
|
-
);
|
|
1980
|
-
}, _r = (e) => /* @__PURE__ */ l(Fn, { ...e }), Yo = (e) => /* @__PURE__ */ l(Lt, { ...e }), Sr = (e) => /* @__PURE__ */ l(Lt, { ...e }), Lr = (e) => /* @__PURE__ */ l(Hn, { ...e }), Pr = (e) => /* @__PURE__ */ l(Gn, { ...e }), Mr = (e) => /* @__PURE__ */ l(Vn, { ...e }), Ar = (e) => /* @__PURE__ */ l(zn, { ...e });
|
|
1624
|
+
return /* @__PURE__ */ l(Ge, { ...t, imageryProvider: new ti(n) });
|
|
1625
|
+
}, Ar = (e) => /* @__PURE__ */ l(zn, { ...e }), es = (e) => /* @__PURE__ */ l(It, { ...e }), xr = (e) => /* @__PURE__ */ l(It, { ...e }), kr = (e) => /* @__PURE__ */ l($n, { ...e }), Ir = (e) => /* @__PURE__ */ l(Un, { ...e }), Or = (e) => /* @__PURE__ */ l(Wn, { ...e }), Dr = (e) => /* @__PURE__ */ l(jn, { ...e });
|
|
1981
1626
|
var fe = function() {
|
|
1982
1627
|
var e = p.Ellipsoid.WGS84, n, t = p.Material.fromType(p.Material.ColorType);
|
|
1983
|
-
function i(
|
|
1984
|
-
this._scene =
|
|
1628
|
+
function i(o, s = new p.Color(1, 1, 0, 0.5), f = new p.Color(1, 1, 1, 1)) {
|
|
1629
|
+
this._scene = o.scene, t.uniforms.color = s, n = f, this._tooltip = {
|
|
1985
1630
|
setVisible: () => {
|
|
1986
1631
|
},
|
|
1987
1632
|
showAt: () => {
|
|
@@ -1989,54 +1634,54 @@ var fe = function() {
|
|
|
1989
1634
|
}, this._surfaces = [], this.initialiseHandlers(), this.enhancePrimitives();
|
|
1990
1635
|
}
|
|
1991
1636
|
i.prototype.initialiseHandlers = function() {
|
|
1992
|
-
var
|
|
1993
|
-
function c(
|
|
1637
|
+
var o = this._scene, s = this, f = new p.ScreenSpaceEventHandler(o.canvas);
|
|
1638
|
+
function c(u, y) {
|
|
1994
1639
|
if (s._handlersMuted != !0) {
|
|
1995
|
-
var m =
|
|
1996
|
-
m && m.primitive && m.primitive[
|
|
1640
|
+
var m = o.pick(y);
|
|
1641
|
+
m && m.primitive && m.primitive[u] && m.primitive[u](y);
|
|
1997
1642
|
}
|
|
1998
1643
|
}
|
|
1999
|
-
f.setInputAction(function(
|
|
2000
|
-
c("leftClick",
|
|
2001
|
-
}, p.ScreenSpaceEventType.LEFT_CLICK), f.setInputAction(function(
|
|
2002
|
-
c("leftDoubleClick",
|
|
1644
|
+
f.setInputAction(function(u) {
|
|
1645
|
+
c("leftClick", u.position);
|
|
1646
|
+
}, p.ScreenSpaceEventType.LEFT_CLICK), f.setInputAction(function(u) {
|
|
1647
|
+
c("leftDoubleClick", u.position);
|
|
2003
1648
|
}, p.ScreenSpaceEventType.LEFT_DOUBLE_CLICK);
|
|
2004
1649
|
var g;
|
|
2005
|
-
f.setInputAction(function(
|
|
1650
|
+
f.setInputAction(function(u) {
|
|
2006
1651
|
if (s._handlersMuted != !0) {
|
|
2007
|
-
var y =
|
|
2008
|
-
g && (!y || g != y.primitive) && (!(g.isDestroyed && g.isDestroyed()) && g.mouseOut(
|
|
1652
|
+
var y = o.pick(u.endPosition);
|
|
1653
|
+
g && (!y || g != y.primitive) && (!(g.isDestroyed && g.isDestroyed()) && g.mouseOut(u.endPosition), g = null), y && y.primitive && (y = y.primitive, y.mouseOut && (g = y), y.mouseMove && y.mouseMove(u.endPosition));
|
|
2009
1654
|
}
|
|
2010
|
-
}, p.ScreenSpaceEventType.MOUSE_MOVE), f.setInputAction(function(
|
|
2011
|
-
c("leftUp",
|
|
2012
|
-
}, p.ScreenSpaceEventType.LEFT_UP), f.setInputAction(function(
|
|
2013
|
-
c("leftDown",
|
|
1655
|
+
}, p.ScreenSpaceEventType.MOUSE_MOVE), f.setInputAction(function(u) {
|
|
1656
|
+
c("leftUp", u.position);
|
|
1657
|
+
}, p.ScreenSpaceEventType.LEFT_UP), f.setInputAction(function(u) {
|
|
1658
|
+
c("leftDown", u.position);
|
|
2014
1659
|
}, p.ScreenSpaceEventType.LEFT_DOWN);
|
|
2015
|
-
}, i.prototype.setListener = function(
|
|
2016
|
-
|
|
2017
|
-
}, i.prototype.muteHandlers = function(
|
|
2018
|
-
this._handlersMuted =
|
|
2019
|
-
}, i.prototype.registerEditableShape = function(
|
|
1660
|
+
}, i.prototype.setListener = function(o, s, f) {
|
|
1661
|
+
o[s] = f;
|
|
1662
|
+
}, i.prototype.muteHandlers = function(o) {
|
|
1663
|
+
this._handlersMuted = o;
|
|
1664
|
+
}, i.prototype.registerEditableShape = function(o) {
|
|
2020
1665
|
var s = this;
|
|
2021
|
-
$(
|
|
2022
|
-
|
|
2023
|
-
}), $(
|
|
2024
|
-
|
|
2025
|
-
}), $(
|
|
2026
|
-
|
|
1666
|
+
$(o, "mouseMove", function(f) {
|
|
1667
|
+
o.setHighlighted(!0), o._editMode || s._tooltip.showAt(f, "Click to edit this shape");
|
|
1668
|
+
}), $(o, "mouseOut", function(f) {
|
|
1669
|
+
o.setHighlighted(!1), s._tooltip.setVisible(!1);
|
|
1670
|
+
}), $(o, "leftClick", function(f) {
|
|
1671
|
+
o.setEditMode(!0);
|
|
2027
1672
|
});
|
|
2028
|
-
}, i.prototype.startDrawing = function(
|
|
2029
|
-
this.disableAllEditMode(), this.editCleanUp && this.editCleanUp(), this.editCleanUp =
|
|
1673
|
+
}, i.prototype.startDrawing = function(o) {
|
|
1674
|
+
this.disableAllEditMode(), this.editCleanUp && this.editCleanUp(), this.editCleanUp = o, this.muteHandlers(!0);
|
|
2030
1675
|
}, i.prototype.stopDrawing = function() {
|
|
2031
1676
|
this.editCleanUp && (this.editCleanUp(), this.editCleanUp = null), this.muteHandlers(!1);
|
|
2032
1677
|
}, i.prototype.disableAllHighlights = function() {
|
|
2033
1678
|
this.setHighlighted(void 0);
|
|
2034
|
-
}, i.prototype.setHighlighted = function(
|
|
2035
|
-
this._highlightedSurface && !this._highlightedSurface.isDestroyed() && this._highlightedSurface !=
|
|
1679
|
+
}, i.prototype.setHighlighted = function(o) {
|
|
1680
|
+
this._highlightedSurface && !this._highlightedSurface.isDestroyed() && this._highlightedSurface != o && this._highlightedSurface.setHighlighted(!1), this._highlightedSurface = o;
|
|
2036
1681
|
}, i.prototype.disableAllEditMode = function() {
|
|
2037
1682
|
this.setEdited(void 0);
|
|
2038
|
-
}, i.prototype.setEdited = function(
|
|
2039
|
-
this._editedSurface && !this._editedSurface.isDestroyed() && this._editedSurface.setEditMode(!1), this._editedSurface =
|
|
1683
|
+
}, i.prototype.setEdited = function(o) {
|
|
1684
|
+
this._editedSurface && !this._editedSurface.isDestroyed() && this._editedSurface.setEditMode(!1), this._editedSurface = o;
|
|
2040
1685
|
};
|
|
2041
1686
|
var a = {
|
|
2042
1687
|
ellipsoid: p.Ellipsoid.WGS84,
|
|
@@ -2045,15 +1690,15 @@ var fe = function() {
|
|
|
2045
1690
|
asynchronous: !0,
|
|
2046
1691
|
show: !0,
|
|
2047
1692
|
debugShowBoundingVolume: !1
|
|
2048
|
-
},
|
|
1693
|
+
}, r = D(a, {
|
|
2049
1694
|
appearance: new p.EllipsoidSurfaceAppearance({
|
|
2050
1695
|
aboveGround: !1
|
|
2051
1696
|
}),
|
|
2052
1697
|
material: t,
|
|
2053
1698
|
granularity: Math.PI / 180
|
|
2054
|
-
}), d =
|
|
1699
|
+
}), d = D(a, {}), h = D(a, {}), v = D(a, {}), C = D(r, {
|
|
2055
1700
|
rotation: 0
|
|
2056
|
-
}), S =
|
|
1701
|
+
}), S = D(a, {
|
|
2057
1702
|
width: 5,
|
|
2058
1703
|
geodesic: !0,
|
|
2059
1704
|
granularity: 1e4,
|
|
@@ -2061,16 +1706,16 @@ var fe = function() {
|
|
|
2061
1706
|
aboveGround: !1
|
|
2062
1707
|
}),
|
|
2063
1708
|
material: t
|
|
2064
|
-
}),
|
|
2065
|
-
function
|
|
1709
|
+
}), x = function() {
|
|
1710
|
+
function o() {
|
|
2066
1711
|
}
|
|
2067
|
-
return
|
|
2068
|
-
|
|
2069
|
-
},
|
|
1712
|
+
return o.prototype.initialiseOptions = function(s) {
|
|
1713
|
+
W(this, s), 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;
|
|
1714
|
+
}, o.prototype.setAttribute = function(s, f) {
|
|
2070
1715
|
this[s] = f, this._createPrimitive = !0;
|
|
2071
|
-
},
|
|
1716
|
+
}, o.prototype.getAttribute = function(s) {
|
|
2072
1717
|
return this[s];
|
|
2073
|
-
},
|
|
1718
|
+
}, o.prototype.update = function(s, f, c) {
|
|
2074
1719
|
if (!p.defined(this.ellipsoid))
|
|
2075
1720
|
throw new p.DeveloperError("this.ellipsoid must be defined.");
|
|
2076
1721
|
if (!p.defined(this.appearance))
|
|
@@ -2110,28 +1755,28 @@ var fe = function() {
|
|
|
2110
1755
|
})
|
|
2111
1756
|
}));
|
|
2112
1757
|
}
|
|
2113
|
-
var
|
|
2114
|
-
|
|
1758
|
+
var u = this._primitive;
|
|
1759
|
+
u.appearance.material = this.material, u.debugShowBoundingVolume = this.debugShowBoundingVolume, u.update(s, f, c), this._outlinePolygon && this._outlinePolygon.update(s, f, c);
|
|
2115
1760
|
}
|
|
2116
|
-
},
|
|
1761
|
+
}, o.prototype.isDestroyed = function() {
|
|
2117
1762
|
return !1;
|
|
2118
|
-
},
|
|
1763
|
+
}, o.prototype.destroy = function() {
|
|
2119
1764
|
return this._primitive = this._primitive && this._primitive.destroy(), p.destroyObject(this);
|
|
2120
|
-
},
|
|
1765
|
+
}, o.prototype.setStrokeStyle = function(s, f) {
|
|
2121
1766
|
(!this.strokeColor || !this.strokeColor.equals(s) || this.strokeWidth != f) && (this._createPrimitive = !0, this.strokeColor = s, this.strokeWidth = f);
|
|
2122
|
-
},
|
|
1767
|
+
}, o;
|
|
2123
1768
|
}();
|
|
2124
1769
|
i.ExtentPrimitive = function() {
|
|
2125
|
-
function
|
|
1770
|
+
function o(s) {
|
|
2126
1771
|
if (!p.defined(s.extent))
|
|
2127
1772
|
throw new p.DeveloperError("Extent is required");
|
|
2128
|
-
s =
|
|
1773
|
+
s = D(s, r), this.initialiseOptions(s), this.setExtent(s.extent);
|
|
2129
1774
|
}
|
|
2130
|
-
return
|
|
1775
|
+
return o.prototype = new x(), o.prototype.setExtent = function(s) {
|
|
2131
1776
|
this.setAttribute("extent", s);
|
|
2132
|
-
},
|
|
1777
|
+
}, o.prototype.getExtent = function() {
|
|
2133
1778
|
return this.getAttribute("extent");
|
|
2134
|
-
},
|
|
1779
|
+
}, o.prototype.getGeometry = function() {
|
|
2135
1780
|
if (p.defined(this.extent))
|
|
2136
1781
|
return new p.RectangleGeometry({
|
|
2137
1782
|
rectangle: this.extent,
|
|
@@ -2141,20 +1786,20 @@ var fe = function() {
|
|
|
2141
1786
|
ellipsoid: this.ellipsoid,
|
|
2142
1787
|
granularity: this.granularity
|
|
2143
1788
|
});
|
|
2144
|
-
},
|
|
1789
|
+
}, o.prototype.getOutlineGeometry = function() {
|
|
2145
1790
|
return new p.RectangleOutlineGeometry({
|
|
2146
1791
|
rectangle: this.extent
|
|
2147
1792
|
});
|
|
2148
|
-
},
|
|
1793
|
+
}, o;
|
|
2149
1794
|
}(), i.PolygonPrimitive = function() {
|
|
2150
|
-
function
|
|
2151
|
-
s =
|
|
1795
|
+
function o(s) {
|
|
1796
|
+
s = D(s, r), this.initialiseOptions(s), this.isPolygon = !0;
|
|
2152
1797
|
}
|
|
2153
|
-
return
|
|
1798
|
+
return o.prototype = new x(), o.prototype.setPositions = function(s) {
|
|
2154
1799
|
this.setAttribute("positions", s);
|
|
2155
|
-
},
|
|
1800
|
+
}, o.prototype.getPositions = function() {
|
|
2156
1801
|
return this.getAttribute("positions");
|
|
2157
|
-
},
|
|
1802
|
+
}, o.prototype.getGeometry = function() {
|
|
2158
1803
|
if (!(!p.defined(this.positions) || this.positions.length < 3))
|
|
2159
1804
|
return p.PolygonGeometry.fromPositions({
|
|
2160
1805
|
positions: this.positions,
|
|
@@ -2164,26 +1809,26 @@ var fe = function() {
|
|
|
2164
1809
|
ellipsoid: this.ellipsoid,
|
|
2165
1810
|
granularity: this.granularity
|
|
2166
1811
|
});
|
|
2167
|
-
},
|
|
1812
|
+
}, o.prototype.getOutlineGeometry = function() {
|
|
2168
1813
|
return p.PolygonOutlineGeometry.fromPositions({
|
|
2169
1814
|
positions: this.getPositions()
|
|
2170
1815
|
});
|
|
2171
|
-
},
|
|
1816
|
+
}, o;
|
|
2172
1817
|
}(), i.CirclePrimitive = function() {
|
|
2173
|
-
function
|
|
1818
|
+
function o(s) {
|
|
2174
1819
|
if (!(p.defined(s.center) && p.defined(s.radius)))
|
|
2175
1820
|
throw new p.DeveloperError("Center and radius are required");
|
|
2176
|
-
s =
|
|
1821
|
+
s = D(s, r), this.initialiseOptions(s), this.setRadius(s.radius);
|
|
2177
1822
|
}
|
|
2178
|
-
return
|
|
1823
|
+
return o.prototype = new x(), o.prototype.setCenter = function(s) {
|
|
2179
1824
|
this.setAttribute("center", s);
|
|
2180
|
-
},
|
|
1825
|
+
}, o.prototype.setRadius = function(s) {
|
|
2181
1826
|
this.setAttribute("radius", Math.max(0.1, s));
|
|
2182
|
-
},
|
|
1827
|
+
}, o.prototype.getCenter = function() {
|
|
2183
1828
|
return this.getAttribute("center");
|
|
2184
|
-
},
|
|
1829
|
+
}, o.prototype.getRadius = function() {
|
|
2185
1830
|
return this.getAttribute("radius");
|
|
2186
|
-
},
|
|
1831
|
+
}, o.prototype.getGeometry = function() {
|
|
2187
1832
|
if (p.defined(this.center) && p.defined(this.radius))
|
|
2188
1833
|
return new p.CircleGeometry({
|
|
2189
1834
|
center: this.center,
|
|
@@ -2194,35 +1839,35 @@ var fe = function() {
|
|
|
2194
1839
|
ellipsoid: this.ellipsoid,
|
|
2195
1840
|
granularity: this.granularity
|
|
2196
1841
|
});
|
|
2197
|
-
},
|
|
1842
|
+
}, o.prototype.getOutlineGeometry = function() {
|
|
2198
1843
|
return new p.CircleOutlineGeometry({
|
|
2199
1844
|
center: this.getCenter(),
|
|
2200
1845
|
radius: this.getRadius()
|
|
2201
1846
|
});
|
|
2202
|
-
},
|
|
1847
|
+
}, o;
|
|
2203
1848
|
}(), i.EllipsePrimitive = function() {
|
|
2204
|
-
function
|
|
1849
|
+
function o(s) {
|
|
2205
1850
|
if (!(p.defined(s.center) && p.defined(s.semiMajorAxis) && p.defined(s.semiMinorAxis)))
|
|
2206
1851
|
throw new p.DeveloperError("Center and semi major and semi minor axis are required");
|
|
2207
|
-
s =
|
|
1852
|
+
s = D(s, C), this.initialiseOptions(s);
|
|
2208
1853
|
}
|
|
2209
|
-
return
|
|
1854
|
+
return o.prototype = new x(), o.prototype.setCenter = function(s) {
|
|
2210
1855
|
this.setAttribute("center", s);
|
|
2211
|
-
},
|
|
1856
|
+
}, o.prototype.setSemiMajorAxis = function(s) {
|
|
2212
1857
|
s < this.getSemiMinorAxis() || this.setAttribute("semiMajorAxis", s);
|
|
2213
|
-
},
|
|
1858
|
+
}, o.prototype.setSemiMinorAxis = function(s) {
|
|
2214
1859
|
s > this.getSemiMajorAxis() || this.setAttribute("semiMinorAxis", s);
|
|
2215
|
-
},
|
|
1860
|
+
}, o.prototype.setRotation = function(s) {
|
|
2216
1861
|
return this.setAttribute("rotation", s);
|
|
2217
|
-
},
|
|
1862
|
+
}, o.prototype.getCenter = function() {
|
|
2218
1863
|
return this.getAttribute("center");
|
|
2219
|
-
},
|
|
1864
|
+
}, o.prototype.getSemiMajorAxis = function() {
|
|
2220
1865
|
return this.getAttribute("semiMajorAxis");
|
|
2221
|
-
},
|
|
1866
|
+
}, o.prototype.getSemiMinorAxis = function() {
|
|
2222
1867
|
return this.getAttribute("semiMinorAxis");
|
|
2223
|
-
},
|
|
1868
|
+
}, o.prototype.getRotation = function() {
|
|
2224
1869
|
return this.getAttribute("rotation");
|
|
2225
|
-
},
|
|
1870
|
+
}, o.prototype.getGeometry = function() {
|
|
2226
1871
|
if (p.defined(this.center) && p.defined(this.semiMajorAxis) && p.defined(this.semiMinorAxis))
|
|
2227
1872
|
return new p.EllipseGeometry({
|
|
2228
1873
|
ellipsoid: this.ellipsoid,
|
|
@@ -2235,31 +1880,31 @@ var fe = function() {
|
|
|
2235
1880
|
stRotation: this.textureRotationAngle,
|
|
2236
1881
|
granularity: this.granularity
|
|
2237
1882
|
});
|
|
2238
|
-
},
|
|
1883
|
+
}, o.prototype.getOutlineGeometry = function() {
|
|
2239
1884
|
return new p.EllipseOutlineGeometry({
|
|
2240
1885
|
center: this.getCenter(),
|
|
2241
1886
|
semiMajorAxis: this.getSemiMajorAxis(),
|
|
2242
1887
|
semiMinorAxis: this.getSemiMinorAxis(),
|
|
2243
1888
|
rotation: this.getRotation()
|
|
2244
1889
|
});
|
|
2245
|
-
},
|
|
1890
|
+
}, o;
|
|
2246
1891
|
}(), i.PolylinePrimitive = function() {
|
|
2247
|
-
function
|
|
2248
|
-
s =
|
|
1892
|
+
function o(s) {
|
|
1893
|
+
s = D(s, S), this.initialiseOptions(s);
|
|
2249
1894
|
}
|
|
2250
|
-
return
|
|
1895
|
+
return o.prototype = new x(), o.prototype.setPositions = function(s) {
|
|
2251
1896
|
this.setAttribute("positions", s);
|
|
2252
|
-
},
|
|
1897
|
+
}, o.prototype.setWidth = function(s) {
|
|
2253
1898
|
this.setAttribute("width", s);
|
|
2254
|
-
},
|
|
1899
|
+
}, o.prototype.setGeodesic = function(s) {
|
|
2255
1900
|
this.setAttribute("geodesic", s);
|
|
2256
|
-
},
|
|
1901
|
+
}, o.prototype.getPositions = function() {
|
|
2257
1902
|
return this.getAttribute("positions");
|
|
2258
|
-
},
|
|
1903
|
+
}, o.prototype.getWidth = function() {
|
|
2259
1904
|
return this.getAttribute("width");
|
|
2260
|
-
},
|
|
1905
|
+
}, o.prototype.getGeodesic = function(s) {
|
|
2261
1906
|
return this.getAttribute("geodesic");
|
|
2262
|
-
},
|
|
1907
|
+
}, o.prototype.getGeometry = function() {
|
|
2263
1908
|
if (!(!p.defined(this.positions) || this.positions.length < 2))
|
|
2264
1909
|
return new p.PolylineGeometry({
|
|
2265
1910
|
positions: this.positions,
|
|
@@ -2268,32 +1913,32 @@ var fe = function() {
|
|
|
2268
1913
|
vertexFormat: p.EllipsoidSurfaceAppearance.VERTEX_FORMAT,
|
|
2269
1914
|
ellipsoid: this.ellipsoid
|
|
2270
1915
|
});
|
|
2271
|
-
},
|
|
1916
|
+
}, o;
|
|
2272
1917
|
}();
|
|
2273
1918
|
var L = {
|
|
2274
1919
|
iconUrl: "./assets/img/dragIcon.png",
|
|
2275
1920
|
shiftX: 0,
|
|
2276
1921
|
shiftY: 0
|
|
2277
|
-
},
|
|
1922
|
+
}, B = {
|
|
2278
1923
|
iconUrl: "./assets/img/dragIcon.png",
|
|
2279
1924
|
shiftX: 0,
|
|
2280
1925
|
shiftY: 0
|
|
2281
|
-
},
|
|
1926
|
+
}, U = {
|
|
2282
1927
|
iconUrl: "./assets/img/dragIconLight.png",
|
|
2283
1928
|
shiftX: 0,
|
|
2284
1929
|
shiftY: 0
|
|
2285
1930
|
};
|
|
2286
|
-
i.prototype.createBillboardGroup = function(
|
|
1931
|
+
i.prototype.createBillboardGroup = function(o, s, f) {
|
|
2287
1932
|
var c = new i.BillboardGroup(this, s);
|
|
2288
|
-
return c.addBillboards(
|
|
2289
|
-
}, i.BillboardGroup = function(
|
|
2290
|
-
this._drawHelper =
|
|
1933
|
+
return c.addBillboards(o, f), c;
|
|
1934
|
+
}, i.BillboardGroup = function(o, s) {
|
|
1935
|
+
this._drawHelper = o, this._scene = o._scene, this._options = D(s, L);
|
|
2291
1936
|
var f = new p.BillboardCollection();
|
|
2292
1937
|
this._scene.primitives.add(f), this._billboards = f, this._orderedBillboards = [];
|
|
2293
|
-
}, i.BillboardGroup.prototype.createBillboard = function(
|
|
1938
|
+
}, i.BillboardGroup.prototype.createBillboard = function(o, s) {
|
|
2294
1939
|
var f = this._billboards.add({
|
|
2295
1940
|
show: !0,
|
|
2296
|
-
position:
|
|
1941
|
+
position: o,
|
|
2297
1942
|
pixelOffset: new p.Cartesian2(this._options.shiftX, this._options.shiftY),
|
|
2298
1943
|
eyeOffset: new p.Cartesian3(0, 0, 0),
|
|
2299
1944
|
horizontalOrigin: p.HorizontalOrigin.CENTER,
|
|
@@ -2303,7 +1948,7 @@ var fe = function() {
|
|
|
2303
1948
|
color: n
|
|
2304
1949
|
});
|
|
2305
1950
|
if (s) {
|
|
2306
|
-
let
|
|
1951
|
+
let u = function(m) {
|
|
2307
1952
|
g.enableRotate = m;
|
|
2308
1953
|
}, y = function() {
|
|
2309
1954
|
for (var m = 0, E = c._orderedBillboards.length; m < E && c._orderedBillboards[m] != f; ++m)
|
|
@@ -2321,7 +1966,7 @@ var fe = function() {
|
|
|
2321
1966
|
s.dragHandlers.onDrag && s.dragHandlers.onDrag(y(), _);
|
|
2322
1967
|
}
|
|
2323
1968
|
function b(_) {
|
|
2324
|
-
w.destroy(),
|
|
1969
|
+
w.destroy(), u(!0), s.dragHandlers.onDragEnd && s.dragHandlers.onDragEnd(y(), _);
|
|
2325
1970
|
}
|
|
2326
1971
|
var w = new p.ScreenSpaceEventHandler(c._scene.canvas);
|
|
2327
1972
|
w.setInputAction(function(_) {
|
|
@@ -2329,7 +1974,7 @@ var fe = function() {
|
|
|
2329
1974
|
P ? T(P) : b(P);
|
|
2330
1975
|
}, p.ScreenSpaceEventType.MOUSE_MOVE), w.setInputAction(function(_) {
|
|
2331
1976
|
b(c._scene.camera.pickEllipsoid(_.position, e));
|
|
2332
|
-
}, p.ScreenSpaceEventType.LEFT_UP),
|
|
1977
|
+
}, p.ScreenSpaceEventType.LEFT_UP), u(!1), s.dragHandlers.onDragStart && s.dragHandlers.onDragStart(y(), c._scene.camera.pickEllipsoid(E, e));
|
|
2333
1978
|
});
|
|
2334
1979
|
}
|
|
2335
1980
|
s.onDoubleClick && $(f, "leftDoubleClick", function(m) {
|
|
@@ -2343,38 +1988,38 @@ var fe = function() {
|
|
|
2343
1988
|
}));
|
|
2344
1989
|
}
|
|
2345
1990
|
return f;
|
|
2346
|
-
}, i.BillboardGroup.prototype.insertBillboard = function(
|
|
2347
|
-
this._orderedBillboards.splice(
|
|
2348
|
-
}, i.BillboardGroup.prototype.addBillboard = function(
|
|
2349
|
-
this._orderedBillboards.push(this.createBillboard(
|
|
2350
|
-
}, i.BillboardGroup.prototype.addBillboards = function(
|
|
2351
|
-
for (var f = 0; f <
|
|
2352
|
-
this.addBillboard(
|
|
2353
|
-
}, i.BillboardGroup.prototype.updateBillboardsPositions = function(
|
|
2354
|
-
for (var s = 0; s <
|
|
2355
|
-
this.getBillboard(s).position =
|
|
1991
|
+
}, i.BillboardGroup.prototype.insertBillboard = function(o, s, f) {
|
|
1992
|
+
this._orderedBillboards.splice(o, 0, this.createBillboard(s, f));
|
|
1993
|
+
}, i.BillboardGroup.prototype.addBillboard = function(o, s) {
|
|
1994
|
+
this._orderedBillboards.push(this.createBillboard(o, s));
|
|
1995
|
+
}, i.BillboardGroup.prototype.addBillboards = function(o, s) {
|
|
1996
|
+
for (var f = 0; f < o.length; f++)
|
|
1997
|
+
this.addBillboard(o[f], s);
|
|
1998
|
+
}, i.BillboardGroup.prototype.updateBillboardsPositions = function(o) {
|
|
1999
|
+
for (var s = 0; s < o.length; s++)
|
|
2000
|
+
this.getBillboard(s).position = o[s];
|
|
2356
2001
|
}, i.BillboardGroup.prototype.countBillboards = function() {
|
|
2357
2002
|
return this._orderedBillboards.length;
|
|
2358
|
-
}, i.BillboardGroup.prototype.getBillboard = function(
|
|
2359
|
-
return this._orderedBillboards[
|
|
2360
|
-
}, i.BillboardGroup.prototype.removeBillboard = function(
|
|
2361
|
-
this._billboards.remove(this.getBillboard(
|
|
2003
|
+
}, i.BillboardGroup.prototype.getBillboard = function(o) {
|
|
2004
|
+
return this._orderedBillboards[o];
|
|
2005
|
+
}, i.BillboardGroup.prototype.removeBillboard = function(o) {
|
|
2006
|
+
this._billboards.remove(this.getBillboard(o)), this._orderedBillboards.splice(o, 1);
|
|
2362
2007
|
}, i.BillboardGroup.prototype.remove = function() {
|
|
2363
2008
|
this._billboards = this._billboards && this._billboards.removeAll() && this._billboards.destroy();
|
|
2364
2009
|
}, i.BillboardGroup.prototype.setOnTop = function() {
|
|
2365
2010
|
this._scene.primitives.raiseToTop(this._billboards);
|
|
2366
2011
|
}, i.prototype.startDrawingMarker = function(s) {
|
|
2367
|
-
var s =
|
|
2012
|
+
var s = D(s, L);
|
|
2368
2013
|
this.startDrawing(function() {
|
|
2369
|
-
|
|
2014
|
+
u.remove(), y.destroy(), g.setVisible(!1);
|
|
2370
2015
|
});
|
|
2371
2016
|
var f = this, c = this._scene;
|
|
2372
2017
|
c.primitives;
|
|
2373
|
-
var g = this._tooltip,
|
|
2018
|
+
var g = this._tooltip, u = new i.BillboardGroup(this, s), y = new p.ScreenSpaceEventHandler(c.canvas);
|
|
2374
2019
|
y.setInputAction(function(m) {
|
|
2375
2020
|
if (m.position != null) {
|
|
2376
2021
|
var E = c.camera.pickEllipsoid(m.position, e);
|
|
2377
|
-
E && (
|
|
2022
|
+
E && (u.addBillboard(E), f.stopDrawing(), s.callback(E));
|
|
2378
2023
|
}
|
|
2379
2024
|
}, p.ScreenSpaceEventType.LEFT_CLICK), y.setInputAction(function(m) {
|
|
2380
2025
|
var E = m.endPosition;
|
|
@@ -2382,24 +2027,24 @@ var fe = function() {
|
|
|
2382
2027
|
var T = c.camera.pickEllipsoid(E, e);
|
|
2383
2028
|
T ? g.showAt(
|
|
2384
2029
|
E,
|
|
2385
|
-
"<p>Click to add your marker. Position is: </p>" +
|
|
2030
|
+
"<p>Click to add your marker. Position is: </p>" + z(e.cartesianToCartographic(T))
|
|
2386
2031
|
) : g.showAt(E, "<p>Click on the globe to add your marker.</p>");
|
|
2387
2032
|
}
|
|
2388
2033
|
}, p.ScreenSpaceEventType.MOUSE_MOVE);
|
|
2389
2034
|
}, i.prototype.startDrawingPolygon = function(s) {
|
|
2390
|
-
var s =
|
|
2035
|
+
var s = D(s, r);
|
|
2391
2036
|
this.startDrawingPolyshape(!0, s);
|
|
2392
2037
|
}, i.prototype.startDrawingPolyline = function(s) {
|
|
2393
|
-
var s =
|
|
2038
|
+
var s = D(s, S);
|
|
2394
2039
|
this.startDrawingPolyshape(!1, s);
|
|
2395
|
-
}, i.prototype.startDrawingPolyshape = function(
|
|
2040
|
+
}, i.prototype.startDrawingPolyshape = function(o, s) {
|
|
2396
2041
|
this.startDrawing(function() {
|
|
2397
|
-
g.remove(m), T.remove(), b.destroy(),
|
|
2042
|
+
g.remove(m), T.remove(), b.destroy(), u.setVisible(!1), G(c);
|
|
2398
2043
|
});
|
|
2399
|
-
var f = this, c = this._scene, g = c.primitives,
|
|
2400
|
-
|
|
2044
|
+
var f = this, c = this._scene, g = c.primitives, u = this._tooltip, y = o ? 3 : 2, m;
|
|
2045
|
+
o ? m = new fe.PolygonPrimitive(s) : m = new fe.PolylinePrimitive(s), m.asynchronous = !1, g.add(m);
|
|
2401
2046
|
var E = [], T = new i.BillboardGroup(this, L), b = new p.ScreenSpaceEventHandler(c.canvas);
|
|
2402
|
-
|
|
2047
|
+
J(c), b.setInputAction(function(w) {
|
|
2403
2048
|
if (w.position != null) {
|
|
2404
2049
|
var _ = c.camera.pickEllipsoid(w.position, e);
|
|
2405
2050
|
_ && (E.length == 0 && (E.push(_.clone()), T.addBillboard(E[0])), E.length >= y && (m.positions = E, m._createPrimitive = !0), E.push(_), T.addBillboard(_));
|
|
@@ -2408,10 +2053,10 @@ var fe = function() {
|
|
|
2408
2053
|
var _ = w.endPosition;
|
|
2409
2054
|
if (_ != null)
|
|
2410
2055
|
if (E.length == 0)
|
|
2411
|
-
|
|
2056
|
+
u.showAt(_, "<p>Click to add first point</p>");
|
|
2412
2057
|
else {
|
|
2413
2058
|
var P = c.camera.pickEllipsoid(_, e);
|
|
2414
|
-
P && (E.pop(), P.y += 1 + Math.random(), E.push(P), E.length >= y && (m.positions = E, m._createPrimitive = !0), T.getBillboard(E.length - 1).position = P,
|
|
2059
|
+
P && (E.pop(), P.y += 1 + Math.random(), E.push(P), E.length >= y && (m.positions = E, m._createPrimitive = !0), T.getBillboard(E.length - 1).position = P, u.showAt(
|
|
2415
2060
|
_,
|
|
2416
2061
|
"<p>Click to add new point (" + E.length + ")</p>" + (E.length > y ? "<p>Double click to finish drawing</p>" : "")
|
|
2417
2062
|
));
|
|
@@ -2422,37 +2067,37 @@ var fe = function() {
|
|
|
2422
2067
|
if (E.length < y + 2)
|
|
2423
2068
|
return;
|
|
2424
2069
|
var P = c.camera.pickEllipsoid(_, e);
|
|
2425
|
-
P && (
|
|
2070
|
+
P && (G(c), f.stopDrawing(), typeof s.callback == "function" && (E.length - 1, s.callback(E)));
|
|
2426
2071
|
}
|
|
2427
2072
|
}, p.ScreenSpaceEventType.LEFT_DOUBLE_CLICK);
|
|
2428
2073
|
};
|
|
2429
|
-
function
|
|
2074
|
+
function K(o) {
|
|
2430
2075
|
return e.cartographicArrayToCartesianArray([
|
|
2431
|
-
p.Rectangle.northwest(
|
|
2432
|
-
p.Rectangle.northeast(
|
|
2433
|
-
p.Rectangle.southeast(
|
|
2434
|
-
p.Rectangle.southwest(
|
|
2076
|
+
p.Rectangle.northwest(o),
|
|
2077
|
+
p.Rectangle.northeast(o),
|
|
2078
|
+
p.Rectangle.southeast(o),
|
|
2079
|
+
p.Rectangle.southwest(o)
|
|
2435
2080
|
]);
|
|
2436
2081
|
}
|
|
2437
|
-
function
|
|
2438
|
-
|
|
2082
|
+
function J(o) {
|
|
2083
|
+
o && (o.canvas.style.cursor = "crosshair");
|
|
2439
2084
|
}
|
|
2440
|
-
function
|
|
2441
|
-
|
|
2085
|
+
function G(o) {
|
|
2086
|
+
o && (o.canvas.style.cursor = "");
|
|
2442
2087
|
}
|
|
2443
2088
|
i.prototype.startDrawingExtent = function(s) {
|
|
2444
|
-
var s =
|
|
2089
|
+
var s = D(s, r);
|
|
2445
2090
|
this.startDrawing(function() {
|
|
2446
|
-
m != null && g.remove(m), E != null && E.remove(), T.destroy(),
|
|
2091
|
+
m != null && g.remove(m), E != null && E.remove(), T.destroy(), u.setVisible(!1), G(c);
|
|
2447
2092
|
});
|
|
2448
|
-
var f = this, c = this._scene, g = this._scene.primitives,
|
|
2449
|
-
|
|
2093
|
+
var f = this, c = this._scene, g = this._scene.primitives, u = this._tooltip, y = null, m = null, E = null, T = new p.ScreenSpaceEventHandler(c.canvas);
|
|
2094
|
+
J(c);
|
|
2450
2095
|
function b(w) {
|
|
2451
2096
|
m == null && (m = new fe.ExtentPrimitive({
|
|
2452
2097
|
extent: w,
|
|
2453
2098
|
material: s.material
|
|
2454
2099
|
}), m.asynchronous = !1, g.add(m)), m.setExtent(w);
|
|
2455
|
-
var _ =
|
|
2100
|
+
var _ = K(w);
|
|
2456
2101
|
E == null ? (E = new i.BillboardGroup(f, L), E.addBillboards(_)) : E.updateBillboardsPositions(_);
|
|
2457
2102
|
}
|
|
2458
2103
|
T.setInputAction(function(w) {
|
|
@@ -2461,30 +2106,30 @@ var fe = function() {
|
|
|
2461
2106
|
if (_)
|
|
2462
2107
|
if (m == null) {
|
|
2463
2108
|
y = e.cartesianToCartographic(_);
|
|
2464
|
-
var P =
|
|
2109
|
+
var P = Y(y, y);
|
|
2465
2110
|
b(P);
|
|
2466
2111
|
} else
|
|
2467
|
-
f.stopDrawing(), typeof s.callback == "function" && s.callback(
|
|
2112
|
+
f.stopDrawing(), typeof s.callback == "function" && s.callback(Y(y, e.cartesianToCartographic(_)));
|
|
2468
2113
|
}
|
|
2469
2114
|
}, p.ScreenSpaceEventType.LEFT_DOWN), T.setInputAction(function(w) {
|
|
2470
2115
|
var _ = w.endPosition;
|
|
2471
2116
|
if (_ != null)
|
|
2472
2117
|
if (m == null)
|
|
2473
|
-
|
|
2118
|
+
u.showAt(_, "<p>Click to start drawing rectangle</p>");
|
|
2474
2119
|
else {
|
|
2475
2120
|
var P = c.camera.pickEllipsoid(_, e);
|
|
2476
2121
|
if (P) {
|
|
2477
|
-
var H =
|
|
2478
|
-
b(H),
|
|
2122
|
+
var H = Y(y, e.cartesianToCartographic(P));
|
|
2123
|
+
b(H), u.showAt(_, "<p>Drag to change rectangle extent</p><p>Click again to finish drawing</p>");
|
|
2479
2124
|
}
|
|
2480
2125
|
}
|
|
2481
2126
|
}, p.ScreenSpaceEventType.MOUSE_MOVE);
|
|
2482
2127
|
}, i.prototype.startDrawingCircle = function(s) {
|
|
2483
|
-
var s =
|
|
2128
|
+
var s = D(s, r);
|
|
2484
2129
|
this.startDrawing(function() {
|
|
2485
|
-
y != null && g.remove(y), m.remove(), E.destroy(),
|
|
2130
|
+
y != null && g.remove(y), m.remove(), E.destroy(), u.setVisible(!1);
|
|
2486
2131
|
});
|
|
2487
|
-
var f = this, c = this._scene, g = this._scene.primitives,
|
|
2132
|
+
var f = this, c = this._scene, g = this._scene.primitives, u = this._tooltip, y = null, m = null, E = new p.ScreenSpaceEventHandler(c.canvas);
|
|
2488
2133
|
E.setInputAction(function(T) {
|
|
2489
2134
|
if (T.position != null) {
|
|
2490
2135
|
var b = c.camera.pickEllipsoid(T.position, e);
|
|
@@ -2499,103 +2144,103 @@ var fe = function() {
|
|
|
2499
2144
|
var b = T.endPosition;
|
|
2500
2145
|
if (b != null)
|
|
2501
2146
|
if (y == null)
|
|
2502
|
-
|
|
2147
|
+
u.showAt(b, "<p>Click to start drawing the circle</p>");
|
|
2503
2148
|
else {
|
|
2504
2149
|
var w = c.camera.pickEllipsoid(b, e);
|
|
2505
|
-
w && (y.setRadius(p.Cartesian3.distance(y.getCenter(), w)), m.updateBillboardsPositions(w),
|
|
2150
|
+
w && (y.setRadius(p.Cartesian3.distance(y.getCenter(), w)), m.updateBillboardsPositions(w), u.showAt(b, "<p>Move mouse to change circle radius</p><p>Click again to finish drawing</p>"));
|
|
2506
2151
|
}
|
|
2507
2152
|
}, p.ScreenSpaceEventType.MOUSE_MOVE);
|
|
2508
2153
|
}, i.prototype.enhancePrimitives = function() {
|
|
2509
|
-
var
|
|
2154
|
+
var o = this;
|
|
2510
2155
|
p.Billboard.prototype.setEditable = function() {
|
|
2511
2156
|
if (this._editable)
|
|
2512
2157
|
return;
|
|
2513
2158
|
this._editable = !0;
|
|
2514
2159
|
var c = this, g = this;
|
|
2515
|
-
function
|
|
2516
|
-
|
|
2160
|
+
function u(y) {
|
|
2161
|
+
o._scene.screenSpaceCameraController.enableRotate = y;
|
|
2517
2162
|
}
|
|
2518
2163
|
$(c, "leftDown", function(y) {
|
|
2519
2164
|
function m(b) {
|
|
2520
2165
|
c.position = b, g.executeListeners({ name: "drag", positions: b });
|
|
2521
2166
|
}
|
|
2522
2167
|
function E(b) {
|
|
2523
|
-
T.destroy(),
|
|
2168
|
+
T.destroy(), u(!0), g.executeListeners({ name: "dragEnd", positions: b });
|
|
2524
2169
|
}
|
|
2525
|
-
var T = new p.ScreenSpaceEventHandler(
|
|
2170
|
+
var T = new p.ScreenSpaceEventHandler(o._scene.canvas);
|
|
2526
2171
|
T.setInputAction(function(b) {
|
|
2527
|
-
var w =
|
|
2172
|
+
var w = o._scene.camera.pickEllipsoid(b.endPosition, e);
|
|
2528
2173
|
w ? m(w) : E(w);
|
|
2529
2174
|
}, p.ScreenSpaceEventType.MOUSE_MOVE), T.setInputAction(function(b) {
|
|
2530
|
-
E(
|
|
2531
|
-
}, p.ScreenSpaceEventType.LEFT_UP),
|
|
2175
|
+
E(o._scene.camera.pickEllipsoid(b.position, e));
|
|
2176
|
+
}, p.ScreenSpaceEventType.LEFT_UP), u(!1);
|
|
2532
2177
|
}), q(c);
|
|
2533
2178
|
};
|
|
2534
2179
|
function s(c) {
|
|
2535
|
-
|
|
2180
|
+
o._scene, !(this._highlighted && this._highlighted == c) && this._editMode !== !0 && (this._highlighted = c, c ? (o.setHighlighted(this), this._strokeColor = this.strokeColor, this.setStrokeStyle(p.Color.fromCssColorString("white"), this.strokeWidth)) : this._strokeColor ? this.setStrokeStyle(this._strokeColor, this.strokeWidth) : this.setStrokeStyle(void 0, void 0));
|
|
2536
2181
|
}
|
|
2537
2182
|
function f(c) {
|
|
2538
2183
|
if (this._editMode != c)
|
|
2539
|
-
if (
|
|
2540
|
-
|
|
2541
|
-
var g =
|
|
2184
|
+
if (o.disableAllHighlights(), c) {
|
|
2185
|
+
o.setEdited(this);
|
|
2186
|
+
var g = o._scene, u = this;
|
|
2542
2187
|
if (this._markers == null) {
|
|
2543
|
-
let P = function(
|
|
2544
|
-
var
|
|
2545
|
-
|
|
2188
|
+
let P = function(O, M) {
|
|
2189
|
+
var A = O - 1 < 0 ? M.length - 1 : O - 1;
|
|
2190
|
+
A < m.countBillboards() && (m.getBillboard(A).position = j(A)), A = O, A < m.countBillboards() && (m.getBillboard(A).position = j(A));
|
|
2546
2191
|
}, H = function() {
|
|
2547
|
-
|
|
2192
|
+
u.executeListeners({
|
|
2548
2193
|
name: "onEdited",
|
|
2549
|
-
positions:
|
|
2194
|
+
positions: u.positions
|
|
2550
2195
|
});
|
|
2551
|
-
},
|
|
2552
|
-
var
|
|
2196
|
+
}, j = function(O) {
|
|
2197
|
+
var M = u.positions;
|
|
2553
2198
|
return e.cartographicToCartesian(
|
|
2554
2199
|
new p.EllipsoidGeodesic(
|
|
2555
|
-
e.cartesianToCartographic(
|
|
2556
|
-
e.cartesianToCartographic(
|
|
2200
|
+
e.cartesianToCartographic(M[O]),
|
|
2201
|
+
e.cartesianToCartographic(M[O < M.length - 1 ? O + 1 : 0])
|
|
2557
2202
|
).interpolateUsingFraction(0.5)
|
|
2558
2203
|
);
|
|
2559
2204
|
};
|
|
2560
|
-
var y = new i.BillboardGroup(
|
|
2205
|
+
var y = new i.BillboardGroup(o, B), m = new i.BillboardGroup(o, U), E = {
|
|
2561
2206
|
dragHandlers: {
|
|
2562
|
-
onDrag: function(
|
|
2563
|
-
|
|
2207
|
+
onDrag: function(O, M) {
|
|
2208
|
+
u.positions[O] = M, P(O, u.positions), u._createPrimitive = !0;
|
|
2564
2209
|
},
|
|
2565
|
-
onDragEnd: function(
|
|
2566
|
-
|
|
2210
|
+
onDragEnd: function(O, M) {
|
|
2211
|
+
u._createPrimitive = !0, H();
|
|
2567
2212
|
}
|
|
2568
2213
|
},
|
|
2569
|
-
onDoubleClick: function(
|
|
2570
|
-
|
|
2214
|
+
onDoubleClick: function(O) {
|
|
2215
|
+
u.positions.length < 4 || (u.positions.splice(O, 1), u._createPrimitive = !0, y.removeBillboard(O), m.removeBillboard(O), P(O, u.positions), H());
|
|
2571
2216
|
},
|
|
2572
2217
|
tooltip: function() {
|
|
2573
|
-
if (
|
|
2218
|
+
if (u.positions.length > 3)
|
|
2574
2219
|
return "Double click to remove this point";
|
|
2575
2220
|
}
|
|
2576
2221
|
};
|
|
2577
|
-
y.addBillboards(
|
|
2578
|
-
for (var T = [], b = 0, w =
|
|
2579
|
-
T.push(
|
|
2222
|
+
y.addBillboards(u.positions, E), this._markers = y;
|
|
2223
|
+
for (var T = [], b = 0, w = u.positions.length + (this.isPolygon ? 0 : -1); b < w; b++)
|
|
2224
|
+
T.push(j(b));
|
|
2580
2225
|
var _ = {
|
|
2581
2226
|
dragHandlers: {
|
|
2582
|
-
onDragStart: function(
|
|
2583
|
-
this.index =
|
|
2227
|
+
onDragStart: function(O, M) {
|
|
2228
|
+
this.index = O + 1, u.positions.splice(this.index, 0, M), u._createPrimitive = !0;
|
|
2584
2229
|
},
|
|
2585
|
-
onDrag: function(
|
|
2586
|
-
|
|
2230
|
+
onDrag: function(O, M) {
|
|
2231
|
+
u.positions[this.index] = M, u._createPrimitive = !0;
|
|
2587
2232
|
},
|
|
2588
|
-
onDragEnd: function(
|
|
2589
|
-
y.insertBillboard(this.index,
|
|
2233
|
+
onDragEnd: function(O, M) {
|
|
2234
|
+
y.insertBillboard(this.index, M, E), m.getBillboard(this.index - 1).position = j(this.index - 1), m.insertBillboard(this.index, j(this.index), _), u._createPrimitive = !0, H();
|
|
2590
2235
|
}
|
|
2591
2236
|
},
|
|
2592
2237
|
tooltip: function() {
|
|
2593
2238
|
return "Drag to create a new point";
|
|
2594
2239
|
}
|
|
2595
2240
|
};
|
|
2596
|
-
m.addBillboards(T, _), this._editMarkers = m, this._globeClickhandler = new p.ScreenSpaceEventHandler(g.canvas), this._globeClickhandler.setInputAction(function(
|
|
2597
|
-
var
|
|
2598
|
-
|
|
2241
|
+
m.addBillboards(T, _), this._editMarkers = m, this._globeClickhandler = new p.ScreenSpaceEventHandler(g.canvas), this._globeClickhandler.setInputAction(function(O) {
|
|
2242
|
+
var M = g.pick(O.position);
|
|
2243
|
+
M && M.primitive || u.setEditMode(!1);
|
|
2599
2244
|
}, p.ScreenSpaceEventType.LEFT_CLICK), y.setOnTop(), m.setOnTop();
|
|
2600
2245
|
}
|
|
2601
2246
|
this._editMode = !0;
|
|
@@ -2605,35 +2250,35 @@ var fe = function() {
|
|
|
2605
2250
|
fe.PolylinePrimitive.prototype.setEditable = function() {
|
|
2606
2251
|
if (!this.setEditMode) {
|
|
2607
2252
|
var c = this;
|
|
2608
|
-
c.isPolygon = !1, c.asynchronous = !1,
|
|
2253
|
+
c.isPolygon = !1, c.asynchronous = !1, o.registerEditableShape(c), c.setEditMode = f;
|
|
2609
2254
|
var g = this.width;
|
|
2610
|
-
c.setHighlighted = function(
|
|
2611
|
-
this._editMode !== !0 && (
|
|
2255
|
+
c.setHighlighted = function(u) {
|
|
2256
|
+
this._editMode !== !0 && (u ? (o.setHighlighted(this), this.setWidth(g * 2)) : this.setWidth(g));
|
|
2612
2257
|
}, c.getExtent = function() {
|
|
2613
2258
|
return p.Rectangle.fromCartographicArray(e.cartesianArrayToCartographicArray(this.positions));
|
|
2614
2259
|
}, q(c), c.setEditMode(!1);
|
|
2615
2260
|
}
|
|
2616
2261
|
}, fe.PolygonPrimitive.prototype.setEditable = function() {
|
|
2617
2262
|
var c = this;
|
|
2618
|
-
c.asynchronous = !1,
|
|
2263
|
+
c.asynchronous = !1, o._scene, o.registerEditableShape(c), c.setEditMode = f, c.setHighlighted = s, q(c), c.setEditMode(!1);
|
|
2619
2264
|
}, fe.ExtentPrimitive.prototype.setEditable = function() {
|
|
2620
2265
|
if (!this.setEditMode) {
|
|
2621
|
-
var c = this, g =
|
|
2622
|
-
|
|
2623
|
-
if (this._editMode !=
|
|
2624
|
-
if (
|
|
2625
|
-
if (
|
|
2266
|
+
var c = this, g = o._scene;
|
|
2267
|
+
o.registerEditableShape(c), c.asynchronous = !1, c.setEditMode = function(u) {
|
|
2268
|
+
if (this._editMode != u)
|
|
2269
|
+
if (o.disableAllHighlights(), u) {
|
|
2270
|
+
if (o.setEdited(this), this._markers == null) {
|
|
2626
2271
|
let E = function() {
|
|
2627
2272
|
c.executeListeners({
|
|
2628
2273
|
name: "onEdited",
|
|
2629
2274
|
extent: c.extent
|
|
2630
2275
|
});
|
|
2631
2276
|
};
|
|
2632
|
-
var y = new i.BillboardGroup(
|
|
2277
|
+
var y = new i.BillboardGroup(o, B), m = {
|
|
2633
2278
|
dragHandlers: {
|
|
2634
2279
|
onDrag: function(T, b) {
|
|
2635
2280
|
var w = y.getBillboard((T + 2) % 4).position;
|
|
2636
|
-
c.setExtent(
|
|
2281
|
+
c.setExtent(Y(e.cartesianToCartographic(w), e.cartesianToCartographic(b))), y.updateBillboardsPositions(K(c.extent));
|
|
2637
2282
|
},
|
|
2638
2283
|
onDragEnd: function(T, b) {
|
|
2639
2284
|
E();
|
|
@@ -2643,7 +2288,7 @@ var fe = function() {
|
|
|
2643
2288
|
return "Drag to change the corners of this extent";
|
|
2644
2289
|
}
|
|
2645
2290
|
};
|
|
2646
|
-
y.addBillboards(
|
|
2291
|
+
y.addBillboards(K(c.extent), m), this._markers = y, this._globeClickhandler = new p.ScreenSpaceEventHandler(g.canvas), this._globeClickhandler.setInputAction(function(T) {
|
|
2647
2292
|
var b = g.pick(T.position);
|
|
2648
2293
|
b && !b.isDestroyed() && b.primitive || c.setEditMode(!1);
|
|
2649
2294
|
}, p.ScreenSpaceEventType.LEFT_CLICK), y.setOnTop();
|
|
@@ -2655,11 +2300,11 @@ var fe = function() {
|
|
|
2655
2300
|
}
|
|
2656
2301
|
}, i.EllipsePrimitive.prototype.setEditable = function() {
|
|
2657
2302
|
if (!this.setEditMode) {
|
|
2658
|
-
var c = this, g =
|
|
2659
|
-
c.asynchronous = !1,
|
|
2660
|
-
if (this._editMode !=
|
|
2661
|
-
if (
|
|
2662
|
-
|
|
2303
|
+
var c = this, g = o._scene;
|
|
2304
|
+
c.asynchronous = !1, o.registerEditableShape(c), c.setEditMode = function(u) {
|
|
2305
|
+
if (this._editMode != u)
|
|
2306
|
+
if (o.disableAllHighlights(), u) {
|
|
2307
|
+
o.setEdited(this);
|
|
2663
2308
|
var y = this;
|
|
2664
2309
|
if (this._markers == null) {
|
|
2665
2310
|
let T = function() {
|
|
@@ -2680,7 +2325,7 @@ var fe = function() {
|
|
|
2680
2325
|
rotation: 0
|
|
2681
2326
|
});
|
|
2682
2327
|
};
|
|
2683
|
-
var m = new i.BillboardGroup(
|
|
2328
|
+
var m = new i.BillboardGroup(o, B), E = {
|
|
2684
2329
|
dragHandlers: {
|
|
2685
2330
|
onDrag: function(w, _) {
|
|
2686
2331
|
var P = p.Cartesian3.distance(c.getCenter(), _);
|
|
@@ -2712,16 +2357,16 @@ var fe = function() {
|
|
|
2712
2357
|
radius: this.getRadius(),
|
|
2713
2358
|
granularity: c
|
|
2714
2359
|
})
|
|
2715
|
-
),
|
|
2716
|
-
y = g.attributes.position.values, m.push(new p.Cartesian3(y[
|
|
2360
|
+
), u = 0, y, m = []; u < g.attributes.position.values.length; u += 3)
|
|
2361
|
+
y = g.attributes.position.values, m.push(new p.Cartesian3(y[u], y[u + 1], y[u + 2]));
|
|
2717
2362
|
return m;
|
|
2718
2363
|
}, i.CirclePrimitive.prototype.setEditable = function() {
|
|
2719
2364
|
if (!this.setEditMode) {
|
|
2720
|
-
var c = this, g =
|
|
2721
|
-
c.asynchronous = !1,
|
|
2722
|
-
if (this._editMode !=
|
|
2723
|
-
if (
|
|
2724
|
-
|
|
2365
|
+
var c = this, g = o._scene;
|
|
2366
|
+
c.asynchronous = !1, o.registerEditableShape(c), c.setEditMode = function(u) {
|
|
2367
|
+
if (this._editMode != u)
|
|
2368
|
+
if (o.disableAllHighlights(), u) {
|
|
2369
|
+
o.setEdited(this);
|
|
2725
2370
|
var y = this;
|
|
2726
2371
|
if (this._markers == null) {
|
|
2727
2372
|
let T = function() {
|
|
@@ -2733,7 +2378,7 @@ var fe = function() {
|
|
|
2733
2378
|
radius: c.getRadius()
|
|
2734
2379
|
});
|
|
2735
2380
|
};
|
|
2736
|
-
var m = new i.BillboardGroup(
|
|
2381
|
+
var m = new i.BillboardGroup(o, B), E = {
|
|
2737
2382
|
dragHandlers: {
|
|
2738
2383
|
onDrag: function(w, _) {
|
|
2739
2384
|
c.setRadius(p.Cartesian3.distance(c.getCenter(), _)), m.updateBillboardsPositions(T());
|
|
@@ -2758,7 +2403,7 @@ var fe = function() {
|
|
|
2758
2403
|
}
|
|
2759
2404
|
};
|
|
2760
2405
|
}, i.DrawHelperWidget = function() {
|
|
2761
|
-
function
|
|
2406
|
+
function o(s, f) {
|
|
2762
2407
|
if (!p.defined(f.container))
|
|
2763
2408
|
throw new p.DeveloperError("Container is required");
|
|
2764
2409
|
var c = {
|
|
@@ -2770,19 +2415,19 @@ var fe = function() {
|
|
|
2770
2415
|
clearIcon: "./assets/img/glyphicons_067_cleaning.png",
|
|
2771
2416
|
polylineDrawingOptions: S,
|
|
2772
2417
|
polygonDrawingOptions: d,
|
|
2773
|
-
extentDrawingOptions:
|
|
2418
|
+
extentDrawingOptions: h,
|
|
2774
2419
|
circleDrawingOptions: v
|
|
2775
2420
|
};
|
|
2776
|
-
|
|
2777
|
-
var g = this,
|
|
2778
|
-
|
|
2421
|
+
W(f, c);
|
|
2422
|
+
var g = this, u = document.createElement("DIV");
|
|
2423
|
+
u.className = "toolbar", f.container.appendChild(u);
|
|
2779
2424
|
function y(T, b, w, _) {
|
|
2780
2425
|
var P = document.createElement("DIV");
|
|
2781
|
-
P.className = "button", P.title = w,
|
|
2426
|
+
P.className = "button", P.title = w, u.appendChild(P), P.onclick = _;
|
|
2782
2427
|
var H = document.createElement("SPAN");
|
|
2783
2428
|
P.appendChild(H);
|
|
2784
|
-
var
|
|
2785
|
-
return
|
|
2429
|
+
var j = document.createElement("IMG");
|
|
2430
|
+
return j.src = b, H.appendChild(j), P;
|
|
2786
2431
|
}
|
|
2787
2432
|
var m = s._scene;
|
|
2788
2433
|
y("marker", f.markerIcon, "Click to start drawing a 2D marker", function() {
|
|
@@ -2830,52 +2475,52 @@ var fe = function() {
|
|
|
2830
2475
|
});
|
|
2831
2476
|
});
|
|
2832
2477
|
var E = document.createElement("DIV");
|
|
2833
|
-
E.className = "divider",
|
|
2478
|
+
E.className = "divider", u.appendChild(E), y("clear", f.clearIcon, "Remove all primitives", function() {
|
|
2834
2479
|
m.primitives.removeAll();
|
|
2835
2480
|
}), q(this);
|
|
2836
2481
|
}
|
|
2837
|
-
return
|
|
2838
|
-
}(), i.prototype.addToolbar = function(
|
|
2839
|
-
return s =
|
|
2482
|
+
return o;
|
|
2483
|
+
}(), i.prototype.addToolbar = function(o, s) {
|
|
2484
|
+
return s = D(s, { container: o }), new i.DrawHelperWidget(this, s);
|
|
2840
2485
|
};
|
|
2841
|
-
function
|
|
2486
|
+
function Y(o, s) {
|
|
2842
2487
|
var f = new p.Rectangle();
|
|
2843
|
-
f.west = Math.min(
|
|
2488
|
+
f.west = Math.min(o.longitude, s.longitude), f.east = Math.max(o.longitude, s.longitude), f.south = Math.min(o.latitude, s.latitude), f.north = Math.max(o.latitude, s.latitude);
|
|
2844
2489
|
var c = p.Math.EPSILON7;
|
|
2845
2490
|
return f.east - f.west < c && (f.east += c * 2), f.north - f.south < c && (f.north += c * 2), f;
|
|
2846
2491
|
}
|
|
2847
|
-
function
|
|
2848
|
-
return
|
|
2492
|
+
function z(o, s) {
|
|
2493
|
+
return o.longitude.toFixed(s || 3) + ", " + o.latitude.toFixed(s || 3);
|
|
2849
2494
|
}
|
|
2850
|
-
function V(
|
|
2851
|
-
if (
|
|
2852
|
-
return
|
|
2853
|
-
if (
|
|
2854
|
-
return new
|
|
2855
|
-
s = s || new
|
|
2856
|
-
for (var f in
|
|
2857
|
-
s[f] = typeof s[f] > "u" ? V(
|
|
2495
|
+
function V(o, s) {
|
|
2496
|
+
if (o == null || typeof o != "object" || o.constructor != Object && o.constructor != Array)
|
|
2497
|
+
return o;
|
|
2498
|
+
if (o.constructor == Date || o.constructor == RegExp || o.constructor == Function || o.constructor == String || o.constructor == Number || o.constructor == Boolean)
|
|
2499
|
+
return new o.constructor(o);
|
|
2500
|
+
s = s || new o.constructor();
|
|
2501
|
+
for (var f in o)
|
|
2502
|
+
s[f] = typeof s[f] > "u" ? V(o[f], null) : s[f];
|
|
2858
2503
|
return s;
|
|
2859
2504
|
}
|
|
2860
|
-
function
|
|
2861
|
-
|
|
2505
|
+
function W(o, s) {
|
|
2506
|
+
o = o || {};
|
|
2862
2507
|
var f;
|
|
2863
2508
|
for (f in s)
|
|
2864
|
-
|
|
2509
|
+
o[f] === void 0 && (o[f] = V(s[f]));
|
|
2865
2510
|
}
|
|
2866
|
-
function
|
|
2867
|
-
var f = V(
|
|
2511
|
+
function D(o, s) {
|
|
2512
|
+
var f = V(o), c;
|
|
2868
2513
|
for (c in s)
|
|
2869
2514
|
f[c] === void 0 && (f[c] = V(s[c]));
|
|
2870
2515
|
return f;
|
|
2871
2516
|
}
|
|
2872
|
-
function $(
|
|
2873
|
-
|
|
2517
|
+
function $(o, s, f) {
|
|
2518
|
+
o[s] = f;
|
|
2874
2519
|
}
|
|
2875
|
-
function q(
|
|
2876
|
-
|
|
2520
|
+
function q(o) {
|
|
2521
|
+
o._listeners = {}, o.addListener = function(s, f) {
|
|
2877
2522
|
return this._listeners[s] = this._listeners[s] || [], this._listeners[s].push(f), this._listeners[s].length;
|
|
2878
|
-
},
|
|
2523
|
+
}, o.executeListeners = function(s, f) {
|
|
2879
2524
|
if (this._listeners[s.name] && this._listeners[s.name].length > 0)
|
|
2880
2525
|
for (var c = 0; c < this._listeners[s.name].length; c++)
|
|
2881
2526
|
this._listeners[s.name][c](s);
|
|
@@ -2885,44 +2530,37 @@ var fe = function() {
|
|
|
2885
2530
|
}
|
|
2886
2531
|
return i;
|
|
2887
2532
|
}();
|
|
2888
|
-
const
|
|
2533
|
+
const Rr = 2, Br = (e, n) => {
|
|
2889
2534
|
switch (e) {
|
|
2890
|
-
case
|
|
2891
|
-
if (n.features.length !==
|
|
2535
|
+
case ie.BOX: {
|
|
2536
|
+
if (n.features.length !== Rr)
|
|
2892
2537
|
throw new Error(`${e} must have 2 points`);
|
|
2893
|
-
const t =
|
|
2894
|
-
var
|
|
2895
|
-
return ((
|
|
2896
|
-
}), i =
|
|
2897
|
-
var
|
|
2898
|
-
return ((
|
|
2538
|
+
const t = lt(n.features, (a) => {
|
|
2539
|
+
var r;
|
|
2540
|
+
return ((r = a.properties) == null ? void 0 : r.type) === Ye.BOTTOM_LEFT;
|
|
2541
|
+
}), i = lt(n.features, (a) => {
|
|
2542
|
+
var r;
|
|
2543
|
+
return ((r = a.properties) == null ? void 0 : r.type) === Ye.TOP_RIGHT;
|
|
2899
2544
|
});
|
|
2900
2545
|
if (i && t) {
|
|
2901
2546
|
if (t.geometry.coordinates[0] === i.geometry.coordinates[0] && t.geometry.coordinates[1] === i.geometry.coordinates[1])
|
|
2902
|
-
throw new Error(
|
|
2903
|
-
|
|
2904
|
-
);
|
|
2905
|
-
return Ce.fromDegrees(
|
|
2547
|
+
throw new Error(`${e} must define BOTTOM_LEFT and TOP_RIGHT different points`);
|
|
2548
|
+
return we.fromDegrees(
|
|
2906
2549
|
t.geometry.coordinates[0],
|
|
2907
2550
|
t.geometry.coordinates[1],
|
|
2908
2551
|
i.geometry.coordinates[0],
|
|
2909
2552
|
i.geometry.coordinates[1]
|
|
2910
2553
|
);
|
|
2911
2554
|
} else
|
|
2912
|
-
throw new Error(
|
|
2913
|
-
`${e} geojson must define BOTTOM_LEFT and TOP_RIGHT points`
|
|
2914
|
-
);
|
|
2555
|
+
throw new Error(`${e} geojson must define BOTTOM_LEFT and TOP_RIGHT points`);
|
|
2915
2556
|
}
|
|
2916
2557
|
default:
|
|
2917
2558
|
throw new Error(`${e} type geoJSON still not supported`);
|
|
2918
2559
|
}
|
|
2919
|
-
},
|
|
2560
|
+
}, Nr = (e) => {
|
|
2920
2561
|
const n = e.map((t) => {
|
|
2921
|
-
const i =
|
|
2922
|
-
return [
|
|
2923
|
-
le.toDegrees(i.longitude),
|
|
2924
|
-
le.toDegrees(i.latitude)
|
|
2925
|
-
];
|
|
2562
|
+
const i = Ne.fromCartesian(t);
|
|
2563
|
+
return [le.toDegrees(i.longitude), le.toDegrees(i.latitude)];
|
|
2926
2564
|
});
|
|
2927
2565
|
return n.push(n[0]), {
|
|
2928
2566
|
type: "Feature",
|
|
@@ -2932,169 +2570,127 @@ const xr = 2, Ir = (e, n) => {
|
|
|
2932
2570
|
coordinates: [n]
|
|
2933
2571
|
}
|
|
2934
2572
|
};
|
|
2935
|
-
},
|
|
2936
|
-
const n =
|
|
2937
|
-
[
|
|
2938
|
-
|
|
2939
|
-
le.toDegrees(e.south)
|
|
2940
|
-
],
|
|
2941
|
-
[
|
|
2942
|
-
le.toDegrees(e.east),
|
|
2943
|
-
le.toDegrees(e.north)
|
|
2944
|
-
]
|
|
2573
|
+
}, Fr = (e) => {
|
|
2574
|
+
const n = Ot.lineString([
|
|
2575
|
+
[le.toDegrees(e.west), le.toDegrees(e.south)],
|
|
2576
|
+
[le.toDegrees(e.east), le.toDegrees(e.north)]
|
|
2945
2577
|
]);
|
|
2946
|
-
return
|
|
2947
|
-
},
|
|
2948
|
-
const n =
|
|
2578
|
+
return Rt(Dt(n));
|
|
2579
|
+
}, Gr = (e) => {
|
|
2580
|
+
const n = Ot.lineString([
|
|
2949
2581
|
[e.west, e.south],
|
|
2950
2582
|
[e.east, e.north]
|
|
2951
2583
|
]);
|
|
2952
|
-
return
|
|
2953
|
-
(i) => me.fromRadiansArray(i)[0]
|
|
2954
|
-
);
|
|
2584
|
+
return Rt(Dt(n)).geometry.coordinates[0].map((i) => ge.fromRadiansArray(i)[0]);
|
|
2955
2585
|
};
|
|
2956
|
-
class
|
|
2586
|
+
class ts extends ni {
|
|
2957
2587
|
}
|
|
2958
|
-
const
|
|
2959
|
-
const {
|
|
2960
|
-
|
|
2961
|
-
drawingMaterial: t,
|
|
2962
|
-
drawingVertexColor: i,
|
|
2963
|
-
material: a,
|
|
2964
|
-
hollow: o,
|
|
2965
|
-
outlineWidth: d
|
|
2966
|
-
} = e, u = he(), [v, C] = I();
|
|
2967
|
-
k(() => {
|
|
2588
|
+
const ns = (e) => {
|
|
2589
|
+
const { drawState: n, drawingMaterial: t, drawingVertexColor: i, material: a, hollow: r, outlineWidth: d } = e, h = pe(), [v, C] = k();
|
|
2590
|
+
I(() => {
|
|
2968
2591
|
C(
|
|
2969
2592
|
// eslint-disable-next-line
|
|
2970
|
-
new fe(
|
|
2593
|
+
new fe(h, t, i)
|
|
2971
2594
|
);
|
|
2972
|
-
}, []),
|
|
2595
|
+
}, []), I(() => {
|
|
2973
2596
|
if (v) {
|
|
2974
|
-
const
|
|
2597
|
+
const x = v;
|
|
2975
2598
|
if (n.drawing)
|
|
2976
2599
|
switch (n.type) {
|
|
2977
|
-
case
|
|
2978
|
-
|
|
2600
|
+
case ie.POLYGON:
|
|
2601
|
+
h.scene.globe.depthTestAgainstTerrain = !1, x.startDrawingPolygon({
|
|
2979
2602
|
callback: (L) => {
|
|
2980
2603
|
n.handler({
|
|
2981
2604
|
primitive: L,
|
|
2982
|
-
type:
|
|
2983
|
-
geojson:
|
|
2605
|
+
type: ie.POLYGON,
|
|
2606
|
+
geojson: Nr(L)
|
|
2984
2607
|
});
|
|
2985
2608
|
}
|
|
2986
2609
|
});
|
|
2987
2610
|
break;
|
|
2988
|
-
case
|
|
2989
|
-
|
|
2611
|
+
case ie.BOX:
|
|
2612
|
+
h.scene.globe.depthTestAgainstTerrain = !1, x.startDrawingExtent({
|
|
2990
2613
|
callback: (L) => {
|
|
2991
2614
|
n.handler({
|
|
2992
2615
|
primitive: L,
|
|
2993
|
-
type:
|
|
2994
|
-
geojson:
|
|
2616
|
+
type: ie.BOX,
|
|
2617
|
+
geojson: Fr(L)
|
|
2995
2618
|
});
|
|
2996
2619
|
}
|
|
2997
2620
|
});
|
|
2998
2621
|
break;
|
|
2999
2622
|
default:
|
|
3000
|
-
throw new Error(
|
|
3001
|
-
`[CESIUM DRAW]: ${n.type} unrecognized primitive to draw.`
|
|
3002
|
-
);
|
|
2623
|
+
throw new Error(`[CESIUM DRAW]: ${n.type} unrecognized primitive to draw.`);
|
|
3003
2624
|
}
|
|
3004
2625
|
else
|
|
3005
|
-
|
|
2626
|
+
x.stopDrawing(), h.scene.globe.depthTestAgainstTerrain = !0;
|
|
3006
2627
|
}
|
|
3007
2628
|
}, [n, v]);
|
|
3008
|
-
const S = (
|
|
3009
|
-
let L =
|
|
3010
|
-
|
|
3011
|
-
|
|
3012
|
-
|
|
3013
|
-
|
|
3014
|
-
|
|
3015
|
-
|
|
3016
|
-
return /* @__PURE__ */ l(
|
|
3017
|
-
Pr,
|
|
3018
|
-
{
|
|
3019
|
-
coordinates: L,
|
|
3020
|
-
material: a ?? t
|
|
3021
|
-
}
|
|
3022
|
-
);
|
|
3023
|
-
case re.POLYGON:
|
|
3024
|
-
return /* @__PURE__ */ l(
|
|
3025
|
-
Lr,
|
|
3026
|
-
{
|
|
3027
|
-
hierarchy: new Jn(L),
|
|
3028
|
-
material: a ?? t
|
|
3029
|
-
}
|
|
3030
|
-
);
|
|
2629
|
+
const S = (x) => {
|
|
2630
|
+
let L = x.coordinates !== void 0 ? x.coordinates : Br(x.type, x.geojson);
|
|
2631
|
+
if (r !== !0)
|
|
2632
|
+
switch (x.type) {
|
|
2633
|
+
case ie.BOX:
|
|
2634
|
+
return /* @__PURE__ */ l(Ir, { coordinates: L, material: a ?? t });
|
|
2635
|
+
case ie.POLYGON:
|
|
2636
|
+
return /* @__PURE__ */ l(kr, { hierarchy: new ii(L), material: a ?? t });
|
|
3031
2637
|
default:
|
|
3032
|
-
return /* @__PURE__ */ l(
|
|
2638
|
+
return /* @__PURE__ */ l(re, {});
|
|
3033
2639
|
}
|
|
3034
2640
|
else {
|
|
3035
|
-
switch (
|
|
3036
|
-
case
|
|
3037
|
-
L =
|
|
2641
|
+
switch (x.type) {
|
|
2642
|
+
case ie.BOX:
|
|
2643
|
+
L = Gr(L);
|
|
3038
2644
|
break;
|
|
3039
|
-
case
|
|
3040
|
-
L = [
|
|
3041
|
-
...L,
|
|
3042
|
-
L[0]
|
|
3043
|
-
];
|
|
2645
|
+
case ie.POLYGON:
|
|
2646
|
+
L = [...L, L[0]];
|
|
3044
2647
|
break;
|
|
3045
2648
|
default:
|
|
3046
|
-
return /* @__PURE__ */ l(
|
|
2649
|
+
return /* @__PURE__ */ l(re, {});
|
|
3047
2650
|
}
|
|
3048
|
-
return /* @__PURE__ */ l(
|
|
3049
|
-
Ar,
|
|
3050
|
-
{
|
|
3051
|
-
positions: L,
|
|
3052
|
-
width: d ?? 1,
|
|
3053
|
-
material: a ?? t
|
|
3054
|
-
}
|
|
3055
|
-
);
|
|
2651
|
+
return /* @__PURE__ */ l(Dr, { positions: L, width: d ?? 1, material: a ?? t });
|
|
3056
2652
|
}
|
|
3057
2653
|
};
|
|
3058
|
-
return /* @__PURE__ */ l(
|
|
3059
|
-
/* @__PURE__ */
|
|
3060
|
-
/* @__PURE__ */
|
|
2654
|
+
return /* @__PURE__ */ l(Or, { ...e, children: e.drawings.map((x, L) => /* @__PURE__ */ R(Ar, { name: x.name, children: [
|
|
2655
|
+
/* @__PURE__ */ R(xr, { children: [
|
|
2656
|
+
/* @__PURE__ */ R("h1", { children: [
|
|
3061
2657
|
"Drawed Entity ",
|
|
3062
|
-
|
|
2658
|
+
x.name
|
|
3063
2659
|
] }),
|
|
3064
2660
|
/* @__PURE__ */ l("p", { children: "This is description of drawed entity" })
|
|
3065
2661
|
] }),
|
|
3066
|
-
S(
|
|
3067
|
-
] },
|
|
2662
|
+
S(x)
|
|
2663
|
+
] }, x.id)) });
|
|
3068
2664
|
};
|
|
3069
|
-
class
|
|
2665
|
+
class is extends ri {
|
|
3070
2666
|
}
|
|
3071
|
-
class
|
|
2667
|
+
class rs extends oi {
|
|
3072
2668
|
}
|
|
3073
|
-
class
|
|
2669
|
+
class os extends si {
|
|
3074
2670
|
}
|
|
3075
|
-
class
|
|
2671
|
+
class ss extends _e {
|
|
3076
2672
|
}
|
|
3077
|
-
class
|
|
2673
|
+
class as extends ge {
|
|
3078
2674
|
}
|
|
3079
|
-
class
|
|
2675
|
+
class ls extends Ne {
|
|
3080
2676
|
}
|
|
3081
|
-
class
|
|
2677
|
+
class cs extends ai {
|
|
3082
2678
|
}
|
|
3083
|
-
class
|
|
2679
|
+
class ds extends li {
|
|
3084
2680
|
}
|
|
3085
|
-
class
|
|
2681
|
+
class us extends ci {
|
|
3086
2682
|
}
|
|
3087
|
-
class
|
|
2683
|
+
class hs extends we {
|
|
3088
2684
|
}
|
|
3089
|
-
class
|
|
2685
|
+
class ps extends di {
|
|
3090
2686
|
}
|
|
3091
|
-
class
|
|
2687
|
+
class ms extends ui {
|
|
3092
2688
|
}
|
|
3093
|
-
class
|
|
2689
|
+
class gs extends hi {
|
|
3094
2690
|
}
|
|
3095
|
-
const
|
|
3096
|
-
const
|
|
3097
|
-
const [n, t] =
|
|
2691
|
+
const fs = pi, ys = mi;
|
|
2692
|
+
const Hr = 38, Vr = 40, zr = 13, $r = 14, Ur = 27, Wr = 9, jr = 10, Kr = 100, qr = (e) => {
|
|
2693
|
+
const [n, t] = k(e.defaultValue ?? ""), [i, a] = k(!1), [r, d] = k({
|
|
3098
2694
|
helperVisible: !1,
|
|
3099
2695
|
left: 0,
|
|
3100
2696
|
right: 0,
|
|
@@ -3107,132 +2703,129 @@ const Rr = 38, Br = 40, Nr = 13, Fr = 14, Hr = 27, Gr = 9, Vr = 10, zr = 100, $r
|
|
|
3107
2703
|
value: "",
|
|
3108
2704
|
caret: 0,
|
|
3109
2705
|
width: "unset"
|
|
3110
|
-
}),
|
|
3111
|
-
|
|
2706
|
+
}), h = ve(null);
|
|
2707
|
+
I(() => (window.addEventListener("resize", U), () => {
|
|
3112
2708
|
try {
|
|
3113
|
-
window.removeEventListener("resize",
|
|
2709
|
+
window.removeEventListener("resize", U);
|
|
3114
2710
|
} catch (g) {
|
|
3115
2711
|
console.log('WINDOW "resize" remove listener failed', g);
|
|
3116
2712
|
}
|
|
3117
|
-
}), []),
|
|
2713
|
+
}), []), I(() => {
|
|
3118
2714
|
typeof e.value < "u" && t(e.value), typeof e.defaultValue < "u" && t(e.defaultValue);
|
|
3119
|
-
}, [e.value, e.defaultValue]),
|
|
3120
|
-
const { options: g } = e, { caret:
|
|
3121
|
-
|
|
2715
|
+
}, [e.value, e.defaultValue]), I(() => {
|
|
2716
|
+
const { options: g } = e, { caret: u } = r;
|
|
2717
|
+
Y(n, u, g);
|
|
3122
2718
|
}, [e]);
|
|
3123
|
-
const v = (g,
|
|
2719
|
+
const v = (g, u, y) => {
|
|
3124
2720
|
const { trigger: m, matchAny: E, regex: T } = e, b = new RegExp(T);
|
|
3125
2721
|
let w = m;
|
|
3126
2722
|
Array.isArray(w) || (w = new Array(m)), w.sort();
|
|
3127
2723
|
const _ = {};
|
|
3128
|
-
Array.isArray(y) && w.forEach((
|
|
3129
|
-
_[
|
|
2724
|
+
Array.isArray(y) && w.forEach((j) => {
|
|
2725
|
+
_[j] = y;
|
|
3130
2726
|
});
|
|
3131
2727
|
const P = C(w, b);
|
|
3132
2728
|
let H = {};
|
|
3133
|
-
for (let
|
|
3134
|
-
const { triggerStr:
|
|
3135
|
-
for (let
|
|
3136
|
-
const
|
|
2729
|
+
for (let j = 0; j < P.length; j++) {
|
|
2730
|
+
const { triggerStr: O, triggerMatch: M, triggerLength: A } = P[j];
|
|
2731
|
+
for (let F = u - 1; F >= 0; --F) {
|
|
2732
|
+
const oe = g.substring(F, u).match(b);
|
|
3137
2733
|
let ee = -1;
|
|
3138
|
-
if (
|
|
3139
|
-
const se =
|
|
3140
|
-
if (se < 0 || (S(
|
|
2734
|
+
if (A > 0) {
|
|
2735
|
+
const se = M ? F : F - A + 1;
|
|
2736
|
+
if (se < 0 || (S(O, g, se) && (ee = se + A), !oe && ee < 0))
|
|
3141
2737
|
break;
|
|
3142
2738
|
} else {
|
|
3143
|
-
if (
|
|
2739
|
+
if (oe && F > 0)
|
|
3144
2740
|
continue;
|
|
3145
|
-
if (ee =
|
|
2741
|
+
if (ee = F === 0 && oe ? 0 : F + 1, u - ee === 0)
|
|
3146
2742
|
break;
|
|
3147
2743
|
}
|
|
3148
2744
|
if (ee >= 0) {
|
|
3149
|
-
const se = _[
|
|
2745
|
+
const se = _[O];
|
|
3150
2746
|
if (!Array.isArray(se))
|
|
3151
2747
|
continue;
|
|
3152
|
-
const
|
|
3153
|
-
const
|
|
3154
|
-
return
|
|
3155
|
-
}),
|
|
2748
|
+
const Se = g.substring(ee, u), Ae = se.filter((Yt) => {
|
|
2749
|
+
const rt = Yt.toLowerCase().indexOf(Se.toLowerCase());
|
|
2750
|
+
return rt !== -1 && (E || rt === 0);
|
|
2751
|
+
}), Kt = O, qt = Se.length;
|
|
3156
2752
|
H = {
|
|
3157
2753
|
...H,
|
|
3158
|
-
trigger:
|
|
2754
|
+
trigger: Kt,
|
|
3159
2755
|
matchStart: ee,
|
|
3160
|
-
matchLength:
|
|
3161
|
-
options:
|
|
2756
|
+
matchLength: qt,
|
|
2757
|
+
options: Ae
|
|
3162
2758
|
};
|
|
3163
2759
|
}
|
|
3164
2760
|
}
|
|
3165
2761
|
}
|
|
3166
2762
|
return H;
|
|
3167
|
-
}, C = (g,
|
|
2763
|
+
}, C = (g, u) => g.map((m) => ({
|
|
3168
2764
|
triggerStr: m,
|
|
3169
|
-
triggerMatch: m.match(
|
|
2765
|
+
triggerMatch: m.match(u),
|
|
3170
2766
|
triggerLength: m.length
|
|
3171
|
-
})), S = (g,
|
|
3172
|
-
const { onChange:
|
|
3173
|
-
if (w.length ||
|
|
3174
|
-
...
|
|
2767
|
+
})), S = (g, u, y) => !g || !g.length || u.substr(y, g.length) === g, x = (g) => {
|
|
2768
|
+
const { onChange: u, options: y, spaceRemovers: m, spacer: E, value: T } = e, b = n, w = g.target.value, _ = vi(L(g.target)).end;
|
|
2769
|
+
if (w.length || G({
|
|
2770
|
+
...r,
|
|
3175
2771
|
helperVisible: !1
|
|
3176
|
-
}), t(w),
|
|
3177
|
-
...
|
|
2772
|
+
}), t(w), G({
|
|
2773
|
+
...r,
|
|
3178
2774
|
caret: _,
|
|
3179
2775
|
value: g.target.value
|
|
3180
2776
|
}), !w.length || !_)
|
|
3181
|
-
return
|
|
2777
|
+
return u(g.target.value);
|
|
3182
2778
|
if (i && m.length && w.length > 2 && E.length) {
|
|
3183
2779
|
for (let P = 0; P < Math.max(b.length, w.length); ++P)
|
|
3184
2780
|
if (b[P] !== w[P]) {
|
|
3185
|
-
if (P >= 2 && w[P - 1] === E && m.indexOf(w[P - 2]) === -1 && m.indexOf(w[P]) !== -1 && !
|
|
3186
|
-
const H = `${w.slice(0, P - 1)}${w.slice(
|
|
3187
|
-
|
|
3188
|
-
|
|
3189
|
-
)}${w.slice(P - 1, P)}${w.slice(P + 1)}`;
|
|
3190
|
-
return Y(P + 1), u.current !== null && (u.current.value = H), T || F({
|
|
3191
|
-
...o,
|
|
2781
|
+
if (P >= 2 && w[P - 1] === E && m.indexOf(w[P - 2]) === -1 && m.indexOf(w[P]) !== -1 && !qe(v(w.substring(0, P - 2), _ - 3, y))) {
|
|
2782
|
+
const H = `${w.slice(0, P - 1)}${w.slice(P, P + 1)}${w.slice(P - 1, P)}${w.slice(P + 1)}`;
|
|
2783
|
+
return J(P + 1), h.current !== null && (h.current.value = H), T || G({
|
|
2784
|
+
...r,
|
|
3192
2785
|
value: H
|
|
3193
|
-
}),
|
|
2786
|
+
}), u(H);
|
|
3194
2787
|
}
|
|
3195
2788
|
break;
|
|
3196
2789
|
}
|
|
3197
2790
|
a(!1);
|
|
3198
2791
|
}
|
|
3199
|
-
return
|
|
2792
|
+
return Y(w, _, y), u(g.target.value);
|
|
3200
2793
|
}, L = (g) => {
|
|
3201
2794
|
if (g !== void 0)
|
|
3202
2795
|
if (g.children.length > 0) {
|
|
3203
|
-
const
|
|
3204
|
-
if (
|
|
3205
|
-
return
|
|
2796
|
+
const u = g.getElementsByTagName("textarea");
|
|
2797
|
+
if (u.length > 0)
|
|
2798
|
+
return u[0];
|
|
3206
2799
|
const y = g.getElementsByTagName("input");
|
|
3207
2800
|
if (y.length > 0)
|
|
3208
2801
|
return y[0];
|
|
3209
2802
|
} else
|
|
3210
2803
|
return g;
|
|
3211
|
-
},
|
|
3212
|
-
const { helperVisible:
|
|
3213
|
-
if (
|
|
2804
|
+
}, B = (g) => {
|
|
2805
|
+
const { helperVisible: u, options: y, selection: m } = r, { onKeyDown: E, passThroughEnter: T } = e;
|
|
2806
|
+
if (u)
|
|
3214
2807
|
switch (g.keyCode) {
|
|
3215
|
-
case
|
|
3216
|
-
g.preventDefault(),
|
|
2808
|
+
case Ur:
|
|
2809
|
+
g.preventDefault(), z();
|
|
3217
2810
|
break;
|
|
3218
|
-
case
|
|
3219
|
-
g.preventDefault(),
|
|
3220
|
-
...
|
|
2811
|
+
case Hr:
|
|
2812
|
+
g.preventDefault(), G({
|
|
2813
|
+
...r,
|
|
3221
2814
|
selection: (y.length + m - 1) % y.length
|
|
3222
2815
|
});
|
|
3223
2816
|
break;
|
|
3224
|
-
case
|
|
3225
|
-
g.preventDefault(),
|
|
3226
|
-
...
|
|
2817
|
+
case Vr:
|
|
2818
|
+
g.preventDefault(), G({
|
|
2819
|
+
...r,
|
|
3227
2820
|
selection: (m + 1) % y.length
|
|
3228
2821
|
});
|
|
3229
2822
|
break;
|
|
3230
|
-
case
|
|
3231
|
-
case
|
|
3232
|
-
T || g.preventDefault(),
|
|
2823
|
+
case $r:
|
|
2824
|
+
case zr:
|
|
2825
|
+
T || g.preventDefault(), K(m);
|
|
3233
2826
|
break;
|
|
3234
|
-
case
|
|
3235
|
-
|
|
2827
|
+
case Wr:
|
|
2828
|
+
K(m);
|
|
3236
2829
|
break;
|
|
3237
2830
|
default:
|
|
3238
2831
|
E(g);
|
|
@@ -3240,146 +2833,112 @@ const Rr = 38, Br = 40, Nr = 13, Fr = 14, Hr = 27, Gr = 9, Vr = 10, zr = 100, $r
|
|
|
3240
2833
|
}
|
|
3241
2834
|
else
|
|
3242
2835
|
E(g);
|
|
3243
|
-
},
|
|
3244
|
-
|
|
3245
|
-
...
|
|
2836
|
+
}, U = () => {
|
|
2837
|
+
G({
|
|
2838
|
+
...r,
|
|
3246
2839
|
helperVisible: !1
|
|
3247
2840
|
});
|
|
3248
|
-
},
|
|
3249
|
-
const { spacer:
|
|
3250
|
-
|
|
3251
|
-
},
|
|
3252
|
-
|
|
3253
|
-
...
|
|
2841
|
+
}, K = (g) => {
|
|
2842
|
+
const { spacer: u, onSelect: y, changeOnSelect: m } = e, { matchStart: E, matchLength: T, options: b, trigger: w } = r, _ = b[g], P = n, H = P.substring(0, E - w.length), j = P.substring(E + T), O = { target: h.current }, M = m(w, _);
|
|
2843
|
+
O.target !== null && (O.target.value = `${H}${M}${u}${j}`), x(O), O.target !== null && y(O.target.value), z(), J(H.length + M.length + 1), a(!0);
|
|
2844
|
+
}, J = (g) => {
|
|
2845
|
+
G({
|
|
2846
|
+
...r,
|
|
3254
2847
|
caret: g
|
|
3255
2848
|
});
|
|
3256
|
-
const
|
|
3257
|
-
|
|
3258
|
-
},
|
|
2849
|
+
const u = L(h.current);
|
|
2850
|
+
Ei(u, g);
|
|
2851
|
+
}, G = (g) => {
|
|
3259
2852
|
setTimeout(() => {
|
|
3260
2853
|
d({
|
|
3261
2854
|
...g
|
|
3262
2855
|
});
|
|
3263
2856
|
}, 0);
|
|
3264
|
-
},
|
|
3265
|
-
const m =
|
|
3266
|
-
if (
|
|
2857
|
+
}, Y = (g, u, y) => {
|
|
2858
|
+
const m = h.current;
|
|
2859
|
+
if (h.current === null)
|
|
3267
2860
|
return;
|
|
3268
2861
|
const E = L(m);
|
|
3269
2862
|
if (E === void 0)
|
|
3270
2863
|
return;
|
|
3271
|
-
const T = m.getBoundingClientRect(), b = v(g,
|
|
2864
|
+
const T = m.getBoundingClientRect(), b = v(g, u, y);
|
|
3272
2865
|
if (Object.keys(b).length > 0 && E !== null) {
|
|
3273
|
-
const w =
|
|
3274
|
-
|
|
3275
|
-
|
|
3276
|
-
|
|
3277
|
-
mode: M
|
|
3278
|
-
} = e;
|
|
3279
|
-
let x, B, G, pe = "unset";
|
|
3280
|
-
M === "assist" ? (x = m === E ? w.top + E.offsetTop : w.top + T.top, B = Math.min(
|
|
3281
|
-
w.left + E.offsetLeft - Vr,
|
|
3282
|
-
E.offsetLeft + _.width - zr
|
|
3283
|
-
)) : (x = T.top + m.offsetHeight, B = m.offsetLeft, G = m.offsetLeft - m.offsetWidth, pe = `${T.width}px`), b.matchLength >= P && (b.options.length > 1 || b.options.length === 1 && b.options[0].length !== b.matchLength) ? F({
|
|
3284
|
-
...o,
|
|
2866
|
+
const w = yi(E, u), _ = E.getBoundingClientRect(), { minChars: P, onRequestOptions: H, requestOnlyIfNoOptions: j, mode: O } = e;
|
|
2867
|
+
let M, A, F, de = "unset";
|
|
2868
|
+
O === "assist" ? (M = m === E ? w.top + E.offsetTop : w.top + T.top, A = Math.min(w.left + E.offsetLeft - jr, E.offsetLeft + _.width - Kr)) : (M = T.top + m.offsetHeight, A = m.offsetLeft, F = m.offsetLeft - m.offsetWidth, de = `${T.width}px`), b.matchLength >= P && (b.options.length > 1 || b.options.length === 1 && b.options[0].length !== b.matchLength) ? G({
|
|
2869
|
+
...r,
|
|
3285
2870
|
value: g,
|
|
3286
2871
|
helperVisible: !0,
|
|
3287
|
-
top:
|
|
3288
|
-
left:
|
|
3289
|
-
right:
|
|
3290
|
-
width:
|
|
2872
|
+
top: M,
|
|
2873
|
+
left: A,
|
|
2874
|
+
right: F,
|
|
2875
|
+
width: de,
|
|
3291
2876
|
...b
|
|
3292
|
-
}) : ((!
|
|
2877
|
+
}) : ((!j || !b.options.length) && H(g.substr(b.matchStart, b.matchLength)), z());
|
|
3293
2878
|
} else
|
|
3294
|
-
|
|
3295
|
-
},
|
|
2879
|
+
z();
|
|
2880
|
+
}, z = () => {
|
|
3296
2881
|
setTimeout(() => {
|
|
3297
|
-
|
|
3298
|
-
...
|
|
2882
|
+
G({
|
|
2883
|
+
...r,
|
|
3299
2884
|
helperVisible: !1,
|
|
3300
2885
|
selection: 0
|
|
3301
2886
|
});
|
|
3302
2887
|
}, 100);
|
|
3303
2888
|
}, V = () => {
|
|
3304
|
-
const {
|
|
3305
|
-
helperVisible: g,
|
|
3306
|
-
left: h,
|
|
3307
|
-
right: y,
|
|
3308
|
-
matchStart: m,
|
|
3309
|
-
matchLength: E,
|
|
3310
|
-
options: T,
|
|
3311
|
-
selection: b,
|
|
3312
|
-
top: w,
|
|
3313
|
-
value: _,
|
|
3314
|
-
width: P
|
|
3315
|
-
} = o;
|
|
2889
|
+
const { helperVisible: g, left: u, right: y, matchStart: m, matchLength: E, options: T, selection: b, top: w, value: _, width: P } = r;
|
|
3316
2890
|
if (!g)
|
|
3317
2891
|
return null;
|
|
3318
|
-
const { maxOptions: H, offsetX:
|
|
2892
|
+
const { maxOptions: H, offsetX: j, offsetY: O, direction: M } = e;
|
|
3319
2893
|
if (T.length === 0)
|
|
3320
2894
|
return null;
|
|
3321
2895
|
if (b >= T.length)
|
|
3322
|
-
return
|
|
3323
|
-
...
|
|
2896
|
+
return G({
|
|
2897
|
+
...r,
|
|
3324
2898
|
selection: 0
|
|
3325
2899
|
}), null;
|
|
3326
|
-
const
|
|
3327
|
-
const se =
|
|
3328
|
-
return /* @__PURE__ */
|
|
2900
|
+
const A = H === 0 ? T.length : H, F = T.slice(0, A).map((oe, ee) => {
|
|
2901
|
+
const se = oe.toLowerCase().indexOf(_.substr(m, E).toLowerCase());
|
|
2902
|
+
return /* @__PURE__ */ R(
|
|
3329
2903
|
"li",
|
|
3330
2904
|
{
|
|
3331
2905
|
className: ee === b ? "active" : void 0,
|
|
3332
2906
|
onClick: () => {
|
|
3333
|
-
|
|
2907
|
+
K(ee);
|
|
3334
2908
|
},
|
|
3335
2909
|
onMouseEnter: () => {
|
|
3336
|
-
|
|
3337
|
-
...
|
|
2910
|
+
G({
|
|
2911
|
+
...r,
|
|
3338
2912
|
selection: ee
|
|
3339
2913
|
});
|
|
3340
2914
|
},
|
|
3341
2915
|
children: [
|
|
3342
|
-
|
|
3343
|
-
/* @__PURE__ */ l("strong", { children:
|
|
3344
|
-
|
|
2916
|
+
oe.slice(0, se),
|
|
2917
|
+
/* @__PURE__ */ l("strong", { children: oe.substr(se, E) }),
|
|
2918
|
+
oe.slice(se + E)
|
|
3345
2919
|
]
|
|
3346
2920
|
},
|
|
3347
|
-
|
|
2921
|
+
oe
|
|
3348
2922
|
);
|
|
3349
|
-
}),
|
|
3350
|
-
return /* @__PURE__ */ l(
|
|
3351
|
-
|
|
3352
|
-
{
|
|
3353
|
-
className: "react-autocomplete-input",
|
|
3354
|
-
style: { ...pe, top: w + M, width: P },
|
|
3355
|
-
children: G
|
|
3356
|
-
}
|
|
3357
|
-
);
|
|
3358
|
-
}, {
|
|
3359
|
-
Component: K,
|
|
3360
|
-
ComponentProps: O,
|
|
3361
|
-
defaultValue: $,
|
|
3362
|
-
disabled: q,
|
|
3363
|
-
onBlur: r,
|
|
3364
|
-
value: s,
|
|
3365
|
-
...f
|
|
3366
|
-
} = e, c = Object.assign({}, f);
|
|
2923
|
+
}), de = M === "ltr" ? { left: u + j } : { right: y + j };
|
|
2924
|
+
return /* @__PURE__ */ l("ul", { className: "react-autocomplete-input", style: { ...de, top: w + O, width: P }, children: F });
|
|
2925
|
+
}, { Component: W, ComponentProps: D, defaultValue: $, disabled: q, onBlur: o, value: s, ...f } = e, c = Object.assign({}, f);
|
|
3367
2926
|
return Object.keys(e).forEach((g) => {
|
|
3368
2927
|
delete c[g];
|
|
3369
|
-
}), /* @__PURE__ */
|
|
3370
|
-
|
|
2928
|
+
}), /* @__PURE__ */ R(re, { children: [
|
|
2929
|
+
Ee.cloneElement(W, {
|
|
3371
2930
|
disabled: q,
|
|
3372
|
-
onBlur:
|
|
3373
|
-
onChange:
|
|
3374
|
-
onKeyDown:
|
|
3375
|
-
ref:
|
|
2931
|
+
onBlur: o,
|
|
2932
|
+
onChange: x,
|
|
2933
|
+
onKeyDown: B,
|
|
2934
|
+
ref: h,
|
|
3376
2935
|
value: n,
|
|
3377
2936
|
...c,
|
|
3378
|
-
...
|
|
2937
|
+
...D
|
|
3379
2938
|
}),
|
|
3380
2939
|
V()
|
|
3381
2940
|
] });
|
|
3382
|
-
},
|
|
2941
|
+
}, Yr = {
|
|
3383
2942
|
Component: /* @__PURE__ */ l("textarea", {}),
|
|
3384
2943
|
ComponentProps: {},
|
|
3385
2944
|
defaultValue: void 0,
|
|
@@ -3410,9 +2969,9 @@ const Rr = 38, Br = 40, Nr = 13, Fr = 14, Hr = 27, Gr = 9, Vr = 10, zr = 100, $r
|
|
|
3410
2969
|
passThroughEnter: !1,
|
|
3411
2970
|
mode: "assist",
|
|
3412
2971
|
direction: "ltr"
|
|
3413
|
-
},
|
|
2972
|
+
}, vs = (e) => {
|
|
3414
2973
|
let n = {
|
|
3415
|
-
...
|
|
2974
|
+
...Yr,
|
|
3416
2975
|
...e
|
|
3417
2976
|
};
|
|
3418
2977
|
return e.mode === "autocomplete" && (n = {
|
|
@@ -3420,10 +2979,10 @@ const Rr = 38, Br = 40, Nr = 13, Fr = 14, Hr = 27, Gr = 9, Vr = 10, zr = 100, $r
|
|
|
3420
2979
|
trigger: "",
|
|
3421
2980
|
regex: ".",
|
|
3422
2981
|
spacer: ""
|
|
3423
|
-
}), /* @__PURE__ */ l(
|
|
3424
|
-
},
|
|
2982
|
+
}), /* @__PURE__ */ l(qr, { ...n });
|
|
2983
|
+
}, it = {
|
|
3425
2984
|
formatFileModDate: (e, n) => {
|
|
3426
|
-
const t =
|
|
2985
|
+
const t = Bt.getModDate(n);
|
|
3427
2986
|
return t ? e.formatDate(t, {
|
|
3428
2987
|
dateStyle: "short",
|
|
3429
2988
|
timeStyle: "short"
|
|
@@ -3432,18 +2991,18 @@ const Rr = 38, Br = 40, Nr = 13, Fr = 14, Hr = 27, Gr = 9, Vr = 10, zr = 100, $r
|
|
|
3432
2991
|
formatFileSize: (e, n) => {
|
|
3433
2992
|
if (!n || typeof n.size != "number")
|
|
3434
2993
|
return null;
|
|
3435
|
-
const t = n.size, i =
|
|
2994
|
+
const t = n.size, i = Ti(t, {
|
|
3436
2995
|
bits: !1,
|
|
3437
2996
|
output: "object"
|
|
3438
2997
|
});
|
|
3439
2998
|
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()}`;
|
|
3440
2999
|
}
|
|
3441
|
-
},
|
|
3000
|
+
}, Xr = {
|
|
3442
3001
|
locale: ce.EN,
|
|
3443
|
-
formatters: { ...
|
|
3444
|
-
},
|
|
3002
|
+
formatters: { ...it }
|
|
3003
|
+
}, Zr = {
|
|
3445
3004
|
locale: ce.RU,
|
|
3446
|
-
formatters: { ...
|
|
3005
|
+
formatters: { ...it },
|
|
3447
3006
|
messages: {
|
|
3448
3007
|
"chonky.toolbar.searchPlaceholder": "Поиск",
|
|
3449
3008
|
"chonky.toolbar.visibleFileCount": `{fileCount, plural,
|
|
@@ -3481,9 +3040,9 @@ const Rr = 38, Br = 40, Nr = 13, Fr = 14, Hr = 27, Gr = 9, Vr = 10, zr = 100, $r
|
|
|
3481
3040
|
[`chonky.actions.${N.ToggleHiddenFiles.id}.button.name`]: "Скрытые файлы",
|
|
3482
3041
|
[`chonky.actions.${N.ToggleShowFoldersFirst.id}.button.name`]: "Папки в начале"
|
|
3483
3042
|
}
|
|
3484
|
-
},
|
|
3043
|
+
}, Jr = {
|
|
3485
3044
|
locale: ce.HE,
|
|
3486
|
-
formatters: { ...
|
|
3045
|
+
formatters: { ...it },
|
|
3487
3046
|
messages: {
|
|
3488
3047
|
"chonky.toolbar.searchPlaceholder": "חיפוש",
|
|
3489
3048
|
"chonky.toolbar.visibleFileCount": `{fileCount, plural,
|
|
@@ -3520,32 +3079,32 @@ const Rr = 38, Br = 40, Nr = 13, Fr = 14, Hr = 27, Gr = 9, Vr = 10, zr = 100, $r
|
|
|
3520
3079
|
[`chonky.actions.${N.ToggleHiddenFiles.id}.button.name`]: "קבצים נסתרים",
|
|
3521
3080
|
[`chonky.actions.${N.ToggleShowFoldersFirst.id}.button.name`]: "הצגת תיקיות בראש הרשימה"
|
|
3522
3081
|
}
|
|
3523
|
-
},
|
|
3524
|
-
[ce.EN]:
|
|
3525
|
-
[ce.RU]:
|
|
3526
|
-
[ce.HE]:
|
|
3082
|
+
}, Qr = {
|
|
3083
|
+
[ce.EN]: Xr,
|
|
3084
|
+
[ce.RU]: Zr,
|
|
3085
|
+
[ce.HE]: Jr
|
|
3527
3086
|
};
|
|
3528
|
-
class
|
|
3087
|
+
class Es extends Bt {
|
|
3529
3088
|
}
|
|
3530
|
-
const
|
|
3089
|
+
const Cs = N, eo = {
|
|
3531
3090
|
listView: N.EnableListView.id,
|
|
3532
3091
|
gridView: N.EnableGridView.id
|
|
3533
3092
|
};
|
|
3534
|
-
|
|
3535
|
-
const
|
|
3536
|
-
|
|
3093
|
+
Ci({ iconComponent: bi });
|
|
3094
|
+
const ws = Ee.memo(
|
|
3095
|
+
Ee.forwardRef(
|
|
3537
3096
|
({
|
|
3538
3097
|
theme: e,
|
|
3539
3098
|
styles: n = { height: "100%", minWidth: "600px" },
|
|
3540
|
-
defaultView: t =
|
|
3099
|
+
defaultView: t = eo.listView,
|
|
3541
3100
|
readOnlyMode: i = !1,
|
|
3542
3101
|
locale: a,
|
|
3543
|
-
files:
|
|
3102
|
+
files: r,
|
|
3544
3103
|
folderChain: d,
|
|
3545
|
-
onFileAction:
|
|
3104
|
+
onFileAction: h,
|
|
3546
3105
|
...v
|
|
3547
3106
|
}, C) => {
|
|
3548
|
-
const S =
|
|
3107
|
+
const S = me(
|
|
3549
3108
|
($) => null,
|
|
3550
3109
|
// file.thumbnailUrl ? `https://chonky.io${file.thumbnailUrl}` : null,
|
|
3551
3110
|
[]
|
|
@@ -3560,20 +3119,12 @@ const fs = ve.memo(
|
|
|
3560
3119
|
}
|
|
3561
3120
|
}
|
|
3562
3121
|
})();
|
|
3563
|
-
const
|
|
3564
|
-
|
|
3565
|
-
|
|
3566
|
-
|
|
3567
|
-
|
|
3568
|
-
|
|
3569
|
-
) : {}, [e]), [R, z] = I(!1), [j, Y] = I(), [F, X] = I(
|
|
3570
|
-
!1
|
|
3571
|
-
), [U, V] = I(), [K, O] = I();
|
|
3572
|
-
return k(() => {
|
|
3573
|
-
e && z(!0), Y(t), i ? X(!0) : V([
|
|
3574
|
-
N.CreateFolder,
|
|
3575
|
-
N.DeleteFiles
|
|
3576
|
-
]), a !== void 0 && O(qr[a]);
|
|
3122
|
+
const x = ($) => $.replace(/([A-Z])/g, (q) => "-" + q.toLowerCase()), L = Tt(() => e !== void 0 ? Object.keys(e).reduce((q, o) => {
|
|
3123
|
+
const s = e[o];
|
|
3124
|
+
return o = o.startsWith("--") ? o : `--fp-theme-${x(o)}`, q[o] = s, q;
|
|
3125
|
+
}, {}) : {}, [e]), [B, U] = k(!1), [K, J] = k(), [G, Y] = k(!1), [z, V] = k(), [W, D] = k();
|
|
3126
|
+
return I(() => {
|
|
3127
|
+
e && U(!0), J(t), i ? Y(!0) : V([N.CreateFolder, N.DeleteFiles]), a !== void 0 && D(Qr[a]);
|
|
3577
3128
|
}, [e, t, i, a]), /* @__PURE__ */ l(
|
|
3578
3129
|
ae,
|
|
3579
3130
|
{
|
|
@@ -3582,20 +3133,20 @@ const fs = ve.memo(
|
|
|
3582
3133
|
...L
|
|
3583
3134
|
},
|
|
3584
3135
|
children: /* @__PURE__ */ l(
|
|
3585
|
-
|
|
3136
|
+
wi,
|
|
3586
3137
|
{
|
|
3587
3138
|
ref: C,
|
|
3588
|
-
files:
|
|
3139
|
+
files: r ?? [],
|
|
3589
3140
|
folderChain: d,
|
|
3590
3141
|
onFileAction: ($) => {
|
|
3591
|
-
typeof
|
|
3142
|
+
typeof h == "function" && h($);
|
|
3592
3143
|
},
|
|
3593
3144
|
thumbnailGenerator: S,
|
|
3594
|
-
defaultFileViewActionId:
|
|
3595
|
-
disableDragAndDrop:
|
|
3596
|
-
fileActions:
|
|
3597
|
-
darkMode:
|
|
3598
|
-
i18n:
|
|
3145
|
+
defaultFileViewActionId: K,
|
|
3146
|
+
disableDragAndDrop: G,
|
|
3147
|
+
fileActions: z,
|
|
3148
|
+
darkMode: B,
|
|
3149
|
+
i18n: W,
|
|
3599
3150
|
...v
|
|
3600
3151
|
}
|
|
3601
3152
|
)
|
|
@@ -3605,64 +3156,64 @@ const fs = ve.memo(
|
|
|
3605
3156
|
)
|
|
3606
3157
|
);
|
|
3607
3158
|
export {
|
|
3608
|
-
|
|
3609
|
-
|
|
3159
|
+
vs as Autocomplete,
|
|
3160
|
+
Ye as BboxCorner,
|
|
3610
3161
|
ae as Box,
|
|
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
|
-
|
|
3162
|
+
Ze as COORDINATES_MERCATOR_FRACTION_DIGITS,
|
|
3163
|
+
Xe as COORDINATES_WGS_FRACTION_DIGITS,
|
|
3164
|
+
qo as Cesium3DTileset,
|
|
3165
|
+
cs as CesiumBoundingSphere,
|
|
3166
|
+
ss as CesiumCartesian2,
|
|
3167
|
+
as as CesiumCartesian3,
|
|
3168
|
+
ls as CesiumCartographic,
|
|
3169
|
+
gs as CesiumCesiumTerrainProvider,
|
|
3170
|
+
ts as CesiumColor,
|
|
3171
|
+
os as CesiumConstantPositionProperty,
|
|
3172
|
+
rs as CesiumConstantProperty,
|
|
3173
|
+
Or as CesiumCustomDataSource,
|
|
3174
|
+
ns as CesiumDrawingsDataSource,
|
|
3175
|
+
ds as CesiumEllipsoid,
|
|
3176
|
+
ms as CesiumEllipsoidTerrainProvider,
|
|
3177
|
+
Ar as CesiumEntity,
|
|
3178
|
+
es as CesiumEntityDescription,
|
|
3179
|
+
xr as CesiumEntityStaticDescription,
|
|
3180
|
+
us as CesiumGeographicTilingScheme,
|
|
3181
|
+
Yo as CesiumGeojsonLayer,
|
|
3182
|
+
Ge as CesiumImageryLayer,
|
|
3183
|
+
ys as CesiumLabelStyle,
|
|
3184
|
+
Ko as CesiumMap,
|
|
3185
|
+
Ls as CesiumMath,
|
|
3186
|
+
Qo as CesiumOSMLayer,
|
|
3187
|
+
kr as CesiumPolygonGraphics,
|
|
3188
|
+
is as CesiumPolylineDashMaterialProperty,
|
|
3189
|
+
hs as CesiumRectangle,
|
|
3190
|
+
Ir as CesiumRectangleGraphics,
|
|
3191
|
+
ps as CesiumResource,
|
|
3641
3192
|
ne as CesiumSceneMode,
|
|
3642
|
-
|
|
3643
|
-
|
|
3644
|
-
|
|
3645
|
-
|
|
3646
|
-
|
|
3647
|
-
|
|
3648
|
-
|
|
3649
|
-
|
|
3650
|
-
|
|
3651
|
-
|
|
3652
|
-
|
|
3653
|
-
|
|
3654
|
-
|
|
3655
|
-
|
|
3656
|
-
|
|
3657
|
-
|
|
3658
|
-
|
|
3659
|
-
|
|
3660
|
-
|
|
3193
|
+
fs as CesiumVerticalOrigin,
|
|
3194
|
+
jo as CesiumViewer,
|
|
3195
|
+
Xo as CesiumWMSLayer,
|
|
3196
|
+
Zo as CesiumWMTSLayer,
|
|
3197
|
+
Jo as CesiumXYZLayer,
|
|
3198
|
+
Uo as CssBaseline,
|
|
3199
|
+
Vo as DateTimePicker,
|
|
3200
|
+
Mi as DateTimeRangePicker,
|
|
3201
|
+
Ho as DateTimeRangePickerFormControl,
|
|
3202
|
+
ie as DrawType,
|
|
3203
|
+
Es as FileHelper,
|
|
3204
|
+
ws as FilePicker,
|
|
3205
|
+
Cs as FilePickerActions,
|
|
3206
|
+
eo as FilePickerViewObj,
|
|
3207
|
+
zo as MapFilterContainer,
|
|
3208
|
+
Ai as Popover,
|
|
3209
|
+
he as Proj,
|
|
3210
|
+
Wo as ScopedCssBaseline,
|
|
3211
|
+
$o as SmartTable,
|
|
3661
3212
|
ce as SupportedLocales,
|
|
3662
|
-
|
|
3663
|
-
|
|
3664
|
-
|
|
3665
|
-
|
|
3666
|
-
|
|
3667
|
-
|
|
3213
|
+
Ps as cesiumSampleTerrainMostDetailed,
|
|
3214
|
+
it as defaultFormatters,
|
|
3215
|
+
_i as mapMcToMuiTheme,
|
|
3216
|
+
pe as useCesiumMap,
|
|
3217
|
+
Nt as useMappedMuiTheme,
|
|
3218
|
+
_s as useMediaQuery
|
|
3668
3219
|
};
|