@vcmap/ui 6.0.0-rc.2 → 6.0.0-rc.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/build.js +40 -60
- package/build/buildHelpers.js +2 -8
- package/build/info/conf.json +1 -1
- package/config/projects.config.json +2 -1
- package/config/splashscreen.config.json +45 -0
- package/dist/.htaccess +7 -0
- package/dist/assets/@mdi/font/README.md +25 -0
- package/dist/assets/@mdi/font/css/materialdesignicons.min-7a4f6be0.css +3 -0
- package/dist/assets/@mdi/font/css/materialdesignicons.min.css.map +16 -0
- package/dist/assets/@mdi/font/fonts/materialdesignicons-webfont.woff2 +0 -0
- package/dist/assets/cesium.js +1 -1
- package/dist/assets/{core.cbf44a.js → core-72f21835.js} +673 -641
- package/dist/assets/core.js +1 -1
- package/dist/assets/{ol.86e93c.js → ol-2d33bc8b.js} +42505 -44282
- package/dist/assets/ol.js +1 -1
- package/dist/assets/ui-2ab43a16.css +1 -0
- package/dist/assets/{ui.7c276c.js → ui-2ab43a16.js} +12026 -12100
- package/dist/assets/ui.js +1 -1
- package/dist/assets/vue.js +1 -1
- package/dist/assets/{vuetify.4d18fe.css → vuetify-760ced3b.css} +1 -1
- package/dist/assets/{vuetify.4d18fe.js → vuetify-760ced3b.js} +5720 -5662
- package/dist/assets/vuetify.js +1 -1
- package/dist/index.html +11 -10
- package/index.d.ts +7 -5
- package/index.html +5 -5
- package/index.js +3 -3
- package/lib/olLib.js +84 -23
- package/package.json +5 -5
- package/plugins/@vcmap-show-case/flight-component-example/src/FlightExample.vue +41 -1
- package/plugins/@vcmap-show-case/form-inputs-example/src/FormInputsExample.vue +70 -30
- package/plugins/@vcmap-show-case/form-inputs-example/src/exampleActions.js +7 -11
- package/plugins/@vcmap-show-case/form-inputs-example/src/index.js +2 -2
- package/plugins/@vcmap-show-case/list-example/src/ListExample.vue +21 -8
- package/plugins/@vcmap-show-case/style-input-example/src/StyleExample.vue +29 -90
- package/public/assets/@mdi/font/README.md +25 -0
- package/public/assets/@mdi/font/css/materialdesignicons.min.css +2 -2
- package/public/assets/@mdi/font/css/materialdesignicons.min.css.map +16 -0
- package/public/assets/@mdi/font/fonts/materialdesignicons-webfont.woff2 +0 -0
- package/src/actions/actionHelper.js +20 -20
- package/src/actions/flightActions.js +5 -5
- package/src/actions/listActions.d.ts +0 -7
- package/src/actions/listActions.js +4 -20
- package/src/actions/stateRefAction.js +2 -2
- package/src/application/VcsApp.vue +52 -27
- package/src/application/VcsApp.vue.d.ts +1 -0
- package/src/application/VcsAttributions.vue +2 -13
- package/src/application/VcsAttributionsFooter.vue +10 -11
- package/src/application/VcsPositionDisplay.vue +8 -23
- package/src/application/VcsPositionDisplay.vue.d.ts +0 -1
- package/src/application/VcsSettings.vue +10 -17
- package/src/application/VcsSplashScreen.vue +25 -42
- package/src/application/VcsSplashScreen.vue.d.ts +0 -2
- package/src/application/VcsTextPage.vue +12 -43
- package/src/application/VcsTextPage.vue.d.ts +4 -8
- package/src/application/VcsTextPageFooter.vue +22 -40
- package/src/components/extent/VcsExtentEditor.vue +1 -1
- package/src/components/flight/VcsFlightAnchorsComponent.vue +63 -36
- package/src/components/flight/VcsFlightComponent.vue +16 -21
- package/src/components/flight/VcsFlightPlayer.vue +27 -5
- package/src/components/form-inputs-controls/VcsCheckbox.vue +9 -5
- package/src/components/form-inputs-controls/VcsCoordinate.vue +13 -1
- package/src/components/form-inputs-controls/VcsCoordinate.vue.d.ts +5 -2
- package/src/components/form-inputs-controls/VcsDatePicker.vue +34 -60
- package/src/components/form-inputs-controls/VcsDatePicker.vue.d.ts +1 -63
- package/src/components/form-inputs-controls/VcsFileInput.vue +17 -18
- package/src/components/form-inputs-controls/VcsFileInput.vue.d.ts +1 -0
- package/src/components/form-inputs-controls/VcsLabel.vue +1 -1
- package/src/components/form-inputs-controls/VcsRadio.vue +17 -3
- package/src/components/form-inputs-controls/VcsRadio.vue.d.ts +1 -0
- package/src/components/form-inputs-controls/VcsSelect.vue +39 -27
- package/src/components/form-inputs-controls/VcsSelect.vue.d.ts +5 -2
- package/src/components/form-inputs-controls/VcsSlider.vue +14 -1
- package/src/components/form-inputs-controls/VcsSlider.vue.d.ts +5 -2
- package/src/components/form-inputs-controls/VcsTextArea.vue +26 -22
- package/src/components/form-inputs-controls/VcsTextArea.vue.d.ts +1 -0
- package/src/components/form-inputs-controls/VcsTextField.vue +6 -4
- package/src/components/form-inputs-controls/VcsWizardStep.vue +1 -1
- package/src/components/form-inputs-controls/vcsTextField.scss +8 -8
- package/src/components/form-output/VcsFormattedNumber.vue +15 -1
- package/src/components/form-output/VcsFormattedNumber.vue.d.ts +9 -0
- package/src/components/lists/VcsActionList.vue +7 -7
- package/src/components/lists/VcsList.vue +10 -17
- package/src/components/lists/VcsList.vue.d.ts +3 -7
- package/src/components/lists/VcsListItem.vue +51 -21
- package/src/components/lists/VcsListItem.vue.d.ts +11 -5
- package/src/components/section/VcsExpansionPanel.vue +101 -0
- package/src/components/section/VcsExpansionPanel.vue.d.ts +19 -0
- package/src/components/style/MenuWrapper.vue +24 -26
- package/src/components/style/MenuWrapper.vue.d.ts +4 -4
- package/src/components/style/VcsFillMenu.vue +9 -16
- package/src/components/style/VcsFillMenu.vue.d.ts +0 -18
- package/src/components/style/VcsFillSelector.vue +13 -16
- package/src/components/style/VcsImageMenu.vue +8 -25
- package/src/components/style/VcsImageMenu.vue.d.ts +0 -27
- package/src/components/style/VcsImageSelector.vue +102 -167
- package/src/components/style/VcsImageSelector.vue.d.ts +15 -15
- package/src/components/style/VcsStrokeMenu.vue +8 -15
- package/src/components/style/VcsStrokeMenu.vue.d.ts +0 -18
- package/src/components/style/VcsStrokeSelector.vue +11 -18
- package/src/components/style/VcsTextMenu.vue +9 -12
- package/src/components/style/VcsTextMenu.vue.d.ts +0 -9
- package/src/components/style/VcsTextSelector.vue +79 -95
- package/src/components/style/VcsTextSelector.vue.d.ts +20 -22
- package/src/components/style/VcsVectorStyleComponent.vue +7 -18
- package/src/components/style/VcsVectorStyleComponent.vue.d.ts +1 -1
- package/src/components/style/composables.d.ts +0 -14
- package/src/components/style/composables.js +0 -49
- package/src/components/vector-properties/VcsFeatureEditingWindow.vue +39 -6
- package/src/components/vector-properties/VcsVectorPropertiesComponent.vue +1 -1
- package/src/components/viewpoint/VcsViewpointComponent.vue +21 -8
- package/src/components/viewpoint/VcsViewpointEditor.vue +1 -0
- package/src/contentTree/contentTreeItem.d.ts +2 -2
- package/src/contentTree/contentTreeItem.js +7 -7
- package/src/featureInfo/featureInfo.js +8 -10
- package/src/init.d.ts +5 -38
- package/src/init.js +19 -18
- package/src/legend/StyleLegendItem.vue +4 -9
- package/src/legend/VcsLegend.vue +28 -54
- package/src/manager/buttonManager.js +4 -4
- package/src/manager/collectionManager/CollectionComponent.vue +17 -42
- package/src/manager/collectionManager/CollectionComponent.vue.d.ts +4 -2
- package/src/manager/collectionManager/CollectionComponentContent.vue +7 -6
- package/src/manager/collectionManager/CollectionComponentContent.vue.d.ts +3 -1
- package/src/manager/collectionManager/CollectionComponentList.vue +10 -8
- package/src/manager/collectionManager/CollectionComponentList.vue.d.ts +4 -2
- package/src/manager/collectionManager/CollectionComponentProvider.vue +1 -1
- package/src/manager/collectionManager/CollectionComponentStandalone.vue +3 -2
- package/src/manager/collectionManager/CollectionManager.vue +1 -1
- package/src/manager/collectionManager/collectionComponentClass.js +6 -9
- package/src/manager/collectionManager/collectionManager.js +10 -10
- package/src/manager/collectionManager/editorCollectionComponentClass.js +4 -4
- package/src/manager/contextMenu/contextMenuManager.js +2 -2
- package/src/manager/navbarManager.js +2 -2
- package/src/manager/panel/panelManager.js +3 -3
- package/src/manager/toolbox/toolboxManager.js +10 -10
- package/src/manager/window/windowManager.d.ts +2 -2
- package/src/manager/window/windowManager.js +4 -4
- package/src/search/search.js +2 -2
- package/src/siteConfig.js +1 -1
- package/src/state.js +4 -4
- package/src/vcsUiApp.d.ts +14 -10
- package/src/vcsUiApp.js +1 -1
- package/src/vuePlugins/vuetify.d.ts +2 -0
- package/src/vuePlugins/vuetify.js +11 -0
- package/dist/assets/@mdi/font/css/materialdesignicons.css.map +0 -16
- package/dist/assets/@mdi/font/css/materialdesignicons.min.e3f476.css +0 -3
- package/dist/assets/index-8eGauqjA.js +0 -1
- package/dist/assets/ui.7c276c.css +0 -1
- package/public/assets/@mdi/font/css/materialdesignicons.css.map +0 -16
- package/src/application/VcsCustomScreen.vue +0 -45
- package/src/application/VcsCustomScreen.vue.d.ts +0 -15
- /package/dist/assets/{cesium.0b750d.js → cesium-cb4dbfba.js} +0 -0
- /package/dist/assets/{favicon-128.4c4ce5.png → favicon-128-4c4ce5df.png} +0 -0
- /package/dist/assets/{favicon-180.5b99c0.png → favicon-180-4c4ce5df.png} +0 -0
- /package/dist/assets/{favicon-192.0e205e.png → favicon-192-4c4ce5df.png} +0 -0
- /package/dist/assets/{favicon-32.6b9add.png → favicon-32-4c4ce5df.png} +0 -0
- /package/dist/assets/{favicon.d5ec97.svg → favicon-4c4ce5df.svg} +0 -0
- /package/dist/assets/font/{TitilliumWeb-Regular.9ca076.woff2 → TitilliumWeb-Regular-9ca076be.woff2} +0 -0
- /package/dist/assets/style/{icon-marker.70960f.png → icon-marker-70960f05.png} +0 -0
- /package/dist/assets/style/{icon-marker-blue.534e37.png → icon-marker-blue-534e374b.png} +0 -0
- /package/dist/assets/style/{icon-marker-green.0b6a92.png → icon-marker-green-0b6a92bc.png} +0 -0
- /package/dist/assets/style/{icon-marker-o.036477.png → icon-marker-o-036477fa.png} +0 -0
- /package/dist/assets/style/{icon-marker-o-blue.7b6d62.png → icon-marker-o-blue-7b6d6279.png} +0 -0
- /package/dist/assets/style/{icon-marker-o-green.c863c0.png → icon-marker-o-green-c863c0fa.png} +0 -0
- /package/dist/assets/style/{icon-marker-o-red.93ff58.png → icon-marker-o-red-93ff58df.png} +0 -0
- /package/dist/assets/style/{icon-marker-red.313d03.png → icon-marker-red-313d03e8.png} +0 -0
- /package/dist/assets/style/{icon-pin.b7ce77.png → icon-pin-b7ce771e.png} +0 -0
- /package/dist/assets/style/{icon-pin-blue.7be369.png → icon-pin-blue-7be369a3.png} +0 -0
- /package/dist/assets/style/{icon-pin-green.cbb935.png → icon-pin-green-cbb935fe.png} +0 -0
- /package/dist/assets/style/{icon-pin-red.3f25b2.png → icon-pin-red-3f25b245.png} +0 -0
- /package/dist/assets/{vue.a3cd64.js → vue-03b265aa.js} +0 -0
- /package/public/assets/{favicon-128.png → favicon-128-4c4ce5df.png} +0 -0
- /package/public/assets/{favicon-180.png → favicon-180-4c4ce5df.png} +0 -0
- /package/public/assets/{favicon-192.png → favicon-192-4c4ce5df.png} +0 -0
- /package/public/assets/{favicon-32.png → favicon-32-4c4ce5df.png} +0 -0
- /package/public/assets/{favicon.svg → favicon-4c4ce5df.svg} +0 -0
- /package/src/components/{form-inputs-controls → section}/VcsFormSection.vue +0 -0
- /package/src/components/{form-inputs-controls → section}/VcsFormSection.vue.d.ts +0 -0
@@ -1,9 +1,9 @@
|
|
1
1
|
var Uu = Object.defineProperty;
|
2
2
|
var qu = (i, t, e) => t in i ? Uu(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
|
3
3
|
var h = (i, t, e) => (qu(i, typeof t != "symbol" ? t + "" : t, e), e);
|
4
|
-
import { ol$proj$getTransform as Re, ol$proj$get as Wu, ol$proj$equivalent as Xu, ol$proj$proj4$register as
|
5
|
-
import { Math as N, Cartesian3 as _, Cartographic as se, Cesium3DTileStyle as Pn, Cesium3DTileColorBlendMode as _n, Color as U, TrustedServers as Zt, VerticalOrigin as gt, Cesium3DTileFeature as Yi, Cesium3DTilePointFeature as Zi, Entity as Ki, Material as Rt, Cartesian2 as j, Matrix3 as X, Quaternion as In, Primitive as pt, GeometryInstance as ct, FrustumGeometry as Id, ColorGeometryInstanceAttribute as mr, PerInstanceColorAppearance as Ms, FrustumOutlineGeometry as Ld, destroyObject as Td, EasingFunction as Nd, ConditionsExpression as Dd, Expression as Ad, HeightReference as Le, ClassificationType as ys, NearFarScalar as er, SplitDirection as Me, SceneTransforms as Fd, MaterialAppearance as Ln, ShadowMode as jr, ClassificationPrimitive as Yh, GroundPrimitive as
|
6
|
-
const Qi = Symbol("isMatcher"), Cf = Symbol("Integer"), xf = Symbol("NonEmptyString"),
|
4
|
+
import { ol$proj$getTransform as Re, ol$proj$get as Wu, ol$proj$equivalent as Xu, ol$proj$proj4$register as sl, ol$geom$Circle as Ot, ol$geom$GeometryCollection as zr, ol$style$Style as ee, ol$style$Fill as st, ol$style$Stroke as $e, ol$style$Text as Mo, ol$style$Icon as Ci, ol$style$Circle as xi, ol$style$RegularShape as Hr, ol$has$DEVICE_PIXEL_RATIO as Yu, ol$style$Image as Fh, ol$Feature as ae, ol$extent$containsCoordinate as Xa, ol$Map as Zu, ol$interaction$defaults as Ku, ol$Observable$unByKey as re, ol$View as Co, ol$easing$inAndOut as Ju, ol$extent$containsXY as Rh, ol$extent$boundingExtent as cr, ol$layer$Vector as Gh, ol$extent$getBottomLeft as xo, ol$geom$SimpleGeometry as Qu, ol$geom$Point as Dt, ol$geom$LineString as qt, ol$geom$Polygon as At, ol$geom$MultiPoint as kh, ol$geom$MultiLineString as zh, ol$geom$MultiPolygon as ur, ol$sphere$offset as yn, ol$geom$Polygon$fromCircle as Hh, ol$geom$Polygon$circular as ed, ol$colorlike$asColorLike as td, Feature as Ft, ol$ImageState as rn, ol$extent$getBottomRight as jh, ol$extent$getTopRight as Vh, ol$extent$getTopLeft as aa, ol$proj$transform as ki, ol$source$Vector as dr, ol$tilegrid$createXYZ as $h, ol$TileState as Bh, ol$proj$Projection as id, ol$tilegrid$TileGrid as Uh, ol$source$TileImage as sd, ol$layer$Tile as Es, ol$extent$buffer as qh, ol$extent$getCenter as fr, ol$geom$Polygon$fromExtent as rd, ol$proj$transformExtent as rl, ol$sphere$getDistance as nd, ol$format$GeoJSON as Wh, ol$extent$getWidth as Ya, ol$source$TileWMS as ad, ol$source$ImageWMS as od, ol$format$GML2 as Za, ol$format$WFS as Ka, ol$format$GML3 as Ja, ol$extent$createEmpty as ws, ol$structs$LRUCache as ld, ol$extent$createOrUpdateFromCoordinate as hd, ol$render$canvas$Immediate as cd, ol$geom$flat$transform$transform2D as ud, ol$extent$intersects as dd, ol$geom$SimpleGeometry$transformGeom2D as fd, ol$transform$scale as gd, ol$transform$create as md, ol$transform$compose as pd, ol$extent$extend as gr, ol$source$OSM as yd, ol$layer$Image as Xh, ol$source$ImageStatic as _d, ol$source$TileDebug as vd, ol$source$XYZ as Sd, ol$source$VectorTile as wd, ol$layer$VectorTile as Md, ol$tilegrid$WMTS as Cd, ol$source$WMTS as xd, ol$format$MVT as bd, ol$coordinate$equals as Od, ol$interaction$DragPan as Ed, ol$extent$isEmpty as Qa, ol$geom$LinearRing as Pd } from "./ol-2d33bc8b.js";
|
5
|
+
import { Math as N, Cartesian3 as _, Cartographic as se, Cesium3DTileStyle as Pn, Cesium3DTileColorBlendMode as _n, Color as U, TrustedServers as Zt, VerticalOrigin as gt, Cesium3DTileFeature as Yi, Cesium3DTilePointFeature as Zi, Entity as Ki, Material as Rt, Cartesian2 as j, Matrix3 as X, Quaternion as In, Primitive as pt, GeometryInstance as ct, FrustumGeometry as Id, ColorGeometryInstanceAttribute as mr, PerInstanceColorAppearance as Ms, FrustumOutlineGeometry as Ld, destroyObject as Td, EasingFunction as Nd, ConditionsExpression as Dd, Expression as Ad, HeightReference as Le, ClassificationType as ys, NearFarScalar as er, SplitDirection as Me, SceneTransforms as Fd, MaterialAppearance as Ln, ShadowMode as jr, ClassificationPrimitive as Yh, GroundPrimitive as nl, PolylineMaterialAppearance as eo, GroundPolylinePrimitive as al, PolygonGeometry as Rd, PolygonOutlineGeometry as Gd, GroundPolylineGeometry as bo, PolylineGeometry as zi, PolygonHierarchy as to, CircleGeometry as kd, CircleOutlineGeometry as zd, HeadingPitchRoll as Vi, Matrix4 as R, Transforms as bi, Model as Oo, sampleTerrainMostDetailed as oa, ModelAnimationLoop as Hd, CylinderOutlineGeometry as jd, CylinderGeometry as Zh, EllipsoidOutlineGeometry as Vd, EllipsoidGeometry as Kh, SphereOutlineGeometry as $d, SphereGeometry as Bd, BoxOutlineGeometry as Ud, BoxGeometry as Jh, WallGeometry as qd, WallOutlineGeometry as Wd, LabelStyle as Ma, HorizontalOrigin as Ca, CatmullRomSpline as Qh, ArcType as Tn, PrimitiveCollection as Oi, BillboardCollection as Xd, LabelCollection as Yd, Resource as Zd, CesiumTerrainProvider as ol, Cartesian4 as ll, sampleTerrain as Kd, Ellipsoid as io, Clock as Jd, DataSourceClock as Qd, JulianDate as ec, KeyboardEventModifier as xa, ScreenSpaceEventType as pi, CesiumWidget as ef, DataSourceDisplay as hl, DataSourceCollection as cl, RequestScheduler as tf, ScreenSpaceEventHandler as sf, Ray as tc, Camera as ic, ImageryLayer as Ji, CustomDataSource as sc, BoundingSphere as rc, Intersect as rf, BillboardVisualizer as nf, LabelVisualizer as af, PointVisualizer as of, WebMercatorTilingScheme as Eo, GeographicTilingScheme as nc, Rectangle as yt, Cesium3DTileset as Nn, Composite3DTileContent as lf, HeadingPitchRange as hf, BoundingSphereState as ul, OpenStreetMapImageryProvider as cf, SingleTileImageryProvider as uf, TileMapServiceImageryProvider as df, Event as dl, WebMapServiceImageryProvider as ff, WebMapTileServiceImageryProvider as gf, EntityCollection as mf, CzmlDataSource as pf, Plane as ie, ClippingPlaneCollection as pr, ClippingPlane as yr, ConstantProperty as yf, Globe as _f, LinearSpline as vf, QuaternionSpline as Sf, CoplanarPolygonGeometry as wf, IntersectionTests as Mf } from "./cesium-cb4dbfba.js";
|
6
|
+
const Qi = Symbol("isMatcher"), Cf = Symbol("Integer"), xf = Symbol("NonEmptyString"), Po = /* @__PURE__ */ new Map();
|
7
7
|
[
|
8
8
|
[String, "string"],
|
9
9
|
[Number, "number"],
|
@@ -12,7 +12,7 @@ const Qi = Symbol("isMatcher"), Cf = Symbol("Integer"), xf = Symbol("NonEmptyStr
|
|
12
12
|
[void 0, "undefined"],
|
13
13
|
[Symbol, "symbol"]
|
14
14
|
].forEach(([i, t]) => {
|
15
|
-
|
15
|
+
Po.set(i, t);
|
16
16
|
});
|
17
17
|
function bf(i) {
|
18
18
|
return i == null ? void 0 : i[Qi];
|
@@ -59,14 +59,14 @@ function Ef(i, t, e) {
|
|
59
59
|
}
|
60
60
|
return null;
|
61
61
|
}
|
62
|
-
function
|
62
|
+
function so(i, t, e, s) {
|
63
63
|
const r = s ? `${s}.` : "";
|
64
64
|
if (!_r(i))
|
65
65
|
return `Expected ${Be(i)} to be a plain Object`;
|
66
66
|
let a = !1;
|
67
67
|
const o = Object.keys(t).find((l) => {
|
68
68
|
const c = i[l];
|
69
|
-
return _r(t[l]) ? a =
|
69
|
+
return _r(t[l]) ? a = so(c, t[l], e, r + l) : a = e(c, t[l]), a;
|
70
70
|
});
|
71
71
|
return o ? `${String(a)} in object.${r}${o}` : !1;
|
72
72
|
}
|
@@ -77,13 +77,13 @@ function Pf(i, t) {
|
|
77
77
|
return Number.isInteger(i) ? !1 : `expected ${Be(i)} to be an integer number`;
|
78
78
|
if (t === xf)
|
79
79
|
return typeof i == "string" && i.length > 0 ? !1 : `expected ${Be(i)} to be a non-empty string`;
|
80
|
-
const e =
|
80
|
+
const e = Po.get(t);
|
81
81
|
return e ? typeof i === e ? !1 : `expected ${Be(i)} to be a ${String(e)}` : null;
|
82
82
|
}
|
83
|
-
function
|
83
|
+
function la(i) {
|
84
84
|
if (i === null)
|
85
85
|
return "null";
|
86
|
-
const t =
|
86
|
+
const t = Po.get(i);
|
87
87
|
if (t)
|
88
88
|
return t;
|
89
89
|
const e = i == null ? void 0 : i.className;
|
@@ -98,7 +98,7 @@ function oa(i) {
|
|
98
98
|
if (_r(i)) {
|
99
99
|
const n = {};
|
100
100
|
Object.keys(i).forEach((a) => {
|
101
|
-
n[a] =
|
101
|
+
n[a] = la(i[a]);
|
102
102
|
});
|
103
103
|
try {
|
104
104
|
s = `Object of ${JSON.stringify(n)}`;
|
@@ -127,11 +127,11 @@ function Ps(i, t) {
|
|
127
127
|
if (Array.isArray(r))
|
128
128
|
return Ef(s, r, e);
|
129
129
|
if (r === Object)
|
130
|
-
return
|
130
|
+
return so(s, {}, e);
|
131
131
|
if (r instanceof Function)
|
132
|
-
return s instanceof r ? !1 : `Expected ${Be(s, !0)} to be of Type ${
|
132
|
+
return s instanceof r ? !1 : `Expected ${Be(s, !0)} to be of Type ${la(r)}`;
|
133
133
|
if (typeof r == "object") {
|
134
|
-
const o =
|
134
|
+
const o = so(s, r, e);
|
135
135
|
return o || !1;
|
136
136
|
}
|
137
137
|
throw new Error(`Cannot handle pattern ${String(r)}`);
|
@@ -166,7 +166,7 @@ function ac(i) {
|
|
166
166
|
return t[Qi] = !0, t;
|
167
167
|
}
|
168
168
|
function Fe(...i) {
|
169
|
-
const t = (e) => i.every((r) => Ps(e, r)) ? `Expected ${Be(e)} to be a ${i.map((r) =>
|
169
|
+
const t = (e) => i.every((r) => Ps(e, r)) ? `Expected ${Be(e)} to be a ${i.map((r) => la(r)).join(" or ")}` : !1;
|
170
170
|
return t[Qi] = !0, t;
|
171
171
|
}
|
172
172
|
function Tf(i) {
|
@@ -177,8 +177,8 @@ function Tf(i) {
|
|
177
177
|
};
|
178
178
|
return t[Qi] = !0, t;
|
179
179
|
}
|
180
|
-
function
|
181
|
-
const t = (e) => _r(e) ? Object.values(e).every((r) => es(r, i)) ? !1 : `Not all values of ${Be(e)} are of type ${
|
180
|
+
function fl(i) {
|
181
|
+
const t = (e) => _r(e) ? Object.values(e).every((r) => es(r, i)) ? !1 : `Not all values of ${Be(e)} are of type ${la(i)}` : `Expected ${Be(e)} to be a plain Object`;
|
182
182
|
return t[Qi] = !0, t;
|
183
183
|
}
|
184
184
|
function Dn(i) {
|
@@ -189,7 +189,7 @@ function Dn(i) {
|
|
189
189
|
function Nf(i) {
|
190
190
|
i("EPSG:4326", "+title=WGS 84 (long/lat) +proj=longlat +ellps=WGS84 +datum=WGS84 +units=degrees"), i("EPSG:4269", "+title=NAD83 (long/lat) +proj=longlat +a=6378137.0 +b=6356752.31414036 +ellps=GRS80 +datum=NAD83 +units=degrees"), i("EPSG:3857", "+title=WGS 84 / Pseudo-Mercator +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs"), i.WGS84 = i["EPSG:4326"], i["EPSG:3785"] = i["EPSG:3857"], i.GOOGLE = i["EPSG:3857"], i["EPSG:900913"] = i["EPSG:3857"], i["EPSG:102113"] = i["EPSG:3857"];
|
191
191
|
}
|
192
|
-
var $i = 1, Bi = 2, _s = 3, Df = 4,
|
192
|
+
var $i = 1, Bi = 2, _s = 3, Df = 4, ro = 5, gl = 6378137, Af = 6356752314e-3, ml = 0.0066943799901413165, tr = 484813681109536e-20, b = Math.PI / 2, Ff = 0.16666666666666666, Rf = 0.04722222222222222, Gf = 0.022156084656084655, T = 1e-10, He = 0.017453292519943295, $t = 57.29577951308232, K = Math.PI / 4, vr = Math.PI * 2, we = 3.14159265359, ft = {};
|
193
193
|
ft.greenwich = 0;
|
194
194
|
ft.lisbon = -9.131906111111;
|
195
195
|
ft.paris = 2.337229166667;
|
@@ -207,15 +207,15 @@ const kf = {
|
|
207
207
|
ft: { to_meter: 0.3048 },
|
208
208
|
"us-ft": { to_meter: 1200 / 3937 }
|
209
209
|
};
|
210
|
-
var
|
210
|
+
var pl = /[\s_\-\/\(\)]/g;
|
211
211
|
function Ei(i, t) {
|
212
212
|
if (i[t])
|
213
213
|
return i[t];
|
214
|
-
for (var e = Object.keys(i), s = t.toLowerCase().replace(
|
215
|
-
if (n = e[r], a = n.toLowerCase().replace(
|
214
|
+
for (var e = Object.keys(i), s = t.toLowerCase().replace(pl, ""), r = -1, n, a; ++r < e.length; )
|
215
|
+
if (n = e[r], a = n.toLowerCase().replace(pl, ""), a === s)
|
216
216
|
return i[n];
|
217
217
|
}
|
218
|
-
function
|
218
|
+
function no(i) {
|
219
219
|
var t = {}, e = i.split("+").map(function(o) {
|
220
220
|
return o.trim();
|
221
221
|
}).filter(function(o) {
|
@@ -324,7 +324,7 @@ function ro(i) {
|
|
324
324
|
r = e[s], s in a ? (n = a[s], typeof n == "function" ? n(r) : t[n] = r) : t[s] = r;
|
325
325
|
return typeof t.datumCode == "string" && t.datumCode !== "WGS84" && (t.datumCode = t.datumCode.toLowerCase()), t;
|
326
326
|
}
|
327
|
-
var Sr = 1, oc = 2, lc = 3, An = 4, hc = 5,
|
327
|
+
var Sr = 1, oc = 2, lc = 3, An = 4, hc = 5, Io = -1, zf = /\s/, Hf = /[A-Za-z]/, jf = /[A-Za-z84_]/, ha = /[,\]]/, cc = /[\d\.E\-\+]/;
|
328
328
|
function gi(i) {
|
329
329
|
if (typeof i != "string")
|
330
330
|
throw new Error("not a string");
|
@@ -349,7 +349,7 @@ gi.prototype.readCharicter = function() {
|
|
349
349
|
return this.afterquote(i);
|
350
350
|
case lc:
|
351
351
|
return this.number(i);
|
352
|
-
case
|
352
|
+
case Io:
|
353
353
|
return;
|
354
354
|
}
|
355
355
|
};
|
@@ -358,7 +358,7 @@ gi.prototype.afterquote = function(i) {
|
|
358
358
|
this.word += '"', this.state = An;
|
359
359
|
return;
|
360
360
|
}
|
361
|
-
if (
|
361
|
+
if (ha.test(i)) {
|
362
362
|
this.word = this.word.trim(), this.afterItem(i);
|
363
363
|
return;
|
364
364
|
}
|
@@ -370,7 +370,7 @@ gi.prototype.afterItem = function(i) {
|
|
370
370
|
return;
|
371
371
|
}
|
372
372
|
if (i === "]") {
|
373
|
-
this.level--, this.word !== null && (this.currentObject.push(this.word), this.word = null), this.state = Sr, this.currentObject = this.stack.pop(), this.currentObject || (this.state =
|
373
|
+
this.level--, this.word !== null && (this.currentObject.push(this.word), this.word = null), this.state = Sr, this.currentObject = this.stack.pop(), this.currentObject || (this.state = Io);
|
374
374
|
return;
|
375
375
|
}
|
376
376
|
};
|
@@ -379,7 +379,7 @@ gi.prototype.number = function(i) {
|
|
379
379
|
this.word += i;
|
380
380
|
return;
|
381
381
|
}
|
382
|
-
if (
|
382
|
+
if (ha.test(i)) {
|
383
383
|
this.word = parseFloat(this.word), this.afterItem(i);
|
384
384
|
return;
|
385
385
|
}
|
@@ -402,7 +402,7 @@ gi.prototype.keyword = function(i) {
|
|
402
402
|
t.push(this.word), this.level++, this.root === null ? this.root = t : this.currentObject.push(t), this.stack.push(this.currentObject), this.currentObject = t, this.state = Sr;
|
403
403
|
return;
|
404
404
|
}
|
405
|
-
if (
|
405
|
+
if (ha.test(i)) {
|
406
406
|
this.afterItem(i);
|
407
407
|
return;
|
408
408
|
}
|
@@ -421,7 +421,7 @@ gi.prototype.neutral = function(i) {
|
|
421
421
|
this.word = i, this.state = lc;
|
422
422
|
return;
|
423
423
|
}
|
424
|
-
if (
|
424
|
+
if (ha.test(i)) {
|
425
425
|
this.afterItem(i);
|
426
426
|
return;
|
427
427
|
}
|
@@ -430,7 +430,7 @@ gi.prototype.neutral = function(i) {
|
|
430
430
|
gi.prototype.output = function() {
|
431
431
|
for (; this.place < this.text.length; )
|
432
432
|
this.readCharicter();
|
433
|
-
if (this.state ===
|
433
|
+
if (this.state === Io)
|
434
434
|
return this.root;
|
435
435
|
throw new Error('unable to parse string "' + this.text + '". State is ' + this.state);
|
436
436
|
};
|
@@ -438,7 +438,7 @@ function Vf(i) {
|
|
438
438
|
var t = new gi(i);
|
439
439
|
return t.output();
|
440
440
|
}
|
441
|
-
function
|
441
|
+
function yl(i, t, e) {
|
442
442
|
Array.isArray(t) && (e.unshift(t), t = null);
|
443
443
|
var s = t ? {} : i, r = e.reduce(function(n, a) {
|
444
444
|
return us(a, n), n;
|
@@ -511,13 +511,13 @@ function us(i, t) {
|
|
511
511
|
case "FITTED_CS":
|
512
512
|
case "LOCAL_DATUM":
|
513
513
|
case "DATUM":
|
514
|
-
i[0] = ["name", i[0]],
|
514
|
+
i[0] = ["name", i[0]], yl(t, e, i);
|
515
515
|
return;
|
516
516
|
default:
|
517
517
|
for (s = -1; ++s < i.length; )
|
518
518
|
if (!Array.isArray(i[s]))
|
519
519
|
return us(i, t[e]);
|
520
|
-
return
|
520
|
+
return yl(t, e, i);
|
521
521
|
}
|
522
522
|
}
|
523
523
|
var $f = 0.017453292519943295;
|
@@ -594,7 +594,7 @@ function Je(i) {
|
|
594
594
|
var t = this;
|
595
595
|
if (arguments.length === 2) {
|
596
596
|
var e = arguments[1];
|
597
|
-
typeof e == "string" ? e.charAt(0) === "+" ? Je[i] =
|
597
|
+
typeof e == "string" ? e.charAt(0) === "+" ? Je[i] = no(arguments[1]) : Je[i] = uc(arguments[1]) : Je[i] = e;
|
598
598
|
} else if (arguments.length === 1) {
|
599
599
|
if (Array.isArray(i))
|
600
600
|
return i.map(function(s) {
|
@@ -646,14 +646,14 @@ function eg(i) {
|
|
646
646
|
if (Kf(t))
|
647
647
|
return Je["EPSG:3857"];
|
648
648
|
var e = Jf(t);
|
649
|
-
return e ?
|
649
|
+
return e ? no(e) : t;
|
650
650
|
}
|
651
651
|
if (Qf(i))
|
652
|
-
return
|
652
|
+
return no(i);
|
653
653
|
} else
|
654
654
|
return i;
|
655
655
|
}
|
656
|
-
function
|
656
|
+
function _l(i, t) {
|
657
657
|
i = i || {};
|
658
658
|
var e, s;
|
659
659
|
if (!t)
|
@@ -721,14 +721,14 @@ const ng = {
|
|
721
721
|
};
|
722
722
|
function ag() {
|
723
723
|
}
|
724
|
-
function
|
724
|
+
function vl(i) {
|
725
725
|
return i;
|
726
726
|
}
|
727
727
|
var og = ["longlat", "identity"];
|
728
728
|
const lg = {
|
729
729
|
init: ag,
|
730
|
-
forward:
|
731
|
-
inverse:
|
730
|
+
forward: vl,
|
731
|
+
inverse: vl,
|
732
732
|
names: og
|
733
733
|
};
|
734
734
|
var hg = [ng, lg], vn = {}, Fn = [];
|
@@ -1090,7 +1090,7 @@ De.rnb72 = {
|
|
1090
1090
|
};
|
1091
1091
|
function pg(i, t, e, s, r, n, a) {
|
1092
1092
|
var o = {};
|
1093
|
-
return i === void 0 || i === "none" ? o.datum_type =
|
1093
|
+
return i === void 0 || i === "none" ? o.datum_type = ro : o.datum_type = Df, t && (o.datum_params = t.map(parseFloat), (o.datum_params[0] !== 0 || o.datum_params[1] !== 0 || o.datum_params[2] !== 0) && (o.datum_type = $i), o.datum_params.length > 3 && (o.datum_params[3] !== 0 || o.datum_params[4] !== 0 || o.datum_params[5] !== 0 || o.datum_params[6] !== 0) && (o.datum_type = Bi, o.datum_params[3] *= tr, o.datum_params[4] *= tr, o.datum_params[5] *= tr, o.datum_params[6] = o.datum_params[6] / 1e6 + 1)), a && (o.datum_type = _s, o.grids = a), o.a = e, o.b = s, o.es = r, o.ep2 = n, o;
|
1094
1094
|
}
|
1095
1095
|
var fc = {};
|
1096
1096
|
function yg(i, t) {
|
@@ -1126,14 +1126,14 @@ function wg(i, t) {
|
|
1126
1126
|
nFields: i.getInt32(8, t),
|
1127
1127
|
nSubgridFields: i.getInt32(24, t),
|
1128
1128
|
nSubgrids: i.getInt32(40, t),
|
1129
|
-
shiftType:
|
1129
|
+
shiftType: ao(i, 56, 64).trim(),
|
1130
1130
|
fromSemiMajorAxis: i.getFloat64(120, t),
|
1131
1131
|
fromSemiMinorAxis: i.getFloat64(136, t),
|
1132
1132
|
toSemiMajorAxis: i.getFloat64(152, t),
|
1133
1133
|
toSemiMinorAxis: i.getFloat64(168, t)
|
1134
1134
|
};
|
1135
1135
|
}
|
1136
|
-
function
|
1136
|
+
function ao(i, t, e) {
|
1137
1137
|
return String.fromCharCode.apply(null, new Uint8Array(i.buffer.slice(t, e)));
|
1138
1138
|
}
|
1139
1139
|
function Mg(i, t, e) {
|
@@ -1160,8 +1160,8 @@ function Cg(i) {
|
|
1160
1160
|
}
|
1161
1161
|
function xg(i, t, e) {
|
1162
1162
|
return {
|
1163
|
-
name:
|
1164
|
-
parent:
|
1163
|
+
name: ao(i, t + 8, t + 16).trim(),
|
1164
|
+
parent: ao(i, t + 24, t + 24 + 8).trim(),
|
1165
1165
|
lowerLatitude: i.getFloat64(t + 72, e),
|
1166
1166
|
upperLatitude: i.getFloat64(t + 88, e),
|
1167
1167
|
lowerLongitude: i.getFloat64(t + 104, e),
|
@@ -1214,7 +1214,7 @@ function Ut(i, t) {
|
|
1214
1214
|
a.ep2,
|
1215
1215
|
o
|
1216
1216
|
);
|
1217
|
-
|
1217
|
+
_l(this, e), _l(this, s), this.a = n.a, this.b = n.b, this.rf = n.rf, this.sphere = n.sphere, this.es = a.es, this.e = a.e, this.ep2 = a.ep2, this.datum = l, this.init(), t(null, this);
|
1218
1218
|
}
|
1219
1219
|
Ut.projections = dg;
|
1220
1220
|
Ut.projections.start();
|
@@ -1296,26 +1296,26 @@ function nn(i) {
|
|
1296
1296
|
return i === $i || i === Bi;
|
1297
1297
|
}
|
1298
1298
|
function Ig(i, t, e) {
|
1299
|
-
if (Og(i, t) || i.datum_type ===
|
1299
|
+
if (Og(i, t) || i.datum_type === ro || t.datum_type === ro)
|
1300
1300
|
return e;
|
1301
1301
|
var s = i.a, r = i.es;
|
1302
1302
|
if (i.datum_type === _s) {
|
1303
|
-
var n =
|
1303
|
+
var n = Sl(i, !1, e);
|
1304
1304
|
if (n !== 0)
|
1305
1305
|
return;
|
1306
|
-
s =
|
1306
|
+
s = gl, r = ml;
|
1307
1307
|
}
|
1308
1308
|
var a = t.a, o = t.b, l = t.es;
|
1309
|
-
if (t.datum_type === _s && (a =
|
1309
|
+
if (t.datum_type === _s && (a = gl, o = Af, l = ml), r === l && s === a && !nn(i.datum_type) && !nn(t.datum_type))
|
1310
1310
|
return e;
|
1311
1311
|
if (e = gc(e, r, s), nn(i.datum_type) && (e = Eg(e, i.datum_type, i.datum_params)), nn(t.datum_type) && (e = Pg(e, t.datum_type, t.datum_params)), e = mc(e, l, a, o), t.datum_type === _s) {
|
1312
|
-
var c =
|
1312
|
+
var c = Sl(t, !0, e);
|
1313
1313
|
if (c !== 0)
|
1314
1314
|
return;
|
1315
1315
|
}
|
1316
1316
|
return e;
|
1317
1317
|
}
|
1318
|
-
function
|
1318
|
+
function Sl(i, t, e) {
|
1319
1319
|
if (i.grids === null || i.grids.length === 0)
|
1320
1320
|
return console.log("Grid shift grids not found"), -1;
|
1321
1321
|
var s = { x: -e.x, y: e.y }, r = { x: Number.NaN, y: Number.NaN }, n = [];
|
@@ -1345,14 +1345,14 @@ function Lg(i, t, e) {
|
|
1345
1345
|
return s;
|
1346
1346
|
var r = { x: i.x, y: i.y };
|
1347
1347
|
r.x -= e.ll[0], r.y -= e.ll[1], r.x = D(r.x - Math.PI) + Math.PI;
|
1348
|
-
var n =
|
1348
|
+
var n = wl(r, e);
|
1349
1349
|
if (t) {
|
1350
1350
|
if (isNaN(n.x))
|
1351
1351
|
return s;
|
1352
1352
|
n.x = r.x - n.x, n.y = r.y - n.y;
|
1353
1353
|
var a = 9, o = 1e-12, l, c;
|
1354
1354
|
do {
|
1355
|
-
if (c =
|
1355
|
+
if (c = wl(n, e), isNaN(c.x)) {
|
1356
1356
|
console.log("Inverse grid shift iteration failed, presumably at grid edge. Using first approximation.");
|
1357
1357
|
break;
|
1358
1358
|
}
|
@@ -1365,7 +1365,7 @@ function Lg(i, t, e) {
|
|
1365
1365
|
isNaN(n.x) || (s.x = i.x + n.x, s.y = i.y + n.y);
|
1366
1366
|
return s;
|
1367
1367
|
}
|
1368
|
-
function
|
1368
|
+
function wl(i, t) {
|
1369
1369
|
var e = { x: i.x / t.del[0], y: i.y / t.del[1] }, s = { x: Math.floor(e.x), y: Math.floor(e.y) }, r = { x: e.x - 1 * s.x, y: e.y - 1 * s.y }, n = { x: Number.NaN, y: Number.NaN }, a;
|
1370
1370
|
if (s.x < 0 || s.x >= t.lim[0] || s.y < 0 || s.y >= t.lim[1])
|
1371
1371
|
return n;
|
@@ -1379,7 +1379,7 @@ function Sl(i, t) {
|
|
1379
1379
|
var d = { x: t.cvs[a][0], y: t.cvs[a][1] }, u = r.x * r.y, f = r.x * (1 - r.y), g = (1 - r.x) * (1 - r.y), m = (1 - r.x) * r.y;
|
1380
1380
|
return n.x = g * o.x + f * l.x + m * d.x + u * c.x, n.y = g * o.y + f * l.y + m * d.y + u * c.y, n;
|
1381
1381
|
}
|
1382
|
-
function
|
1382
|
+
function Ml(i, t, e) {
|
1383
1383
|
var s = e.x, r = e.y, n = e.z || 0, a, o, l, c = {};
|
1384
1384
|
for (l = 0; l < 3; l++)
|
1385
1385
|
if (!(t && l === 2 && e.z === void 0))
|
@@ -1415,9 +1415,9 @@ function pc(i) {
|
|
1415
1415
|
return i.length > 2 && (t.z = i[2]), i.length > 3 && (t.m = i[3]), t;
|
1416
1416
|
}
|
1417
1417
|
function Tg(i) {
|
1418
|
-
|
1418
|
+
Cl(i.x), Cl(i.y);
|
1419
1419
|
}
|
1420
|
-
function
|
1420
|
+
function Cl(i) {
|
1421
1421
|
if (typeof Number.isFinite == "function") {
|
1422
1422
|
if (Number.isFinite(i))
|
1423
1423
|
return;
|
@@ -1438,7 +1438,7 @@ function Rn(i, t, e, s) {
|
|
1438
1438
|
m: e.m
|
1439
1439
|
};
|
1440
1440
|
var n = e.z !== void 0;
|
1441
|
-
if (Tg(e), i.datum && t.datum && Ng(i, t) && (r = new Ut("WGS84"), e = Rn(i, r, e, s), i = r), s && i.axis !== "enu" && (e =
|
1441
|
+
if (Tg(e), i.datum && t.datum && Ng(i, t) && (r = new Ut("WGS84"), e = Rn(i, r, e, s), i = r), s && i.axis !== "enu" && (e = Ml(i, !1, e)), i.projName === "longlat")
|
1442
1442
|
e = {
|
1443
1443
|
x: e.x * He,
|
1444
1444
|
y: e.y * He,
|
@@ -1463,10 +1463,10 @@ function Rn(i, t, e, s) {
|
|
1463
1463
|
x: e.x / t.to_meter,
|
1464
1464
|
y: e.y / t.to_meter,
|
1465
1465
|
z: e.z || 0
|
1466
|
-
})), s && t.axis !== "enu" ?
|
1466
|
+
})), s && t.axis !== "enu" ? Ml(t, !0, e) : (e && !n && delete e.z, e);
|
1467
1467
|
}
|
1468
|
-
var
|
1469
|
-
function
|
1468
|
+
var xl = Ut("WGS84");
|
1469
|
+
function ba(i, t, e, s) {
|
1470
1470
|
var r, n, a;
|
1471
1471
|
return Array.isArray(e) ? (r = Rn(i, t, e, s) || { x: NaN, y: NaN }, e.length > 2 ? typeof i.name < "u" && i.name === "geocent" || typeof t.name < "u" && t.name === "geocent" ? typeof r.z == "number" ? [r.x, r.y, r.z].concat(e.splice(3)) : [r.x, r.y, e[2]].concat(e.splice(3)) : [r.x, r.y].concat(e.splice(2)) : [r.x, r.y]) : (n = Rn(i, t, e, s), a = Object.keys(e), a.length === 2 || a.forEach(function(o) {
|
1472
1472
|
if (typeof i.name < "u" && i.name === "geocent" || typeof t.name < "u" && t.name === "geocent") {
|
@@ -1477,22 +1477,22 @@ function xa(i, t, e, s) {
|
|
1477
1477
|
n[o] = e[o];
|
1478
1478
|
}), n);
|
1479
1479
|
}
|
1480
|
-
function
|
1480
|
+
function bl(i) {
|
1481
1481
|
return i instanceof Ut ? i : i.oProj ? i.oProj : Ut(i);
|
1482
1482
|
}
|
1483
1483
|
function Ie(i, t, e) {
|
1484
|
-
i =
|
1484
|
+
i = bl(i);
|
1485
1485
|
var s = !1, r;
|
1486
|
-
return typeof t > "u" ? (t = i, i =
|
1486
|
+
return typeof t > "u" ? (t = i, i = xl, s = !0) : (typeof t.x < "u" || Array.isArray(t)) && (e = t, t = i, i = xl, s = !0), t = bl(t), e ? ba(i, t, e) : (r = {
|
1487
1487
|
forward: function(n, a) {
|
1488
|
-
return
|
1488
|
+
return ba(i, t, n, a);
|
1489
1489
|
},
|
1490
1490
|
inverse: function(n, a) {
|
1491
|
-
return
|
1491
|
+
return ba(t, i, n, a);
|
1492
1492
|
}
|
1493
1493
|
}, s && (r.oProj = t), r);
|
1494
1494
|
}
|
1495
|
-
var
|
1495
|
+
var Ol = 6, yc = "AJSAJS", _c = "AFAFAF", fs = 65, nt = 73, wt = 79, Us = 86, qs = 90;
|
1496
1496
|
const Dg = {
|
1497
1497
|
forward: vc,
|
1498
1498
|
inverse: Ag,
|
@@ -1505,22 +1505,22 @@ function vc(i, t) {
|
|
1505
1505
|
}), t);
|
1506
1506
|
}
|
1507
1507
|
function Ag(i) {
|
1508
|
-
var t =
|
1508
|
+
var t = Lo(Mc(i.toUpperCase()));
|
1509
1509
|
return t.lat && t.lon ? [t.lon, t.lat, t.lon, t.lat] : [t.left, t.bottom, t.right, t.top];
|
1510
1510
|
}
|
1511
1511
|
function Sc(i) {
|
1512
|
-
var t =
|
1512
|
+
var t = Lo(Mc(i.toUpperCase()));
|
1513
1513
|
return t.lat && t.lon ? [t.lon, t.lat] : [(t.left + t.right) / 2, (t.top + t.bottom) / 2];
|
1514
1514
|
}
|
1515
|
-
function
|
1515
|
+
function Oa(i) {
|
1516
1516
|
return i * (Math.PI / 180);
|
1517
1517
|
}
|
1518
|
-
function
|
1518
|
+
function El(i) {
|
1519
1519
|
return 180 * (i / Math.PI);
|
1520
1520
|
}
|
1521
1521
|
function Fg(i) {
|
1522
|
-
var t = i.lat, e = i.lon, s = 6378137, r = 669438e-8, n = 0.9996, a, o, l, c, d, u, f, g =
|
1523
|
-
y = Math.floor((e + 180) / 6) + 1, e === 180 && (y = 60), t >= 56 && t < 64 && e >= 3 && e < 12 && (y = 32), t >= 72 && t < 84 && (e >= 0 && e < 9 ? y = 31 : e >= 9 && e < 21 ? y = 33 : e >= 21 && e < 33 ? y = 35 : e >= 33 && e < 42 && (y = 37)), a = (y - 1) * 6 - 180 + 3, p =
|
1522
|
+
var t = i.lat, e = i.lon, s = 6378137, r = 669438e-8, n = 0.9996, a, o, l, c, d, u, f, g = Oa(t), m = Oa(e), p, y;
|
1523
|
+
y = Math.floor((e + 180) / 6) + 1, e === 180 && (y = 60), t >= 56 && t < 64 && e >= 3 && e < 12 && (y = 32), t >= 72 && t < 84 && (e >= 0 && e < 9 ? y = 31 : e >= 9 && e < 21 ? y = 33 : e >= 21 && e < 33 ? y = 35 : e >= 33 && e < 42 && (y = 37)), a = (y - 1) * 6 - 180 + 3, p = Oa(a), o = r / (1 - r), l = s / Math.sqrt(1 - r * Math.sin(g) * Math.sin(g)), c = Math.tan(g) * Math.tan(g), d = o * Math.cos(g) * Math.cos(g), u = Math.cos(g) * (m - p), f = s * ((1 - r / 4 - 3 * r * r / 64 - 5 * r * r * r / 256) * g - (3 * r / 8 + 3 * r * r / 32 + 45 * r * r * r / 1024) * Math.sin(2 * g) + (15 * r * r / 256 + 45 * r * r * r / 1024) * Math.sin(4 * g) - 35 * r * r * r / 3072 * Math.sin(6 * g));
|
1524
1524
|
var S = n * l * (u + (1 - c + d) * u * u * u / 6 + (5 - 18 * c + c * c + 72 * d - 58 * o) * u * u * u * u * u / 120) + 5e5, w = n * (f + l * Math.tan(g) * (u * u / 2 + (5 - c + 9 * d + 4 * d * d) * u * u * u * u / 24 + (61 - 58 * c + c * c + 600 * d - 330 * o) * u * u * u * u * u * u / 720));
|
1525
1525
|
return t < 0 && (w += 1e7), {
|
1526
1526
|
northing: Math.round(w),
|
@@ -1529,19 +1529,19 @@ function Fg(i) {
|
|
1529
1529
|
zoneLetter: Rg(t)
|
1530
1530
|
};
|
1531
1531
|
}
|
1532
|
-
function
|
1532
|
+
function Lo(i) {
|
1533
1533
|
var t = i.northing, e = i.easting, s = i.zoneLetter, r = i.zoneNumber;
|
1534
1534
|
if (r < 0 || r > 60)
|
1535
1535
|
return null;
|
1536
1536
|
var n = 0.9996, a = 6378137, o = 669438e-8, l, c = (1 - Math.sqrt(1 - o)) / (1 + Math.sqrt(1 - o)), d, u, f, g, m, p, y, S, w, C = e - 5e5, M = t;
|
1537
1537
|
s < "N" && (M -= 1e7), y = (r - 1) * 6 - 180 + 3, l = o / (1 - o), p = M / n, S = p / (a * (1 - o / 4 - 3 * o * o / 64 - 5 * o * o * o / 256)), w = S + (3 * c / 2 - 27 * c * c * c / 32) * Math.sin(2 * S) + (21 * c * c / 16 - 55 * c * c * c * c / 32) * Math.sin(4 * S) + 151 * c * c * c / 96 * Math.sin(6 * S), d = a / Math.sqrt(1 - o * Math.sin(w) * Math.sin(w)), u = Math.tan(w) * Math.tan(w), f = l * Math.cos(w) * Math.cos(w), g = a * (1 - o) / Math.pow(1 - o * Math.sin(w) * Math.sin(w), 1.5), m = C / (d * n);
|
1538
1538
|
var x = w - d * Math.tan(w) / g * (m * m / 2 - (5 + 3 * u + 10 * f - 4 * f * f - 9 * l) * m * m * m * m / 24 + (61 + 90 * u + 298 * f + 45 * u * u - 252 * l - 3 * f * f) * m * m * m * m * m * m / 720);
|
1539
|
-
x =
|
1539
|
+
x = El(x);
|
1540
1540
|
var O = (m - (1 + 2 * u + f) * m * m * m / 6 + (5 - 2 * f + 28 * u - 3 * f * f + 8 * l + 24 * u * u) * m * m * m * m * m / 120) / Math.cos(w);
|
1541
|
-
O = y +
|
1541
|
+
O = y + El(O);
|
1542
1542
|
var L;
|
1543
1543
|
if (i.accuracy) {
|
1544
|
-
var F =
|
1544
|
+
var F = Lo({
|
1545
1545
|
northing: i.northing + i.accuracy,
|
1546
1546
|
easting: i.easting + i.accuracy,
|
1547
1547
|
zoneLetter: i.zoneLetter,
|
@@ -1573,8 +1573,8 @@ function kg(i, t, e) {
|
|
1573
1573
|
return zg(r, n, s);
|
1574
1574
|
}
|
1575
1575
|
function wc(i) {
|
1576
|
-
var t = i %
|
1577
|
-
return t === 0 && (t =
|
1576
|
+
var t = i % Ol;
|
1577
|
+
return t === 0 && (t = Ol), t;
|
1578
1578
|
}
|
1579
1579
|
function zg(i, t, e) {
|
1580
1580
|
var s = e - 1, r = yc.charCodeAt(s), n = _c.charCodeAt(s), a = r + i - 1, o = n + t, l = !1;
|
@@ -1728,34 +1728,34 @@ Cs.fromMGRS = function(i) {
|
|
1728
1728
|
Cs.prototype.toMGRS = function(i) {
|
1729
1729
|
return vc([this.x, this.y], i);
|
1730
1730
|
};
|
1731
|
-
var $g = 1, Bg = 0.25,
|
1731
|
+
var $g = 1, Bg = 0.25, Pl = 0.046875, Il = 0.01953125, Ll = 0.01068115234375, Ug = 0.75, qg = 0.46875, Wg = 0.013020833333333334, Xg = 0.007120768229166667, Yg = 0.3645833333333333, Zg = 0.005696614583333333, Kg = 0.3076171875;
|
1732
1732
|
function Cc(i) {
|
1733
1733
|
var t = [];
|
1734
|
-
t[0] = $g - i * (Bg + i * (
|
1734
|
+
t[0] = $g - i * (Bg + i * (Pl + i * (Il + i * Ll))), t[1] = i * (Ug - i * (Pl + i * (Il + i * Ll)));
|
1735
1735
|
var e = i * i;
|
1736
1736
|
return t[2] = e * (qg - i * (Wg + i * Xg)), e *= i, t[3] = e * (Yg - i * Zg), t[4] = e * i * Kg, t;
|
1737
1737
|
}
|
1738
|
-
function
|
1738
|
+
function ca(i, t, e, s) {
|
1739
1739
|
return e *= t, t *= t, s[0] * i - e * (s[1] + t * (s[2] + t * (s[3] + t * s[4])));
|
1740
1740
|
}
|
1741
1741
|
var Jg = 20;
|
1742
1742
|
function xc(i, t, e) {
|
1743
1743
|
for (var s = 1 / (1 - t), r = i, n = Jg; n; --n) {
|
1744
1744
|
var a = Math.sin(r), o = 1 - t * a * a;
|
1745
|
-
if (o = (
|
1745
|
+
if (o = (ca(r, a, Math.cos(r), e) - i) * (o * Math.sqrt(o)) * s, r -= o, Math.abs(o) < T)
|
1746
1746
|
return r;
|
1747
1747
|
}
|
1748
1748
|
return r;
|
1749
1749
|
}
|
1750
1750
|
function Qg() {
|
1751
|
-
this.x0 = this.x0 !== void 0 ? this.x0 : 0, this.y0 = this.y0 !== void 0 ? this.y0 : 0, this.long0 = this.long0 !== void 0 ? this.long0 : 0, this.lat0 = this.lat0 !== void 0 ? this.lat0 : 0, this.es && (this.en = Cc(this.es), this.ml0 =
|
1751
|
+
this.x0 = this.x0 !== void 0 ? this.x0 : 0, this.y0 = this.y0 !== void 0 ? this.y0 : 0, this.long0 = this.long0 !== void 0 ? this.long0 : 0, this.lat0 = this.lat0 !== void 0 ? this.lat0 : 0, this.es && (this.en = Cc(this.es), this.ml0 = ca(this.lat0, Math.sin(this.lat0), Math.cos(this.lat0), this.en));
|
1752
1752
|
}
|
1753
1753
|
function em(i) {
|
1754
1754
|
var t = i.x, e = i.y, s = D(t - this.long0), r, n, a, o = Math.sin(e), l = Math.cos(e);
|
1755
1755
|
if (this.es) {
|
1756
1756
|
var d = l * s, u = Math.pow(d, 2), f = this.ep2 * Math.pow(l, 2), g = Math.pow(f, 2), m = Math.abs(l) > T ? Math.tan(e) : 0, p = Math.pow(m, 2), y = Math.pow(p, 2);
|
1757
1757
|
r = 1 - this.es * Math.pow(o, 2), d = d / Math.sqrt(r);
|
1758
|
-
var S =
|
1758
|
+
var S = ca(e, o, l, this.en);
|
1759
1759
|
n = this.a * (this.k0 * d * (1 + u / 6 * (1 - p + f + u / 20 * (5 - 18 * p + y + 14 * f - 58 * p * f + u / 42 * (61 + 179 * y - y * p - 479 * p))))) + this.x0, a = this.a * (this.k0 * (S - this.ml0 + o * s * d / 2 * (1 + u / 12 * (5 - p + 9 * f + 4 * g + u / 30 * (61 + y - 58 * p + 270 * f - 330 * p * f + u / 56 * (1385 + 543 * y - y * p - 3111 * p)))))) + this.y0;
|
1760
1760
|
} else {
|
1761
1761
|
var c = l * Math.sin(s);
|
@@ -1811,7 +1811,7 @@ function rm(i) {
|
|
1811
1811
|
var t = Math.abs(i);
|
1812
1812
|
return t = sm(t * (1 + t / (Mt(1, t) + 1))), i < 0 ? -t : t;
|
1813
1813
|
}
|
1814
|
-
function
|
1814
|
+
function To(i, t) {
|
1815
1815
|
for (var e = 2 * Math.cos(2 * t), s = i.length - 1, r = i[s], n = 0, a; --s >= 0; )
|
1816
1816
|
a = -n + e * r + i[s], n = r, r = a;
|
1817
1817
|
return t + a * Math.sin(2 * t);
|
@@ -1836,12 +1836,12 @@ function om() {
|
|
1836
1836
|
this.approx && (Sn.init.apply(this), this.forward = Sn.forward, this.inverse = Sn.inverse), this.x0 = this.x0 !== void 0 ? this.x0 : 0, this.y0 = this.y0 !== void 0 ? this.y0 : 0, this.long0 = this.long0 !== void 0 ? this.long0 : 0, this.lat0 = this.lat0 !== void 0 ? this.lat0 : 0, this.cgb = [], this.cbg = [], this.utg = [], this.gtu = [];
|
1837
1837
|
var i = this.es / (1 + Math.sqrt(1 - this.es)), t = i / (2 - i), e = t;
|
1838
1838
|
this.cgb[0] = t * (2 + t * (-2 / 3 + t * (-2 + t * (116 / 45 + t * (26 / 45 + t * (-2854 / 675)))))), this.cbg[0] = t * (-2 + t * (2 / 3 + t * (4 / 3 + t * (-82 / 45 + t * (32 / 45 + t * (4642 / 4725)))))), e = e * t, this.cgb[1] = e * (7 / 3 + t * (-8 / 5 + t * (-227 / 45 + t * (2704 / 315 + t * (2323 / 945))))), this.cbg[1] = e * (5 / 3 + t * (-16 / 15 + t * (-13 / 9 + t * (904 / 315 + t * (-1522 / 945))))), e = e * t, this.cgb[2] = e * (56 / 15 + t * (-136 / 35 + t * (-1262 / 105 + t * (73814 / 2835)))), this.cbg[2] = e * (-26 / 15 + t * (34 / 21 + t * (8 / 5 + t * (-12686 / 2835)))), e = e * t, this.cgb[3] = e * (4279 / 630 + t * (-332 / 35 + t * (-399572 / 14175))), this.cbg[3] = e * (1237 / 630 + t * (-12 / 5 + t * (-24832 / 14175))), e = e * t, this.cgb[4] = e * (4174 / 315 + t * (-144838 / 6237)), this.cbg[4] = e * (-734 / 315 + t * (109598 / 31185)), e = e * t, this.cgb[5] = e * (601676 / 22275), this.cbg[5] = e * (444337 / 155925), e = Math.pow(t, 2), this.Qn = this.k0 / (1 + t) * (1 + e * (1 / 4 + e * (1 / 64 + e / 256))), this.utg[0] = t * (-0.5 + t * (2 / 3 + t * (-37 / 96 + t * (1 / 360 + t * (81 / 512 + t * (-96199 / 604800)))))), this.gtu[0] = t * (0.5 + t * (-2 / 3 + t * (5 / 16 + t * (41 / 180 + t * (-127 / 288 + t * (7891 / 37800)))))), this.utg[1] = e * (-1 / 48 + t * (-1 / 15 + t * (437 / 1440 + t * (-46 / 105 + t * (1118711 / 3870720))))), this.gtu[1] = e * (13 / 48 + t * (-3 / 5 + t * (557 / 1440 + t * (281 / 630 + t * (-1983433 / 1935360))))), e = e * t, this.utg[2] = e * (-17 / 480 + t * (37 / 840 + t * (209 / 4480 + t * (-5569 / 90720)))), this.gtu[2] = e * (61 / 240 + t * (-103 / 140 + t * (15061 / 26880 + t * (167603 / 181440)))), e = e * t, this.utg[3] = e * (-4397 / 161280 + t * (11 / 504 + t * (830251 / 7257600))), this.gtu[3] = e * (49561 / 161280 + t * (-179 / 168 + t * (6601661 / 7257600))), e = e * t, this.utg[4] = e * (-4583 / 161280 + t * (108847 / 3991680)), this.gtu[4] = e * (34729 / 80640 + t * (-3418889 / 1995840)), e = e * t, this.utg[5] = e * (-20648693 / 638668800), this.gtu[5] = e * (212378941 / 319334400);
|
1839
|
-
var s =
|
1839
|
+
var s = To(this.cbg, this.lat0);
|
1840
1840
|
this.Zb = -this.Qn * (s + nm(this.gtu, 2 * s));
|
1841
1841
|
}
|
1842
1842
|
function lm(i) {
|
1843
1843
|
var t = D(i.x - this.long0), e = i.y;
|
1844
|
-
e =
|
1844
|
+
e = To(this.cbg, e);
|
1845
1845
|
var s = Math.sin(e), r = Math.cos(e), n = Math.sin(t), a = Math.cos(t);
|
1846
1846
|
e = Math.atan2(s, a * r), t = Math.atan2(n * r, Mt(s, r * a)), t = rm(Math.tan(t));
|
1847
1847
|
var o = Oc(this.gtu, 2 * e, 2 * t);
|
@@ -1857,7 +1857,7 @@ function hm(i) {
|
|
1857
1857
|
var n = Oc(this.utg, 2 * e, 2 * t);
|
1858
1858
|
e = e + n[0], t = t + n[1], t = Math.atan(bc(t));
|
1859
1859
|
var a = Math.sin(e), o = Math.cos(e), l = Math.sin(t), c = Math.cos(t);
|
1860
|
-
e = Math.atan2(a * c, Mt(l, c * o)), t = Math.atan2(l, c * o), s = D(t + this.long0), r =
|
1860
|
+
e = Math.atan2(a * c, Mt(l, c * o)), t = Math.atan2(l, c * o), s = D(t + this.long0), r = To(this.cgb, e);
|
1861
1861
|
} else
|
1862
1862
|
s = 1 / 0, r = 1 / 0;
|
1863
1863
|
return i.x = s, i.y = r, i;
|
@@ -1891,36 +1891,36 @@ const mm = {
|
|
1891
1891
|
names: gm,
|
1892
1892
|
dependsOn: dm
|
1893
1893
|
};
|
1894
|
-
function
|
1894
|
+
function No(i, t) {
|
1895
1895
|
return Math.pow((1 - i) / (1 + i), t);
|
1896
1896
|
}
|
1897
1897
|
var pm = 20;
|
1898
1898
|
function ym() {
|
1899
1899
|
var i = Math.sin(this.lat0), t = Math.cos(this.lat0);
|
1900
|
-
t *= t, this.rc = Math.sqrt(1 - this.es) / (1 - this.es * i * i), this.C = Math.sqrt(1 + this.es * t * t / (1 - this.es)), this.phic0 = Math.asin(i / this.C), this.ratexp = 0.5 * this.C * this.e, this.K = Math.tan(0.5 * this.phic0 + K) / (Math.pow(Math.tan(0.5 * this.lat0 + K), this.C) *
|
1900
|
+
t *= t, this.rc = Math.sqrt(1 - this.es) / (1 - this.es * i * i), this.C = Math.sqrt(1 + this.es * t * t / (1 - this.es)), this.phic0 = Math.asin(i / this.C), this.ratexp = 0.5 * this.C * this.e, this.K = Math.tan(0.5 * this.phic0 + K) / (Math.pow(Math.tan(0.5 * this.lat0 + K), this.C) * No(this.e * i, this.ratexp));
|
1901
1901
|
}
|
1902
1902
|
function _m(i) {
|
1903
1903
|
var t = i.x, e = i.y;
|
1904
|
-
return i.y = 2 * Math.atan(this.K * Math.pow(Math.tan(0.5 * e + K), this.C) *
|
1904
|
+
return i.y = 2 * Math.atan(this.K * Math.pow(Math.tan(0.5 * e + K), this.C) * No(this.e * Math.sin(e), this.ratexp)) - b, i.x = this.C * t, i;
|
1905
1905
|
}
|
1906
1906
|
function vm(i) {
|
1907
|
-
for (var t = 1e-14, e = i.x / this.C, s = i.y, r = Math.pow(Math.tan(0.5 * s + K) / this.K, 1 / this.C), n = pm; n > 0 && (s = 2 * Math.atan(r *
|
1907
|
+
for (var t = 1e-14, e = i.x / this.C, s = i.y, r = Math.pow(Math.tan(0.5 * s + K) / this.K, 1 / this.C), n = pm; n > 0 && (s = 2 * Math.atan(r * No(this.e * Math.sin(i.y), -0.5 * this.e)) - b, !(Math.abs(s - i.y) < t)); --n)
|
1908
1908
|
i.y = s;
|
1909
1909
|
return n ? (i.x = e, i.y = s, i) : null;
|
1910
1910
|
}
|
1911
1911
|
var Sm = ["gauss"];
|
1912
|
-
const
|
1912
|
+
const Do = {
|
1913
1913
|
init: ym,
|
1914
1914
|
forward: _m,
|
1915
1915
|
inverse: vm,
|
1916
1916
|
names: Sm
|
1917
1917
|
};
|
1918
1918
|
function wm() {
|
1919
|
-
|
1919
|
+
Do.init.apply(this), this.rc && (this.sinc0 = Math.sin(this.phic0), this.cosc0 = Math.cos(this.phic0), this.R2 = 2 * this.rc, this.title || (this.title = "Oblique Stereographic Alternative"));
|
1920
1920
|
}
|
1921
1921
|
function Mm(i) {
|
1922
1922
|
var t, e, s, r;
|
1923
|
-
return i.x = D(i.x - this.long0),
|
1923
|
+
return i.x = D(i.x - this.long0), Do.forward.apply(this, [i]), t = Math.sin(i.y), e = Math.cos(i.y), s = Math.cos(i.x), r = this.k0 * this.R2 / (1 + this.sinc0 * t + this.cosc0 * e * s), i.x = r * e * Math.sin(i.x), i.y = r * (this.cosc0 * t - this.sinc0 * e * s), i.x = this.a * i.x + this.x0, i.y = this.a * i.y + this.y0, i;
|
1924
1924
|
}
|
1925
1925
|
function Cm(i) {
|
1926
1926
|
var t, e, s, r, n;
|
@@ -1929,7 +1929,7 @@ function Cm(i) {
|
|
1929
1929
|
t = Math.sin(a), e = Math.cos(a), r = Math.asin(e * this.sinc0 + i.y * t * this.cosc0 / n), s = Math.atan2(i.x * t, n * this.cosc0 * e - i.y * this.sinc0 * t);
|
1930
1930
|
} else
|
1931
1931
|
r = this.phic0, s = 0;
|
1932
|
-
return i.x = s, i.y = r,
|
1932
|
+
return i.x = s, i.y = r, Do.inverse.apply(this, [i]), i.x = D(i.x + this.long0), i;
|
1933
1933
|
}
|
1934
1934
|
var xm = ["Stereographic_North_Pole", "Oblique_Stereographic", "sterea", "Oblique Stereographic Alternative", "Double_Stereographic"];
|
1935
1935
|
const bm = {
|
@@ -2406,7 +2406,7 @@ const Vp = {
|
|
2406
2406
|
inverse: Hp,
|
2407
2407
|
names: jp
|
2408
2408
|
};
|
2409
|
-
var
|
2409
|
+
var Tl = 20;
|
2410
2410
|
function $p() {
|
2411
2411
|
this.temp = this.b / this.a, this.es = 1 - Math.pow(this.temp, 2), this.e = Math.sqrt(this.es), this.e0 = $r(this.es), this.e1 = Br(this.es), this.e2 = Ur(this.es), this.e3 = qr(this.es), this.ml0 = this.a * it(this.e0, this.e1, this.e2, this.e3, this.lat0);
|
2412
2412
|
}
|
@@ -2430,7 +2430,7 @@ function Up(i) {
|
|
2430
2430
|
else {
|
2431
2431
|
a = this.lat0 + r / this.a, o = s * s / this.a / this.a + a * a, l = a;
|
2432
2432
|
var d;
|
2433
|
-
for (n =
|
2433
|
+
for (n = Tl; n; --n)
|
2434
2434
|
if (d = Math.tan(l), c = -1 * (a * (l * d + 1) - l - 0.5 * (l * l + o) * d) / ((l - a) / d - 1), l += c, Math.abs(c) <= T) {
|
2435
2435
|
e = l;
|
2436
2436
|
break;
|
@@ -2442,7 +2442,7 @@ function Up(i) {
|
|
2442
2442
|
else {
|
2443
2443
|
a = (this.ml0 + r) / this.a, o = s * s / this.a / this.a + a * a, l = a;
|
2444
2444
|
var u, f, g, m, p;
|
2445
|
-
for (n =
|
2445
|
+
for (n = Tl; n; --n)
|
2446
2446
|
if (p = this.e * Math.sin(l), u = Math.sqrt(1 - p * p) * Math.tan(l), f = this.a * it(this.e0, this.e1, this.e2, this.e3, l), g = this.e0 - 2 * this.e1 * Math.cos(2 * l) + 4 * this.e2 * Math.cos(4 * l) - 6 * this.e3 * Math.cos(6 * l), m = f / this.a, c = (a * (u * m + 1) - m - 0.5 * u * (m * m + o)) / (this.es * Math.sin(2 * l) * (m * m + o - 2 * a * m) / (4 * u) + (a - m) * (u * g - 2 / Math.sin(2 * l)) - g), l -= c, Math.abs(c) <= T) {
|
2447
2447
|
e = l;
|
2448
2448
|
break;
|
@@ -2534,7 +2534,7 @@ function ay(i) {
|
|
2534
2534
|
t = this.a * this.C_x * s * (this.m + Math.cos(r)), e = this.a * this.C_y * r;
|
2535
2535
|
} else {
|
2536
2536
|
var l = Math.sin(r), c = Math.cos(r);
|
2537
|
-
e = this.a *
|
2537
|
+
e = this.a * ca(r, l, c, this.en), t = this.a * s * c / Math.sqrt(1 - this.es * l * l);
|
2538
2538
|
}
|
2539
2539
|
return i.x = t, i.y = e, i;
|
2540
2540
|
}
|
@@ -2727,7 +2727,7 @@ const zy = {
|
|
2727
2727
|
inverse: Gy,
|
2728
2728
|
names: ky
|
2729
2729
|
};
|
2730
|
-
var
|
2730
|
+
var oo = [
|
2731
2731
|
[1, 22199e-21, -715515e-10, 31103e-10],
|
2732
2732
|
[0.9986, -482243e-9, -24897e-9, -13309e-10],
|
2733
2733
|
[0.9954, -83103e-8, -448605e-10, -986701e-12],
|
@@ -2787,7 +2787,7 @@ function By(i) {
|
|
2787
2787
|
var t = D(i.x - this.long0), e = Math.abs(i.y), s = Math.floor(e * Ic);
|
2788
2788
|
s < 0 ? s = 0 : s >= gs && (s = gs - 1), e = $t * (e - Hy * s);
|
2789
2789
|
var r = {
|
2790
|
-
x: kn(
|
2790
|
+
x: kn(oo[s], e) * t,
|
2791
2791
|
y: kn(Ws[s], e)
|
2792
2792
|
};
|
2793
2793
|
return i.y < 0 && (r.y = -r.y), r.x = r.x * this.a * Ec + this.x0, r.y = r.y * this.a * Pc + this.y0, r;
|
@@ -2798,7 +2798,7 @@ function Uy(i) {
|
|
2798
2798
|
y: Math.abs(i.y - this.y0) / (this.a * Pc)
|
2799
2799
|
};
|
2800
2800
|
if (t.y >= 1)
|
2801
|
-
t.x /=
|
2801
|
+
t.x /= oo[gs][0], t.y = i.y < 0 ? -b : b;
|
2802
2802
|
else {
|
2803
2803
|
var e = Math.floor(t.y * gs);
|
2804
2804
|
for (e < 0 ? e = 0 : e >= gs && (e = gs - 1); ; )
|
@@ -2811,7 +2811,7 @@ function Uy(i) {
|
|
2811
2811
|
var s = Ws[e], r = 5 * (t.y - s[0]) / (Ws[e + 1][0] - s[0]);
|
2812
2812
|
r = Vy(function(n) {
|
2813
2813
|
return (kn(s, n) - t.y) / jy(s, n);
|
2814
|
-
}, r, T, 100), t.x /= kn(
|
2814
|
+
}, r, T, 100), t.x /= kn(oo[e], r), t.y = (5 * e + r) * He, i.y < 0 && (t.y = -t.y);
|
2815
2815
|
}
|
2816
2816
|
return t.x = D(t.x + this.long0), t;
|
2817
2817
|
}
|
@@ -3021,11 +3021,11 @@ Ie.transform = Rn;
|
|
3021
3021
|
Ie.mgrs = Dg;
|
3022
3022
|
Ie.version = "__VERSION__";
|
3023
3023
|
g_(Ie);
|
3024
|
-
const Hn = Re("EPSG:4326", "EPSG:3857"),
|
3025
|
-
let
|
3024
|
+
const Hn = Re("EPSG:4326", "EPSG:3857"), Ao = Re("EPSG:3857", "EPSG:4326");
|
3025
|
+
let Fo = {
|
3026
3026
|
epsg: "EPSG:4326"
|
3027
3027
|
};
|
3028
|
-
function
|
3028
|
+
function Ro(i, t = "EPSG:") {
|
3029
3029
|
if (i) {
|
3030
3030
|
const e = new RegExp(`^(?:${t})?(\\d+)`, "i"), s = `${i}`.match(e);
|
3031
3031
|
if (s && s[1])
|
@@ -3037,7 +3037,7 @@ function Lc(i) {
|
|
3037
3037
|
let t = null;
|
3038
3038
|
if (i.epsg)
|
3039
3039
|
try {
|
3040
|
-
t = Ie(
|
3040
|
+
t = Ie(Ro(i.epsg));
|
3041
3041
|
} catch {
|
3042
3042
|
t = null;
|
3043
3043
|
}
|
@@ -3053,8 +3053,8 @@ function Tc(i) {
|
|
3053
3053
|
const t = {
|
3054
3054
|
prefix: i.prefix
|
3055
3055
|
};
|
3056
|
-
return i.epsg && (t.epsg =
|
3057
|
-
Ie.defs(e, Ie.defs(t.epsg)),
|
3056
|
+
return i.epsg && (t.epsg = Ro(i.epsg, i.prefix), t.epsg && (i.proj4 && (t.proj4 = i.proj4, Ie.defs(t.epsg, i.proj4), sl(Ie)), i.alias && Array.isArray(i.alias) && (t.alias = i.alias, t.alias.forEach((e) => {
|
3057
|
+
Ie.defs(e, Ie.defs(t.epsg)), sl(Ie);
|
3058
3058
|
})))), t;
|
3059
3059
|
}
|
3060
3060
|
function m_(i) {
|
@@ -3063,7 +3063,7 @@ function m_(i) {
|
|
3063
3063
|
proj4: Q(String)
|
3064
3064
|
}), !Lc(i))
|
3065
3065
|
throw new Error("Cannot set invalid projection options as default options");
|
3066
|
-
|
3066
|
+
Fo = Tc(i);
|
3067
3067
|
}
|
3068
3068
|
class k {
|
3069
3069
|
constructor(t = { epsg: "" }) {
|
@@ -3072,7 +3072,7 @@ class k {
|
|
3072
3072
|
h(this, "_alias");
|
3073
3073
|
h(this, "_prefix");
|
3074
3074
|
const e = Tc(t);
|
3075
|
-
this._proj4 = e.proj4, this._epsg = String(e.epsg), this.proj || (this._epsg = k.parseEPSGCode(
|
3075
|
+
this._proj4 = e.proj4, this._epsg = String(e.epsg), this.proj || (this._epsg = k.parseEPSGCode(Fo.epsg)), this._alias = e.alias, this._prefix = e.prefix;
|
3076
3076
|
}
|
3077
3077
|
static get className() {
|
3078
3078
|
return "Projection";
|
@@ -3126,7 +3126,7 @@ class k {
|
|
3126
3126
|
* @param inPlace - whether to transform in place
|
3127
3127
|
*/
|
3128
3128
|
static mercatorToWgs84(t, e) {
|
3129
|
-
return
|
3129
|
+
return Ao(t, e ? t : void 0, t.length);
|
3130
3130
|
}
|
3131
3131
|
/**
|
3132
3132
|
* Fast transform from WGS84 to Web-Mercator
|
@@ -3149,11 +3149,11 @@ class k {
|
|
3149
3149
|
* parseEPSGCode('asdasd', 'EPSG:') ==> ''
|
3150
3150
|
*/
|
3151
3151
|
static parseEPSGCode(t, e = "EPSG:") {
|
3152
|
-
return
|
3152
|
+
return Ro(t, e);
|
3153
3153
|
}
|
3154
3154
|
}
|
3155
3155
|
function p_() {
|
3156
|
-
return new k(
|
3156
|
+
return new k(Fo);
|
3157
3157
|
}
|
3158
3158
|
const oe = new k({ epsg: 4326 }), B = new k({ epsg: 3857 });
|
3159
3159
|
function Fw(i, t, e) {
|
@@ -3168,7 +3168,7 @@ function Rw(i, t) {
|
|
3168
3168
|
let l = N.toDegrees(Math.atan2(a, o));
|
3169
3169
|
return l = (l + 360) % 360, l;
|
3170
3170
|
}
|
3171
|
-
function
|
3171
|
+
function lo(i, t) {
|
3172
3172
|
let e = Math.atan2(t[0] - i[0], t[1] - i[1]);
|
3173
3173
|
return e = e < 0 ? e + N.TWO_PI : e, e;
|
3174
3174
|
}
|
@@ -3294,7 +3294,7 @@ function jn(i, t, e, s) {
|
|
3294
3294
|
function de(i, t) {
|
3295
3295
|
return i == null ? t : typeof i == "boolean" ? i : i === 1 ? !0 : i === 0 ? !1 : typeof i == "string" && (i.toLowerCase() === "true" || i.toLowerCase() === "1") ? !0 : typeof i == "string" && (i.toLowerCase() === "false" || i.toLowerCase() === "0") ? !1 : t;
|
3296
3296
|
}
|
3297
|
-
function
|
3297
|
+
function ua(i, t, e) {
|
3298
3298
|
if (i != null) {
|
3299
3299
|
const s = Object.values(t).find((r) => r == i);
|
3300
3300
|
if (s != null)
|
@@ -3311,8 +3311,8 @@ function yi(i, t, e) {
|
|
3311
3311
|
return e;
|
3312
3312
|
}
|
3313
3313
|
var ze = [];
|
3314
|
-
for (var
|
3315
|
-
ze.push((
|
3314
|
+
for (var Ea = 0; Ea < 256; ++Ea)
|
3315
|
+
ze.push((Ea + 256).toString(16).slice(1));
|
3316
3316
|
function w_(i, t = 0) {
|
3317
3317
|
return (ze[i[t + 0]] + ze[i[t + 1]] + ze[i[t + 2]] + ze[i[t + 3]] + "-" + ze[i[t + 4]] + ze[i[t + 5]] + "-" + ze[i[t + 6]] + ze[i[t + 7]] + "-" + ze[i[t + 8]] + ze[i[t + 9]] + "-" + ze[i[t + 10]] + ze[i[t + 11]] + ze[i[t + 12]] + ze[i[t + 13]] + ze[i[t + 14]] + ze[i[t + 15]]).toLowerCase();
|
3318
3318
|
}
|
@@ -3323,12 +3323,12 @@ function C_() {
|
|
3323
3323
|
return on(M_);
|
3324
3324
|
}
|
3325
3325
|
var x_ = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto);
|
3326
|
-
const
|
3326
|
+
const Nl = {
|
3327
3327
|
randomUUID: x_
|
3328
3328
|
};
|
3329
3329
|
function Ue(i, t, e) {
|
3330
|
-
if (
|
3331
|
-
return
|
3330
|
+
if (Nl.randomUUID && !t && !i)
|
3331
|
+
return Nl.randomUUID();
|
3332
3332
|
i = i || {};
|
3333
3333
|
var s = i.random || (i.rng || C_)();
|
3334
3334
|
return s[6] = s[6] & 15 | 64, s[8] = s[8] & 63 | 128, w_(s);
|
@@ -3429,17 +3429,17 @@ class Ac {
|
|
3429
3429
|
this.className && (r = `[${this.className}] ${r}`), console[Wr.get(e)](r, ...s), e & Ce.ERROR && (console.group(), console.trace(), console.groupEnd());
|
3430
3430
|
}
|
3431
3431
|
}
|
3432
|
-
const
|
3433
|
-
let
|
3432
|
+
const ho = /* @__PURE__ */ new Map();
|
3433
|
+
let Pa;
|
3434
3434
|
function b_() {
|
3435
|
-
return
|
3435
|
+
return Pa || (Pa = new Ac()), Pa;
|
3436
3436
|
}
|
3437
3437
|
function O_(i) {
|
3438
3438
|
const t = new Ac(i);
|
3439
|
-
return
|
3439
|
+
return ho.set(i, t), t;
|
3440
3440
|
}
|
3441
3441
|
function ue(i) {
|
3442
|
-
return i ?
|
3442
|
+
return i ? ho.has(i) ? ho.get(i) : O_(i) : b_();
|
3443
3443
|
}
|
3444
3444
|
const Xe = Symbol("moduleId");
|
3445
3445
|
var Iw;
|
@@ -3665,7 +3665,7 @@ class Ni {
|
|
3665
3665
|
return v(t, { type: String }), this.create(t.type, t, ...e);
|
3666
3666
|
}
|
3667
3667
|
}
|
3668
|
-
const Ae = new Ni(), Ls = new Ni(),
|
3668
|
+
const Ae = new Ni(), Ls = new Ni(), Go = new Ni(), Ts = new Ni(), Xr = new Ni(), Fc = new Ni();
|
3669
3669
|
function ni(i, t, ...e) {
|
3670
3670
|
if (!es(i, Fe(Ni, Qt)))
|
3671
3671
|
return Xs().error(`ObjectCreation failed: no class registry provided for ${String(t.type)}`), null;
|
@@ -3698,7 +3698,7 @@ class Xt extends kt {
|
|
3698
3698
|
// eslint-disable-next-line class-methods-use-this
|
3699
3699
|
h(this, "_style", () => {
|
3700
3700
|
});
|
3701
|
-
this.colorBlendMode =
|
3701
|
+
this.colorBlendMode = ua(e.colorBlendMode, _n, _n.HIGHLIGHT);
|
3702
3702
|
}
|
3703
3703
|
static get className() {
|
3704
3704
|
return "StyleItem";
|
@@ -3762,7 +3762,7 @@ function Kt(i) {
|
|
3762
3762
|
const { location: t } = window, e = new URL(i, `${t.protocol}//${t.host}${t.pathname}`);
|
3763
3763
|
return e.host ? e.protocol === t.protocol && e.host === t.host : !0;
|
3764
3764
|
}
|
3765
|
-
function
|
3765
|
+
function ko() {
|
3766
3766
|
return ue("StyleHelpers");
|
3767
3767
|
}
|
3768
3768
|
var ar;
|
@@ -3844,7 +3844,7 @@ function L_(i, t) {
|
|
3844
3844
|
}
|
3845
3845
|
return r.createPattern(s, "repeat");
|
3846
3846
|
}
|
3847
|
-
function
|
3847
|
+
function Dl(i) {
|
3848
3848
|
function t(e) {
|
3849
3849
|
const s = e.toString(16);
|
3850
3850
|
return s.length === 1 ? `0${s}` : s;
|
@@ -3930,14 +3930,14 @@ function Vn(i) {
|
|
3930
3930
|
try {
|
3931
3931
|
t = Ve(t).slice();
|
3932
3932
|
} catch (e) {
|
3933
|
-
|
3933
|
+
ko().warning(e.message);
|
3934
3934
|
}
|
3935
3935
|
return { color: t };
|
3936
3936
|
}
|
3937
3937
|
function Rc(i) {
|
3938
3938
|
return new st(i);
|
3939
3939
|
}
|
3940
|
-
function
|
3940
|
+
function zo(i) {
|
3941
3941
|
return new $e(i);
|
3942
3942
|
}
|
3943
3943
|
function Mr(i) {
|
@@ -3946,7 +3946,7 @@ function Mr(i) {
|
|
3946
3946
|
try {
|
3947
3947
|
t = Ve(t).slice();
|
3948
3948
|
} catch (r) {
|
3949
|
-
|
3949
|
+
ko().warning(r.message);
|
3950
3950
|
}
|
3951
3951
|
const e = {
|
3952
3952
|
color: t
|
@@ -3968,7 +3968,7 @@ function Gc(i) {
|
|
3968
3968
|
}
|
3969
3969
|
function kc(i) {
|
3970
3970
|
const t = { ...i };
|
3971
|
-
return t.fill && !(t.fill instanceof st) && (t.fill = new st(t.fill)), t.stroke && !(t.stroke instanceof $e) && (t.stroke = new $e(t.stroke)), t.font && typeof t.font != "string" && (t.font = T_(t.font)), new
|
3971
|
+
return t.fill && !(t.fill instanceof st) && (t.fill = new st(t.fill)), t.stroke && !(t.stroke instanceof $e) && (t.stroke = new $e(t.stroke)), t.font && typeof t.font != "string" && (t.font = T_(t.font)), new Mo(t);
|
3972
3972
|
}
|
3973
3973
|
function zc(i) {
|
3974
3974
|
if (i instanceof Ci) {
|
@@ -3979,7 +3979,7 @@ function zc(i) {
|
|
3979
3979
|
const e = i.getColor() ? Ve(i.getColor()) : void 0;
|
3980
3980
|
e && (t.color = e);
|
3981
3981
|
} catch (e) {
|
3982
|
-
|
3982
|
+
ko().warning(e.message);
|
3983
3983
|
}
|
3984
3984
|
if (i.getSrc() && (t.src = i.getSrc()), i.getOpacity() != null && (t.opacity = i.getOpacity()), i.getAnchor() && i.getSize()) {
|
3985
3985
|
const e = i.getAnchor()[0] / i.getSize()[0], s = i.getAnchor()[1] / i.getSize()[1];
|
@@ -4001,7 +4001,7 @@ function zc(i) {
|
|
4001
4001
|
}
|
4002
4002
|
function N_(i) {
|
4003
4003
|
if (i.radius) {
|
4004
|
-
const t = i.fill ? Rc(i.fill) : void 0, e = i.stroke ?
|
4004
|
+
const t = i.fill ? Rc(i.fill) : void 0, e = i.stroke ? zo(i.stroke) : void 0;
|
4005
4005
|
return i.points ? new Hr({
|
4006
4006
|
fill: t,
|
4007
4007
|
stroke: e,
|
@@ -4030,7 +4030,7 @@ function N_(i) {
|
|
4030
4030
|
}
|
4031
4031
|
function jw(i) {
|
4032
4032
|
return new ee({
|
4033
|
-
stroke: i.stroke ?
|
4033
|
+
stroke: i.stroke ? zo(i.stroke) : void 0,
|
4034
4034
|
fill: i.fill ? Rc(i.fill) : void 0,
|
4035
4035
|
image: i.image ? N_(i.image) : void 0,
|
4036
4036
|
text: i.text ? kc(i.text) : void 0
|
@@ -4053,12 +4053,12 @@ function $w(i) {
|
|
4053
4053
|
if (i.getStroke()) {
|
4054
4054
|
let e = i.getStroke().getWidth();
|
4055
4055
|
e = e > 1 ? 1 : e;
|
4056
|
-
const s =
|
4056
|
+
const s = Dl(Ve(i.getStroke().getColor()));
|
4057
4057
|
t.textShadow = `-${e}px ${e}px 0 ${s},${e}px ${e}px 0 ${s},${e}px -${e}px 0 ${s},-${e}px -${e}px 0 ${s}`;
|
4058
4058
|
}
|
4059
|
-
return i.getFill() && (t.color =
|
4059
|
+
return i.getFill() && (t.color = Dl(Ve(i.getFill().getColor()))), t;
|
4060
4060
|
}
|
4061
|
-
const D_ = new ee({}), Bw = [0, 0, 0, 0], Cn = [255, 255, 255, 1],
|
4061
|
+
const D_ = new ee({}), Bw = [0, 0, 0, 0], Cn = [255, 255, 255, 1], co = [0, 0, 0, 1];
|
4062
4062
|
function Hc() {
|
4063
4063
|
return {
|
4064
4064
|
image: {
|
@@ -4066,7 +4066,7 @@ function Hc() {
|
|
4066
4066
|
color: [255, 255, 255, 0.4]
|
4067
4067
|
},
|
4068
4068
|
stroke: {
|
4069
|
-
color:
|
4069
|
+
color: co,
|
4070
4070
|
width: 1
|
4071
4071
|
},
|
4072
4072
|
radius: 5
|
@@ -4091,11 +4091,11 @@ const A_ = {
|
|
4091
4091
|
olcs_color: ot(Cn),
|
4092
4092
|
olcs_scale: "1.0",
|
4093
4093
|
olcs_outlineWidth: "0.0",
|
4094
|
-
olcs_outlineColor: ot(
|
4094
|
+
olcs_outlineColor: ot(co),
|
4095
4095
|
olcs_pointSize: "8.0",
|
4096
4096
|
olcs_image: String(null),
|
4097
4097
|
olcs_font: `'${(Ah = Hc().text) == null ? void 0 : Ah.font}'`,
|
4098
|
-
olcs_fontColor: ot(
|
4098
|
+
olcs_fontColor: ot(co),
|
4099
4099
|
olcs_fontOutlineWidth: "1.0",
|
4100
4100
|
olcs_fontOutlineColor: ot(Cn),
|
4101
4101
|
olcs_labelText: String(null),
|
@@ -4124,7 +4124,7 @@ class F_ {
|
|
4124
4124
|
t.src = s.toDataURL(), this.shapes.push(t);
|
4125
4125
|
}
|
4126
4126
|
}
|
4127
|
-
const R_ = new F_(),
|
4127
|
+
const R_ = new F_(), Al = {
|
4128
4128
|
fill: new st({ color: [255, 255, 255, 1] }),
|
4129
4129
|
stroke: new $e({ color: [0, 0, 0, 1], width: 1 }),
|
4130
4130
|
radius: 16
|
@@ -4136,7 +4136,7 @@ const R_ = new F_(), Dl = {
|
|
4136
4136
|
{ points: 4, angle: Math.PI / 4 },
|
4137
4137
|
{ points: 6 }
|
4138
4138
|
].forEach((i) => {
|
4139
|
-
const t = i ? Object.assign(i,
|
4139
|
+
const t = i ? Object.assign(i, Al) : Al;
|
4140
4140
|
R_.addImage(t);
|
4141
4141
|
});
|
4142
4142
|
class Yr extends st {
|
@@ -4168,7 +4168,7 @@ class he extends Xt {
|
|
4168
4168
|
fill: e.fill === !1,
|
4169
4169
|
stroke: e.stroke === !1,
|
4170
4170
|
image: e.image === !1
|
4171
|
-
}, this._fillOptions = null, this._fill = void 0, this._stroke = e.stroke ?
|
4171
|
+
}, this._fillOptions = null, this._fill = void 0, this._stroke = e.stroke ? zo(e.stroke) : void 0, this._text = void 0, e.text && (this._text = kc(e.text)), this._label = e.label, this.label = this._label, this._cesiumColor = new U(), this._image = void 0, e.image)
|
4172
4172
|
if (e.image.radius)
|
4173
4173
|
this._image = jc({ ...e.image });
|
4174
4174
|
else {
|
@@ -4254,7 +4254,7 @@ class he extends Xt {
|
|
4254
4254
|
}
|
4255
4255
|
set text(e) {
|
4256
4256
|
var s, r;
|
4257
|
-
this._style instanceof ee ? (v(e, Q(
|
4257
|
+
this._style instanceof ee ? (v(e, Q(Mo)), this._text = e, (r = (s = this._text) == null ? void 0 : s.setText) == null || r.call(s, this._label), this._style.setText(this._text)) : this.getLogger().info("trying to set text on a style function");
|
4258
4258
|
}
|
4259
4259
|
get image() {
|
4260
4260
|
return this._image;
|
@@ -4266,7 +4266,7 @@ class he extends Xt {
|
|
4266
4266
|
return this._style;
|
4267
4267
|
}
|
4268
4268
|
set style(e) {
|
4269
|
-
v(e, Q(Fe(ee, Function))), e instanceof ee ? (this._stroke = e.getStroke(), this._fill = e.getFill(), this._text = e.getText(), this._image = e.getImage()) : (this._stroke = void 0, this._fill = void 0, this._text = void 0, this._image = void 0), this._style = e, this._fill && this._fill.getColor() && (this._fillOptions = {
|
4269
|
+
v(e, Q(Fe(ee, Function))), e instanceof ee ? (this._stroke = e.getStroke() ?? void 0, this._fill = e.getFill() ?? void 0, this._text = e.getText() ?? void 0, this._image = e.getImage() ?? void 0) : (this._stroke = void 0, this._fill = void 0, this._text = void 0, this._image = void 0), this._style = e, this._fill && this._fill.getColor() && (this._fillOptions = {
|
4270
4270
|
color: Ve(this._fill.getColor())
|
4271
4271
|
}), this._text && this._text.setText(this._label), this.updateCesiumStyle();
|
4272
4272
|
}
|
@@ -4293,26 +4293,27 @@ class he extends Xt {
|
|
4293
4293
|
]), this.fillColor && s.splice(-1, 1, ["true", ot(this.fillColor)]), this.cesiumStyle.color = { conditions: s }, e || this._styleChanged();
|
4294
4294
|
}
|
4295
4295
|
updateCesiumStyleImage(e) {
|
4296
|
+
var l;
|
4296
4297
|
const s = ye("olcs_scale"), r = ye("olcs_outlineWidth"), n = ye("olcs_outlineColor", !0), a = ye("olcs_pointSize"), o = ye("olcs_image");
|
4297
4298
|
if (this._image)
|
4298
4299
|
if (this._image.getScale() != null && s.splice(1, 1, [
|
4299
4300
|
"true",
|
4300
4301
|
`${String(this._image.getScale())}`
|
4301
4302
|
]), this._image instanceof xi) {
|
4302
|
-
const
|
4303
|
-
let
|
4304
|
-
if (
|
4305
|
-
this._image.getStroke().getColor() && n.splice(1, 1, [
|
4303
|
+
const c = this._image.getStroke();
|
4304
|
+
let d = this._image.getRadius() * 2;
|
4305
|
+
if (c) {
|
4306
|
+
(l = this._image.getStroke()) != null && l.getColor() && n.splice(1, 1, [
|
4306
4307
|
"true",
|
4307
4308
|
ot(this._image.getStroke().getColor())
|
4308
4309
|
]);
|
4309
|
-
const
|
4310
|
-
r.splice(1, 1, ["true", `${
|
4310
|
+
const u = this._image.getStroke().getWidth();
|
4311
|
+
r.splice(1, 1, ["true", `${u}`]), d -= u;
|
4311
4312
|
}
|
4312
|
-
a.splice(1, 1, ["true", `${
|
4313
|
+
a.splice(1, 1, ["true", `${d}`]);
|
4313
4314
|
} else if (this._image instanceof Hr) {
|
4314
|
-
const
|
4315
|
-
o.splice(1, 1, ["true", `"${
|
4315
|
+
const c = this._image.getImage(1).toDataURL();
|
4316
|
+
o.splice(1, 1, ["true", `"${c}"`]);
|
4316
4317
|
} else
|
4317
4318
|
this._image instanceof Ci && o.splice(1, 1, [
|
4318
4319
|
"true",
|
@@ -4327,6 +4328,7 @@ class he extends Xt {
|
|
4327
4328
|
}, this.cesiumStyle.pointSize = { conditions: a }, this.cesiumStyle.image = { conditions: o }, this.cesiumStyle.verticalOrigin = "1", this.cesiumStyle.horizontalOrigin = "0", e || this._styleChanged();
|
4328
4329
|
}
|
4329
4330
|
updateCesiumStyleText(e) {
|
4331
|
+
var c, d;
|
4330
4332
|
const s = ye("olcs_font"), r = ye("olcs_labelText"), n = ye("olcs_fontColor", !0), a = ye("olcs_fontOutlineWidth"), o = ye("olcs_fontOutlineColor", !0);
|
4331
4333
|
this._text && (this._text.getFont() && s.splice(1, 1, [
|
4332
4334
|
"true",
|
@@ -4334,10 +4336,10 @@ class he extends Xt {
|
|
4334
4336
|
]), this._text.getText() && r.splice(1, 1, [
|
4335
4337
|
"true",
|
4336
4338
|
`'${String(this._text.getText())}'`
|
4337
|
-
]), this._text.getFill() &&
|
4339
|
+
]), (c = this._text.getFill()) != null && c.getColor() && n.splice(1, 1, [
|
4338
4340
|
"true",
|
4339
4341
|
ot(this._text.getFill().getColor())
|
4340
|
-
]), this._text.getStroke() &&
|
4342
|
+
]), (d = this._text.getStroke()) != null && d.getColor() && (o.splice(1, 1, [
|
4341
4343
|
"true",
|
4342
4344
|
ot(this._text.getStroke().getColor())
|
4343
4345
|
]), a.splice(1, 1, [
|
@@ -4453,7 +4455,7 @@ function xr(i) {
|
|
4453
4455
|
(i instanceof Yi || i instanceof Zi) && Zr(i) && t ? i.color = t.cesiumFillColor : i instanceof ae && i.changed();
|
4454
4456
|
}
|
4455
4457
|
}
|
4456
|
-
function
|
4458
|
+
function Ho(i) {
|
4457
4459
|
delete i[oi], $n(i), i[ut] || i[dt] ? Cr(i) : i[Ee] && xr(i);
|
4458
4460
|
}
|
4459
4461
|
function k_(i) {
|
@@ -4477,7 +4479,7 @@ function z_(i, t) {
|
|
4477
4479
|
const r = Object.keys(i.hiddenObjects);
|
4478
4480
|
return r.length > 0 && e({ action: ne.HIDE, ids: r }), i.changed.addEventListener(e);
|
4479
4481
|
}
|
4480
|
-
class
|
4482
|
+
class da {
|
4481
4483
|
constructor() {
|
4482
4484
|
h(this, "hiddenObjects", {});
|
4483
4485
|
h(this, "highlightedObjects", {});
|
@@ -4494,9 +4496,18 @@ class ua {
|
|
4494
4496
|
highlight(t) {
|
4495
4497
|
const e = [];
|
4496
4498
|
Object.entries(t).forEach(([s, r]) => {
|
4499
|
+
var a;
|
4497
4500
|
let n;
|
4498
|
-
|
4499
|
-
|
4501
|
+
if (r instanceof U)
|
4502
|
+
n = G_(r);
|
4503
|
+
else if (r instanceof ee) {
|
4504
|
+
n = new he({});
|
4505
|
+
const o = (a = r.getText()) == null ? void 0 : a.getText();
|
4506
|
+
o && !Array.isArray(o) && (n.label = String(o)), n.style = r;
|
4507
|
+
} else
|
4508
|
+
es(r, Function) ? (n = new he({}), n.style = r) : n = r;
|
4509
|
+
this.highlightedObjects[s] ? this.highlightedObjects[s].style !== n && (this.highlightedObjects[s].style = n, this.highlightedObjects[s].features.forEach((o, l) => {
|
4510
|
+
l[Ee] = n, xr(l);
|
4500
4511
|
})) : (this.highlightedObjects[s] = {
|
4501
4512
|
style: n,
|
4502
4513
|
features: /* @__PURE__ */ new Set()
|
@@ -4718,6 +4729,10 @@ class W_ {
|
|
4718
4729
|
for (r = 0; r < n; ++r)
|
4719
4730
|
s[r].update(t), e[r].update(t);
|
4720
4731
|
}
|
4732
|
+
// eslint-disable-next-line class-methods-use-this
|
4733
|
+
isDestroyed() {
|
4734
|
+
return !1;
|
4735
|
+
}
|
4721
4736
|
destroy() {
|
4722
4737
|
const { length: t } = this._planesPrimitives;
|
4723
4738
|
for (let e = 0; e < t; ++e)
|
@@ -4725,7 +4740,7 @@ class W_ {
|
|
4725
4740
|
return Td(this);
|
4726
4741
|
}
|
4727
4742
|
}
|
4728
|
-
function
|
4743
|
+
function Fl(i) {
|
4729
4744
|
return !i || !Array.isArray(i) || i.length !== 4 || !Number.isFinite(i[0]) || !Number.isFinite(i[1]) || !Number.isFinite(i[2]) || !Number.isFinite(i[3]) ? !1 : i[0] <= i[2] && i[1] <= i[3];
|
4730
4745
|
}
|
4731
4746
|
class xe {
|
@@ -4746,7 +4761,7 @@ class xe {
|
|
4746
4761
|
* @param options
|
4747
4762
|
*/
|
4748
4763
|
static validateOptions(t) {
|
4749
|
-
return k.validateOptions(t.projection || {}) &&
|
4764
|
+
return k.validateOptions(t.projection || {}) && Fl(t.coordinates);
|
4750
4765
|
}
|
4751
4766
|
getCoordinatesInProjection(t, e) {
|
4752
4767
|
if (t.epsg === this.projection.epsg)
|
@@ -4759,7 +4774,7 @@ class xe {
|
|
4759
4774
|
* @returns true if extent is valid
|
4760
4775
|
*/
|
4761
4776
|
isValid() {
|
4762
|
-
return
|
4777
|
+
return Fl(this.extent);
|
4763
4778
|
}
|
4764
4779
|
toJSON() {
|
4765
4780
|
return {
|
@@ -4778,11 +4793,11 @@ class xe {
|
|
4778
4793
|
function Bc(i, t, e) {
|
4779
4794
|
return i != null && t != null && Math.abs(i - t) <= e;
|
4780
4795
|
}
|
4781
|
-
function
|
4796
|
+
function Ia(i, t, e) {
|
4782
4797
|
const s = i - t - Math.trunc((i - t) / 360) * 360;
|
4783
4798
|
return Math.abs(s) <= e;
|
4784
4799
|
}
|
4785
|
-
function
|
4800
|
+
function Rl(i, t, e) {
|
4786
4801
|
return i != null && t != null && i.every((s, r) => Bc(s, t[r], e));
|
4787
4802
|
}
|
4788
4803
|
class mt extends kt {
|
@@ -4928,14 +4943,14 @@ class mt extends kt {
|
|
4928
4943
|
* Checks if this Viewpoint is Valid
|
4929
4944
|
*/
|
4930
4945
|
isValid() {
|
4931
|
-
const e = this.cameraPosition && Array.isArray(this.cameraPosition) && this.cameraPosition.length === 3 && this.cameraPosition.every((r) => Number.isFinite(r)) &&
|
4932
|
-
return !(!(this.groundPosition && Array.isArray(this.groundPosition) && this.groundPosition.length > 1 && this.groundPosition.length < 4 && this.groundPosition.every((r) => Number.isFinite(r)) &&
|
4946
|
+
const e = this.cameraPosition && Array.isArray(this.cameraPosition) && this.cameraPosition.length === 3 && this.cameraPosition.every((r) => Number.isFinite(r)) && Xa(xe.WGS_84_EXTENT, this.cameraPosition);
|
4947
|
+
return !(!(this.groundPosition && Array.isArray(this.groundPosition) && this.groundPosition.length > 1 && this.groundPosition.length < 4 && this.groundPosition.every((r) => Number.isFinite(r)) && Xa(xe.WGS_84_EXTENT, this.groundPosition)) && !e || !e && !Number.isFinite(this.distance) || !Number.isFinite(this.heading) || !Number.isFinite(this.pitch) || !Number.isFinite(this.roll));
|
4933
4948
|
}
|
4934
4949
|
/**
|
4935
4950
|
* compares the provided Viewpoint with this viewpoint componentwise
|
4936
4951
|
*/
|
4937
4952
|
equals(e, s = 0) {
|
4938
|
-
return e === this || e !== null && Bc(e.distance, this.distance, s) &&
|
4953
|
+
return e === this || e !== null && Bc(e.distance, this.distance, s) && Ia(e.heading, this.heading, s) && Ia(e.pitch, this.pitch, s) && Ia(e.roll, this.roll, s) && (Rl(e.cameraPosition, this.cameraPosition, s) || Rl(e.groundPosition, this.groundPosition, s));
|
4939
4954
|
}
|
4940
4955
|
}
|
4941
4956
|
function X_() {
|
@@ -5092,16 +5107,16 @@ class Nt {
|
|
5092
5107
|
this._array = [], this.added.destroy(), this.removed.destroy();
|
5093
5108
|
}
|
5094
5109
|
}
|
5095
|
-
function
|
5110
|
+
function Gl() {
|
5096
5111
|
return ue("OverrideCollection");
|
5097
5112
|
}
|
5098
|
-
const
|
5113
|
+
const uo = Symbol("OverrideCollection");
|
5099
5114
|
function ti(i, t, e, s, r, n) {
|
5100
5115
|
v(i, Nt);
|
5101
5116
|
const a = i;
|
5102
|
-
if (a[
|
5117
|
+
if (a[uo])
|
5103
5118
|
throw new Error("Cannot transform collection, collection already is an OverrideCollection");
|
5104
|
-
a[
|
5119
|
+
a[uo] = !0;
|
5105
5120
|
const o = s || ((u) => u), l = e || ((u) => u.toJSON ? u.toJSON() : structuredClone(u)), c = n || ((u, f, g) => g);
|
5106
5121
|
a.shadowMap = /* @__PURE__ */ new Map(), a.replace = function(f) {
|
5107
5122
|
const g = f[a.uniqueKey], m = a.getByKey(g);
|
@@ -5124,7 +5139,7 @@ function ti(i, t, e, s, r, n) {
|
|
5124
5139
|
}, a.parseItems = async function(f, g) {
|
5125
5140
|
Array.isArray(f) && (await Promise.all(f.map(async (p) => {
|
5126
5141
|
const y = await o(p);
|
5127
|
-
return !y || r && !(y instanceof r) ? (
|
5142
|
+
return !y || r && !(y instanceof r) ? (Gl().warning(`Could not load item ${// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
5128
5143
|
// @ts-ignore
|
5129
5144
|
String(p[a.uniqueKey])} of type ${String(p.type)}`), null) : (y[Xe] = g, y);
|
5130
5145
|
}))).filter((p) => p).forEach((p) => {
|
@@ -5142,7 +5157,7 @@ function ti(i, t, e, s, r, n) {
|
|
5142
5157
|
if (m) {
|
5143
5158
|
const p = await o(m);
|
5144
5159
|
if (!p) {
|
5145
|
-
|
5160
|
+
Gl().error("failed to deserialize item");
|
5146
5161
|
return;
|
5147
5162
|
}
|
5148
5163
|
p[Xe] = m[Xe];
|
@@ -5187,12 +5202,12 @@ function ti(i, t, e, s, r, n) {
|
|
5187
5202
|
d(), a.shadowMap.clear(), a.replaced.destroy();
|
5188
5203
|
}, a;
|
5189
5204
|
}
|
5190
|
-
var
|
5205
|
+
var fo;
|
5191
5206
|
(function(i) {
|
5192
5207
|
i[i.INACTIVE = 1] = "INACTIVE", i[i.ACTIVE = 2] = "ACTIVE", i[i.LOADING = 4] = "LOADING";
|
5193
|
-
})(
|
5194
|
-
const pe =
|
5195
|
-
class
|
5208
|
+
})(fo || (fo = {}));
|
5209
|
+
const pe = fo;
|
5210
|
+
class go {
|
5196
5211
|
constructor() {
|
5197
5212
|
h(this, "hiddenObjects", {});
|
5198
5213
|
h(this, "_hiddenObjectFeatures", {});
|
@@ -5341,7 +5356,7 @@ class Ke extends kt {
|
|
5341
5356
|
return this._url ? typeof this._url == "string" ? this._url : this._url[this._locale] ? this._url[this._locale] : Object.values(this._url)[0] : "";
|
5342
5357
|
}
|
5343
5358
|
set url(e) {
|
5344
|
-
if (v(e, Fe(String,
|
5359
|
+
if (v(e, Fe(String, fl(String))), this._url !== e) {
|
5345
5360
|
const s = this._url;
|
5346
5361
|
this._url = e, this.reload().catch((r) => {
|
5347
5362
|
this.getLogger().error("failed to reload after URL setting"), this.getLogger().error(String(r)), this._url = s;
|
@@ -5358,7 +5373,7 @@ class Ke extends kt {
|
|
5358
5373
|
return this._globalHider;
|
5359
5374
|
}
|
5360
5375
|
setGlobalHider(e) {
|
5361
|
-
v(e, Q(
|
5376
|
+
v(e, Q(go)), e && this.active && e.hideObjects(this.hiddenObjectIds), this._globalHider = e;
|
5362
5377
|
}
|
5363
5378
|
/**
|
5364
5379
|
* Indicates, that this layer is part of an exclusiveGroup
|
@@ -5392,7 +5407,7 @@ class Ke extends kt {
|
|
5392
5407
|
* @param headers
|
5393
5408
|
*/
|
5394
5409
|
set headers(e) {
|
5395
|
-
v(e, ac(
|
5410
|
+
v(e, ac(fl(String))), at(this._headers, e) || (this._headers = structuredClone(e), this.reload());
|
5396
5411
|
}
|
5397
5412
|
/**
|
5398
5413
|
* returns the currently set locale. Can be used to provide locale specific URLs.
|
@@ -5570,13 +5585,13 @@ class Ke extends kt {
|
|
5570
5585
|
}
|
5571
5586
|
}
|
5572
5587
|
Ae.registerClass(Ke.className, Ke);
|
5573
|
-
const ui = Symbol("alreadyTransformedToMercator"), je = Symbol("alreadyTransformedToImage"), bt = Symbol("obliqueGeometry"),
|
5588
|
+
const ui = Symbol("alreadyTransformedToMercator"), je = Symbol("alreadyTransformedToImage"), bt = Symbol("obliqueGeometry"), fa = Symbol("doNotTransform"), Bn = Symbol("OriginalFeature"), lr = Symbol("ActuallyIsCircle"), Ge = Symbol("createSync"), Di = new U(), e0 = new Mo({
|
5574
5589
|
font: "30px sans-serif",
|
5575
5590
|
fill: new st({ color: Cn }),
|
5576
5591
|
textAlign: "left",
|
5577
5592
|
offsetY: -15
|
5578
5593
|
});
|
5579
|
-
function
|
5594
|
+
function kl(i, t, e) {
|
5580
5595
|
var r;
|
5581
5596
|
let s;
|
5582
5597
|
(r = e[t]) != null && r.conditions ? s = new Dd(e[t], e.defines) : s = new Ad(e[t], e.defines), i[t] = s;
|
@@ -5591,7 +5606,7 @@ class qe extends Xt {
|
|
5591
5606
|
h(this, "_circleCache", /* @__PURE__ */ new Map());
|
5592
5607
|
h(this, "_iconCache", /* @__PURE__ */ new Map());
|
5593
5608
|
const s = e.declarativeStyle || {};
|
5594
|
-
s.show = s.show != null ? s.show : !0, this.cesiumStyle = new Pn(s), this._style = this._styleFunction.bind(this), s.strokeColor &&
|
5609
|
+
s.show = s.show != null ? s.show : !0, this.cesiumStyle = new Pn(s), this._style = this._styleFunction.bind(this), s.strokeColor && kl(this.cesiumStyle, "strokeColor", s), s.strokeWidth && kl(this.cesiumStyle, "strokeWidth", s), this._styleOptions = s, this._circleCache = /* @__PURE__ */ new Map(), this._iconCache = /* @__PURE__ */ new Map();
|
5595
5610
|
}
|
5596
5611
|
static get className() {
|
5597
5612
|
return "DeclarativeStyleItem";
|
@@ -5877,7 +5892,7 @@ const li = "2.1", Ys = {
|
|
5877
5892
|
cesium3DTile: ys.CESIUM_3D_TILE,
|
5878
5893
|
terrain: ys.TERRAIN
|
5879
5894
|
};
|
5880
|
-
function
|
5895
|
+
function La(i, t) {
|
5881
5896
|
if (Array.isArray(i)) {
|
5882
5897
|
const e = i.map((s) => G(s)).filter((s) => s != null);
|
5883
5898
|
if (e.length === 4)
|
@@ -5885,7 +5900,7 @@ function Ia(i, t) {
|
|
5885
5900
|
}
|
5886
5901
|
return t;
|
5887
5902
|
}
|
5888
|
-
function
|
5903
|
+
function Ta(i, t) {
|
5889
5904
|
if (Array.isArray(i)) {
|
5890
5905
|
const e = i.map((s) => G(s)).filter((s) => s != null);
|
5891
5906
|
if (e.length === 3)
|
@@ -5955,7 +5970,7 @@ class Lt {
|
|
5955
5970
|
*/
|
5956
5971
|
h(this, "propertyChanged");
|
5957
5972
|
const e = Lt.getDefaultOptions();
|
5958
|
-
this._altitudeMode = yi(t.altitudeMode, Ys, Le.CLAMP_TO_GROUND), this._allowPicking = de(t.allowPicking, e.allowPicking), this._classificationType = yi(t.classificationType, Zs), this._scaleByDistance =
|
5973
|
+
this._altitudeMode = yi(t.altitudeMode, Ys, Le.CLAMP_TO_GROUND), this._allowPicking = de(t.allowPicking, e.allowPicking), this._classificationType = yi(t.classificationType, Zs), this._scaleByDistance = La(t.scaleByDistance, void 0), this._eyeOffset = Ta(t.eyeOffset, void 0), this._heightAboveGround = G(t.heightAboveGround, e.heightAboveGround), this._skirt = G(t.skirt, e.skirt), this._groundLevel = G(t.groundLevel, e.groundLevel), this._extrudedHeight = G(t.extrudedHeight, e.extrudedHeight), this._storeysAboveGround = le(t.storeysAboveGround, e.storeysAboveGround), this._storeysBelowGround = le(t.storeysBelowGround, e.storeysBelowGround), this._storeyHeightsAboveGround = ss(t.storeyHeightsAboveGround, e.storeyHeightsAboveGround), this._storeyHeightsBelowGround = ss(t.storeyHeightsBelowGround, e.storeyHeightsBelowGround), this._modelUrl = t.modelUrl ?? e.modelUrl, this._modelScaleX = G(t.modelScaleX, e.modelScaleX), this._modelScaleY = G(t.modelScaleY, e.modelScaleY), this._modelScaleZ = G(t.modelScaleZ, e.modelScaleZ), this._modelHeading = G(t.modelHeading, e.modelHeading), this._modelPitch = G(t.modelPitch, e.modelPitch), this._modelRoll = G(t.modelRoll, e.modelRoll), this._baseUrl = t.baseUrl ?? e.baseUrl, this._modelOptions = t.modelOptions || e.modelOptions, this._modelAutoScale = de(t.modelAutoScale, e.modelAutoScale), this._primitiveOptions = t.primitiveOptions || e.primitiveOptions, this.propertyChanged = new E();
|
5959
5974
|
}
|
5960
5975
|
/**
|
5961
5976
|
* Returns the default options for VectorProperties
|
@@ -6023,7 +6038,7 @@ class Lt {
|
|
6023
6038
|
er.equals(t, this._scaleByDistance) || (v(t, Q(er)), this._scaleByDistance = t, this.propertyChanged.raiseEvent(["scaleByDistance"]));
|
6024
6039
|
}
|
6025
6040
|
getScaleByDistance(t) {
|
6026
|
-
return
|
6041
|
+
return La(t.get("olcs_scaleByDistance"), this.scaleByDistance);
|
6027
6042
|
}
|
6028
6043
|
get eyeOffset() {
|
6029
6044
|
return this._eyeOffset;
|
@@ -6038,7 +6053,7 @@ class Lt {
|
|
6038
6053
|
if (s)
|
6039
6054
|
return i0().deprecate("zCoordinateEyeOffset", "use eyeOffset and provide [0,0,value]"), new _(0, 0, G(s, 0));
|
6040
6055
|
}
|
6041
|
-
return
|
6056
|
+
return Ta(e, this.eyeOffset);
|
6042
6057
|
}
|
6043
6058
|
get heightAboveGround() {
|
6044
6059
|
return this._heightAboveGround;
|
@@ -6287,11 +6302,11 @@ class Lt {
|
|
6287
6302
|
this._classificationType !== n && (this._classificationType = n, s.push("classificationType"));
|
6288
6303
|
}
|
6289
6304
|
if ("scaleByDistance" in t) {
|
6290
|
-
const r =
|
6305
|
+
const r = La(t.scaleByDistance, void 0);
|
6291
6306
|
er.equals(r, this._scaleByDistance) || (this._scaleByDistance = r, s.push("scaleByDistance"));
|
6292
6307
|
}
|
6293
6308
|
if ("eyeOffset" in t) {
|
6294
|
-
const r =
|
6309
|
+
const r = Ta(t.eyeOffset, void 0);
|
6295
6310
|
_.equals(r, this._eyeOffset) || (this._eyeOffset = r, s.push("eyeOffset"));
|
6296
6311
|
}
|
6297
6312
|
if ("heightAboveGround" in t) {
|
@@ -6524,7 +6539,7 @@ class di extends Ke {
|
|
6524
6539
|
*/
|
6525
6540
|
h(this, "featureVisibility");
|
6526
6541
|
const s = di.getDefaultOptions();
|
6527
|
-
this._style = this.getStyleOrDefaultStyle(e.style), this._defaultStyle = this._style, this.balloonHeightOffset = le(e.balloonHeightOffset, s.balloonHeightOffset), e.splitDirection && (this._splitDirection = e.splitDirection === "left" ? Me.LEFT : Me.RIGHT), this.featureVisibility = e.featureVisibility || new
|
6542
|
+
this._style = this.getStyleOrDefaultStyle(e.style), this._defaultStyle = this._style, this.balloonHeightOffset = le(e.balloonHeightOffset, s.balloonHeightOffset), e.splitDirection && (this._splitDirection = e.splitDirection === "left" ? Me.LEFT : Me.RIGHT), this.featureVisibility = e.featureVisibility || new da();
|
6528
6543
|
}
|
6529
6544
|
static get className() {
|
6530
6545
|
return "FeatureLayer";
|
@@ -6795,7 +6810,7 @@ class hi extends Ii {
|
|
6795
6810
|
* aware layers.
|
6796
6811
|
*/
|
6797
6812
|
h(this, "_locale");
|
6798
|
-
this._layerEventListeners = {}, this._zIndexSymbol = Symbol("zIndex"), this.stateChanged = new E(), this.exclusiveManager = new r0(), this._globalHider = new
|
6813
|
+
this._layerEventListeners = {}, this._zIndexSymbol = Symbol("zIndex"), this.stateChanged = new E(), this.exclusiveManager = new r0(), this._globalHider = new go(), this._locale = "en";
|
6799
6814
|
}
|
6800
6815
|
/**
|
6801
6816
|
* Creates a LayerCollection from an iterable of layers, such as an Array.
|
@@ -6827,7 +6842,7 @@ class hi extends Ii {
|
|
6827
6842
|
* @param globalHider
|
6828
6843
|
*/
|
6829
6844
|
set globalHider(e) {
|
6830
|
-
v(e,
|
6845
|
+
v(e, go), this._globalHider = e, this._array.forEach((s) => {
|
6831
6846
|
s.setGlobalHider(this._globalHider);
|
6832
6847
|
});
|
6833
6848
|
}
|
@@ -6925,12 +6940,12 @@ class hi extends Ii {
|
|
6925
6940
|
}), this._layerEventListeners = {}, this.exclusiveManager.destroy(), this._globalHider.destroy(), super.destroy();
|
6926
6941
|
}
|
6927
6942
|
}
|
6928
|
-
var
|
6943
|
+
var mo;
|
6929
6944
|
(function(i) {
|
6930
6945
|
i[i.INACTIVE = 1] = "INACTIVE", i[i.ACTIVE = 2] = "ACTIVE", i[i.LOADING = 4] = "LOADING";
|
6931
|
-
})(
|
6932
|
-
const Et =
|
6933
|
-
function
|
6946
|
+
})(mo || (mo = {}));
|
6947
|
+
const Et = mo, Y = Symbol("vcsLayerName");
|
6948
|
+
function zl() {
|
6934
6949
|
return ue("vcMap");
|
6935
6950
|
}
|
6936
6951
|
class Li extends kt {
|
@@ -7006,13 +7021,13 @@ class Li extends kt {
|
|
7006
7021
|
return this._target;
|
7007
7022
|
}
|
7008
7023
|
set movementDisabled(e) {
|
7009
|
-
this._movementApiCallsDisabled = e, this._movementKeyEventsDisabled = e, this._movementPointerEventsDisabled = e,
|
7024
|
+
this._movementApiCallsDisabled = e, this._movementKeyEventsDisabled = e, this._movementPointerEventsDisabled = e, zl().deprecate("movementDisabled", "disableMovement");
|
7010
7025
|
}
|
7011
7026
|
/**
|
7012
7027
|
* @deprecated use disableMovement() for setting and movementApiCallsDisabled, movementKeyEventsDisabled and movementPointerEventsDisabled getter
|
7013
7028
|
*/
|
7014
7029
|
get movementDisabled() {
|
7015
|
-
return
|
7030
|
+
return zl().deprecate("movementDisabled", 'use the following getters: "movementApiCallsDisabled", "movementKeyEventsDisabled", "movementPointerEventsDisabled"'), this._movementApiCallsDisabled && this._movementKeyEventsDisabled && this._movementPointerEventsDisabled;
|
7016
7031
|
}
|
7017
7032
|
/** Whether api calls like gotoViewpoint & setting of oblique images are disabled */
|
7018
7033
|
get movementApiCallsDisabled() {
|
@@ -7252,7 +7267,7 @@ var Ze;
|
|
7252
7267
|
(function(i) {
|
7253
7268
|
i[i.DOWN = 1] = "DOWN", i[i.UP = 2] = "UP", i[i.MOVE = 3] = "MOVE";
|
7254
7269
|
})(Ze = Ze || (Ze = {}));
|
7255
|
-
function
|
7270
|
+
function Hl(i, t, e) {
|
7256
7271
|
const s = e.indexOfKey(t[Y]);
|
7257
7272
|
if (s > -1) {
|
7258
7273
|
const r = i.getArray();
|
@@ -7344,11 +7359,11 @@ class br extends Li {
|
|
7344
7359
|
const s = this.getVisualizationsForLayer(e);
|
7345
7360
|
s && s.forEach((r) => {
|
7346
7361
|
const n = this._olMap.getLayers();
|
7347
|
-
n.remove(r),
|
7362
|
+
n.remove(r), Hl(n, r, this.layerCollection);
|
7348
7363
|
});
|
7349
7364
|
}
|
7350
7365
|
addOLLayer(e) {
|
7351
|
-
this.validateVisualization(e) && (this.addVisualization(e),
|
7366
|
+
this.validateVisualization(e) && (this.addVisualization(e), Hl(this._olMap.getLayers(), e, this.layerCollection));
|
7352
7367
|
}
|
7353
7368
|
/**
|
7354
7369
|
* Internal API for deregistering representations.
|
@@ -7394,7 +7409,7 @@ class be extends br {
|
|
7394
7409
|
};
|
7395
7410
|
}
|
7396
7411
|
async initialize() {
|
7397
|
-
this.initialized || (await super.initialize(), this.olMap.setView(new
|
7412
|
+
this.initialized || (await super.initialize(), this.olMap.setView(new Co({
|
7398
7413
|
center: [1.2309226203948376e6, 6350766117974091e-9],
|
7399
7414
|
zoom: 13
|
7400
7415
|
})), this.initialized = !0);
|
@@ -7520,7 +7535,7 @@ class ts extends kt {
|
|
7520
7535
|
this._initialized = !1, this._state = pe.INACTIVE, this._map = void 0, super.destroy();
|
7521
7536
|
}
|
7522
7537
|
}
|
7523
|
-
class
|
7538
|
+
class ga extends ts {
|
7524
7539
|
constructor(e, s) {
|
7525
7540
|
super(e, s);
|
7526
7541
|
h(this, "olLayer", null);
|
@@ -7578,7 +7593,7 @@ function o0(i, t) {
|
|
7578
7593
|
s && !i.hasFeature(e, s) && i.addFeature(e, s);
|
7579
7594
|
}), t[Ks] = Date.now();
|
7580
7595
|
}
|
7581
|
-
function
|
7596
|
+
function jo(i, t, e) {
|
7582
7597
|
const s = t.on("addfeature", (r) => {
|
7583
7598
|
if (!r.feature)
|
7584
7599
|
return;
|
@@ -7608,7 +7623,7 @@ function Ho(i, t, e) {
|
|
7608
7623
|
}
|
7609
7624
|
];
|
7610
7625
|
}
|
7611
|
-
class qc extends
|
7626
|
+
class qc extends ga {
|
7612
7627
|
constructor(e, s) {
|
7613
7628
|
super(e, s);
|
7614
7629
|
h(this, "source");
|
@@ -7637,7 +7652,7 @@ class qc extends fa {
|
|
7637
7652
|
return this.minResolution && e.setMinResolution(this.minResolution), this.maxResolution && e.setMaxResolution(this.maxResolution), e;
|
7638
7653
|
}
|
7639
7654
|
async activate() {
|
7640
|
-
this.active || (await super.activate(), this.active && this._featureVisibilityListeners.length === 0 && (this._featureVisibilityListeners =
|
7655
|
+
this.active || (await super.activate(), this.active && this._featureVisibilityListeners.length === 0 && (this._featureVisibilityListeners = jo(this.featureVisibility, this.source, this.globalHider)));
|
7641
7656
|
}
|
7642
7657
|
deactivate() {
|
7643
7658
|
super.deactivate(), this._featureVisibilityListeners.forEach((e) => {
|
@@ -7666,7 +7681,7 @@ function l0(i, t, e) {
|
|
7666
7681
|
const n = document.createElement("canvas"), a = n.getContext("2d");
|
7667
7682
|
a.fillStyle = r, a.fillRect(0, 0, 300, 300), s.material = Rt.fromType("Wallpaper", {
|
7668
7683
|
image: n,
|
7669
|
-
anchor: Fd.wgs84ToDrawingBufferCoordinates(i, _.fromDegreesArray(
|
7684
|
+
anchor: Fd.wgs84ToDrawingBufferCoordinates(i, _.fromDegreesArray(xo(e.getGeometry().getExtent()))[0])
|
7670
7685
|
});
|
7671
7686
|
} else {
|
7672
7687
|
const n = ai(r, [0, 0, 0, 1]);
|
@@ -7710,7 +7725,11 @@ function c0(i, t, e, s, r, n, a) {
|
|
7710
7725
|
if (o !== void 0 && !a) {
|
7711
7726
|
if (!Yh.isSupported(i))
|
7712
7727
|
return null;
|
7713
|
-
const d = ai(
|
7728
|
+
const d = ai(
|
7729
|
+
n.getFill().getColor(),
|
7730
|
+
// XXX PatternDescriptor
|
7731
|
+
[0, 0, 0, 1]
|
7732
|
+
);
|
7714
7733
|
c = h0(l, r, d, o);
|
7715
7734
|
} else {
|
7716
7735
|
const d = r.map((f) => new ct({
|
@@ -7719,9 +7738,9 @@ function c0(i, t, e, s, r, n, a) {
|
|
7719
7738
|
l.geometryInstances = d;
|
7720
7739
|
const u = l0(i, n.getFill(), s);
|
7721
7740
|
if (l.appearance = u, a) {
|
7722
|
-
if (!
|
7741
|
+
if (!nl.isSupported(i))
|
7723
7742
|
return null;
|
7724
|
-
l.classificationType = o || ys.TERRAIN, c = new
|
7743
|
+
l.classificationType = o || ys.TERRAIN, c = new nl(l);
|
7725
7744
|
} else
|
7726
7745
|
c = new pt(l);
|
7727
7746
|
}
|
@@ -7752,18 +7771,19 @@ function u0(i, t, e, s, r, n) {
|
|
7752
7771
|
return new pt(c);
|
7753
7772
|
}
|
7754
7773
|
function Wc(i, t, e, s, r, n, a) {
|
7755
|
-
|
7756
|
-
|
7774
|
+
var m;
|
7775
|
+
const o = t.getClassificationType(s), l = r.map((p) => new ct({
|
7776
|
+
geometry: p
|
7757
7777
|
})), c = ai(n.getStroke().getColor(), [0, 0, 0, 1]);
|
7758
7778
|
let d;
|
7759
|
-
n.getStroke().getLineDash() ? d = Rt.fromType("Stripe", {
|
7779
|
+
(m = n.getStroke()) != null && m.getLineDash() ? d = Rt.fromType("Stripe", {
|
7760
7780
|
horizontal: !1,
|
7761
7781
|
repeat: 500,
|
7762
7782
|
evenColor: c,
|
7763
7783
|
oddColor: new U(0, 0, 0, 0)
|
7764
7784
|
// transparent
|
7765
7785
|
}) : d = Rt.fromType("Color", { color: c });
|
7766
|
-
const u = new
|
7786
|
+
const u = new eo({
|
7767
7787
|
renderState: {
|
7768
7788
|
depthTest: {
|
7769
7789
|
enabled: !0
|
@@ -7781,9 +7801,9 @@ function Wc(i, t, e, s, r, n, a) {
|
|
7781
7801
|
};
|
7782
7802
|
let g;
|
7783
7803
|
if (a) {
|
7784
|
-
if (!
|
7804
|
+
if (!al.isSupported(i))
|
7785
7805
|
return null;
|
7786
|
-
f.classificationType = o || ys.TERRAIN, g = new
|
7806
|
+
f.classificationType = o || ys.TERRAIN, g = new al(f);
|
7787
7807
|
} else
|
7788
7808
|
g = new pt(f);
|
7789
7809
|
return g;
|
@@ -7800,7 +7820,7 @@ function d0(i, t) {
|
|
7800
7820
|
}
|
7801
7821
|
return 0;
|
7802
7822
|
}
|
7803
|
-
function
|
7823
|
+
function jl(i, t, e) {
|
7804
7824
|
const s = Math.abs(i), r = [];
|
7805
7825
|
if (t.length) {
|
7806
7826
|
let n = 0;
|
@@ -7819,7 +7839,7 @@ function Hl(i, t, e) {
|
|
7819
7839
|
return new Array(e).fill(s / e);
|
7820
7840
|
return [s];
|
7821
7841
|
}
|
7822
|
-
function
|
7842
|
+
function Vl(i, t) {
|
7823
7843
|
if (i && t.length) {
|
7824
7844
|
const e = i - t.length;
|
7825
7845
|
e > 0 ? t.push(...new Array(e).fill(t[t.length - 1])) : e < 0 && t.splice(t.length + e), i > 100 && t.splice(100);
|
@@ -7832,7 +7852,7 @@ function f0(i, t, e) {
|
|
7832
7852
|
function Xc(i, t, e) {
|
7833
7853
|
const s = t.getExtrudedHeight(i);
|
7834
7854
|
let r = t.getStoreysAboveGround(i), n = t.getStoreysBelowGround(i), a = t.getStoreyHeightsAboveGround(i), o = t.getStoreyHeightsBelowGround(i);
|
7835
|
-
s && (s > 0 ? (a =
|
7855
|
+
s && (s > 0 ? (a = jl(s, a, r), r = a.length, o = [], n = 0) : s < 0 && (o = jl(s, o, n), n = o.length, a = [], r = 0)), Vl(r, a), Vl(n, o);
|
7836
7856
|
const l = t.getSkirt(i), c = t.getGroundLevel(i), d = t.getAltitudeMode(i), u = f0(i, d, t), f = d0(c, e) + u, g = !!e.find((y) => y[2]), m = !!(a.length || o.length || l), p = g && c == null && (!m || m && a.length + o.length === 1);
|
7837
7857
|
return {
|
7838
7858
|
extruded: m,
|
@@ -7845,7 +7865,7 @@ function Xc(i, t, e) {
|
|
7845
7865
|
heightAboveGroundAdjustment: u
|
7846
7866
|
};
|
7847
7867
|
}
|
7848
|
-
function
|
7868
|
+
function $l(i, t, e, s) {
|
7849
7869
|
const r = e ? -1 : 1;
|
7850
7870
|
let n = t;
|
7851
7871
|
const a = i.length, o = new Array(a);
|
@@ -7858,14 +7878,14 @@ function Vl(i, t, e, s) {
|
|
7858
7878
|
}
|
7859
7879
|
return s ? (s.push(...o), s) : o;
|
7860
7880
|
}
|
7861
|
-
function
|
7881
|
+
function ma(i, t, e, s, r, n, a) {
|
7862
7882
|
if (!e.length)
|
7863
7883
|
return;
|
7864
7884
|
const o = [], l = [], c = [], d = Xc(i, s, n.getCoordinates(e)), u = !!t.getFill(), f = !!t.getStroke();
|
7865
7885
|
let g = !1;
|
7866
7886
|
e.forEach((y) => {
|
7867
|
-
const S = n.getGeometryOptions(y, d.heightAboveGroundAdjustment, d.perPositionHeight, d.groundLevel), w =
|
7868
|
-
if (
|
7887
|
+
const S = n.getGeometryOptions(y, d.heightAboveGroundAdjustment, d.perPositionHeight, d.groundLevel), w = $l(d.storeyHeightsAboveGround, d.groundLevel);
|
7888
|
+
if ($l(d.storeyHeightsBelowGround, d.groundLevel, !0, w), u && w.forEach((C) => {
|
7869
7889
|
o.push(...n.createSolidGeometries(S, C.currentHeight, d.perPositionHeight, C.extrudedHeight));
|
7870
7890
|
}), f && w.forEach((C) => {
|
7871
7891
|
l.push(...n.createOutlineGeometries(S, C.currentHeight, d.perPositionHeight, C.extrudedHeight));
|
@@ -7890,7 +7910,7 @@ function ga(i, t, e, s, r, n, a) {
|
|
7890
7910
|
}
|
7891
7911
|
a.addPrimitives(p, i, m);
|
7892
7912
|
}
|
7893
|
-
function
|
7913
|
+
function Vo(i) {
|
7894
7914
|
const t = i.getStride(), e = i.getFlatCoordinates();
|
7895
7915
|
if (e.length > 0) {
|
7896
7916
|
const s = Math.floor(e.length / t), r = new Array(s);
|
@@ -7906,7 +7926,7 @@ function jo(i) {
|
|
7906
7926
|
}
|
7907
7927
|
function Ns(i, t) {
|
7908
7928
|
if (!t && i instanceof Qu)
|
7909
|
-
return
|
7929
|
+
return Vo(i);
|
7910
7930
|
const e = t;
|
7911
7931
|
let s = null;
|
7912
7932
|
return i instanceof Dt ? s = [e] : i instanceof qt ? s = e : i instanceof At ? s = e.reduce((r, n) => r.concat(n)) : i instanceof kh ? s = e : i instanceof zh ? s = e.reduce((r, n) => r.concat(n)) : i instanceof ur ? s = e.reduce((r, n) => r.concat(n)).reduce((r, n) => r.concat(n)) : i instanceof Ot ? s = e : i instanceof zr && (s = i.getGeometries().map((r, n) => Ns(r, e == null ? void 0 : e[n])).reduce((r, n) => r.concat(n))), s;
|
@@ -7918,11 +7938,11 @@ function Yc(i, t) {
|
|
7918
7938
|
function Zc(i) {
|
7919
7939
|
return i instanceof Ot ? Hh(i) : (i instanceof At && i.unset("_vcsGeomType"), i);
|
7920
7940
|
}
|
7921
|
-
function
|
7941
|
+
function po(i) {
|
7922
7942
|
const [t, e] = i[i.length - 1];
|
7923
7943
|
i[0][0] === t && i[0][1] === e || i.push(i[0].slice());
|
7924
7944
|
}
|
7925
|
-
function
|
7945
|
+
function Bl(i) {
|
7926
7946
|
const [t, e] = i[i.length - 1];
|
7927
7947
|
i[0][0] === t && i[0][1] === e && i.pop();
|
7928
7948
|
}
|
@@ -7930,13 +7950,13 @@ function Kc(i) {
|
|
7930
7950
|
if (i instanceof At) {
|
7931
7951
|
const t = i.getCoordinates();
|
7932
7952
|
t.forEach((e) => {
|
7933
|
-
|
7953
|
+
Bl(e);
|
7934
7954
|
}), i.setCoordinates(t);
|
7935
7955
|
} else if (i instanceof ur) {
|
7936
7956
|
const t = i.getCoordinates();
|
7937
7957
|
t.forEach((e) => {
|
7938
7958
|
e.forEach((s) => {
|
7939
|
-
|
7959
|
+
Bl(s);
|
7940
7960
|
});
|
7941
7961
|
}), i.setCoordinates(t);
|
7942
7962
|
}
|
@@ -7976,19 +7996,20 @@ function y0(i, t, e) {
|
|
7976
7996
|
return Jc(i, t, e, void 0);
|
7977
7997
|
}
|
7978
7998
|
function Qc(i, t) {
|
7979
|
-
|
7999
|
+
var r;
|
8000
|
+
const e = G((r = t.getStroke()) == null ? void 0 : r.getWidth(), 1), s = [];
|
7980
8001
|
return s.push({
|
7981
8002
|
positions: i.polygonHierarchy.positions,
|
7982
8003
|
width: e
|
7983
|
-
}), i.polygonHierarchy.holes.forEach((
|
8004
|
+
}), i.polygonHierarchy.holes.forEach((n) => {
|
7984
8005
|
s.push({
|
7985
|
-
positions:
|
8006
|
+
positions: n.positions,
|
7986
8007
|
width: e
|
7987
8008
|
});
|
7988
8009
|
}), s;
|
7989
8010
|
}
|
7990
8011
|
function _0(i, t) {
|
7991
|
-
return Qc(i, t).map((e) => new
|
8012
|
+
return Qc(i, t).map((e) => new bo(e));
|
7992
8013
|
}
|
7993
8014
|
function v0(i, t) {
|
7994
8015
|
return Qc(i, t).map((e) => new zi(e));
|
@@ -8001,21 +8022,21 @@ function S0(i, t, e, s) {
|
|
8001
8022
|
const u = k.mercatorToWgs84(d);
|
8002
8023
|
return !e && s ? u[2] = s : u[2] != null && (u[2] += t), _.fromDegrees(u[0], u[1], u[2]);
|
8003
8024
|
});
|
8004
|
-
_.equals(c[0], c[c.length - 1]) || c.push(c[0]), o === 0 ? r = c : n.push(new
|
8025
|
+
_.equals(c[0], c[c.length - 1]) || c.push(c[0]), o === 0 ? r = c : n.push(new to(c));
|
8005
8026
|
}
|
8006
8027
|
return {
|
8007
|
-
polygonHierarchy: new
|
8028
|
+
polygonHierarchy: new to(r, n)
|
8008
8029
|
};
|
8009
8030
|
}
|
8010
8031
|
function w0(i) {
|
8011
8032
|
const t = [];
|
8012
8033
|
return i.forEach((e) => {
|
8013
|
-
t.push(...
|
8034
|
+
t.push(...Vo(e));
|
8014
8035
|
}), t;
|
8015
8036
|
}
|
8016
|
-
let
|
8037
|
+
let Na = null;
|
8017
8038
|
function M0() {
|
8018
|
-
return
|
8039
|
+
return Na || (Na = {
|
8019
8040
|
getCoordinates: w0,
|
8020
8041
|
getGeometryOptions: S0,
|
8021
8042
|
createSolidGeometries: Jc,
|
@@ -8023,7 +8044,7 @@ function M0() {
|
|
8023
8044
|
createFillGeometries: y0,
|
8024
8045
|
createGroundLineGeometries: _0,
|
8025
8046
|
createLineGeometries: v0
|
8026
|
-
}),
|
8047
|
+
}), Na;
|
8027
8048
|
}
|
8028
8049
|
function eu(i) {
|
8029
8050
|
if (i.getType() !== "Polygon")
|
@@ -8037,11 +8058,11 @@ function eu(i) {
|
|
8037
8058
|
const n = s * 3 * i.getLinearRingCount();
|
8038
8059
|
return t && t.length >= n && i.getLinearRingCount() ? t.every((a) => Number.isFinite(a)) : !1;
|
8039
8060
|
}
|
8040
|
-
function
|
8061
|
+
function Ul(i, t, e, s, r, n) {
|
8041
8062
|
if (!t.getFill() && !t.getStroke())
|
8042
8063
|
return;
|
8043
8064
|
const a = M0(), o = e.filter((l) => eu(l));
|
8044
|
-
|
8065
|
+
ma(i, t, o, s, r, a, n);
|
8045
8066
|
}
|
8046
8067
|
function tu(i, t, e, s) {
|
8047
8068
|
return [
|
@@ -8067,18 +8088,19 @@ function x0(i, t, e) {
|
|
8067
8088
|
return tu(i, t, e, void 0);
|
8068
8089
|
}
|
8069
8090
|
function iu(i, t) {
|
8070
|
-
|
8091
|
+
var d;
|
8092
|
+
const e = G((d = t.getStroke()) == null ? void 0 : d.getWidth(), 1), { center: s, radius: r } = i, n = se.fromCartesian(s), a = [
|
8071
8093
|
N.toDegrees(n.longitude),
|
8072
8094
|
N.toDegrees(n.latitude)
|
8073
8095
|
];
|
8074
8096
|
return {
|
8075
|
-
positions: ed(a, r, 40).getLinearRing(0).getCoordinates().map((
|
8097
|
+
positions: ed(a, r, 40).getLinearRing(0).getCoordinates().map((u) => _.fromDegrees(u[0], u[1], n.height)),
|
8076
8098
|
width: e
|
8077
8099
|
};
|
8078
8100
|
}
|
8079
8101
|
function b0(i, t) {
|
8080
8102
|
const e = iu(i, t);
|
8081
|
-
return [new
|
8103
|
+
return [new bo(e)];
|
8082
8104
|
}
|
8083
8105
|
function O0(i, t) {
|
8084
8106
|
const e = iu(i, t);
|
@@ -8098,9 +8120,9 @@ function E0(i, t, e, s) {
|
|
8098
8120
|
function P0(i) {
|
8099
8121
|
return i.map((t) => t.getCenter());
|
8100
8122
|
}
|
8101
|
-
let
|
8123
|
+
let Da = null;
|
8102
8124
|
function I0() {
|
8103
|
-
return
|
8125
|
+
return Da || (Da = {
|
8104
8126
|
getCoordinates: P0,
|
8105
8127
|
getGeometryOptions: E0,
|
8106
8128
|
createSolidGeometries: tu,
|
@@ -8108,7 +8130,7 @@ function I0() {
|
|
8108
8130
|
createFillGeometries: x0,
|
8109
8131
|
createGroundLineGeometries: b0,
|
8110
8132
|
createLineGeometries: O0
|
8111
|
-
}),
|
8133
|
+
}), Da;
|
8112
8134
|
}
|
8113
8135
|
function su(i) {
|
8114
8136
|
if (i.getType() !== "Circle")
|
@@ -8120,7 +8142,7 @@ function L0(i, t, e, s, r, n) {
|
|
8120
8142
|
if (!t.getFill() && !t.getStroke())
|
8121
8143
|
return;
|
8122
8144
|
const a = I0(), o = e.filter((l) => su(l));
|
8123
|
-
|
8145
|
+
ma(i, t, o, s, r, a, n);
|
8124
8146
|
}
|
8125
8147
|
var Qe;
|
8126
8148
|
(function(i) {
|
@@ -8169,7 +8191,7 @@ function N0() {
|
|
8169
8191
|
offset: [0, 0, -4.3]
|
8170
8192
|
};
|
8171
8193
|
}
|
8172
|
-
class
|
8194
|
+
class pa extends ee {
|
8173
8195
|
constructor(e = {}) {
|
8174
8196
|
const s = e.color ?? "#000000", r = {
|
8175
8197
|
stroke: new $e({
|
@@ -8185,29 +8207,34 @@ class ma extends ee {
|
|
8185
8207
|
super(r);
|
8186
8208
|
h(this, "primitiveOptions");
|
8187
8209
|
h(this, "end");
|
8188
|
-
this.primitiveOptions = n, this.end =
|
8210
|
+
this.primitiveOptions = n, this.end = ua(e.end, Qe, Qe.END), this.setRenderer(this._render.bind(this));
|
8189
8211
|
}
|
8190
8212
|
/**
|
8191
8213
|
* Same as getStroke().getWidth() / getStroke().setWidth()
|
8192
8214
|
*/
|
8193
8215
|
get width() {
|
8194
|
-
|
8216
|
+
var e;
|
8217
|
+
return (e = this.getStroke()) == null ? void 0 : e.getWidth();
|
8195
8218
|
}
|
8196
8219
|
set width(e) {
|
8197
|
-
|
8220
|
+
var s;
|
8221
|
+
(s = this.getStroke()) == null || s.setWidth(e);
|
8198
8222
|
}
|
8199
8223
|
/**
|
8200
8224
|
* The color of the stroke and icon styles. Setting the color will not re-apply the icons color.
|
8201
8225
|
*/
|
8202
8226
|
get color() {
|
8203
|
-
|
8227
|
+
var e;
|
8228
|
+
return ((e = this.getStroke()) == null ? void 0 : e.getColor()) ?? [255, 255, 255, 1];
|
8204
8229
|
}
|
8205
8230
|
set color(e) {
|
8206
|
-
|
8231
|
+
var s;
|
8232
|
+
(s = this.getStroke()) == null || s.setColor(e);
|
8207
8233
|
}
|
8208
8234
|
_drawArrow(e, s, r, n) {
|
8235
|
+
var l;
|
8209
8236
|
e.save();
|
8210
|
-
let a = this.getImage().getScale();
|
8237
|
+
let a = ((l = this.getImage()) == null ? void 0 : l.getScale()) ?? 1;
|
8211
8238
|
a = Array.isArray(a) ? a : [a, a], e.setTransform(a[0], 0, 0, a[1], s[0], s[1]), e.rotate(Math.PI - r);
|
8212
8239
|
const o = this.getImage().getImage(n);
|
8213
8240
|
e.translate(0, Math.floor(o.height / 2)), e.drawImage(o, -o.width / 2, -o.height / 2), e.restore();
|
@@ -8215,7 +8242,7 @@ class ma extends ee {
|
|
8215
8242
|
_render(e, s) {
|
8216
8243
|
if (s.geometry.getType() === "LineString" && e.length > 1 && this.width) {
|
8217
8244
|
const r = s.context;
|
8218
|
-
this.end !== Qe.NONE && ((this.end === Qe.START || this.end === Qe.BOTH) && this._drawArrow(r, e[0],
|
8245
|
+
this.end !== Qe.NONE && ((this.end === Qe.START || this.end === Qe.BOTH) && this._drawArrow(r, e[0], lo(e[1], e[0]), s.pixelRatio), (this.end === Qe.END || this.end === Qe.BOTH) && this._drawArrow(r, e.at(-1), lo(e.at(-2), e.at(-1)), s.pixelRatio)), r.save(), r.lineJoin = "round", r.lineWidth = this.width, r.strokeStyle = ot(this.color), r.beginPath(), r.moveTo(e[0][0], e[0][1]);
|
8219
8246
|
for (let n = 0; n < e.length; n++)
|
8220
8247
|
r.lineTo(e[n][0], e[n][1]);
|
8221
8248
|
r.stroke(), r.restore();
|
@@ -8241,7 +8268,7 @@ class ma extends ee {
|
|
8241
8268
|
};
|
8242
8269
|
}
|
8243
8270
|
clone() {
|
8244
|
-
return new
|
8271
|
+
return new pa(this._getCloneOptions());
|
8245
8272
|
}
|
8246
8273
|
}
|
8247
8274
|
function D0(i, t, e, s) {
|
@@ -8272,7 +8299,7 @@ function ru(i, t) {
|
|
8272
8299
|
});
|
8273
8300
|
}
|
8274
8301
|
async function nu(i, t, e, s) {
|
8275
|
-
await
|
8302
|
+
await oa(e.globe.terrainProvider, [
|
8276
8303
|
se.fromCartesian(t)
|
8277
8304
|
]).then(([r]) => {
|
8278
8305
|
if (!i.isDestroyed()) {
|
@@ -8282,7 +8309,7 @@ async function nu(i, t, e, s) {
|
|
8282
8309
|
}).catch(() => {
|
8283
8310
|
});
|
8284
8311
|
}
|
8285
|
-
async function
|
8312
|
+
async function ql(i, t, e, s, r, n) {
|
8286
8313
|
const a = s.getModel(i);
|
8287
8314
|
if (!a)
|
8288
8315
|
return null;
|
@@ -8294,7 +8321,7 @@ async function Ul(i, t, e, s, r, n) {
|
|
8294
8321
|
}
|
8295
8322
|
return {
|
8296
8323
|
primitives: await Promise.all(e.map(async (g, m) => {
|
8297
|
-
const p = R.multiply(bi.headingPitchRollToFixedFrame(g, l), R.fromScale(o), new R()), y = s.getModelOptions(i), S = s.getAltitudeMode(i), w = await
|
8324
|
+
const p = R.multiply(bi.headingPitchRollToFixedFrame(g, l), R.fromScale(o), new R()), y = s.getModelOptions(i), S = s.getAltitudeMode(i), w = await Oo.fromGltfAsync({
|
8298
8325
|
asynchronous: !i[Ge],
|
8299
8326
|
url: a.url,
|
8300
8327
|
modelMatrix: p,
|
@@ -8320,7 +8347,7 @@ async function Ul(i, t, e, s, r, n) {
|
|
8320
8347
|
options: a
|
8321
8348
|
};
|
8322
8349
|
}
|
8323
|
-
function
|
8350
|
+
function Aa(i, t, e) {
|
8324
8351
|
var r, n;
|
8325
8352
|
let s;
|
8326
8353
|
return Fi(i, Ct.CYLINDER) ? s = e ? new jd(i.geometryOptions) : new Zh(i.geometryOptions) : Fi(i, Ct.ELLIPSOID) && (Array.isArray((r = i.geometryOptions) == null ? void 0 : r.radii) && (i.geometryOptions.radii = _.fromArray(i.geometryOptions.radii)), Array.isArray((n = i.geometryOptions) == null ? void 0 : n.innerRadii) && (i.geometryOptions.innerRadii = _.fromArray(i.geometryOptions.innerRadii)), s = e ? new Vd(i.geometryOptions) : new Kh(i.geometryOptions)), Fi(i, Ct.SPHERE) && (s = e ? new $d(i.geometryOptions) : new Bd(i.geometryOptions)), Fi(i, Ct.BOX) && (Array.isArray(i.geometryOptions.minimum) && (i.geometryOptions.minimum = _.fromArray(i.geometryOptions.minimum)), Array.isArray(i.geometryOptions.maximum) && (i.geometryOptions.maximum = _.fromArray(i.geometryOptions.maximum)), s = e ? new Ud(i.geometryOptions) : new Jh(i.geometryOptions)), s ? new ct({
|
@@ -8330,7 +8357,7 @@ function Da(i, t, e) {
|
|
8330
8357
|
}
|
8331
8358
|
}) : null;
|
8332
8359
|
}
|
8333
|
-
async function
|
8360
|
+
async function yo(i, t, e, s, r, n) {
|
8334
8361
|
const a = r.getPrimitive(i);
|
8335
8362
|
if (!a)
|
8336
8363
|
return null;
|
@@ -8377,27 +8404,27 @@ async function po(i, t, e, s, r, n) {
|
|
8377
8404
|
}, q = [];
|
8378
8405
|
if (d)
|
8379
8406
|
q.push(F(d.alpha < 1 || !!L, [
|
8380
|
-
|
8407
|
+
Aa(a.primitiveOptions, d)
|
8381
8408
|
], L));
|
8382
8409
|
else if (L) {
|
8383
8410
|
const $ = U.TRANSPARENT;
|
8384
8411
|
q.push(F(!0, [
|
8385
|
-
|
8412
|
+
Aa(a.primitiveOptions, $)
|
8386
8413
|
], L));
|
8387
8414
|
}
|
8388
8415
|
return u && q.push(F(u.alpha < 1 || !!L, [
|
8389
|
-
|
8416
|
+
Aa(a.primitiveOptions, u, !0)
|
8390
8417
|
])), Promise.all(q);
|
8391
8418
|
}))).flatMap((S) => S),
|
8392
8419
|
options: a
|
8393
8420
|
};
|
8394
8421
|
}
|
8395
|
-
function
|
8422
|
+
function Wl(i, t, e) {
|
8396
8423
|
let s = e === Le.NONE ? __(t, i) : 0;
|
8397
8424
|
return s += 90, {
|
8398
8425
|
location: t,
|
8399
8426
|
pitch: s,
|
8400
|
-
heading: N.toDegrees(
|
8427
|
+
heading: N.toDegrees(lo(i, t) + N.PI_OVER_TWO)
|
8401
8428
|
};
|
8402
8429
|
}
|
8403
8430
|
async function au(i, t, e, s, r, n, a) {
|
@@ -8407,7 +8434,7 @@ async function au(i, t, e, s, r, n, a) {
|
|
8407
8434
|
const o = [], l = s.getAltitudeMode(i);
|
8408
8435
|
if (e.forEach((f) => {
|
8409
8436
|
const g = n.getCoordinates([f]);
|
8410
|
-
(t.end === Qe.START || t.end === Qe.BOTH) && o.push(
|
8437
|
+
(t.end === Qe.START || t.end === Qe.BOTH) && o.push(Wl(g[1], g[0], l)), (t.end === Qe.END || t.end === Qe.BOTH) && o.push(Wl(g.at(-2), g.at(-1), l));
|
8411
8438
|
}), o.length === 0)
|
8412
8439
|
return;
|
8413
8440
|
const c = t.getOlcsStyle(), d = s.getAllowPicking(i);
|
@@ -8419,7 +8446,7 @@ async function au(i, t, e, s, r, n, a) {
|
|
8419
8446
|
olcs_modelPitch: f.pitch,
|
8420
8447
|
geometry: new Dt(f.location),
|
8421
8448
|
olcs_modelAutoScale: !0
|
8422
|
-
}), m = k.mercatorToWgs84(f.location), p = _.fromDegrees(m[0], m[1], m[2]), y = await
|
8449
|
+
}), m = k.mercatorToWgs84(f.location), p = _.fromDegrees(m[0], m[1], m[2]), y = await yo(g, c, [m], [p], s, r);
|
8423
8450
|
y != null && y.primitives && a.addScaledPrimitives(y.primitives, i, d);
|
8424
8451
|
}));
|
8425
8452
|
}
|
@@ -8447,13 +8474,13 @@ function hu(i, t, e) {
|
|
8447
8474
|
function cu(i, t) {
|
8448
8475
|
const e = G(t.getStroke().getWidth(), 1);
|
8449
8476
|
return [
|
8450
|
-
new
|
8477
|
+
new bo({
|
8451
8478
|
...i,
|
8452
8479
|
width: e
|
8453
8480
|
})
|
8454
8481
|
];
|
8455
8482
|
}
|
8456
|
-
function
|
8483
|
+
function $o(i, t) {
|
8457
8484
|
const e = G(t.getStroke().getWidth(), 1);
|
8458
8485
|
return [
|
8459
8486
|
new zi({
|
@@ -8471,32 +8498,32 @@ function uu(i, t, e, s) {
|
|
8471
8498
|
function du(i) {
|
8472
8499
|
const t = [];
|
8473
8500
|
return i.forEach((e) => {
|
8474
|
-
t.push(...
|
8501
|
+
t.push(...Vo(e));
|
8475
8502
|
}), t;
|
8476
8503
|
}
|
8477
|
-
let
|
8504
|
+
let Fa = null;
|
8478
8505
|
function A0() {
|
8479
|
-
return
|
8506
|
+
return Fa || (Fa = {
|
8480
8507
|
getCoordinates: du,
|
8481
8508
|
getGeometryOptions: uu,
|
8482
8509
|
createSolidGeometries: ou,
|
8483
8510
|
createOutlineGeometries: lu,
|
8484
8511
|
createFillGeometries: hu,
|
8485
8512
|
createGroundLineGeometries: cu,
|
8486
|
-
createLineGeometries:
|
8487
|
-
}),
|
8513
|
+
createLineGeometries: $o
|
8514
|
+
}), Fa;
|
8488
8515
|
}
|
8489
|
-
function
|
8516
|
+
function Bo(i) {
|
8490
8517
|
if (i.getType() !== "LineString")
|
8491
8518
|
return !1;
|
8492
8519
|
const t = i.getFlatCoordinates(), e = i.getStride() * 2;
|
8493
8520
|
return t && t.length >= e ? t.every((s) => Number.isFinite(s)) : !1;
|
8494
8521
|
}
|
8495
|
-
async function
|
8522
|
+
async function Xl(i, t, e, s, r, n) {
|
8496
8523
|
if (!t.getFill() && !t.getStroke())
|
8497
8524
|
return;
|
8498
|
-
const a = A0(), o = e.filter((l) =>
|
8499
|
-
|
8525
|
+
const a = A0(), o = e.filter((l) => Bo(l));
|
8526
|
+
ma(i, t, o, s, r, a, n), t instanceof pa && await au(i, t, o, s, r, a, n);
|
8500
8527
|
}
|
8501
8528
|
function F0(i) {
|
8502
8529
|
return i.map((t) => t.getCoordinates());
|
@@ -8528,7 +8555,7 @@ function R0(i, t, e, s) {
|
|
8528
8555
|
}
|
8529
8556
|
function G0(i, t, e, s) {
|
8530
8557
|
const r = t.getText(), n = r ? r.getText() : null;
|
8531
|
-
if (n) {
|
8558
|
+
if (n && r) {
|
8532
8559
|
const a = {};
|
8533
8560
|
a.text = n, a.heightReference = e;
|
8534
8561
|
const o = r.getOffsetX() ?? 0, l = r.getOffsetY() ?? 0;
|
@@ -8537,18 +8564,22 @@ function G0(i, t, e, s) {
|
|
8537
8564
|
c && (a.font = c);
|
8538
8565
|
const d = r.getFill(), u = r.getStroke();
|
8539
8566
|
let f;
|
8540
|
-
d && (a.fillColor = ai(
|
8567
|
+
d && (a.fillColor = ai(
|
8568
|
+
d.getColor(),
|
8569
|
+
// XXX PatternDescriptor
|
8570
|
+
[0, 0, 0, 1]
|
8571
|
+
), f = Ma.FILL), u && (a.outlineWidth = G(u.getWidth(), 1), a.outlineColor = ai(u.getColor(), [0, 0, 0, 1]), f = Ma.OUTLINE), d && u && (f = Ma.FILL_AND_OUTLINE), a.style = f;
|
8541
8572
|
let g;
|
8542
8573
|
switch (r.getTextAlign()) {
|
8543
8574
|
case "left":
|
8544
|
-
g =
|
8575
|
+
g = Ca.LEFT;
|
8545
8576
|
break;
|
8546
8577
|
case "right":
|
8547
|
-
g =
|
8578
|
+
g = Ca.RIGHT;
|
8548
8579
|
break;
|
8549
8580
|
case "center":
|
8550
8581
|
default:
|
8551
|
-
g =
|
8582
|
+
g = Ca.CENTER;
|
8552
8583
|
}
|
8553
8584
|
a.horizontalOrigin = g;
|
8554
8585
|
let m;
|
@@ -8597,44 +8628,45 @@ function z0(i, t, e, s) {
|
|
8597
8628
|
let l = o[2] != null ? o[2] : t.groundLevel;
|
8598
8629
|
l -= n;
|
8599
8630
|
const c = _.fromDegrees(o[0], o[1], l), d = [e[a], c];
|
8600
|
-
r.push(
|
8631
|
+
r.push(...$o({ positions: d }, s));
|
8601
8632
|
}
|
8602
8633
|
return r;
|
8603
8634
|
}
|
8604
|
-
async function
|
8605
|
-
|
8635
|
+
async function Yl(i, t, e, s, r, n) {
|
8636
|
+
var m;
|
8637
|
+
if (!t.getImage() && !((m = t.getText()) != null && m.getText()))
|
8606
8638
|
return;
|
8607
|
-
const a = e.filter((
|
8639
|
+
const a = e.filter((p) => fu(p));
|
8608
8640
|
if (!a.length)
|
8609
8641
|
return;
|
8610
8642
|
const o = F0(a), l = Xc(i, s, o);
|
8611
8643
|
let { heightReference: c } = l;
|
8612
8644
|
const d = s.getAllowPicking(i), { positions: u, wgs84Positions: f } = k0(o, l);
|
8613
8645
|
let g = null;
|
8614
|
-
if (i.get("olcs_modelUrl") ? g = await
|
8615
|
-
const
|
8616
|
-
if (
|
8646
|
+
if (i.get("olcs_modelUrl") ? g = await ql(i, f, u, s, r, t) : i.get("olcs_primitiveOptions") ? g = await yo(i, t, f, u, s, r) : g = await ql(i, f, u, s, r, t) ?? await yo(i, t, f, u, s, r), l.extruded && t.getStroke()) {
|
8647
|
+
const p = z0(f, l, u, t);
|
8648
|
+
if (p.length) {
|
8617
8649
|
c = Le.NONE;
|
8618
|
-
const
|
8619
|
-
|
8650
|
+
const y = Wc(r, s, d, i, p, t, !1);
|
8651
|
+
y && n.addPrimitives([y], i, d);
|
8620
8652
|
}
|
8621
8653
|
}
|
8622
8654
|
if (g)
|
8623
8655
|
g.options.autoScale ? n.addScaledPrimitives(g.primitives, i, d) : n.addPrimitives(g.primitives, i, d);
|
8624
8656
|
else {
|
8625
|
-
const
|
8626
|
-
if (m) {
|
8627
|
-
const y = u.map((S) => ({ ...m, position: S }));
|
8628
|
-
n.addBillboards(y, i, d);
|
8629
|
-
}
|
8630
|
-
const p = G0(i, t, c, s);
|
8657
|
+
const p = R0(i, t, c, s);
|
8631
8658
|
if (p) {
|
8632
|
-
const
|
8633
|
-
n.
|
8659
|
+
const S = u.map((w) => ({ ...p, position: w }));
|
8660
|
+
n.addBillboards(S, i, d);
|
8661
|
+
}
|
8662
|
+
const y = G0(i, t, c, s);
|
8663
|
+
if (y) {
|
8664
|
+
const S = u.map((w) => ({ ...y, position: w }));
|
8665
|
+
n.addLabels(S, i, d);
|
8634
8666
|
}
|
8635
8667
|
}
|
8636
8668
|
}
|
8637
|
-
const si = Symbol("FeatureArcStruct"),
|
8669
|
+
const si = Symbol("FeatureArcStruct"), Zl = Symbol("ArcStyleId");
|
8638
8670
|
function H0(i, t, e) {
|
8639
8671
|
const s = X.determinant(new X(i[0], i[1], 1, t[0], t[1], 1, e[0], e[1], 1));
|
8640
8672
|
if (s === 0)
|
@@ -8700,16 +8732,16 @@ function B0(i, t, e, s, r, n) {
|
|
8700
8732
|
];
|
8701
8733
|
return m;
|
8702
8734
|
}
|
8703
|
-
function
|
8735
|
+
function _o(i, t, e, s) {
|
8704
8736
|
t[si] && t[si].destroy();
|
8705
8737
|
const r = t.getGeometry(), n = [], a = () => {
|
8706
8738
|
re(n);
|
8707
8739
|
};
|
8708
8740
|
if (n.push(t.on("change:geometry", () => {
|
8709
|
-
|
8741
|
+
_o(i, t, e, s);
|
8710
8742
|
})), r instanceof qt) {
|
8711
8743
|
n.push(r.on("change", () => {
|
8712
|
-
|
8744
|
+
_o(i, t, e, s);
|
8713
8745
|
}));
|
8714
8746
|
const o = r.getFirstCoordinate(), l = r.getLastCoordinate(), c = _t(o, l), d = c * i;
|
8715
8747
|
let u = s;
|
@@ -8734,7 +8766,7 @@ function yo(i, t, e, s) {
|
|
8734
8766
|
destroy: a
|
8735
8767
|
};
|
8736
8768
|
}
|
8737
|
-
class
|
8769
|
+
class Uo extends pa {
|
8738
8770
|
/**
|
8739
8771
|
* @param [options=]
|
8740
8772
|
*/
|
@@ -8781,14 +8813,14 @@ class Bo extends ma {
|
|
8781
8813
|
}
|
8782
8814
|
_getFeatureArcGeometry(e) {
|
8783
8815
|
var s;
|
8784
|
-
return (!e[si] || e[
|
8816
|
+
return (!e[si] || e[Zl] !== this._revisionId) && (_o(this._arcFactor, e, this._numberOfSegments, this._offset), e[Zl] = this._revisionId), (s = e[si]) == null ? void 0 : s.geometry;
|
8785
8817
|
}
|
8786
8818
|
_getCloneOptions() {
|
8787
8819
|
const e = super._getCloneOptions();
|
8788
8820
|
return e.arcFactor = this._arcFactor, e.numberOfSegments = this._numberOfSegments, e;
|
8789
8821
|
}
|
8790
8822
|
clone() {
|
8791
|
-
return new
|
8823
|
+
return new Uo(this._getCloneOptions());
|
8792
8824
|
}
|
8793
8825
|
}
|
8794
8826
|
function U0(i, t, e, s, r) {
|
@@ -8808,18 +8840,18 @@ function W0(i, t) {
|
|
8808
8840
|
createOutlineGeometries: lu,
|
8809
8841
|
createFillGeometries: hu,
|
8810
8842
|
createGroundLineGeometries: cu,
|
8811
|
-
createLineGeometries:
|
8843
|
+
createLineGeometries: $o
|
8812
8844
|
};
|
8813
8845
|
}
|
8814
8846
|
async function X0(i, t, e, s, r, n) {
|
8815
8847
|
if (!t.getFill() && !t.getStroke())
|
8816
8848
|
return;
|
8817
|
-
const a = s.getAltitudeMode(i), o = W0(i[si].coordinates, a), l = e.filter((c) =>
|
8818
|
-
|
8849
|
+
const a = s.getAltitudeMode(i), o = W0(i[si].coordinates, a), l = e.filter((c) => Bo(c));
|
8850
|
+
ma(i, t, l, s, r, o, n), await au(i, t, l, s, r, o, n);
|
8819
8851
|
}
|
8820
8852
|
async function gu(i, t, e, s, r, n) {
|
8821
8853
|
var a;
|
8822
|
-
t instanceof Dt ? await
|
8854
|
+
t instanceof Dt ? await Yl(i, e, [t], s, r, n) : t instanceof At ? Ul(i, e, [t], s, r, n) : t instanceof qt ? e instanceof Uo && ((a = i[si]) != null && a.coordinates) ? await X0(i, e, [t], s, r, n) : await Xl(i, e, [t], s, r, n) : t instanceof Ot ? L0(i, e, [t], s, r, n) : t instanceof kh ? await Yl(i, e, t.getPoints(), s, r, n) : t instanceof ur ? Ul(i, e, t.getPolygons(), s, r, n) : t instanceof zh ? await Xl(i, e, t.getLineStrings(), s, r, n) : t instanceof zr && await Promise.all(t.getGeometries().map(async (o) => {
|
8823
8855
|
await gu(i, o, e, s, r, n);
|
8824
8856
|
}));
|
8825
8857
|
}
|
@@ -8851,18 +8883,18 @@ function ps(i, t, e, s, r, n) {
|
|
8851
8883
|
if (i.length) {
|
8852
8884
|
const a = i.map((o) => {
|
8853
8885
|
const l = s.add(o);
|
8854
|
-
return e && Z0(t, l), n && l instanceof
|
8886
|
+
return e && Z0(t, l), n && l instanceof Oo && (l.splitDirection = n), l;
|
8855
8887
|
});
|
8856
8888
|
r.has(t) ? r.get(t).push(...a) : r.set(t, a);
|
8857
8889
|
}
|
8858
8890
|
}
|
8859
|
-
function
|
8891
|
+
function Kl(i, t) {
|
8860
8892
|
for (let e = 0; e < t.length; e++) {
|
8861
8893
|
const s = t.get(e);
|
8862
|
-
s instanceof
|
8894
|
+
s instanceof Oo && (s.splitDirection = i);
|
8863
8895
|
}
|
8864
8896
|
}
|
8865
|
-
const
|
8897
|
+
const Jl = Symbol("Scale"), K0 = new _();
|
8866
8898
|
function J0(i, t, e) {
|
8867
8899
|
let s = new mt({});
|
8868
8900
|
return i.getScene().postRender.addEventListener(() => {
|
@@ -8875,7 +8907,7 @@ function J0(i, t, e) {
|
|
8875
8907
|
const o = t.get(a);
|
8876
8908
|
if (!o.isDestroyed()) {
|
8877
8909
|
const { modelMatrix: l } = o, c = R.getTranslation(l, K0), d = i.getCurrentResolutionFromCartesian(c);
|
8878
|
-
o[
|
8910
|
+
o[Jl] !== d && (o.modelMatrix = R.setScale(l, new _(d, d, d), new R()), o[Jl] = d);
|
8879
8911
|
}
|
8880
8912
|
}
|
8881
8913
|
e.value = !1, s = n;
|
@@ -8980,7 +9012,7 @@ class ev {
|
|
8980
9012
|
* @param splitDirection
|
8981
9013
|
*/
|
8982
9014
|
updateSplitDirection(t) {
|
8983
|
-
this.splitDirection = t,
|
9015
|
+
this.splitDirection = t, Kl(t, this.primitives), Kl(t, this.scaledPrimitives);
|
8984
9016
|
}
|
8985
9017
|
/**
|
8986
9018
|
* Clears all collections and maps
|
@@ -9076,7 +9108,7 @@ class tv extends ts {
|
|
9076
9108
|
this._featureToAdd.delete(e), this._addFeature(e), this._context.clearFeatureCache(s);
|
9077
9109
|
}
|
9078
9110
|
async activate() {
|
9079
|
-
this.active || (await super.activate(), this.active && (this._addFeatures([...this._featureToAdd]), this._featureToAdd.clear(), this._rootCollection.show = !0, this._featureVisibilityListeners.length === 0 && (this._featureVisibilityListeners =
|
9111
|
+
this.active || (await super.activate(), this.active && (this._addFeatures([...this._featureToAdd]), this._featureToAdd.clear(), this._rootCollection.show = !0, this._featureVisibilityListeners.length === 0 && (this._featureVisibilityListeners = jo(this.featureVisibility, this.source, this.globalHider))));
|
9080
9112
|
}
|
9081
9113
|
deactivate() {
|
9082
9114
|
super.deactivate(), this._rootCollection.show = !1, this._featureVisibilityListeners.forEach((e) => {
|
@@ -9128,16 +9160,16 @@ function fi(i, t) {
|
|
9128
9160
|
const rs = {};
|
9129
9161
|
async function Or(i, t, e) {
|
9130
9162
|
if (!rs[i])
|
9131
|
-
return rs[i] = await
|
9163
|
+
return rs[i] = await ol.fromUrl(fi(i, e), t), rs[i];
|
9132
9164
|
let s = rs[i];
|
9133
|
-
return (t.requestVertexNormals !== void 0 && s.requestVertexNormals !== t.requestVertexNormals || t.requestWaterMask !== void 0 && s.requestWaterMask !== t.requestWaterMask) && (rs[i] = await
|
9165
|
+
return (t.requestVertexNormals !== void 0 && s.requestVertexNormals !== t.requestVertexNormals || t.requestWaterMask !== void 0 && s.requestWaterMask !== t.requestWaterMask) && (rs[i] = await ol.fromUrl(fi(i, e), t), s = rs[i]), s;
|
9134
9166
|
}
|
9135
9167
|
function Ds(i, t, e, s) {
|
9136
9168
|
const r = e ? Re(e.proj, oe.proj) : null, n = t.map((o) => {
|
9137
9169
|
const l = r ? r(o, o.slice(), o.length) : o;
|
9138
9170
|
return se.fromDegrees(l[0], l[1]);
|
9139
9171
|
}), a = s || t.map((o) => o.slice());
|
9140
|
-
return
|
9172
|
+
return oa(i, n).then((o) => (o.forEach((l, c) => {
|
9141
9173
|
a[c][2] = l.height || 0;
|
9142
9174
|
}), a));
|
9143
9175
|
}
|
@@ -9145,14 +9177,14 @@ function iv(i, t, e) {
|
|
9145
9177
|
const s = i.tilingScheme.positionToTileXY(e, t, new j());
|
9146
9178
|
return !!i.getTileDataAvailable(s.x, s.y, t);
|
9147
9179
|
}
|
9148
|
-
let
|
9149
|
-
function
|
9180
|
+
let Ra = new j(), Ga = new j();
|
9181
|
+
function Ql(i, t = !1) {
|
9150
9182
|
const e = i.slice(), s = cr(e);
|
9151
9183
|
let n = [
|
9152
|
-
|
9184
|
+
xo(s),
|
9153
9185
|
jh(s),
|
9154
9186
|
Vh(s),
|
9155
|
-
|
9187
|
+
aa(s)
|
9156
9188
|
].map((a) => {
|
9157
9189
|
let o = 0, l = 1 / 0;
|
9158
9190
|
return e.forEach((c, d) => {
|
@@ -9163,9 +9195,9 @@ function Jl(i, t = !1) {
|
|
9163
9195
|
return t === ve.EAST ? n = [n[3], n[0], n[1], n[2]] : t === ve.SOUTH ? n = [n[2], n[3], n[0], n[1]] : t === ve.WEST && (n = [n[1], n[2], n[3], n[0]]), n;
|
9164
9196
|
}
|
9165
9197
|
function Vs(i, t) {
|
9166
|
-
return
|
9198
|
+
return Ra = j.fromElements(i[0], i[1], Ra), Ga = j.fromElements(t[0], t[1], Ga), j.angleBetween(Ra, Ga);
|
9167
9199
|
}
|
9168
|
-
function
|
9200
|
+
function eh(i, t) {
|
9169
9201
|
const [[e, s], [r, n]] = i, [[a, o], [l, c]] = t;
|
9170
9202
|
let d, u;
|
9171
9203
|
const f = {
|
@@ -9181,14 +9213,14 @@ function Ql(i, t) {
|
|
9181
9213
|
return d = m / g, u = p / g, f.x = e + d * (r - e), f.y = s + d * (n - s), d > 0 && d < 1 && (f.onLine1 = !0), u > 0 && u < 1 && (f.onLine2 = !0), f;
|
9182
9214
|
}
|
9183
9215
|
function sv(i, t, e, s, r) {
|
9184
|
-
const n =
|
9216
|
+
const n = Ql(i, e ? !1 : r), a = Ql(t, e ? r : !1), o = [];
|
9185
9217
|
for (let d = 0; d < n.length; ++d) {
|
9186
9218
|
const u = [];
|
9187
9219
|
for (let m = 0; m < n.length; ++m) {
|
9188
9220
|
const p = m === n.length - 1 ? 0 : m + 1;
|
9189
9221
|
if (d === m || d === p || m === 3 && p === 0 || m === 1 && p === 2)
|
9190
9222
|
continue;
|
9191
|
-
const y =
|
9223
|
+
const y = eh([n[d], s], [n[m], n[p]]);
|
9192
9224
|
if (y.x == null || y.y == null)
|
9193
9225
|
continue;
|
9194
9226
|
const S = [
|
@@ -9265,7 +9297,7 @@ function sv(i, t, e, s, r) {
|
|
9265
9297
|
C[0] - a[u[1].cornerPoint][0],
|
9266
9298
|
C[1] - a[u[1].cornerPoint][1]
|
9267
9299
|
];
|
9268
|
-
return !(Vs(M, x) == null || (c =
|
9300
|
+
return !(Vs(M, x) == null || (c = eh([a[u[0].cornerPoint], p], [a[u[1].cornerPoint], C]), c.x == null || c.y == null));
|
9269
9301
|
}), c;
|
9270
9302
|
}
|
9271
9303
|
function Ww(i, t, e = {}) {
|
@@ -9345,7 +9377,7 @@ async function av(i, t, e) {
|
|
9345
9377
|
let a = Re(B.proj, e.meta.projection.proj), o = [];
|
9346
9378
|
if (e.meta.terrainProvider) {
|
9347
9379
|
const l = n.map((c) => (k.mercatorToWgs84(c, !0), se.fromDegrees(c[0], c[1])));
|
9348
|
-
a = Re(oe.proj, e.meta.projection.proj), o = await
|
9380
|
+
a = Re(oe.proj, e.meta.projection.proj), o = await oa(e.meta.terrainProvider, l);
|
9349
9381
|
}
|
9350
9382
|
return n.forEach((l, c) => {
|
9351
9383
|
a(l, l, 3);
|
@@ -9359,14 +9391,14 @@ function ov(i, t, e) {
|
|
9359
9391
|
}));
|
9360
9392
|
return Promise.all(n).then(() => (delete t[je], t.setCoordinates(s), t));
|
9361
9393
|
}
|
9362
|
-
function
|
9394
|
+
function th(i, t = !1) {
|
9363
9395
|
const e = i.getGeometry();
|
9364
9396
|
if ((e.get("_vcsGeomType") === "bbox" || e.get("_vcsGeomType") === "rectangle") && t)
|
9365
9397
|
return e;
|
9366
9398
|
const r = e instanceof Ot, n = Zc(e);
|
9367
9399
|
return n[lr] = r, n;
|
9368
9400
|
}
|
9369
|
-
function
|
9401
|
+
function ih(i, t) {
|
9370
9402
|
const e = i.getGeometry(), s = i.getGeometry().clone();
|
9371
9403
|
t.setGeometry(e[je] ? s : Zc(s)), e[je] && t.getGeometry().setProperties(i.getGeometry().getProperties(), !1), i[bt] = t.getGeometry();
|
9372
9404
|
}
|
@@ -9464,22 +9496,22 @@ class _u extends lv {
|
|
9464
9496
|
}
|
9465
9497
|
async activate() {
|
9466
9498
|
var e;
|
9467
|
-
this.active || (await super.activate(), this.active && (this.olLayer.setVisible(!0), this._featureVisibilityListeners.length === 0 && (this._featureVisibilityListeners =
|
9499
|
+
this.active || (await super.activate(), this.active && (this.olLayer.setVisible(!0), this._featureVisibilityListeners.length === 0 && (this._featureVisibilityListeners = jo(this.featureVisibility, this.source, this.globalHider)), this._addSourceListeners(), this._imageChangedListener = (e = this.map.imageChanged) == null ? void 0 : e.addEventListener(this._onObliqueImageChanged.bind(this)), this._fetchFeaturesInView()));
|
9468
9500
|
}
|
9469
9501
|
async addFeature(e) {
|
9470
9502
|
if (this.active || (this.fetchedFeaturesForImageName = null), this.active && this.currentExtent) {
|
9471
9503
|
const s = e.getId(), r = e.getGeometry();
|
9472
|
-
if (e[
|
9504
|
+
if (e[fa])
|
9473
9505
|
return r && !this.obliqueSource.getFeatureById(s) && this.obliqueSource.addFeature(e), Promise.resolve();
|
9474
9506
|
if (this.obliqueSource.getFeatureById(s) || this._updatingOblique[s])
|
9475
9507
|
return Promise.resolve();
|
9476
9508
|
const n = new ae({});
|
9477
|
-
n.setId(s), n[Bn] = e,
|
9509
|
+
n.setId(s), n[Bn] = e, ih(e, n), n.setStyle(e.getStyle()), this._setFeatureListeners(e, n), await this._convertToOblique(e, n), this.source.hasFeature(e) && this.obliqueSource.addFeature(n);
|
9478
9510
|
}
|
9479
9511
|
return Promise.resolve();
|
9480
9512
|
}
|
9481
9513
|
_originalGeometryChanged(e, s, r) {
|
9482
|
-
re(e.originalGeometryChanged), re(e.obliqueGeometryChanged),
|
9514
|
+
re(e.originalGeometryChanged), re(e.obliqueGeometryChanged), ih(s, r), this.updateObliqueGeometry(s, r), e.originalGeometryChanged = s.getGeometry().on("change", this.updateObliqueGeometry.bind(this, s, r)), e.obliqueGeometryChanged = r.getGeometry().on("change", this.updateMercatorGeometry.bind(this, s, r));
|
9483
9515
|
}
|
9484
9516
|
_setFeatureListeners(e, s) {
|
9485
9517
|
const r = s.getId(), n = {
|
@@ -9521,9 +9553,9 @@ class _u extends lv {
|
|
9521
9553
|
this._updatingMercator[r] != null && clearTimeout(this._updatingMercator[r]);
|
9522
9554
|
const n = this.fetchedFeaturesForImageName;
|
9523
9555
|
this._updatingMercator[r] = setTimeout(async () => {
|
9524
|
-
const a =
|
9556
|
+
const a = th(e, !1);
|
9525
9557
|
a[lr] && e.setGeometry(a);
|
9526
|
-
const o =
|
9558
|
+
const o = th(s, !0);
|
9527
9559
|
this._updatingMercator[r] = !0, await ov(o, a, this.map.collection.getImageByName(n)), this._updatingMercator[r] = null;
|
9528
9560
|
}, 200);
|
9529
9561
|
}
|
@@ -9575,9 +9607,9 @@ class _u extends lv {
|
|
9575
9607
|
}), this._clearCurrentImage(), super.destroy();
|
9576
9608
|
}
|
9577
9609
|
}
|
9578
|
-
const
|
9610
|
+
const qo = Symbol("isDefaultImage");
|
9579
9611
|
var Lw;
|
9580
|
-
class
|
9612
|
+
class Wo {
|
9581
9613
|
constructor(t) {
|
9582
9614
|
/**
|
9583
9615
|
* Name of the image
|
@@ -9650,7 +9682,7 @@ class qo {
|
|
9650
9682
|
transformRealWorld2Image(t, e) {
|
9651
9683
|
if (!this.meta.principalPoint)
|
9652
9684
|
return this._transformNoCamera(t, !1, e);
|
9653
|
-
const s = e || this.averageHeight, r = new
|
9685
|
+
const s = e || this.averageHeight, r = new ll(t[0], t[1], s, 1), n = R.multiplyByVector(this.pToImage, r, new ll()), a = [n.x / n.z, n.y / n.z], o = [
|
9654
9686
|
a[0],
|
9655
9687
|
this.meta.size[1] - a[1]
|
9656
9688
|
];
|
@@ -9688,7 +9720,7 @@ class qo {
|
|
9688
9720
|
return Promise.resolve();
|
9689
9721
|
}
|
9690
9722
|
}
|
9691
|
-
Lw =
|
9723
|
+
Lw = qo;
|
9692
9724
|
class xn {
|
9693
9725
|
constructor(t) {
|
9694
9726
|
/**
|
@@ -9748,9 +9780,9 @@ class xn {
|
|
9748
9780
|
return t.slice();
|
9749
9781
|
}
|
9750
9782
|
}
|
9751
|
-
let
|
9783
|
+
let sh = 0;
|
9752
9784
|
function hv() {
|
9753
|
-
return
|
9785
|
+
return sh += 1, sh;
|
9754
9786
|
}
|
9755
9787
|
function vu(i) {
|
9756
9788
|
var e, s, r;
|
@@ -9802,7 +9834,7 @@ function cv(i, t, e, s, r) {
|
|
9802
9834
|
...d
|
9803
9835
|
})), c;
|
9804
9836
|
}
|
9805
|
-
function
|
9837
|
+
function rh(i, t) {
|
9806
9838
|
const e = i.images[0], s = {
|
9807
9839
|
name: e.indexOf("name"),
|
9808
9840
|
width: e.indexOf("width"),
|
@@ -9832,7 +9864,7 @@ function sh(i, t) {
|
|
9832
9864
|
(!f.size || f.size[0] === 0 && f.size[1] === 0) && (n[s.height] && n[s.width] ? f.size = [
|
9833
9865
|
n[s.width],
|
9834
9866
|
n[s.height]
|
9835
|
-
] : console.error("missing image meta size")), f.tileResolution || (n[s.tileResolution] ? f.tileResolution = n[s.tileResolution] : console.error("missing image meta tileResolution")), r[a - 1] = new
|
9867
|
+
] : console.error("missing image meta size")), f.tileResolution || (n[s.tileResolution] ? f.tileResolution = n[s.tileResolution] : console.error("missing image meta tileResolution")), r[a - 1] = new Wo({
|
9836
9868
|
name: n[s.name],
|
9837
9869
|
viewDirection: n[s.viewDirection],
|
9838
9870
|
viewDirectionAngle: n[s.viewDirectionAngle],
|
@@ -9864,7 +9896,7 @@ function uv(i, t) {
|
|
9864
9896
|
const O = X.multiply(M, w, new X()), L = R.fromRotationTranslation(S, _.ZERO, new R()), F = _.fromArray(l), q = R.fromTranslation(_.multiplyByScalar(F, -1, new _()), new R()), te = R.fromRotationTranslation(C, _.ZERO, new R()), $ = R.multiply(L, R.multiply(te, q, new R()), new R());
|
9865
9897
|
p.projectionCenter = F, p.pToRealworld = O, p.pToImage = $;
|
9866
9898
|
}
|
9867
|
-
return new
|
9899
|
+
return new Wo(p);
|
9868
9900
|
});
|
9869
9901
|
}
|
9870
9902
|
async function Kr(i, t) {
|
@@ -9879,7 +9911,7 @@ async function qi(i, t) {
|
|
9879
9911
|
async function dv(i, t) {
|
9880
9912
|
return (await Kr(i, t)).arrayBuffer();
|
9881
9913
|
}
|
9882
|
-
async function
|
9914
|
+
async function Xo(i, t) {
|
9883
9915
|
const s = await (await Kr(i, t)).blob();
|
9884
9916
|
return URL.createObjectURL(s);
|
9885
9917
|
}
|
@@ -9894,7 +9926,7 @@ var ge;
|
|
9894
9926
|
function bn(i) {
|
9895
9927
|
return i.some((t) => t === ge.PENDING) ? ge.PENDING : i.some((t) => t === ge.LOADING) ? ge.LOADING : ge.READY;
|
9896
9928
|
}
|
9897
|
-
class
|
9929
|
+
class nh {
|
9898
9930
|
constructor(t, e, s, r) {
|
9899
9931
|
h(this, "url");
|
9900
9932
|
h(this, "baseUrl");
|
@@ -9981,7 +10013,7 @@ class rh {
|
|
9981
10013
|
});
|
9982
10014
|
else {
|
9983
10015
|
let r = [];
|
9984
|
-
e >= 3.5 || e === 3.4 && s > 36 ? r =
|
10016
|
+
e >= 3.5 || e === 3.4 && s > 36 ? r = rh(t, this._imageMetas) : (e >= 3.1 || e === void 0) && (r = uv(t, this._imageMetas)), r.length > 0 && (this._images = r, this.imagesLoaded.raiseEvent({ images: r }));
|
9985
10017
|
}
|
9986
10018
|
}
|
9987
10019
|
_getClosestTileCoordinate(t) {
|
@@ -10032,7 +10064,7 @@ class rh {
|
|
10032
10064
|
return Promise.resolve();
|
10033
10065
|
this._tiles.set(t, ge.LOADING);
|
10034
10066
|
const e = Gt(this.url, this._headers), s = qi(`${this.baseUrl}/${t}.json`, e).then((r) => {
|
10035
|
-
const n =
|
10067
|
+
const n = rh(r, this._imageMetas);
|
10036
10068
|
n.length > 0 && (this._images = this._images.concat(n), this.imagesLoaded.raiseEvent({
|
10037
10069
|
images: n,
|
10038
10070
|
tileCoordinate: t
|
@@ -10067,10 +10099,10 @@ class rh {
|
|
10067
10099
|
return this.projection && (t.projection = this.projection.toJSON()), this._terrainProviderOptions && (t.terrainProvider = { ...this._terrainProviderOptions }), this._headers && (t.headers = this._headers), t;
|
10068
10100
|
}
|
10069
10101
|
}
|
10070
|
-
function
|
10102
|
+
function ya(i) {
|
10071
10103
|
return function(e, s) {
|
10072
10104
|
const r = e.getImage(), n = Gt(s, i);
|
10073
|
-
|
10105
|
+
Xo(s, n).then((a) => {
|
10074
10106
|
r.src = a, r.onload = () => {
|
10075
10107
|
URL.revokeObjectURL(a);
|
10076
10108
|
};
|
@@ -10079,15 +10111,15 @@ function pa(i) {
|
|
10079
10111
|
});
|
10080
10112
|
};
|
10081
10113
|
}
|
10082
|
-
let
|
10114
|
+
let ka = "";
|
10083
10115
|
function fv() {
|
10084
|
-
if (!
|
10116
|
+
if (!ka) {
|
10085
10117
|
const i = document.createElement("canvas");
|
10086
10118
|
i.height = 512, i.width = 512;
|
10087
10119
|
const t = i.getContext("2d");
|
10088
|
-
t.fillStyle = "#409D76", t.fillRect(0, 0, 512, 512), t.font = "bold 46px Monospace, Courier New", t.fillStyle = "#424242", t.textAlign = "center", t.fillText("No Image", 256, 256),
|
10120
|
+
t.fillStyle = "#409D76", t.fillRect(0, 0, 512, 512), t.font = "bold 46px Monospace, Courier New", t.fillStyle = "#424242", t.textAlign = "center", t.fillText("No Image", 256, 256), ka = i.toDataURL("png");
|
10089
10121
|
}
|
10090
|
-
return
|
10122
|
+
return ka;
|
10091
10123
|
}
|
10092
10124
|
class gv {
|
10093
10125
|
constructor(t, e) {
|
@@ -10112,7 +10144,7 @@ class gv {
|
|
10112
10144
|
units: "pixels",
|
10113
10145
|
extent: r
|
10114
10146
|
}), a = this.maxZoom > 0 ? this.maxZoom : this.tileResolution.length + 4, o = Math.log(2) / Math.log(this.scaleFactor);
|
10115
|
-
this._view = new
|
10147
|
+
this._view = new Co({
|
10116
10148
|
projection: n,
|
10117
10149
|
center: [this.size[0] / 2, this.size[1] / 2],
|
10118
10150
|
constrainOnlyCenter: !0,
|
@@ -10131,7 +10163,7 @@ class gv {
|
|
10131
10163
|
tileSize: this.tileSize
|
10132
10164
|
})
|
10133
10165
|
};
|
10134
|
-
Zt.contains(this.url) ? l.crossOrigin = "use-credentials" : Kt(this.url) || (l.crossOrigin = "anonymous"), this._headers && (l.tileLoadFunction =
|
10166
|
+
Zt.contains(this.url) ? l.crossOrigin = "use-credentials" : Kt(this.url) || (l.crossOrigin = "anonymous"), this._headers && (l.tileLoadFunction = ya(this._headers)), this._tileImageSource = new sd(l), this._layer = new Es({
|
10135
10167
|
source: this.tileImageSource,
|
10136
10168
|
extent: r
|
10137
10169
|
});
|
@@ -10177,7 +10209,7 @@ class gv {
|
|
10177
10209
|
this._view = void 0, this._layer = void 0, this.tileImageSource.clear(), this._tileImageSource = void 0;
|
10178
10210
|
}
|
10179
10211
|
}
|
10180
|
-
function
|
10212
|
+
function ah(i, t) {
|
10181
10213
|
return i < 0 ? 0 : i > t ? t : i;
|
10182
10214
|
}
|
10183
10215
|
class mv {
|
@@ -10302,12 +10334,12 @@ class mv {
|
|
10302
10334
|
let r;
|
10303
10335
|
this._viewCache.has(t.meta) ? r = this._viewCache.get(t.meta) : (r = new gv(t.meta, this._collection.viewOptions), this._viewCache.set(t.meta, r));
|
10304
10336
|
const n = this._currentView;
|
10305
|
-
this._currentView = r, s && this._currentView.setImageName(this._currentImage.name, this._currentImage[
|
10337
|
+
this._currentView = r, s && this._currentView.setImageName(this._currentImage.name, this._currentImage[qo]);
|
10306
10338
|
const [a, o] = this._currentImage.meta.size;
|
10307
10339
|
let l = [a / 2, o / 2];
|
10308
10340
|
if (e) {
|
10309
10341
|
const c = Re(B.proj, this._currentImage.meta.projection.proj)(e.slice(0, 2), void 0, void 0), d = this._currentImage.transformRealWorld2Image(c, e[2]);
|
10310
|
-
d[0] =
|
10342
|
+
d[0] = ah(d[0], a), d[1] = ah(d[1], o), l = d;
|
10311
10343
|
}
|
10312
10344
|
return this._currentView.view.setCenter(l), this._active && this._setCurrentView(n), this._loadingImage = null, s && this.imageChanged.raiseEvent(t), !0;
|
10313
10345
|
}
|
@@ -10315,7 +10347,7 @@ class mv {
|
|
10315
10347
|
this._currentView && (t && t === this._currentView || (t && this._olMap.removeLayer(t.layer), this._olMap.getView() && this._olMap.getView().getResolution() && this._currentView.view.setResolution(this._olMap.getView().getResolution()), this._olMap.setView(this._currentView.view), this._olMap.getLayers().insertAt(0, this._currentView.layer)));
|
10316
10348
|
}
|
10317
10349
|
_removeCurrentView() {
|
10318
|
-
this._currentView && (this._olMap.getView() === this._currentView.view && this._olMap.setView(new
|
10350
|
+
this._currentView && (this._olMap.getView() === this._currentView.view && this._olMap.setView(new Co()), this._olMap.removeLayer(this._currentView.layer));
|
10319
10351
|
}
|
10320
10352
|
/**
|
10321
10353
|
* Sets a new image based on a ground coordinate and a direction.
|
@@ -10391,7 +10423,7 @@ function $s(i, t, e) {
|
|
10391
10423
|
function yv(i, t) {
|
10392
10424
|
return i < t ? -1 : i > t ? 1 : 0;
|
10393
10425
|
}
|
10394
|
-
class
|
10426
|
+
class vo {
|
10395
10427
|
constructor(t = 9) {
|
10396
10428
|
this._maxEntries = Math.max(4, t), this._minEntries = Math.max(2, Math.ceil(this._maxEntries * 0.4)), this.clear();
|
10397
10429
|
}
|
@@ -10407,7 +10439,7 @@ class _o {
|
|
10407
10439
|
for (; e; ) {
|
10408
10440
|
for (let a = 0; a < e.children.length; a++) {
|
10409
10441
|
const o = e.children[a], l = e.leaf ? r(o) : o;
|
10410
|
-
dn(t, l) && (e.leaf ? s.push(o) :
|
10442
|
+
dn(t, l) && (e.leaf ? s.push(o) : Ha(t, l) ? this._all(o, s) : n.push(o));
|
10411
10443
|
}
|
10412
10444
|
e = n.pop();
|
10413
10445
|
}
|
@@ -10422,7 +10454,7 @@ class _o {
|
|
10422
10454
|
for (let r = 0; r < e.children.length; r++) {
|
10423
10455
|
const n = e.children[r], a = e.leaf ? this.toBBox(n) : n;
|
10424
10456
|
if (dn(t, a)) {
|
10425
|
-
if (e.leaf ||
|
10457
|
+
if (e.leaf || Ha(t, a))
|
10426
10458
|
return !0;
|
10427
10459
|
s.push(n);
|
10428
10460
|
}
|
@@ -10471,7 +10503,7 @@ class _o {
|
|
10471
10503
|
if (d !== -1)
|
10472
10504
|
return s.children.splice(d, 1), n.push(s), this._condense(n), this;
|
10473
10505
|
}
|
10474
|
-
!c && !s.leaf &&
|
10506
|
+
!c && !s.leaf && Ha(s, r) ? (n.push(s), a.push(o), o = 0, l = s, s = s.children[0]) : l ? (o++, s = l.children[o], c = !1) : s = null;
|
10475
10507
|
}
|
10476
10508
|
return this;
|
10477
10509
|
}
|
@@ -10503,10 +10535,10 @@ class _o {
|
|
10503
10535
|
return o = ls(t.slice(e, s + 1)), ns(o, this.toBBox), o;
|
10504
10536
|
r || (r = Math.ceil(Math.log(n) / Math.log(a)), a = Math.ceil(n / Math.pow(a, r - 1))), o = ls([]), o.leaf = !1, o.height = r;
|
10505
10537
|
const l = Math.ceil(n / a), c = l * Math.ceil(Math.sqrt(a));
|
10506
|
-
|
10538
|
+
oh(t, e, s, c, this.compareMinX);
|
10507
10539
|
for (let d = e; d <= s; d += c) {
|
10508
10540
|
const u = Math.min(d + c - 1, s);
|
10509
|
-
|
10541
|
+
oh(t, d, u, l, this.compareMinY);
|
10510
10542
|
for (let f = d; f <= u; f += l) {
|
10511
10543
|
const g = Math.min(f + l - 1, u);
|
10512
10544
|
o.children.push(this._build(t, f, g, r - 1));
|
@@ -10518,7 +10550,7 @@ class _o {
|
|
10518
10550
|
for (; r.push(e), !(e.leaf || r.length - 1 === s); ) {
|
10519
10551
|
let n = 1 / 0, a = 1 / 0, o;
|
10520
10552
|
for (let l = 0; l < e.children.length; l++) {
|
10521
|
-
const c = e.children[l], d =
|
10553
|
+
const c = e.children[l], d = za(c), u = wv(t, c) - d;
|
10522
10554
|
u < a ? (a = u, n = d < n ? d : n, o = c) : u === a && d < n && (n = d, o = c);
|
10523
10555
|
}
|
10524
10556
|
e = o || e.children[0];
|
@@ -10544,7 +10576,7 @@ class _o {
|
|
10544
10576
|
_chooseSplitIndex(t, e, s) {
|
10545
10577
|
let r, n = 1 / 0, a = 1 / 0;
|
10546
10578
|
for (let o = e; o <= s - e; o++) {
|
10547
|
-
const l = Js(t, 0, o, this.toBBox), c = Js(t, o, s, this.toBBox), d = Mv(l, c), u =
|
10579
|
+
const l = Js(t, 0, o, this.toBBox), c = Js(t, o, s, this.toBBox), d = Mv(l, c), u = za(l) + za(c);
|
10548
10580
|
d < n ? (n = d, r = o, a = u < a ? u : a) : d === n && u < a && (a = u, r = o);
|
10549
10581
|
}
|
10550
10582
|
return r || s - e;
|
@@ -10606,7 +10638,7 @@ function vv(i, t) {
|
|
10606
10638
|
function Sv(i, t) {
|
10607
10639
|
return i.minY - t.minY;
|
10608
10640
|
}
|
10609
|
-
function
|
10641
|
+
function za(i) {
|
10610
10642
|
return (i.maxX - i.minX) * (i.maxY - i.minY);
|
10611
10643
|
}
|
10612
10644
|
function un(i) {
|
@@ -10619,7 +10651,7 @@ function Mv(i, t) {
|
|
10619
10651
|
const e = Math.max(i.minX, t.minX), s = Math.max(i.minY, t.minY), r = Math.min(i.maxX, t.maxX), n = Math.min(i.maxY, t.maxY);
|
10620
10652
|
return Math.max(0, r - e) * Math.max(0, n - s);
|
10621
10653
|
}
|
10622
|
-
function
|
10654
|
+
function Ha(i, t) {
|
10623
10655
|
return i.minX <= t.minX && i.minY <= t.minY && t.maxX <= i.maxX && t.maxY <= i.maxY;
|
10624
10656
|
}
|
10625
10657
|
function dn(i, t) {
|
@@ -10636,7 +10668,7 @@ function ls(i) {
|
|
10636
10668
|
maxY: -1 / 0
|
10637
10669
|
};
|
10638
10670
|
}
|
10639
|
-
function
|
10671
|
+
function oh(i, t, e, s, r) {
|
10640
10672
|
const n = [t, e];
|
10641
10673
|
for (; n.length; ) {
|
10642
10674
|
if (e = n.pop(), t = n.pop(), e - t <= s)
|
@@ -10689,7 +10721,7 @@ var wu = { exports: {} };
|
|
10689
10721
|
})(wu);
|
10690
10722
|
var Cv = wu.exports;
|
10691
10723
|
const xv = /* @__PURE__ */ Dc(Cv);
|
10692
|
-
function
|
10724
|
+
function lh(i, t, e, s, r, n) {
|
10693
10725
|
let a = i.data;
|
10694
10726
|
const o = [], l = i.toBBox, c = new xv(void 0, bv);
|
10695
10727
|
for (; a; ) {
|
@@ -10714,13 +10746,13 @@ function bv(i, t) {
|
|
10714
10746
|
return i.dist - t.dist;
|
10715
10747
|
}
|
10716
10748
|
function Ov(i, t, e) {
|
10717
|
-
const s =
|
10749
|
+
const s = hh(i, e.minX, e.maxX), r = hh(t, e.minY, e.maxY);
|
10718
10750
|
return s * s + r * r;
|
10719
10751
|
}
|
10720
|
-
function
|
10752
|
+
function hh(i, t, e) {
|
10721
10753
|
return i < t ? t - i : i <= e ? 0 : i - e;
|
10722
10754
|
}
|
10723
|
-
function
|
10755
|
+
function ch(i) {
|
10724
10756
|
return i.map((t) => {
|
10725
10757
|
const e = Re(t.meta.projection.proj, B.proj), s = new ae({
|
10726
10758
|
// error in TransformFunction type definition, remove undefined after openlayer fixed the type
|
@@ -10732,7 +10764,7 @@ function hh(i) {
|
|
10732
10764
|
return s.setId(t.name), s;
|
10733
10765
|
});
|
10734
10766
|
}
|
10735
|
-
function
|
10767
|
+
function uh(i) {
|
10736
10768
|
const t = $h();
|
10737
10769
|
return Object.entries(i).map(([e, s]) => {
|
10738
10770
|
const r = e.split("/").map((o) => Number.parseInt(o, 10)), n = t.getTileCoordExtent(r), a = new ae({
|
@@ -10831,16 +10863,16 @@ class Wi extends kt {
|
|
10831
10863
|
return [...this._images.values()];
|
10832
10864
|
}
|
10833
10865
|
_createTileFeatureSource() {
|
10834
|
-
const e =
|
10866
|
+
const e = uh(this.getTiles()), s = new dr();
|
10835
10867
|
return s.addFeatures(e), s;
|
10836
10868
|
}
|
10837
10869
|
_createImageFeatureSource() {
|
10838
|
-
const e =
|
10870
|
+
const e = ch([...this._images.values()]), s = new dr();
|
10839
10871
|
return s.addFeatures(e), s;
|
10840
10872
|
}
|
10841
10873
|
async _loadDataSet(e) {
|
10842
10874
|
if (await e.load(), this._tileFeatureSource) {
|
10843
|
-
const s =
|
10875
|
+
const s = uh(e.getTiles());
|
10844
10876
|
this._tileFeatureSource.addFeatures(s);
|
10845
10877
|
}
|
10846
10878
|
}
|
@@ -10849,7 +10881,7 @@ class Wi extends kt {
|
|
10849
10881
|
*/
|
10850
10882
|
_addDataSet(e) {
|
10851
10883
|
let s;
|
10852
|
-
e instanceof
|
10884
|
+
e instanceof nh ? s = e : s = new nh(e.url, e.projection, e.terrainProvider, e.headers), s.imagesLoaded.addEventListener(({ images: r, tileCoordinate: n }) => {
|
10853
10885
|
this._loadImages(r, n);
|
10854
10886
|
}), this._loadImages(s.images), this._dataSets.push(s);
|
10855
10887
|
}
|
@@ -10883,9 +10915,9 @@ class Wi extends kt {
|
|
10883
10915
|
name: n.name
|
10884
10916
|
});
|
10885
10917
|
}), r.forEach((n, a) => {
|
10886
|
-
this._directionTrees.get(a) || this._directionTrees.set(a, new
|
10918
|
+
this._directionTrees.get(a) || this._directionTrees.set(a, new vo()), this._directionTrees.get(a).load(n);
|
10887
10919
|
}), this._imageFeatureSource) {
|
10888
|
-
const n =
|
10920
|
+
const n = ch(e);
|
10889
10921
|
this._imageFeatureSource.addFeatures(n);
|
10890
10922
|
}
|
10891
10923
|
this.imagesLoaded.raiseEvent(e);
|
@@ -10946,7 +10978,7 @@ class Wi extends kt {
|
|
10946
10978
|
_getNextImageForCoordinate(e, s) {
|
10947
10979
|
const r = this._directionTrees.get(s);
|
10948
10980
|
if (r) {
|
10949
|
-
const n =
|
10981
|
+
const n = lh(r, e[0], e[1], 1);
|
10950
10982
|
if (n.length === 1 && n[0].name)
|
10951
10983
|
return this.getImageByName(n[0].name);
|
10952
10984
|
}
|
@@ -10988,7 +11020,7 @@ class Wi extends kt {
|
|
10988
11020
|
const n = Re(B.proj, r.meta.projection.proj), a = e.slice(0, 2);
|
10989
11021
|
n(a, a, void 0);
|
10990
11022
|
const o = cr(r.groundCoordinates);
|
10991
|
-
return
|
11023
|
+
return Xa(o, a);
|
10992
11024
|
}
|
10993
11025
|
return !1;
|
10994
11026
|
}
|
@@ -11005,7 +11037,7 @@ class Wi extends kt {
|
|
11005
11037
|
if (n) {
|
11006
11038
|
const a = Re(e.meta.projection.proj, B.proj), o = e.groundCoordinates.map((f) => a(f.slice(0, 2), void 0, void 0)), l = cr(o);
|
11007
11039
|
await this.loadDataForExtent(qh(l, 200));
|
11008
|
-
const c = fr(l), u =
|
11040
|
+
const c = fr(l), u = lh(n, c[0], c[1], 20).find((f) => {
|
11009
11041
|
if (f.name !== e.name) {
|
11010
11042
|
let g = Math.atan2(f.minY - c[1], f.minX - c[0]);
|
11011
11043
|
g <= 0 && (g += Math.PI * 2);
|
@@ -11053,7 +11085,7 @@ class Pv extends Wi {
|
|
11053
11085
|
[t[0] + 100, t[1] - 100, 0],
|
11054
11086
|
[t[0] + 100, t[1] + 100, 0],
|
11055
11087
|
[t[0] - 100, t[1] + 100, 0]
|
11056
|
-
], r = new
|
11088
|
+
], r = new Wo({
|
11057
11089
|
meta: Ev,
|
11058
11090
|
viewDirection: ve.NORTH,
|
11059
11091
|
viewDirectionAngle: 0,
|
@@ -11061,7 +11093,7 @@ class Pv extends Wi {
|
|
11061
11093
|
groundCoordinates: s,
|
11062
11094
|
centerPointOnGround: t
|
11063
11095
|
});
|
11064
|
-
return r[
|
11096
|
+
return r[qo] = !0, r;
|
11065
11097
|
}
|
11066
11098
|
}
|
11067
11099
|
const Iv = {
|
@@ -11070,13 +11102,13 @@ const Iv = {
|
|
11070
11102
|
[ve.SOUTH]: 180,
|
11071
11103
|
[ve.WEST]: 270,
|
11072
11104
|
[ve.NADIR]: 0
|
11073
|
-
},
|
11074
|
-
function
|
11105
|
+
}, dh = new Pv();
|
11106
|
+
function fh(i) {
|
11075
11107
|
const { heading: t } = i;
|
11076
11108
|
let e = ve.NORTH;
|
11077
11109
|
return t >= 45 && t < 135 ? e = ve.EAST : t >= 135 && t < 225 ? e = ve.SOUTH : t >= 225 && t < 315 && (e = ve.WEST), e;
|
11078
11110
|
}
|
11079
|
-
function
|
11111
|
+
function gh(i) {
|
11080
11112
|
const t = i.groundPosition ?? i.cameraPosition ?? [0, 0, 0];
|
11081
11113
|
return ki(t, oe.proj, B.proj);
|
11082
11114
|
}
|
@@ -11140,7 +11172,7 @@ class Ne extends br {
|
|
11140
11172
|
this.initializedPromise || (this.initializedPromise = super.initialize().then(async () => {
|
11141
11173
|
this._obliqueProvider = new mv(this.olMap), this.mapChangeEvent = this._mapChangeEvent, this.switchThreshold = this._switchThreshold, this.switchEnabled = this._switchEnabled;
|
11142
11174
|
let e = this._loadingCollection;
|
11143
|
-
e || (e =
|
11175
|
+
e || (e = dh), e && await this._setCollection(e);
|
11144
11176
|
}).then(() => {
|
11145
11177
|
this.initialized = !0;
|
11146
11178
|
})), await this.initializedPromise;
|
@@ -11165,7 +11197,7 @@ class Ne extends br {
|
|
11165
11197
|
}
|
11166
11198
|
async canShowViewpoint(e) {
|
11167
11199
|
if (await this.initialize(), this.collection) {
|
11168
|
-
const s =
|
11200
|
+
const s = fh(e), r = gh(e);
|
11169
11201
|
return this.collection.hasImageAtCoordinate(r, s);
|
11170
11202
|
}
|
11171
11203
|
return !1;
|
@@ -11179,7 +11211,7 @@ class Ne extends br {
|
|
11179
11211
|
if (e) {
|
11180
11212
|
const s = cr(e.groundCoordinates);
|
11181
11213
|
return new xe({
|
11182
|
-
coordinates:
|
11214
|
+
coordinates: rl(s, e.meta.projection.proj, B.proj),
|
11183
11215
|
projection: B.toJSON()
|
11184
11216
|
});
|
11185
11217
|
}
|
@@ -11209,7 +11241,7 @@ class Ne extends br {
|
|
11209
11241
|
async _setCollection(e, s) {
|
11210
11242
|
var n;
|
11211
11243
|
this._loadingCollection = e, this._activeCollectionDestroyedListener(), this._activeCollectionDestroyedListener = e.destroyed.addEventListener(() => {
|
11212
|
-
this._setCollection(
|
11244
|
+
this._setCollection(dh);
|
11213
11245
|
}), await e.load();
|
11214
11246
|
const r = s || await this.getViewpoint();
|
11215
11247
|
this._loadingCollection === e && ((n = this._obliqueProvider) == null || n.setCollection(e), this.collectionChanged.raiseEvent(e), r && await this.gotoViewpoint(r));
|
@@ -11259,7 +11291,7 @@ class Ne extends br {
|
|
11259
11291
|
async gotoViewpoint(e) {
|
11260
11292
|
if (this.movementApiCallsDisabled || !this.olMap || !this._obliqueProvider || !e.isValid())
|
11261
11293
|
return;
|
11262
|
-
const s =
|
11294
|
+
const s = fh(e), r = gh(e), { distance: n } = e;
|
11263
11295
|
if (await this._obliqueProvider.setView(r, s), this._obliqueProvider.currentImage) {
|
11264
11296
|
const a = nv(this.olMap, this._obliqueProvider.currentImage, n);
|
11265
11297
|
this.olMap.getView().setZoom(a);
|
@@ -11269,7 +11301,7 @@ class Ne extends br {
|
|
11269
11301
|
const s = this.currentImage;
|
11270
11302
|
if (!s || !this.active)
|
11271
11303
|
return !1;
|
11272
|
-
const n = this.olMap.getView().calculateExtent(this.olMap.getSize()), a = s.transformImage2RealWorld([n[0], n[1]]), o = s.transformImage2RealWorld([n[2], n[3]]), l = [a[0], a[1], o[0], o[1]], c =
|
11304
|
+
const n = this.olMap.getView().calculateExtent(this.olMap.getSize()), a = s.transformImage2RealWorld([n[0], n[1]]), o = s.transformImage2RealWorld([n[2], n[3]]), l = [a[0], a[1], o[0], o[1]], c = rl(l, s.meta.projection.proj, oe.proj);
|
11273
11305
|
return Rh(c, e[0], e[1]);
|
11274
11306
|
}
|
11275
11307
|
toJSON() {
|
@@ -11311,7 +11343,7 @@ class Pr {
|
|
11311
11343
|
h(this, "_terrainHeight", null);
|
11312
11344
|
h(this, "_updatingTerrainHeight", !1);
|
11313
11345
|
const e = Pr.getDefaultOptions();
|
11314
|
-
this.mode =
|
11346
|
+
this.mode = ua(t.mode, Ss, e.mode), this._terrainUrl = t.terrainUrl || e.terrainUrl, this.limit = G(t.limit, e.limit), this.level = t.level === null ? null : le(t.level, e.level), this.terrainRequestHeaders = t.terrainRequestHeaders;
|
11315
11347
|
}
|
11316
11348
|
static get className() {
|
11317
11349
|
return "CameraLimiter";
|
@@ -11340,7 +11372,7 @@ class Pr {
|
|
11340
11372
|
}
|
11341
11373
|
async _limitMostDetailed(t) {
|
11342
11374
|
const e = await Or(this.terrainUrl, {}, this.terrainRequestHeaders);
|
11343
|
-
return
|
11375
|
+
return oa(e, [t]);
|
11344
11376
|
}
|
11345
11377
|
async _updateTerrainHeight(t) {
|
11346
11378
|
if (!this._updatingTerrainHeight && !t.equalsEpsilon(this.lastCheckedPosition, N.EPSILON5)) {
|
@@ -11359,10 +11391,10 @@ class Pr {
|
|
11359
11391
|
if (this.mode === Ss.DISTANCE && this.terrainUrl) {
|
11360
11392
|
if (e = this._updateTerrainHeight(s), this._terrainHeight && s.height - this._terrainHeight < this.limit) {
|
11361
11393
|
const r = this._terrainHeight + this.limit;
|
11362
|
-
se.toCartesian(new se(s.longitude, s.latitude, r),
|
11394
|
+
se.toCartesian(new se(s.longitude, s.latitude, r), io.WGS84, t.position);
|
11363
11395
|
}
|
11364
11396
|
} else
|
11365
|
-
s.height < this.limit && se.toCartesian(new se(s.longitude, s.latitude, this.limit),
|
11397
|
+
s.height < this.limit && se.toCartesian(new se(s.longitude, s.latitude, this.limit), io.WGS84, t.position);
|
11366
11398
|
return e;
|
11367
11399
|
}
|
11368
11400
|
toJSON() {
|
@@ -11417,7 +11449,7 @@ function Tv(i, t, e) {
|
|
11417
11449
|
function Nv(i, t, e) {
|
11418
11450
|
Mu(i, t, e);
|
11419
11451
|
}
|
11420
|
-
function
|
11452
|
+
function mh(i, t) {
|
11421
11453
|
return t.clockRange = i.clockRange, t.clockStep = i.clockStep, t.multiplier = i.multiplier, (!t.startTime || !t.startTime.equals(i.startTime) || !t.stopTime || !t.stopTime.equals(i.stopTime)) && (t.startTime = i.startTime, t.stopTime = i.stopTime, t.currentTime = i.currentTime), i.definitionChanged.addEventListener((e, s, r) => {
|
11422
11454
|
t[s] = r;
|
11423
11455
|
});
|
@@ -11542,15 +11574,15 @@ class z extends Li {
|
|
11542
11574
|
throw new Error("Cannot setup interactions on uninitailized map");
|
11543
11575
|
const e = [
|
11544
11576
|
{
|
11545
|
-
csModifier:
|
11577
|
+
csModifier: xa.ALT,
|
11546
11578
|
vcsModifier: H.ALT
|
11547
11579
|
},
|
11548
11580
|
{
|
11549
|
-
csModifier:
|
11581
|
+
csModifier: xa.CTRL,
|
11550
11582
|
vcsModifier: H.CTRL
|
11551
11583
|
},
|
11552
11584
|
{
|
11553
|
-
csModifier:
|
11585
|
+
csModifier: xa.SHIFT,
|
11554
11586
|
vcsModifier: H.SHIFT
|
11555
11587
|
},
|
11556
11588
|
{ csModifier: void 0, vcsModifier: H.NONE }
|
@@ -11621,9 +11653,9 @@ class z extends Li {
|
|
11621
11653
|
antialias: this.webGLaa
|
11622
11654
|
}
|
11623
11655
|
}
|
11624
|
-
}), this._cesiumWidget.scene.globe.tileCacheSize = this.tileCacheSize, this._cesiumWidget.scene.globe.baseColor = this.globeColor, this.dataSourceDisplay = new
|
11656
|
+
}), this._cesiumWidget.scene.globe.tileCacheSize = this.tileCacheSize, this._cesiumWidget.scene.globe.baseColor = this.globeColor, this.dataSourceDisplay = new hl({
|
11625
11657
|
scene: this._cesiumWidget.scene,
|
11626
|
-
dataSourceCollection: new
|
11658
|
+
dataSourceCollection: new cl()
|
11627
11659
|
}), this._cesiumWidget.scene.frameState.creditDisplay.update = () => {
|
11628
11660
|
}, this._cesiumWidget.scene.frameState.creditDisplay.beginFrame = () => {
|
11629
11661
|
}, this._cesiumWidget.scene.frameState.creditDisplay.endFrame = () => {
|
@@ -11678,7 +11710,7 @@ class z extends Li {
|
|
11678
11710
|
const a = new tc(e.position, e.direction), o = this._cesiumWidget.scene.globe.pick(a, this._cesiumWidget.scene);
|
11679
11711
|
if (o) {
|
11680
11712
|
n = _.distance(o, s);
|
11681
|
-
const d =
|
11713
|
+
const d = io.WGS84.cartesianToCartographic(o);
|
11682
11714
|
r = [
|
11683
11715
|
N.toDegrees(d.longitude),
|
11684
11716
|
N.toDegrees(d.latitude),
|
@@ -11770,7 +11802,7 @@ class z extends Li {
|
|
11770
11802
|
*/
|
11771
11803
|
setDataSourceDisplayClock(e) {
|
11772
11804
|
const s = this._dataSourceClocks[this._dataSourceClocks.length - 1];
|
11773
|
-
e !== s && (this._clockSyncListener && (this._clockSyncListener(), this._clockSyncListener = null), this._clockSyncListener =
|
11805
|
+
e !== s && (this._clockSyncListener && (this._clockSyncListener(), this._clockSyncListener = null), this._clockSyncListener = mh(e, this.dataSourceDisplayClock)), this._dataSourceClocks.push(e);
|
11774
11806
|
}
|
11775
11807
|
/**
|
11776
11808
|
* unset dataSource clock
|
@@ -11779,7 +11811,7 @@ class z extends Li {
|
|
11779
11811
|
const s = this._dataSourceClocks.lastIndexOf(e);
|
11780
11812
|
if (s > -1 && (this._dataSourceClocks.splice(s, 1), s === this._dataSourceClocks.length)) {
|
11781
11813
|
const r = this._dataSourceClocks[this._dataSourceClocks.length - 1] || this._defaultClock;
|
11782
|
-
this._clockSyncListener && (this._clockSyncListener(), this._clockSyncListener = null), this._clockSyncListener =
|
11814
|
+
this._clockSyncListener && (this._clockSyncListener(), this._clockSyncListener = null), this._clockSyncListener = mh(r, this.dataSourceDisplayClock);
|
11783
11815
|
}
|
11784
11816
|
}
|
11785
11817
|
/**
|
@@ -11848,7 +11880,7 @@ class z extends Li {
|
|
11848
11880
|
return this._clusterDataSourceDisplay.dataSources;
|
11849
11881
|
if (!this._cesiumWidget)
|
11850
11882
|
throw new Error("Cannot get Datasource collection from uninitialized map");
|
11851
|
-
const e = new
|
11883
|
+
const e = new cl(), s = (r, n, a) => {
|
11852
11884
|
const { entities: o } = a;
|
11853
11885
|
return [
|
11854
11886
|
new nf(n, o),
|
@@ -11856,7 +11888,7 @@ class z extends Li {
|
|
11856
11888
|
new of(n, o)
|
11857
11889
|
];
|
11858
11890
|
};
|
11859
|
-
return this._clusterDataSourceDisplay = new
|
11891
|
+
return this._clusterDataSourceDisplay = new hl({
|
11860
11892
|
scene: this._cesiumWidget.scene,
|
11861
11893
|
dataSourceCollection: e,
|
11862
11894
|
visualizersCallback: s
|
@@ -12099,7 +12131,7 @@ class rt extends di {
|
|
12099
12131
|
this.getFeatures().forEach((n) => {
|
12100
12132
|
if (n[lt]) {
|
12101
12133
|
let a;
|
12102
|
-
r ? (a = !0, n.setStyle(void 0)) : n.getStyle() !== n[lt].style && (a = !0, n.setStyle(n[lt].style)), a && Reflect.has(n, oi) &&
|
12134
|
+
r ? (a = !0, n.setStyle(void 0)) : n.getStyle() !== n[lt].style && (a = !0, n.setStyle(n[lt].style)), a && Reflect.has(n, oi) && Ho(n);
|
12103
12135
|
}
|
12104
12136
|
});
|
12105
12137
|
}
|
@@ -12309,9 +12341,9 @@ class ri {
|
|
12309
12341
|
}
|
12310
12342
|
}
|
12311
12343
|
const Dv = "EPSG:3857";
|
12312
|
-
let
|
12313
|
-
function
|
12314
|
-
return
|
12344
|
+
let ja;
|
12345
|
+
function Yo() {
|
12346
|
+
return ja || (ja = new Wh()), ja;
|
12315
12347
|
}
|
12316
12348
|
function Av(i) {
|
12317
12349
|
const { crs: t } = i;
|
@@ -12337,7 +12369,7 @@ function Fv(i) {
|
|
12337
12369
|
}
|
12338
12370
|
function Rv(i, t) {
|
12339
12371
|
var s;
|
12340
|
-
const e =
|
12372
|
+
const e = Yo().readGeometry(i, t.formatOptions);
|
12341
12373
|
return String((s = t.formatOptions) == null ? void 0 : s.featureProjection) === "EPSG:3857" && (e[ui] = !0), Kc(e), new ae({ geometry: e });
|
12342
12374
|
}
|
12343
12375
|
function Cu(i, t) {
|
@@ -12376,12 +12408,12 @@ function Gv(i, t) {
|
|
12376
12408
|
}
|
12377
12409
|
};
|
12378
12410
|
}
|
12379
|
-
function
|
12411
|
+
function ph(i, t) {
|
12380
12412
|
var a;
|
12381
12413
|
if (!i.geometry)
|
12382
12414
|
return null;
|
12383
12415
|
const e = i.geometry.olcs_radius;
|
12384
|
-
let s =
|
12416
|
+
let s = Yo().readGeometry(i.geometry, t.formatOptions);
|
12385
12417
|
if (i.radius && s instanceof Dt) {
|
12386
12418
|
const o = s.getCoordinates();
|
12387
12419
|
o.length === 2 && o.push(0), s = new Ot(o, i.radius, "XYZ");
|
@@ -12417,12 +12449,12 @@ function wi(i, t = {}) {
|
|
12417
12449
|
};
|
12418
12450
|
let a;
|
12419
12451
|
return e.vcsMeta.embeddedIcons && (n.embeddedIcons = e.vcsMeta.embeddedIcons), e.vcsMeta.style && t.dynamicStyle && (e.vcsMeta.style.type === qe.className ? a = new qe(e.vcsMeta.style) : (e.vcsMeta.style = Cu(e.vcsMeta.style, n), n.defaultStyle = (n.defaultStyle ?? Ui).clone().assign(new he(e.vcsMeta.style)), a = n.defaultStyle)), {
|
12420
|
-
features: e.features.map((o) =>
|
12452
|
+
features: e.features.map((o) => ph(o, n)).filter((o) => o),
|
12421
12453
|
style: e.vcsMeta.style ? a : void 0,
|
12422
12454
|
vcsMeta: e.vcsMeta ? e.vcsMeta : void 0
|
12423
12455
|
};
|
12424
12456
|
} else if (e.type === "Feature") {
|
12425
|
-
const a =
|
12457
|
+
const a = ph(e, n);
|
12426
12458
|
return {
|
12427
12459
|
features: a ? [a] : [],
|
12428
12460
|
vcsMeta: e.vcsMeta ? e.vcsMeta : void 0
|
@@ -12442,17 +12474,17 @@ function Ir(i, t = {}, e = []) {
|
|
12442
12474
|
} else if (s instanceof At) {
|
12443
12475
|
const l = s.getCoordinates();
|
12444
12476
|
l.forEach((c) => {
|
12445
|
-
|
12477
|
+
po(c);
|
12446
12478
|
}), s = new At(l, s.getLayout());
|
12447
12479
|
} else if (s instanceof ur) {
|
12448
12480
|
const l = s.getCoordinates();
|
12449
12481
|
l.forEach((c) => {
|
12450
12482
|
c.forEach((d) => {
|
12451
|
-
|
12483
|
+
po(d);
|
12452
12484
|
});
|
12453
12485
|
}), s = new ur(l, s.getLayout());
|
12454
12486
|
}
|
12455
|
-
const n =
|
12487
|
+
const n = Yo().writeGeometryObject(s, {
|
12456
12488
|
featureProjection: Dv,
|
12457
12489
|
rightHanded: !0
|
12458
12490
|
}), a = i.getProperties();
|
@@ -12477,10 +12509,10 @@ function Yw(i, t = {}) {
|
|
12477
12509
|
return t.asObject ? r : JSON.stringify(r, void 0, t.prettyPrint ? 2 : void 0);
|
12478
12510
|
}
|
12479
12511
|
const kv = Ue();
|
12480
|
-
function
|
12512
|
+
function Zo(i) {
|
12481
12513
|
i[Xe] = kv;
|
12482
12514
|
}
|
12483
|
-
class
|
12515
|
+
class yh {
|
12484
12516
|
/**
|
12485
12517
|
* @param config
|
12486
12518
|
*/
|
@@ -12522,7 +12554,7 @@ function zv(i, t) {
|
|
12522
12554
|
}
|
12523
12555
|
t.vectorProperties && i.vectorProperties.setValues(t.vectorProperties), t.zIndex != null && (i.zIndex = t.zIndex);
|
12524
12556
|
}
|
12525
|
-
function
|
12557
|
+
function Va(i, t, e, s) {
|
12526
12558
|
if (s == null ? t !== e : s !== t)
|
12527
12559
|
throw new Error(`Cannot merge options, values of ${i} do not match`);
|
12528
12560
|
}
|
@@ -12546,7 +12578,7 @@ class Mi extends kt {
|
|
12546
12578
|
h(this, "_moduleRemovedListener", () => {
|
12547
12579
|
});
|
12548
12580
|
const s = Mi.getDefaultConfig();
|
12549
|
-
this.title = e.title || this.name, this._featureProperty = e.featureProperty || s.featureProperty, this._classRegistryName = e.classRegistryName, this._layerOptions = e.layerOptions || s.layerOptions, this._layer = null, this._featureProperty && (this._layer = new rt(this._layerOptions),
|
12581
|
+
this.title = e.title || this.name, this._featureProperty = e.featureProperty || s.featureProperty, this._classRegistryName = e.classRegistryName, this._layerOptions = e.layerOptions || s.layerOptions, this._layer = null, this._featureProperty && (this._layer = new rt(this._layerOptions), Zo(this._layer)), this._keyProperty = e.keyProperty || s.keyProperty, this.setCollection(new Ii(this._keyProperty));
|
12550
12582
|
}
|
12551
12583
|
static get className() {
|
12552
12584
|
return "Category";
|
@@ -12619,7 +12651,7 @@ class Mi extends kt {
|
|
12619
12651
|
*/
|
12620
12652
|
mergeOptions(e) {
|
12621
12653
|
const s = Mi.getDefaultConfig();
|
12622
|
-
|
12654
|
+
Va("classRegistryName", this._classRegistryName, s.classRegistryName, e.classRegistryName), Va("featureProperty", this._featureProperty, s.featureProperty, e.featureProperty), Va("keyProperty", this._keyProperty, s.keyProperty, e.keyProperty), this.title = e.title || this.title, e.layerOptions && this._layer && zv(this._layer, e.layerOptions);
|
12623
12655
|
}
|
12624
12656
|
/**
|
12625
12657
|
* When setting the category, it MUST use the same uniqueKey as the previous collection (default is "name").
|
@@ -12633,7 +12665,7 @@ class Mi extends kt {
|
|
12633
12665
|
throw new Error("The collections key property does not match the categories key property");
|
12634
12666
|
this._collectionListeners.forEach((s) => {
|
12635
12667
|
s();
|
12636
|
-
}), this._collection && ei(this._collection), this._layer && this._layer.removeAllFeatures(), this._collection = e[
|
12668
|
+
}), this._collection && ei(this._collection), this._layer && this._layer.removeAllFeatures(), this._collection = e[uo] ? e : ti(e, this._getDynamicModuleId.bind(this), this._serializeItem.bind(this), this._deserializeItem.bind(this)), [...this.collection].forEach((s) => {
|
12637
12669
|
this._itemAdded(s);
|
12638
12670
|
}), this._collectionListeners = [
|
12639
12671
|
this._collection.added.addEventListener(this._itemAdded.bind(this)),
|
@@ -12681,7 +12713,7 @@ class Mi extends kt {
|
|
12681
12713
|
}
|
12682
12714
|
}
|
12683
12715
|
Fc.registerClass(Mi.className, Mi);
|
12684
|
-
function
|
12716
|
+
function _h() {
|
12685
12717
|
return ue("CategoryCollection");
|
12686
12718
|
}
|
12687
12719
|
class Hv extends Ii {
|
@@ -12730,8 +12762,8 @@ class Hv extends Ii {
|
|
12730
12762
|
*/
|
12731
12763
|
requestCategory(e) {
|
12732
12764
|
if (!e.name)
|
12733
|
-
return
|
12734
|
-
e.type || (
|
12765
|
+
return _h().error("Cannot request a category without a name"), null;
|
12766
|
+
e.type || (_h().warning(`Implicitly typing category ${e.name} as ${Mi.className}`), e.type = Mi.className);
|
12735
12767
|
let s;
|
12736
12768
|
if (this.hasKey(e.name))
|
12737
12769
|
s = this.getByKey(e.name), s.mergeOptions(e);
|
@@ -12831,7 +12863,7 @@ class bs extends kt {
|
|
12831
12863
|
this.style = void 0, this.vectorProperties.destroy(), super.destroy();
|
12832
12864
|
}
|
12833
12865
|
}
|
12834
|
-
class
|
12866
|
+
class So extends bs {
|
12835
12867
|
/**
|
12836
12868
|
* @param layerName
|
12837
12869
|
* @param options
|
@@ -12852,14 +12884,14 @@ class vo extends bs {
|
|
12852
12884
|
this.tileProvider.destroy(), super.destroy();
|
12853
12885
|
}
|
12854
12886
|
}
|
12855
|
-
|
12887
|
+
Go.registerClass(So.className, So);
|
12856
12888
|
var We;
|
12857
12889
|
(function(i) {
|
12858
12890
|
i.GEOGRAPHIC = "geographic", i.MERCATOR = "mercator";
|
12859
12891
|
})(We = We || (We = {}));
|
12860
12892
|
function xu(i) {
|
12861
12893
|
const t = {};
|
12862
|
-
return i.numberOfLevelZeroTilesX && i.numberOfLevelZeroTilesX > 1 && (t.numberOfLevelZeroTilesX = i.numberOfLevelZeroTilesX), i.numberOfLevelZeroTilesY && i.numberOfLevelZeroTilesY > 1 && (t.numberOfLevelZeroTilesY = i.numberOfLevelZeroTilesY), i.tilingSchema === We.MERCATOR ? new
|
12894
|
+
return i.numberOfLevelZeroTilesX && i.numberOfLevelZeroTilesX > 1 && (t.numberOfLevelZeroTilesX = i.numberOfLevelZeroTilesX), i.numberOfLevelZeroTilesY && i.numberOfLevelZeroTilesY > 1 && (t.numberOfLevelZeroTilesY = i.numberOfLevelZeroTilesY), i.tilingSchema === We.MERCATOR ? new Eo(t) : new nc(t);
|
12863
12895
|
}
|
12864
12896
|
function Vv(i, t, e, s = 0) {
|
12865
12897
|
if (!i.isValid())
|
@@ -12867,10 +12899,10 @@ function Vv(i, t, e, s = 0) {
|
|
12867
12899
|
const r = i.getCoordinatesInProjection(oe);
|
12868
12900
|
r[1] < -85 && (r[1] = -85), r[3] > 85 && (r[3] = 85);
|
12869
12901
|
const a = [
|
12870
|
-
|
12902
|
+
xo(r),
|
12871
12903
|
jh(r),
|
12872
12904
|
Vh(r),
|
12873
|
-
|
12905
|
+
aa(r)
|
12874
12906
|
].map((l) => se.fromDegrees(l[0], l[1]));
|
12875
12907
|
let o = s;
|
12876
12908
|
for (; o < e; ) {
|
@@ -12904,7 +12936,7 @@ class vt extends Ke {
|
|
12904
12936
|
*/
|
12905
12937
|
h(this, "splitDirectionChanged", new E());
|
12906
12938
|
const s = vt.getDefaultOptions();
|
12907
|
-
this.extent = e.extent ? new xe(e.extent) : new xe(), this.tilingSchema =
|
12939
|
+
this.extent = e.extent ? new xe(e.extent) : new xe(), this.tilingSchema = ua(e.tilingSchema, We, s.tilingSchema), this.maxLevel = le(e.maxLevel, s.maxLevel), this._minLevel = le(e.minLevel, s.minLevel);
|
12908
12940
|
const r = xu(e);
|
12909
12941
|
this.minLevel = Vv(this.extent, r, this.maxLevel, this._minLevel), this._opacity = jn(e.opacity, s.opacity, 0, 1), e.splitDirection && (this._splitDirection = e.splitDirection === "left" ? Me.LEFT : Me.RIGHT);
|
12910
12942
|
}
|
@@ -12970,11 +13002,11 @@ function bu(i, t) {
|
|
12970
13002
|
return i === "geographic" ? t === "1.3.0" ? "CRS:84" : "EPSG:4326" : "EPSG:3857";
|
12971
13003
|
}
|
12972
13004
|
function Ou(i) {
|
12973
|
-
const t = i.tilingSchema === "geographic" ? oe : B, e = t.proj.getExtent(), s =
|
13005
|
+
const t = i.tilingSchema === "geographic" ? oe : B, e = t.proj.getExtent(), s = Ya(e), r = i.tilingSchema === We.GEOGRAPHIC ? s / (i.tileSize[0] * 2) : s / i.tileSize[0], n = i.maxLevel + 1, a = [];
|
12974
13006
|
for (let c = 0; c < n; ++c)
|
12975
13007
|
a.push(r / 2 ** c);
|
12976
13008
|
const o = {
|
12977
|
-
origin:
|
13009
|
+
origin: aa(e),
|
12978
13010
|
resolutions: a,
|
12979
13011
|
tileSize: i.tileSize,
|
12980
13012
|
minZoom: i.minLevel
|
@@ -12986,7 +13018,7 @@ function Ou(i) {
|
|
12986
13018
|
params: i.parameters,
|
12987
13019
|
projection: bu(i.tilingSchema, i.version)
|
12988
13020
|
};
|
12989
|
-
return Zt.contains(i.url) ? l.crossOrigin = "use-credentials" : Kt(i.url) || (l.crossOrigin = "anonymous"), i.headers && (l.tileLoadFunction =
|
13021
|
+
return Zt.contains(i.url) ? l.crossOrigin = "use-credentials" : Kt(i.url) || (l.crossOrigin = "anonymous"), i.headers && (l.tileLoadFunction = ya(i.headers)), new ad(l);
|
12990
13022
|
}
|
12991
13023
|
function $v(i) {
|
12992
13024
|
const t = {
|
@@ -12996,7 +13028,7 @@ function $v(i) {
|
|
12996
13028
|
};
|
12997
13029
|
return Zt.contains(i.url) ? t.crossOrigin = "use-credentials" : Kt(i.url) || (t.crossOrigin = "anonymous"), i.headers && (t.imageLoadFunction = function(s, r) {
|
12998
13030
|
const n = s.getImage(), a = Gt(r, i.headers);
|
12999
|
-
|
13031
|
+
Xo(r, a).then((o) => {
|
13000
13032
|
n.src = o, n.onload = () => {
|
13001
13033
|
URL.revokeObjectURL(o);
|
13002
13034
|
};
|
@@ -13006,9 +13038,9 @@ function $v(i) {
|
|
13006
13038
|
}), new od(t);
|
13007
13039
|
}
|
13008
13040
|
const Bv = {
|
13009
|
-
GML:
|
13010
|
-
GML2:
|
13011
|
-
GML3:
|
13041
|
+
GML: Ja,
|
13042
|
+
GML2: Za,
|
13043
|
+
GML3: Ja
|
13012
13044
|
}, Uv = [
|
13013
13045
|
"application/geojson",
|
13014
13046
|
"application/json",
|
@@ -13017,10 +13049,10 @@ const Bv = {
|
|
13017
13049
|
];
|
13018
13050
|
function qv(i, t = {}) {
|
13019
13051
|
if (i === "text/xml") {
|
13020
|
-
const e = t.gmlFormat ? new Bv[t.gmlFormat]() : new
|
13021
|
-
return new
|
13052
|
+
const e = t.gmlFormat ? new Bv[t.gmlFormat]() : new Za();
|
13053
|
+
return new Ka({ ...t, gmlFormat: e });
|
13022
13054
|
}
|
13023
|
-
return Uv.includes(i) ? new Wh(t) : i === "application/vnd.ogc.gml" ? new
|
13055
|
+
return Uv.includes(i) ? new Wh(t) : i === "application/vnd.ogc.gml" ? new Za(t) : i === "application/vnd.ogc.gml/3.1.1" || i === "text/xml; subtype=gml/3.1.1" ? new Ja(t) : null;
|
13024
13056
|
}
|
13025
13057
|
class Xi extends bs {
|
13026
13058
|
constructor(e, s) {
|
@@ -13123,7 +13155,7 @@ class Xi extends bs {
|
|
13123
13155
|
this._wmsSource = void 0, this.featureFormat = null, this.projection = void 0, this._formatOptions = void 0, super.destroy();
|
13124
13156
|
}
|
13125
13157
|
}
|
13126
|
-
|
13158
|
+
Go.registerClass(Xi.className, Xi);
|
13127
13159
|
class ce {
|
13128
13160
|
/**
|
13129
13161
|
* @param [defaultActive=EventType.NONE] - A bitmask representing the default to listen to
|
@@ -13194,7 +13226,7 @@ class ce {
|
|
13194
13226
|
destroy() {
|
13195
13227
|
}
|
13196
13228
|
}
|
13197
|
-
class
|
13229
|
+
class Ko extends ce {
|
13198
13230
|
constructor() {
|
13199
13231
|
super(I.ALL, H.ALL, Oe.ALL);
|
13200
13232
|
h(this, "_scratchCartographic", new se());
|
@@ -13202,7 +13234,7 @@ class Zo extends ce {
|
|
13202
13234
|
this.setActive();
|
13203
13235
|
}
|
13204
13236
|
async pipe(e) {
|
13205
|
-
return e.map.className === "CesiumMap" ? this._cesiumHandler(e) : e.map.className === "ObliqueMap" ?
|
13237
|
+
return e.map.className === "CesiumMap" ? this._cesiumHandler(e) : e.map.className === "ObliqueMap" ? Ko.obliqueHandler(e) : e;
|
13206
13238
|
}
|
13207
13239
|
_cesiumHandler(e) {
|
13208
13240
|
const r = e.map.getScene();
|
@@ -13407,7 +13439,7 @@ class Zv {
|
|
13407
13439
|
h(this, "exclusiveAdded");
|
13408
13440
|
h(this, "_boundKeyListener");
|
13409
13441
|
h(this, "_modifierChanged");
|
13410
|
-
this._positionInteraction = new
|
13442
|
+
this._positionInteraction = new Ko(), this._featureInteraction = new Wv(), this._featureProviderInteraction = new Xv(), this._interactionChain = new is([
|
13411
13443
|
this._positionInteraction,
|
13412
13444
|
this._featureInteraction,
|
13413
13445
|
this._featureProviderInteraction
|
@@ -13696,7 +13728,7 @@ class Gi extends ts {
|
|
13696
13728
|
let f = u.getProperty("id");
|
13697
13729
|
f || (f = `${e.url}${d}`);
|
13698
13730
|
let g = !0;
|
13699
|
-
this.featureVisibility.highlightedObjects[f] && !this.featureVisibility.hasHighlightFeature(f, u) && (this.featureVisibility.addHighlightFeature(f, u), c.highlight.push([f, u]), g = !1), this.featureVisibility.hiddenObjects[f] && !this.featureVisibility.hasHiddenFeature(f, u) && (this.featureVisibility.addHiddenFeature(f, u), c.hideLocal.push([f, u])), (r = this.globalHider) != null && r.hiddenObjects[f] && !((n = this.globalHider) != null && n.hasFeature(f, u)) && ((a = this.globalHider) == null || a.addFeature(f, u), c.hideGlobal.push([f, u])), g && this._styleLastUpdated > (e[vi] ?? 0) && u[oi] &&
|
13731
|
+
this.featureVisibility.highlightedObjects[f] && !this.featureVisibility.hasHighlightFeature(f, u) && (this.featureVisibility.addHighlightFeature(f, u), c.highlight.push([f, u]), g = !1), this.featureVisibility.hiddenObjects[f] && !this.featureVisibility.hasHiddenFeature(f, u) && (this.featureVisibility.addHiddenFeature(f, u), c.hideLocal.push([f, u])), (r = this.globalHider) != null && r.hiddenObjects[f] && !((n = this.globalHider) != null && n.hasFeature(f, u)) && ((a = this.globalHider) == null || a.addFeature(f, u), c.hideGlobal.push([f, u])), g && this._styleLastUpdated > (e[vi] ?? 0) && u[oi] && Ho(u);
|
13700
13732
|
}
|
13701
13733
|
}
|
13702
13734
|
(c.hideLocal.length > 0 || c.hideGlobal.length > 0 || c.highlight.length > 0) && (e[fn] = () => {
|
@@ -13822,8 +13854,8 @@ class Jv extends ts {
|
|
13822
13854
|
let f, g = 0;
|
13823
13855
|
const m = () => {
|
13824
13856
|
const y = r.getBoundingSphere(s, !0, o);
|
13825
|
-
if (y !==
|
13826
|
-
if (y ===
|
13857
|
+
if (y !== ul.PENDING) {
|
13858
|
+
if (y === ul.FAILED) {
|
13827
13859
|
g += 1, g > 3 && f();
|
13828
13860
|
return;
|
13829
13861
|
}
|
@@ -13983,7 +14015,7 @@ class iS extends As {
|
|
13983
14015
|
const Xn = new Array(25);
|
13984
14016
|
for (let i = 0; i < Xn.length; i++)
|
13985
14017
|
Xn[i] = 200375083427892e-7 * 2 / 256 / 2 ** (i + 1);
|
13986
|
-
function
|
14018
|
+
function Jo(i) {
|
13987
14019
|
const t = yt.southwest(i), e = yt.northeast(i), s = [
|
13988
14020
|
N.toDegrees(t.longitude),
|
13989
14021
|
N.toDegrees(t.latitude)
|
@@ -14000,7 +14032,7 @@ class St extends kt {
|
|
14000
14032
|
/**
|
14001
14033
|
* Cesium Webmercator TilingScheme
|
14002
14034
|
*/
|
14003
|
-
h(this, "tilingScheme", new
|
14035
|
+
h(this, "tilingScheme", new Eo());
|
14004
14036
|
/**
|
14005
14037
|
* sorted baseLevels, maximumLevel first example: [18,17,16]
|
14006
14038
|
*/
|
@@ -14088,7 +14120,7 @@ class St extends kt {
|
|
14088
14120
|
a.forEach((l) => {
|
14089
14121
|
l.getId() || l.setId(Ue());
|
14090
14122
|
});
|
14091
|
-
const o = new
|
14123
|
+
const o = new vo(a.length);
|
14092
14124
|
return o.load(a.map((l) => {
|
14093
14125
|
const c = l.getGeometry();
|
14094
14126
|
if (c) {
|
@@ -14105,7 +14137,7 @@ class St extends kt {
|
|
14105
14137
|
}).filter((l) => l)), this.tileLoadedEvent.raiseEvent({ tileId: r, rtree: o }), this._trackFeatures(a, r), this.rtreeCache.set(r, o), o;
|
14106
14138
|
}).catch(() => {
|
14107
14139
|
this.getLogger().warning(`Could not load Tile ${r}`);
|
14108
|
-
const a = new
|
14140
|
+
const a = new vo();
|
14109
14141
|
return this.rtreeCache.set(r, a), a;
|
14110
14142
|
});
|
14111
14143
|
this.cache.get(s).set(r, n), this.cache.get(s).canExpireCache() && await Promise.all([
|
@@ -14166,7 +14198,7 @@ class St extends kt {
|
|
14166
14198
|
async getFeaturesByCoordinate(e, s, r) {
|
14167
14199
|
const n = hd(e);
|
14168
14200
|
qh(n, s, n);
|
14169
|
-
const a =
|
14201
|
+
const a = Ao(e), o = se.fromDegrees(a[0], a[1]), l = this.getBaseLevelForResolution(s, o.latitude), c = await this._getRtreeForBaseTile(l, o, r);
|
14170
14202
|
return c ? c.search({
|
14171
14203
|
minX: n[0],
|
14172
14204
|
minY: n[1],
|
@@ -14189,7 +14221,7 @@ class St extends kt {
|
|
14189
14221
|
if (r === l)
|
14190
14222
|
return c.all().map((d) => d.value);
|
14191
14223
|
{
|
14192
|
-
const d =
|
14224
|
+
const d = Jo(a);
|
14193
14225
|
return c.search({
|
14194
14226
|
minX: d[0],
|
14195
14227
|
minY: d[1],
|
@@ -14392,13 +14424,13 @@ class aS {
|
|
14392
14424
|
h(this, "tileProvider");
|
14393
14425
|
h(this, "_tilingScheme");
|
14394
14426
|
h(this, "_tileSize");
|
14395
|
-
h(this, "_errorEvent", new
|
14427
|
+
h(this, "_errorEvent", new dl());
|
14396
14428
|
h(this, "headers");
|
14397
14429
|
h(this, "emptyCanvas");
|
14398
14430
|
h(this, "minLevel", 0);
|
14399
14431
|
h(this, "maxLevel", 26);
|
14400
14432
|
h(this, "_reload");
|
14401
|
-
this.tileProvider = t.tileProvider, this._tilingScheme = this.tileProvider.tilingScheme, this._tileSize = t.tileSize, this._errorEvent = new
|
14433
|
+
this.tileProvider = t.tileProvider, this._tilingScheme = this.tileProvider.tilingScheme, this._tileSize = t.tileSize, this._errorEvent = new dl(), this.emptyCanvas = document.createElement("canvas"), this.emptyCanvas.width = this.tileWidth, this.emptyCanvas.height = this.tileHeight, this.headers = t.headers;
|
14402
14434
|
}
|
14403
14435
|
// eslint-disable-next-line class-methods-use-this
|
14404
14436
|
get _ready() {
|
@@ -14458,7 +14490,7 @@ class aS {
|
|
14458
14490
|
const r = await this.tileProvider.getFeaturesForTile(t, e, s, this.headers);
|
14459
14491
|
if (r.length === 0)
|
14460
14492
|
return this.emptyCanvas;
|
14461
|
-
const n = this.tileProvider.tilingScheme.tileXYToRectangle(t, e, s), a =
|
14493
|
+
const n = this.tileProvider.tilingScheme.tileXYToRectangle(t, e, s), a = Jo(n), o = yt.center(n);
|
14462
14494
|
return nS(r, a, o, this._tileSize);
|
14463
14495
|
}
|
14464
14496
|
}
|
@@ -14550,7 +14582,7 @@ class lS extends As {
|
|
14550
14582
|
const a = this.extent.getCoordinatesInProjection(oe);
|
14551
14583
|
a && (s.rectangle = yt.fromDegrees(a[0], a[1], a[2], a[3]));
|
14552
14584
|
}
|
14553
|
-
this.tilingSchema === "mercator" && (s.tilingScheme = new
|
14585
|
+
this.tilingSchema === "mercator" && (s.tilingScheme = new Eo());
|
14554
14586
|
const r = new ff(s), n = {
|
14555
14587
|
alpha: this.opacity,
|
14556
14588
|
splitDirection: this.splitDirection
|
@@ -14734,7 +14766,7 @@ class Yn extends Ke {
|
|
14734
14766
|
/**
|
14735
14767
|
* The feature visibility of this layer. NOTE: Entities cannot be highlighted at this moment.
|
14736
14768
|
*/
|
14737
|
-
h(this, "featureVisibility", new
|
14769
|
+
h(this, "featureVisibility", new da());
|
14738
14770
|
h(this, "_supportedMaps", [z.className]);
|
14739
14771
|
h(this, "_featureVisibilityListeners", []);
|
14740
14772
|
}
|
@@ -15066,7 +15098,7 @@ class uS extends kt {
|
|
15066
15098
|
this.unTrack(), this._layer = void 0, this.changed.destroy(), super.destroy();
|
15067
15099
|
}
|
15068
15100
|
}
|
15069
|
-
class dS extends
|
15101
|
+
class dS extends da {
|
15070
15102
|
constructor(e) {
|
15071
15103
|
super();
|
15072
15104
|
h(this, "_changeTracker");
|
@@ -15121,7 +15153,7 @@ class Ti extends rt {
|
|
15121
15153
|
h(this, "injectedFetchDynamicFeatureFunc", () => {
|
15122
15154
|
throw new Error("Missing get dynamic feature");
|
15123
15155
|
});
|
15124
|
-
h(this, "_staticFeatureVisibility", new
|
15156
|
+
h(this, "_staticFeatureVisibility", new da());
|
15125
15157
|
h(this, "_setEditing", null);
|
15126
15158
|
h(this, "_twoDimLoaded", null);
|
15127
15159
|
h(this, "_twoDimStyleChanged", null);
|
@@ -15250,7 +15282,7 @@ class Ti extends rt {
|
|
15250
15282
|
this._twoDimStaticSource.getFeatures().forEach((a) => {
|
15251
15283
|
if (a[lt]) {
|
15252
15284
|
let o;
|
15253
|
-
n ? (o = !0, a.setStyle(void 0)) : a.getStyle() !== a[lt].style && (o = !0, a.setStyle(a[lt].style)), o && Reflect.has(a, oi) &&
|
15285
|
+
n ? (o = !0, a.setStyle(void 0)) : a.getStyle() !== a[lt].style && (o = !0, a.setStyle(a[lt].style)), o && Reflect.has(a, oi) && Ho(a);
|
15254
15286
|
}
|
15255
15287
|
}), r && (this.changeTracker.track(), this.changeTracker.changed.raiseEvent());
|
15256
15288
|
}
|
@@ -15342,7 +15374,7 @@ class Ti extends rt {
|
|
15342
15374
|
}
|
15343
15375
|
}
|
15344
15376
|
Ae.registerClass(Ti.className, Ti);
|
15345
|
-
const
|
15377
|
+
const $a = Symbol("featureFromOptions");
|
15346
15378
|
class Tr extends rt {
|
15347
15379
|
constructor(e) {
|
15348
15380
|
const s = Tr.getDefaultOptions();
|
@@ -15369,7 +15401,7 @@ class Tr extends rt {
|
|
15369
15401
|
}
|
15370
15402
|
async reload() {
|
15371
15403
|
if (this._dataFetchedPromise) {
|
15372
|
-
const e = this.getFeatures().filter((s) => s[
|
15404
|
+
const e = this.getFeatures().filter((s) => s[$a]);
|
15373
15405
|
this.removeAllFeatures(), this.source.addFeatures(e), this._dataFetchedPromise = null, await this.fetchData();
|
15374
15406
|
}
|
15375
15407
|
return super.reload();
|
@@ -15384,7 +15416,7 @@ class Tr extends rt {
|
|
15384
15416
|
type: "FeatureCollection",
|
15385
15417
|
features: this._featuresToLoad
|
15386
15418
|
}), this.getFeatures().forEach((e) => {
|
15387
|
-
e[
|
15419
|
+
e[$a] = !0;
|
15388
15420
|
}), this._featuresToLoad = void 0), this.url) {
|
15389
15421
|
const e = Gt(this.url, this.headers);
|
15390
15422
|
this._dataFetchedPromise = qi(this.url, e).then((s) => this._parseGeojsonData(s)).catch((s) => (this.getLogger().warning(`Could not send request for loading layer content (${String(s)})`), Promise.reject(s)));
|
@@ -15407,7 +15439,7 @@ class Tr extends rt {
|
|
15407
15439
|
if (this.projection.equals(r) ? delete e.projection : e.projection = this.projection.toJSON(), Array.isArray(this._featuresToLoad))
|
15408
15440
|
e.features = this._featuresToLoad.slice();
|
15409
15441
|
else {
|
15410
|
-
const n = this.getFeatures().filter((a) => a[
|
15442
|
+
const n = this.getFeatures().filter((a) => a[$a]);
|
15411
15443
|
n.length > 0 && (e.features = n.map((a) => Ir(a, { writeStyle: !0, writeId: !0 })));
|
15412
15444
|
}
|
15413
15445
|
return e;
|
@@ -15417,7 +15449,7 @@ class Tr extends rt {
|
|
15417
15449
|
}
|
15418
15450
|
}
|
15419
15451
|
Ae.registerClass(Tr.className, Tr);
|
15420
|
-
class Jr extends
|
15452
|
+
class Jr extends ga {
|
15421
15453
|
constructor(e, s) {
|
15422
15454
|
super(e, s);
|
15423
15455
|
h(this, "minLevel");
|
@@ -15542,7 +15574,7 @@ class gS extends Jr {
|
|
15542
15574
|
};
|
15543
15575
|
return Zt.contains(e.url) ? e.crossOrigin = "use-credentials" : Kt(this.url) || (e.crossOrigin = "anonymous"), this.headers && (e.imageLoadFunction = (s, r) => {
|
15544
15576
|
const n = Gt(r, this.headers);
|
15545
|
-
|
15577
|
+
Xo(r, n).then((a) => {
|
15546
15578
|
const o = s.getImage();
|
15547
15579
|
o.src = a, o.onload = () => {
|
15548
15580
|
URL.revokeObjectURL(a);
|
@@ -15556,7 +15588,7 @@ class gS extends Jr {
|
|
15556
15588
|
});
|
15557
15589
|
}
|
15558
15590
|
}
|
15559
|
-
class Kw extends
|
15591
|
+
class Kw extends ga {
|
15560
15592
|
static get className() {
|
15561
15593
|
return "TileDebugOpenlayersImpl";
|
15562
15594
|
}
|
@@ -15598,7 +15630,7 @@ class mS extends Jr {
|
|
15598
15630
|
maxZoom: this.maxLevel,
|
15599
15631
|
wrapX: !1
|
15600
15632
|
};
|
15601
|
-
Zt.contains(this.url) ? e.crossOrigin = "use-credentials" : Kt(this.url) || (e.crossOrigin = "anonymous"), this.tilingSchema === We.GEOGRAPHIC && (e.projection = "EPSG:4326"), this.headers && (e.tileLoadFunction =
|
15633
|
+
Zt.contains(this.url) ? e.crossOrigin = "use-credentials" : Kt(this.url) || (e.crossOrigin = "anonymous"), this.tilingSchema === We.GEOGRAPHIC && (e.projection = "EPSG:4326"), this.headers && (e.tileLoadFunction = ya(this.headers));
|
15602
15634
|
const s = {
|
15603
15635
|
source: new Sd(e),
|
15604
15636
|
opacity: this.opacity
|
@@ -15606,7 +15638,7 @@ class mS extends Jr {
|
|
15606
15638
|
return this.extent && this.extent.isValid() && (s.extent = this.extent.getCoordinatesInProjection(B)), new Es(s);
|
15607
15639
|
}
|
15608
15640
|
}
|
15609
|
-
class pS extends
|
15641
|
+
class pS extends ga {
|
15610
15642
|
constructor(e, s) {
|
15611
15643
|
super(e, s);
|
15612
15644
|
h(this, "tileProvider");
|
@@ -15631,12 +15663,12 @@ class pS extends fa {
|
|
15631
15663
|
minZoom: 0,
|
15632
15664
|
maxZoom: 26,
|
15633
15665
|
tileSize: this.tileSize,
|
15634
|
-
|
15635
|
-
|
15636
|
-
|
15637
|
-
|
15638
|
-
|
15639
|
-
|
15666
|
+
tileLoadFunction: (a) => {
|
15667
|
+
this.tileProvider.getFeaturesForTile(a.tileCoord[1], a.tileCoord[2], a.tileCoord[0], this.headers).then((o) => {
|
15668
|
+
o.length > 0 ? a.setFeatures(o) : (a.setFeatures([]), a.setState(Bh.EMPTY));
|
15669
|
+
}).catch((o) => {
|
15670
|
+
this.getLogger().error(o.message);
|
15671
|
+
});
|
15640
15672
|
},
|
15641
15673
|
// url needs to be set for the tileLoadFunction to work.
|
15642
15674
|
url: "/{z}/{x}/{y}"
|
@@ -15741,10 +15773,10 @@ class _S extends Jr {
|
|
15741
15773
|
}
|
15742
15774
|
getOLLayer() {
|
15743
15775
|
const e = this.tilingSchema === We.GEOGRAPHIC ? oe : B, s = e.proj.getExtent();
|
15744
|
-
let r =
|
15745
|
-
this.numberOfLevelZeroTilesX > 1 && (r /= this.numberOfLevelZeroTilesX), this.tilingSchema === We.GEOGRAPHIC && (r =
|
15776
|
+
let r = Ya(s) / this.tileSize[0];
|
15777
|
+
this.numberOfLevelZeroTilesX > 1 && (r /= this.numberOfLevelZeroTilesX), this.tilingSchema === We.GEOGRAPHIC && (r = Ya(s) / (this.tileSize[0] * 2));
|
15746
15778
|
const n = this.maxLevel + 1, a = new Array(n).fill(void 0).map((f, g) => r / 2 ** g), o = this.extent.getCoordinatesInProjection(e), l = {
|
15747
|
-
origin:
|
15779
|
+
origin: aa(s),
|
15748
15780
|
extent: o,
|
15749
15781
|
resolutions: a,
|
15750
15782
|
matrixIds: this.matrixIds,
|
@@ -15766,7 +15798,7 @@ class _S extends Jr {
|
|
15766
15798
|
matrixSet: this.tileMatrixSetID,
|
15767
15799
|
url: this.url
|
15768
15800
|
};
|
15769
|
-
return Zt.contains(this.url) ? u.crossOrigin = "use-credentials" : Kt(this.url) || (u.crossOrigin = "anonymous"), this.tilingSchema === We.GEOGRAPHIC && (u.projection = "EPSG:4326"), this.headers && (u.tileLoadFunction =
|
15801
|
+
return Zt.contains(this.url) ? u.crossOrigin = "use-credentials" : Kt(this.url) || (u.crossOrigin = "anonymous"), this.tilingSchema === We.GEOGRAPHIC && (u.projection = "EPSG:4326"), this.headers && (u.tileLoadFunction = ya(this.headers)), Object.assign(u, this.openlayersOptions), new Es({
|
15770
15802
|
opacity: this.opacity,
|
15771
15803
|
source: new xd(u)
|
15772
15804
|
});
|
@@ -16023,7 +16055,7 @@ class Qn extends St {
|
|
16023
16055
|
this.locale !== e && (super.locale = e, this.url.includes("{locale}") && this.clearCache());
|
16024
16056
|
}
|
16025
16057
|
async loader(e, s, r, n) {
|
16026
|
-
const a = this.tilingScheme.tileXYToRectangle(e, s, r), o = Pu(this.url, e, s, r, a, this.locale), l =
|
16058
|
+
const a = this.tilingScheme.tileXYToRectangle(e, s, r), o = Pu(this.url, e, s, r, a, this.locale), l = Jo(a), c = fr(l), d = Gt(this.url, n), u = await dv(o, d), f = this._MVTFormat.readFeatures(u), g = (l[2] - l[0]) / 4096, m = -((l[3] - l[1]) / 4096);
|
16027
16059
|
return f.forEach((p) => {
|
16028
16060
|
const y = this.idProperty ? p.get(this.idProperty) : null;
|
16029
16061
|
y != null && p.setId(String(y));
|
@@ -16102,7 +16134,7 @@ class Fr extends vt {
|
|
16102
16134
|
}
|
16103
16135
|
}
|
16104
16136
|
Ae.registerClass(Fr.className, Fr);
|
16105
|
-
function
|
16137
|
+
function vh(i, t, e) {
|
16106
16138
|
const s = e.getId();
|
16107
16139
|
i.hiddenObjects[s] ? e[ut] = !0 : e[ut] && delete e[ut], i.highlightedObjects[s] ? e[Ee] = i.highlightedObjects[s].style : e[Ee] && delete e[Ee], t != null && t.hiddenObjects[s] ? e[dt] = !0 : e[dt] && delete e[dt];
|
16108
16140
|
}
|
@@ -16168,7 +16200,7 @@ class Rr extends di {
|
|
16168
16200
|
async initialize() {
|
16169
16201
|
this.initialized || (this._tileLoadEventListener = this.tileProvider.tileLoadedEvent.addEventListener((e) => this._handleTileLoaded(e)), this._vectorPropertiesChangedListener = this.vectorProperties.propertyChanged.addEventListener(() => {
|
16170
16202
|
this.reload();
|
16171
|
-
}), this.featureProvider = new
|
16203
|
+
}), this.featureProvider = new So(this.name, {
|
16172
16204
|
// XXX this overwrites
|
16173
16205
|
style: this.style,
|
16174
16206
|
tileProvider: this.tileProvider,
|
@@ -16181,7 +16213,7 @@ class Rr extends di {
|
|
16181
16213
|
_handleTileLoaded({ rtree: e }) {
|
16182
16214
|
e.all().map((s) => s.value).forEach((s) => {
|
16183
16215
|
const r = s.getStyle();
|
16184
|
-
r && r instanceof ee && r.setZIndex(this._getNextStyleZIndex()), s[Y] = this.name, s.getStyleFunction = () => this._featureStyle.bind(this), this.tileProvider.trackFeaturesToTiles && this.globalHider &&
|
16216
|
+
r && r instanceof ee && r.setZIndex(this._getNextStyleZIndex()), s[Y] = this.name, s.getStyleFunction = () => this._featureStyle.bind(this), this.tileProvider.trackFeaturesToTiles && this.globalHider && vh(this.featureVisibility, this.globalHider, s);
|
16185
16217
|
});
|
16186
16218
|
}
|
16187
16219
|
setGlobalHider(e) {
|
@@ -16260,7 +16292,7 @@ class Rr extends di {
|
|
16260
16292
|
}
|
16261
16293
|
async activate() {
|
16262
16294
|
await super.activate(), this._setupFeatureVisibilityHandlers(), this.tileProvider.trackFeaturesToTiles && this.tileProvider.forEachFeature((e) => {
|
16263
|
-
|
16295
|
+
vh(this.featureVisibility, this.globalHider, e);
|
16264
16296
|
});
|
16265
16297
|
}
|
16266
16298
|
deactivate() {
|
@@ -16281,7 +16313,7 @@ class Rr extends di {
|
|
16281
16313
|
}
|
16282
16314
|
}
|
16283
16315
|
Ae.registerClass(Rr.className, Rr);
|
16284
|
-
class
|
16316
|
+
class ta extends rt {
|
16285
16317
|
constructor(e) {
|
16286
16318
|
var r;
|
16287
16319
|
const s = new k(e.projection).toJSON();
|
@@ -16296,7 +16328,7 @@ class vh extends rt {
|
|
16296
16328
|
h(this, "getFeaturesOptions");
|
16297
16329
|
h(this, "wfsFormat");
|
16298
16330
|
h(this, "_dataFetchedPromise");
|
16299
|
-
this.featureType = Array.isArray(e.featureType) ? e.featureType : [e.featureType], this.featureNS = e.featureNS, this.featurePrefix = e.featurePrefix, this.getFeaturesOptions = e.getFeatureOptions || {}, this.version = e.version, this.wfsFormat = new
|
16331
|
+
this.featureType = Array.isArray(e.featureType) ? e.featureType : [e.featureType], this.featureNS = e.featureNS, this.featurePrefix = e.featurePrefix, this.getFeaturesOptions = e.getFeatureOptions || {}, this.version = e.version, this.wfsFormat = new Ka({
|
16300
16332
|
featureNS: this.featureNS,
|
16301
16333
|
featureType: this.featureType,
|
16302
16334
|
version: this.version
|
@@ -16319,7 +16351,7 @@ class vh extends rt {
|
|
16319
16351
|
return this.initialized || await this.fetchData(), super.initialize();
|
16320
16352
|
}
|
16321
16353
|
async reload() {
|
16322
|
-
return this.wfsFormat = new
|
16354
|
+
return this.wfsFormat = new Ka({
|
16323
16355
|
featureNS: this.featureNS,
|
16324
16356
|
featureType: this.featureType,
|
16325
16357
|
version: this.version
|
@@ -16351,11 +16383,11 @@ class vh extends rt {
|
|
16351
16383
|
this.addFeatures(s);
|
16352
16384
|
}
|
16353
16385
|
toJSON() {
|
16354
|
-
const e = super.toJSON();
|
16355
|
-
return e.featureType = this.featureType.slice(), e.featureNS = this.featureNS, e.featurePrefix = this.featurePrefix, Object.keys(this.getFeaturesOptions).length > 0 && (e.getFeatureOptions = this.getFeaturesOptions), e;
|
16386
|
+
const e = super.toJSON(), s = ta.getDefaultOptions();
|
16387
|
+
return e.featureType = this.featureType.slice(), e.featureNS = this.featureNS, e.featurePrefix = this.featurePrefix, Object.keys(this.getFeaturesOptions).length > 0 && (e.getFeatureOptions = this.getFeaturesOptions), this.version !== s.version && (e.version = this.version), e;
|
16356
16388
|
}
|
16357
16389
|
}
|
16358
|
-
Ae.registerClass(
|
16390
|
+
Ae.registerClass(ta.className, ta);
|
16359
16391
|
class Gr extends vt {
|
16360
16392
|
/**
|
16361
16393
|
* @param options
|
@@ -16529,7 +16561,7 @@ class kr extends vt {
|
|
16529
16561
|
}
|
16530
16562
|
}
|
16531
16563
|
Ae.registerClass(kr.className, kr);
|
16532
|
-
function
|
16564
|
+
function Ba() {
|
16533
16565
|
return ue("ClippingObject");
|
16534
16566
|
}
|
16535
16567
|
const gn = Symbol("ClippingObjectGlobe");
|
@@ -16613,7 +16645,7 @@ class mn {
|
|
16613
16645
|
});
|
16614
16646
|
else {
|
16615
16647
|
const n = this.layerNames.indexOf(t.name);
|
16616
|
-
|
16648
|
+
Ba().warning(`layer ${t.name} cannot have a ClippingObject applied`), this.layerNames.splice(n, 1);
|
16617
16649
|
}
|
16618
16650
|
} else
|
16619
16651
|
this.targets.has(t.name) && (this.targets.delete(t.name), this.targetsUpdated.raiseEvent());
|
@@ -16622,7 +16654,7 @@ class mn {
|
|
16622
16654
|
const r = e.getVisualizationsForLayer(t), n = r ? [...r][0] : null;
|
16623
16655
|
if (!n) {
|
16624
16656
|
const a = this.layerNames.indexOf(t.name);
|
16625
|
-
|
16657
|
+
Ba().warning(`layer ${t.name} cannot have a ClippingObject applied`), this.layerNames.splice(a, 1);
|
16626
16658
|
return;
|
16627
16659
|
}
|
16628
16660
|
this.entities.filter((a) => a.layerName === t.name).forEach((a) => {
|
@@ -16633,7 +16665,7 @@ class mn {
|
|
16633
16665
|
this.targets.set(o, l), s = !0;
|
16634
16666
|
else {
|
16635
16667
|
const c = this.entities.indexOf(a);
|
16636
|
-
|
16668
|
+
Ba().warning(`could not find entity with id ${a.entityId} in layer ${a.layerName}`), this.entities.splice(c, 1);
|
16637
16669
|
}
|
16638
16670
|
} else
|
16639
16671
|
this.targets.has(o) && (this.targets.delete(o), s = !0);
|
@@ -16743,7 +16775,7 @@ function eM(i, t = {}, e = void 0) {
|
|
16743
16775
|
const a = Ns(r);
|
16744
16776
|
if (a.length < 2 || a[0][0] === a[1][0] && a[0][1] === a[1][1])
|
16745
16777
|
return null;
|
16746
|
-
n === "Polygon" ? (
|
16778
|
+
n === "Polygon" ? (po(a), m0(a)) : n === "LineString" && a.length === 2 && t.createEndingPlanes && s.push(...CS(a)), t.createVerticalPlanes && s.push(...MS(a)), i.get("olcs_altitudeMode") === "absolute" && (t.createBottomPlane || t.createTopPlane) && s.push(...wh(i, a, t));
|
16747
16779
|
}
|
16748
16780
|
return e && s.forEach((a) => {
|
16749
16781
|
const o = ie.transform(a, e);
|
@@ -16767,11 +16799,11 @@ function hr(i, t, e, s) {
|
|
16767
16799
|
}
|
16768
16800
|
return t.modelMatrix = i.modelMatrix.clone(), t.unionClippingRegions = i.unionClippingRegions, t.edgeColor = i.edgeColor.clone(), t.edgeWidth = i.edgeWidth, t;
|
16769
16801
|
}
|
16770
|
-
function
|
16802
|
+
function _a(i) {
|
16771
16803
|
i.isDestroyed && i.isDestroyed() || (i instanceof Ki ? i.model && (i.model.clippingPlanes ? i.model.clippingPlanes.getValue().removeAll() : i.model.clippingPlanes = new yf(new pr())) : i.clippingPlanes ? i.clippingPlanes.removeAll() : i.clippingPlanes = new pr());
|
16772
16804
|
}
|
16773
16805
|
function xS(i, t, e) {
|
16774
|
-
if (
|
16806
|
+
if (_a(i), e)
|
16775
16807
|
hr(t, i.clippingPlanes);
|
16776
16808
|
else if (!t.modelMatrix.equals(R.IDENTITY))
|
16777
16809
|
hr(t, i.clippingPlanes), i.clippingPlanes.modelMatrix = R.multiply(R.inverse(i.clippingPlanesOriginMatrix, i.clippingPlanes.modelMatrix), t.modelMatrix, i.clippingPlanes.modelMatrix);
|
@@ -16781,11 +16813,11 @@ function xS(i, t, e) {
|
|
16781
16813
|
}
|
16782
16814
|
}
|
16783
16815
|
function bS(i, t) {
|
16784
|
-
|
16816
|
+
_a(i), hr(t, i.clippingPlanes);
|
16785
16817
|
}
|
16786
16818
|
function OS(i, t, e) {
|
16787
16819
|
if (i.model) {
|
16788
|
-
|
16820
|
+
_a(i);
|
16789
16821
|
const s = i.model.clippingPlanes.getValue();
|
16790
16822
|
if (hr(t, s), !e) {
|
16791
16823
|
const r = i.computeModelMatrix(ec.now());
|
@@ -16943,7 +16975,7 @@ class ES {
|
|
16943
16975
|
});
|
16944
16976
|
};
|
16945
16977
|
this._targetsMap.clear(), this._defaultClippingObjects.forEach(e), this._exclusiveClippingObjects && this._exclusiveClippingObjects.forEach(e), t.forEach((s) => {
|
16946
|
-
|
16978
|
+
_a(s);
|
16947
16979
|
}), this._targetsMap.forEach((s, r) => {
|
16948
16980
|
s.clippingPlaneCollection && Mh(r, s.clippingPlaneCollection, s.local);
|
16949
16981
|
});
|
@@ -16965,7 +16997,7 @@ var Pt;
|
|
16965
16997
|
(function(i) {
|
16966
16998
|
i.LOW = "low", i.MEDIUM = "medium", i.HIGH = "high";
|
16967
16999
|
})(Pt = Pt || (Pt = {}));
|
16968
|
-
class
|
17000
|
+
class ia {
|
16969
17001
|
constructor(t) {
|
16970
17002
|
h(this, "_app");
|
16971
17003
|
h(this, "_layerSettingsCache");
|
@@ -16976,7 +17008,7 @@ class ta {
|
|
16976
17008
|
* An event raised when the current quality level has been changed
|
16977
17009
|
*/
|
16978
17010
|
h(this, "qualityLevelChanged", new E());
|
16979
|
-
this._app = t, this._layerSettingsCache = [], this._viewModelSettings =
|
17011
|
+
this._app = t, this._layerSettingsCache = [], this._viewModelSettings = ia.getDefaultOptions(), this._currentQualityLevel = void 0, this._listeners = [
|
16980
17012
|
this._app.maps.mapActivated.addEventListener(() => {
|
16981
17013
|
this._app.maps.activeMap instanceof z && !this.currentQualityLevel && (Hi() ? this.setLevel(this._viewModelSettings.startingMobileQualityLevel) : this.setLevel(this._viewModelSettings.startingQualityLevel));
|
16982
17014
|
}),
|
@@ -17055,7 +17087,7 @@ class ta {
|
|
17055
17087
|
const s = Object.fromEntries(Object.entries(t).filter(([, n]) => n != null).map(([n, a]) => n === Pt.LOW || n === Pt.MEDIUM || n === Pt.HIGH ? [
|
17056
17088
|
n,
|
17057
17089
|
Object.fromEntries(Object.entries(a).filter(([, o]) => o != null))
|
17058
|
-
] : [n, a])), r =
|
17090
|
+
] : [n, a])), r = ia.getDefaultOptions();
|
17059
17091
|
this._viewModelSettings = {
|
17060
17092
|
...r,
|
17061
17093
|
...s,
|
@@ -17139,9 +17171,9 @@ function Iu(i) {
|
|
17139
17171
|
}
|
17140
17172
|
}
|
17141
17173
|
});
|
17142
|
-
return
|
17174
|
+
return Zo(t), i.add(t), t.activate(), t;
|
17143
17175
|
}
|
17144
|
-
function
|
17176
|
+
function va(i, t) {
|
17145
17177
|
const e = new is(), s = new E(), r = i.addExclusiveInteraction(e, () => {
|
17146
17178
|
s.raiseEvent();
|
17147
17179
|
}, void 0, t), n = i.featureInteraction.active;
|
@@ -17337,7 +17369,7 @@ async function DS(i, t) {
|
|
17337
17369
|
const s = e.clone();
|
17338
17370
|
s.heading = 0, s.pitch = -90, e && !e.equals(s) && (t.fixedNorthOrientation && (e.heading = 0), e.pitch = -90, e.animate = !0, e.duration = 1, e.groundPosition && (e.cameraPosition = null), await i.gotoViewpoint(e));
|
17339
17371
|
}
|
17340
|
-
class
|
17372
|
+
class Qo extends Nt {
|
17341
17373
|
constructor() {
|
17342
17374
|
super();
|
17343
17375
|
h(this, "_activeMap", null);
|
@@ -17392,7 +17424,7 @@ class Jo extends Nt {
|
|
17392
17424
|
* Creates a MapCollection from an iterable of maps, such as an Array.
|
17393
17425
|
*/
|
17394
17426
|
static from(e) {
|
17395
|
-
const s = new
|
17427
|
+
const s = new Qo();
|
17396
17428
|
if (e)
|
17397
17429
|
for (const r of e)
|
17398
17430
|
s.add(r);
|
@@ -18075,7 +18107,7 @@ class jS extends Nt {
|
|
18075
18107
|
function Bs() {
|
18076
18108
|
return ue("init");
|
18077
18109
|
}
|
18078
|
-
const
|
18110
|
+
const sa = /* @__PURE__ */ new Map(), VS = "_defaultDynamicModule";
|
18079
18111
|
class Fu {
|
18080
18112
|
/**
|
18081
18113
|
* @param options
|
@@ -18115,9 +18147,9 @@ class Fu {
|
|
18115
18147
|
h(this, "_categoryItemClassRegistry");
|
18116
18148
|
h(this, "_tileProviderClassRegistry");
|
18117
18149
|
h(this, "_featureProviderClassRegistry");
|
18118
|
-
this._id = (t == null ? void 0 : t._id) || Ue(), this.name = t.name ?? this._id, this.description = t.description, this.properties = t.properties, this._defaultDynamicModule = new
|
18150
|
+
this._id = (t == null ? void 0 : t._id) || Ue(), this.name = t.name ?? this._id, this.description = t.description, this.properties = t.properties, this._defaultDynamicModule = new yh({ _id: VS }), this._dynamicModule = this._defaultDynamicModule;
|
18119
18151
|
const e = () => this._dynamicModule._id;
|
18120
|
-
this._dynamicModuleIdChanged = new E(), this._locale = AS(), this._localeChanged = new E(), this._mapClassRegistry = new Qt(Ts), this._maps = ti(new
|
18152
|
+
this._dynamicModuleIdChanged = new E(), this._locale = AS(), this._localeChanged = new E(), this._mapClassRegistry = new Qt(Ts), this._maps = ti(new Qo(), e, void 0, Y_.bind(null, this), Li), this._layerClassRegistry = new Qt(Ae), this._layers = ti(this._maps.layerCollection, e, J_.bind(null, this), K_.bind(null, this), Ke, Q_), this._layers.locale = this.locale, this._obliqueCollections = ti(new Nt(), e, void 0, (s) => new Wi(s), Wi), this._viewpoints = ti(new Nt(), e, void 0, Z_, mt), this._styleClassRegistry = new Qt(Xr), this._styles = ti(new Nt(), e, void 0, (s) => ni(this._styleClassRegistry, s), Xt), this._modules = new Ii("_id"), this._modules.add(this._dynamicModule), this._hiddenObjects = FS(e, this._layers.globalHider), this._flights = ti(new jS(this), e, void 0, (s) => new Os(s)), this._categoryClassRegistry = new Qt(Fc), this._categories = new Hv(this), this._displayQuality = new ia(this), this._destroyed = new E(), this._moduleMutationChain = { running: !1, items: [] }, this._categoryItemClassRegistry = new Qt(new Ni()), this._tileProviderClassRegistry = new Qt(Ls), this._featureProviderClassRegistry = new Qt(Go), sa.set(this._id, this);
|
18121
18153
|
}
|
18122
18154
|
get id() {
|
18123
18155
|
return this._id;
|
@@ -18236,7 +18268,7 @@ class Fu {
|
|
18236
18268
|
* @param module
|
18237
18269
|
*/
|
18238
18270
|
async addModule(t) {
|
18239
|
-
v(t,
|
18271
|
+
v(t, yh);
|
18240
18272
|
const e = async () => {
|
18241
18273
|
try {
|
18242
18274
|
if (this._modules.hasKey(t._id)) {
|
@@ -18328,19 +18360,19 @@ class Fu {
|
|
18328
18360
|
get() {
|
18329
18361
|
throw new Error("VcsApp was destroyed");
|
18330
18362
|
}
|
18331
|
-
}),
|
18363
|
+
}), sa.delete(this._id), ei(this._maps), ei(this._layers), ei(this._obliqueCollections), ei(this._viewpoints), ei(this._styles), ei(this._categories), this._modules.destroy(), this._hiddenObjects.destroy(), this._mapClassRegistry.destroy(), this._layerClassRegistry.destroy(), this._styleClassRegistry.destroy(), this._categoryClassRegistry.destroy(), this._categoryItemClassRegistry.destroy(), this._tileProviderClassRegistry.destroy(), this._featureProviderClassRegistry.destroy(), this._displayQuality.destroy(), this.destroyed.raiseEvent(), this.destroyed.destroy(), this.localeChanged.destroy(), this.dynamicModuleIdChanged.destroy();
|
18332
18364
|
}
|
18333
18365
|
}
|
18334
18366
|
function oM(i) {
|
18335
|
-
return
|
18367
|
+
return sa.get(i);
|
18336
18368
|
}
|
18337
18369
|
window.vcs = window.vcs || {};
|
18338
|
-
window.vcs.apps =
|
18370
|
+
window.vcs.apps = sa;
|
18339
18371
|
function Ru(i) {
|
18340
18372
|
if (!i)
|
18341
18373
|
return !1;
|
18342
18374
|
const t = i.getType();
|
18343
|
-
return t === "LineString" ?
|
18375
|
+
return t === "LineString" ? Bo(i) : t === "Polygon" ? eu(i) : t === "Point" ? fu(i) : t === "Circle" ? su(i) : !1;
|
18344
18376
|
}
|
18345
18377
|
const Qr = Symbol("Vertex"), lM = Symbol("VertexIndex"), Te = Symbol("Handler"), ci = Symbol("MouseOver"), $S = `<svg xmlns="http://www.w3.org/2000/svg" width="19" height="19" viewBox="0 0 19 19">
|
18346
18378
|
<g id="pen">
|
@@ -18412,7 +18444,7 @@ function US(i) {
|
|
18412
18444
|
}
|
18413
18445
|
function hM(i, t, e, s) {
|
18414
18446
|
v(i, Fu), v(t, rt), v(e, Dn(tt));
|
18415
|
-
const { interactionChain: r, removed: n, destroy: a } =
|
18447
|
+
const { interactionChain: r, removed: n, destroy: a } = va(i.maps.eventHandler), o = new E(), l = new E(), c = new E();
|
18416
18448
|
let d = !1, u = null, f = null, g = !1, m = s;
|
18417
18449
|
const p = Lu(i), y = () => {
|
18418
18450
|
const $ = f ?? new Ft({ olcs_altitudeMode: m }), A = t.vectorProperties.getAltitudeMode($);
|
@@ -18491,11 +18523,11 @@ var _e;
|
|
18491
18523
|
(function(i) {
|
18492
18524
|
i.TRANSLATE = "translate", i.ROTATE = "rotate", i.SCALE = "scale", i.EXTRUDE = "extrude";
|
18493
18525
|
})(_e = _e || (_e = {}));
|
18494
|
-
const
|
18495
|
-
function
|
18526
|
+
const Sa = U.GRAY.withAlpha(0.5);
|
18527
|
+
function ra(i) {
|
18496
18528
|
return i === P.X || i === P.Y || i === P.Z;
|
18497
18529
|
}
|
18498
|
-
function
|
18530
|
+
function na(i) {
|
18499
18531
|
return i === P.XY || i === P.XZ || i === P.YZ;
|
18500
18532
|
}
|
18501
18533
|
function On(i) {
|
@@ -18506,19 +18538,19 @@ function On(i) {
|
|
18506
18538
|
}
|
18507
18539
|
function En(i) {
|
18508
18540
|
return {
|
18509
|
-
appearance: new
|
18541
|
+
appearance: new eo({
|
18510
18542
|
material: Rt.fromType("Color", {
|
18511
18543
|
color: i
|
18512
18544
|
})
|
18513
18545
|
}),
|
18514
|
-
depthFailAppearance: new
|
18546
|
+
depthFailAppearance: new eo({
|
18515
18547
|
material: Rt.fromType("Color", {
|
18516
18548
|
color: U.divideByScalar(i, 1.5, new U()).withAlpha(0.2)
|
18517
18549
|
})
|
18518
18550
|
})
|
18519
18551
|
};
|
18520
18552
|
}
|
18521
|
-
function
|
18553
|
+
function el(i) {
|
18522
18554
|
return {
|
18523
18555
|
appearance: new Ln({
|
18524
18556
|
flat: !0,
|
@@ -18534,9 +18566,9 @@ function Qo(i) {
|
|
18534
18566
|
})
|
18535
18567
|
};
|
18536
18568
|
}
|
18537
|
-
function
|
18569
|
+
function Ua(i, t, e = !1) {
|
18538
18570
|
let s, r;
|
18539
|
-
i === P.Z ? (s = U.BLUE, r = X.IDENTITY.clone()) : i === P.X ? (s = U.RED, r = X.multiply(X.fromRotationY(Math.PI / 2), X.fromRotationX(Math.PI / 2), new X())) : (s = U.GREEN, r = X.fromRotationY(Math.PI / 2)), s = e ?
|
18571
|
+
i === P.Z ? (s = U.BLUE, r = X.IDENTITY.clone()) : i === P.X ? (s = U.RED, r = X.multiply(X.fromRotationY(Math.PI / 2), X.fromRotationX(Math.PI / 2), new X())) : (s = U.GREEN, r = X.fromRotationY(Math.PI / 2)), s = e ? Sa : s;
|
18540
18572
|
const n = new pt({
|
18541
18573
|
allowPicking: !e,
|
18542
18574
|
asynchronous: !1,
|
@@ -18550,7 +18582,7 @@ function Ba(i, t, e = !1) {
|
|
18550
18582
|
})
|
18551
18583
|
})
|
18552
18584
|
],
|
18553
|
-
...
|
18585
|
+
...el(s)
|
18554
18586
|
});
|
18555
18587
|
let a = R.multiplyByMatrix3(t, r, new R());
|
18556
18588
|
return Object.defineProperty(n, "modelMatrix", {
|
@@ -18639,7 +18671,7 @@ function YS(i, t, e, s, r) {
|
|
18639
18671
|
geometry: i
|
18640
18672
|
})
|
18641
18673
|
],
|
18642
|
-
...
|
18674
|
+
...el(t)
|
18643
18675
|
});
|
18644
18676
|
let a = R.multiply(e, s, new R());
|
18645
18677
|
return Object.defineProperty(n, "modelMatrix", {
|
@@ -18653,7 +18685,7 @@ function YS(i, t, e, s, r) {
|
|
18653
18685
|
}
|
18654
18686
|
function hs(i, t, e, s = !1) {
|
18655
18687
|
let r, n, a;
|
18656
|
-
i === P.X ? (r = new _(1, N.EPSILON8, 0), n = U.RED, a = R.fromRotationTranslation(X.fromRotationY(Math.PI / 2), new _(1, 0, 0))) : i === P.Y ? (r = new _(N.EPSILON8, 1, 0), n = U.GREEN, a = R.fromRotationTranslation(X.multiply(X.fromRotationY(Math.PI / 2), X.fromRotationX(-(Math.PI / 2)), new X()), new _(0, 1, 0))) : (r = new _(N.EPSILON8, N.EPSILON8, 1), n = U.BLUE, a = R.fromRotationTranslation(X.IDENTITY.clone(), new _(0, 0, 1))), n = s ?
|
18688
|
+
i === P.X ? (r = new _(1, N.EPSILON8, 0), n = U.RED, a = R.fromRotationTranslation(X.fromRotationY(Math.PI / 2), new _(1, 0, 0))) : i === P.Y ? (r = new _(N.EPSILON8, 1, 0), n = U.GREEN, a = R.fromRotationTranslation(X.multiply(X.fromRotationY(Math.PI / 2), X.fromRotationX(-(Math.PI / 2)), new X()), new _(0, 1, 0))) : (r = new _(N.EPSILON8, N.EPSILON8, 1), n = U.BLUE, a = R.fromRotationTranslation(X.IDENTITY.clone(), new _(0, 0, 1))), n = s ? Sa : n;
|
18657
18689
|
const o = e === _e.SCALE ? new Jh({
|
18658
18690
|
minimum: new _(-0.1, -0.1, -0.1),
|
18659
18691
|
maximum: new _(0.1, 0.1, 0.1)
|
@@ -18703,18 +18735,18 @@ function cs(i, t, e = !1) {
|
|
18703
18735
|
new _(1e-7, 0.4, 0.2),
|
18704
18736
|
new _(1e-7, 0.4, 0.4),
|
18705
18737
|
new _(1e-7, 0.2, 0.4)
|
18706
|
-
], r = U.RED), r = e ?
|
18738
|
+
], r = U.RED), r = e ? Sa : r;
|
18707
18739
|
const n = new pt({
|
18708
18740
|
allowPicking: !e,
|
18709
18741
|
asynchronous: !1,
|
18710
18742
|
geometryInstances: [
|
18711
18743
|
new ct({
|
18712
18744
|
geometry: new wf({
|
18713
|
-
polygonHierarchy: new
|
18745
|
+
polygonHierarchy: new to(s)
|
18714
18746
|
})
|
18715
18747
|
})
|
18716
18748
|
],
|
18717
|
-
...
|
18749
|
+
...el(r),
|
18718
18750
|
modelMatrix: t
|
18719
18751
|
});
|
18720
18752
|
return e || (n[Te] = i), n;
|
@@ -18722,9 +18754,9 @@ function cs(i, t, e = !1) {
|
|
18722
18754
|
function ZS(i) {
|
18723
18755
|
let t;
|
18724
18756
|
return (e, s, r) => {
|
18725
|
-
t && (i.remove(t), t = void 0), e !== P.NONE && (t = new Oi(),
|
18757
|
+
t && (i.remove(t), t = void 0), e !== P.NONE && (t = new Oi(), ra(e) ? hs(e, s, r, !0).forEach((n) => {
|
18726
18758
|
t.add(n);
|
18727
|
-
}) :
|
18759
|
+
}) : na(e) && t.add(cs(e, s, !0)), i.add(t));
|
18728
18760
|
};
|
18729
18761
|
}
|
18730
18762
|
function KS(i, t) {
|
@@ -18739,7 +18771,7 @@ function KS(i, t) {
|
|
18739
18771
|
On(m), e.add(m);
|
18740
18772
|
});
|
18741
18773
|
} else
|
18742
|
-
t === _e.ROTATE ? (e.add(
|
18774
|
+
t === _e.ROTATE ? (e.add(Ua(P.X, s, !0)), e.add(Ua(P.Y, s, !0)), e.add(Ua(P.Z, s))) : t === _e.EXTRUDE && hs(P.Z, s, t).forEach((g) => {
|
18743
18775
|
On(g), e.add(g);
|
18744
18776
|
});
|
18745
18777
|
const n = i.getScene();
|
@@ -18832,12 +18864,12 @@ function JS(i, t) {
|
|
18832
18864
|
}
|
18833
18865
|
a.forEach((o) => {
|
18834
18866
|
const l = o.getGeometry();
|
18835
|
-
l[je] = !0, o[
|
18867
|
+
l[je] = !0, o[fa] = !0;
|
18836
18868
|
}), e = i.addFeatures(a);
|
18837
18869
|
}
|
18838
18870
|
};
|
18839
18871
|
}
|
18840
|
-
function
|
18872
|
+
function wo(i, t, e) {
|
18841
18873
|
let s, r, n = 0;
|
18842
18874
|
i === P.X ? (s = U.RED.toCssColorString(), r = [
|
18843
18875
|
[0, 0, 0],
|
@@ -18884,11 +18916,11 @@ function Gu(i) {
|
|
18884
18916
|
}
|
18885
18917
|
function QS(i) {
|
18886
18918
|
let t;
|
18887
|
-
const e =
|
18919
|
+
const e = Sa.toCssColorString();
|
18888
18920
|
return (s, r, n, a) => {
|
18889
18921
|
if (t && (i.removeFeaturesById(t), t = void 0), s !== P.NONE) {
|
18890
18922
|
let o = [];
|
18891
|
-
|
18923
|
+
ra(s) ? o = wo(s, r, e) : na(s) && (o = [Gu(e)]), o.forEach((l) => {
|
18892
18924
|
l.getGeometry().applyTransform((c, d) => {
|
18893
18925
|
const u = c.length;
|
18894
18926
|
for (let f = 0; f < u; f += 3)
|
@@ -18902,8 +18934,8 @@ function QS(i) {
|
|
18902
18934
|
function ew(i, t, e) {
|
18903
18935
|
let s = [0, 0, 0], r = 1, n = [];
|
18904
18936
|
e === _e.TRANSLATE || e === _e.SCALE ? n = [
|
18905
|
-
...
|
18906
|
-
...
|
18937
|
+
...wo(P.X, e),
|
18938
|
+
...wo(P.Y, e),
|
18907
18939
|
Gu()
|
18908
18940
|
] : e === _e.ROTATE && (n = [
|
18909
18941
|
new Ft({
|
@@ -18914,7 +18946,7 @@ function ew(i, t, e) {
|
|
18914
18946
|
stroke: new $e({ color: U.BLUE.toCssColorString(), width: 2 })
|
18915
18947
|
}))), n.forEach((u) => {
|
18916
18948
|
const f = u.getGeometry();
|
18917
|
-
f[je] = !0, u[
|
18949
|
+
f[je] = !0, u[fa] = !0, u[Te] = u.get("axis");
|
18918
18950
|
});
|
18919
18951
|
const a = i.olMap.on("postrender", () => {
|
18920
18952
|
if (!(s[0] === 0 && s[1] === 0 && s[2] === 0)) {
|
@@ -19068,7 +19100,7 @@ class ku extends ce {
|
|
19068
19100
|
this.reset();
|
19069
19101
|
}
|
19070
19102
|
}
|
19071
|
-
const
|
19103
|
+
const tl = [
|
19072
19104
|
"olcs_altitudeMode",
|
19073
19105
|
"olcs_groundLevel",
|
19074
19106
|
"olcs_heightAboveGround"
|
@@ -19079,7 +19111,7 @@ const el = [
|
|
19079
19111
|
];
|
19080
19112
|
function Fs(i) {
|
19081
19113
|
const t = {};
|
19082
|
-
return
|
19114
|
+
return tl.forEach((e) => {
|
19083
19115
|
const s = i.get(e);
|
19084
19116
|
s != null && (t[e] = s);
|
19085
19117
|
}), t;
|
@@ -19091,9 +19123,9 @@ function Rs(i, t) {
|
|
19091
19123
|
geometry: e,
|
19092
19124
|
...t
|
19093
19125
|
});
|
19094
|
-
return s[Qr] = !0, s[
|
19126
|
+
return s[Qr] = !0, s[fa] = !0, s[Ge] = !0, s;
|
19095
19127
|
}
|
19096
|
-
let Se = new j(), jt = new j(),
|
19128
|
+
let Se = new j(), jt = new j(), qa = new j(), et = new _(), Pe = new _(), Wa = new _();
|
19097
19129
|
function Ph(i, t, e) {
|
19098
19130
|
Se = j.fromElements(t[0] - i[0], t[1] - i[1], Se), Se.equals(j.ZERO) && (Se = j.fromElements(1, 1, Se)), Se = j.normalize(Se, Se), jt = j.fromElements(e[0] - i[0], e[1] - i[1], jt);
|
19099
19131
|
const s = j.dot(Se, jt);
|
@@ -19104,14 +19136,14 @@ function Ph(i, t, e) {
|
|
19104
19136
|
];
|
19105
19137
|
}
|
19106
19138
|
function aw(i, t, e, s) {
|
19107
|
-
et = _.fromElements(t[0] - i[0], t[1] - i[1], t[2] - i[2], et), Pe = _.fromElements(e[0] - i[0], e[1] - i[1], e[2] - i[2], Pe),
|
19139
|
+
et = _.fromElements(t[0] - i[0], t[1] - i[1], t[2] - i[2], et), Pe = _.fromElements(e[0] - i[0], e[1] - i[1], e[2] - i[2], Pe), Wa = _.fromElements(e[0] - t[0], e[1] - t[1], e[2] - e[2], Wa);
|
19108
19140
|
const r = _.magnitude(et);
|
19109
|
-
return r < _.magnitude(Pe) || r < _.magnitude(
|
19141
|
+
return r < _.magnitude(Pe) || r < _.magnitude(Wa) ? !1 : (et = _.normalize(et, et), Pe = _.normalize(Pe, Pe), et.equalsEpsilon(Pe, s || N.EPSILON5));
|
19110
19142
|
}
|
19111
19143
|
function ow(i, t, e, s) {
|
19112
|
-
Se = j.fromElements(t[0] - i[0], t[1] - i[1], Se), jt = j.fromElements(e[0] - i[0], e[1] - i[1], jt),
|
19144
|
+
Se = j.fromElements(t[0] - i[0], t[1] - i[1], Se), jt = j.fromElements(e[0] - i[0], e[1] - i[1], jt), qa = j.fromElements(e[0] - t[0], e[1] - t[1], qa);
|
19113
19145
|
const r = j.magnitude(Se);
|
19114
|
-
return r < j.magnitude(jt) || r < j.magnitude(
|
19146
|
+
return r < j.magnitude(jt) || r < j.magnitude(qa) ? !1 : (Se = j.normalize(Se, Se), jt = j.normalize(jt, jt), Se.equalsEpsilon(jt, s || N.EPSILON5));
|
19115
19147
|
}
|
19116
19148
|
function zu(i, t) {
|
19117
19149
|
return et = xt(i, et), Pe = t.globe.ellipsoid.geodeticSurfaceNormal(et, Pe), Pe = _.cross(t.camera.rightWC, Pe, Pe), Pe = _.normalize(Pe, Pe), ie.fromPointNormal(et, Pe);
|
@@ -19170,7 +19202,7 @@ class cw extends ce {
|
|
19170
19202
|
this.translated.raiseEvent(this._getTranslateEvent(e.positionOrPixel, e.windowPosition)), e.type === I.DRAGEND && (this._getTranslateEvent = null, this._transformationHandler.showAxis = P.NONE);
|
19171
19203
|
else if (e.type === I.DRAGSTART && ((s = e == null ? void 0 : e.feature) != null && s[Te])) {
|
19172
19204
|
const r = e.feature[Te];
|
19173
|
-
r !== P.NONE && (this._transformationHandler.showAxis = r, e.map instanceof z ?
|
19205
|
+
r !== P.NONE && (this._transformationHandler.showAxis = r, e.map instanceof z ? ra(r) ? this._getTranslateEvent = this._dragAlongAxis3D(r, e) : na(r) && (this._getTranslateEvent = this._dragAlongPlane3D(r, e)) : ra(r) ? this._getTranslateEvent = this._dragAlongAxis2D(r, e) : na(r) && (this._getTranslateEvent = this._dragAlongPlane2D(r, e)));
|
19174
19206
|
}
|
19175
19207
|
return Promise.resolve(e);
|
19176
19208
|
}
|
@@ -19474,7 +19506,7 @@ function fM(i, t, e, s = _e.TRANSLATE) {
|
|
19474
19506
|
Z.set("olcs_allowPicking", W);
|
19475
19507
|
});
|
19476
19508
|
});
|
19477
|
-
const d = Iu(i.layers), { interactionChain: u, removed: f, destroy: g } =
|
19509
|
+
const d = Iu(i.layers), { interactionChain: u, removed: f, destroy: g } = va(i.maps.eventHandler, e), { exclusiveInteractionId: m } = i.maps.eventHandler, p = i.maps.eventHandler.addExclusiveInteraction(c, () => f.raiseEvent(), 0, m), y = new pw();
|
19478
19510
|
u.addInteraction(y), u.addInteraction(new mw(n));
|
19479
19511
|
const S = new ku();
|
19480
19512
|
u.addInteraction(S);
|
@@ -19496,7 +19528,7 @@ function fM(i, t, e, s = _e.TRANSLATE) {
|
|
19496
19528
|
const fe = ws();
|
19497
19529
|
n.forEach((ke) => {
|
19498
19530
|
gr(fe, ke.getGeometry().getExtent());
|
19499
|
-
}),
|
19531
|
+
}), Qa(fe) || (Z = fr(fe));
|
19500
19532
|
}
|
19501
19533
|
n.forEach((fe) => {
|
19502
19534
|
(fe[bt] ?? fe.getGeometry()).rotate(W, Z);
|
@@ -19507,7 +19539,7 @@ function fM(i, t, e, s = _e.TRANSLATE) {
|
|
19507
19539
|
const ke = ws();
|
19508
19540
|
n.forEach((ks) => {
|
19509
19541
|
gr(ke, ks.getGeometry().getExtent());
|
19510
|
-
}),
|
19542
|
+
}), Qa(ke) || (fe = fr(ke));
|
19511
19543
|
}
|
19512
19544
|
n.forEach((ke) => {
|
19513
19545
|
(ke[bt] ?? ke.getGeometry()).scale(W, Z, fe);
|
@@ -19557,17 +19589,17 @@ function fM(i, t, e, s = _e.TRANSLATE) {
|
|
19557
19589
|
let zt = [];
|
19558
19590
|
const Gs = () => {
|
19559
19591
|
re(zt), zt = n.map((W) => W.on("propertychange", ({ key: Z }) => {
|
19560
|
-
|
19592
|
+
tl.includes(Z) && (M == null || M.setFeatures(n));
|
19561
19593
|
}));
|
19562
|
-
},
|
19594
|
+
}, wa = /* @__PURE__ */ new Map(), il = () => {
|
19563
19595
|
C(), g(), $(), Jt(), l(), re(zt), n.forEach((W) => {
|
19564
|
-
Th(W, a), Nh(W,
|
19596
|
+
Th(W, a), Nh(W, wa);
|
19565
19597
|
}), a.clear(), i.layers.remove(d), q.destroy(), p(), c.destroy(), r.raiseEvent(), r.destroy();
|
19566
19598
|
};
|
19567
|
-
return f.addEventListener(
|
19599
|
+
return f.addEventListener(il), {
|
19568
19600
|
type: ji.EDIT_FEATURES,
|
19569
19601
|
stopped: r,
|
19570
|
-
stop:
|
19602
|
+
stop: il,
|
19571
19603
|
get mode() {
|
19572
19604
|
return w;
|
19573
19605
|
},
|
@@ -19578,9 +19610,9 @@ function fM(i, t, e, s = _e.TRANSLATE) {
|
|
19578
19610
|
scale: L,
|
19579
19611
|
setFeatures(W) {
|
19580
19612
|
n.forEach((Z) => {
|
19581
|
-
Th(Z, a), Nh(Z,
|
19613
|
+
Th(Z, a), Nh(Z, wa);
|
19582
19614
|
}), n.length = 0, n.push(...W), n.forEach((Z) => {
|
19583
|
-
vw(Z, a, o), Sw(Z,
|
19615
|
+
vw(Z, a, o), Sw(Z, wa);
|
19584
19616
|
}), Gs(), M == null || M.setFeatures(W);
|
19585
19617
|
},
|
19586
19618
|
get features() {
|
@@ -19791,7 +19823,7 @@ function bw(i, t, e) {
|
|
19791
19823
|
};
|
19792
19824
|
}
|
19793
19825
|
function gM(i, t, e, s = {}) {
|
19794
|
-
const { interactionChain: r, removed: n, destroy: a } =
|
19826
|
+
const { interactionChain: r, removed: n, destroy: a } = va(i.maps.eventHandler, e), o = Iu(i.layers), l = new ku();
|
19795
19827
|
r.addInteraction(l);
|
19796
19828
|
const c = new BS(s.denyRemoval);
|
19797
19829
|
r.addInteraction(c);
|
@@ -19815,7 +19847,7 @@ function gM(i, t, e, s = {}) {
|
|
19815
19847
|
function w(O) {
|
19816
19848
|
if (y(), S && re(S), O) {
|
19817
19849
|
S = O.on("propertychange", ({ key: q }) => {
|
19818
|
-
|
19850
|
+
tl.includes(q) && w(O);
|
19819
19851
|
}), f = O, f[Ge] = !0;
|
19820
19852
|
const L = O[bt] ?? O.getGeometry(), F = L.getType();
|
19821
19853
|
o.vectorProperties.altitudeMode = t.vectorProperties.getAltitudeMode(O), F === tt.Polygon ? L.get("_vcsGeomType") === tt.BBox ? u = Cw(O, o) : L.getLinearRingCount() === 1 && (u = xw(O, o, s)) : F === tt.LineString ? u = ww(O, o, s) : F === tt.Point ? u = bw(O, o, t) : F === tt.Circle && (u = Mw(O, o)), u ? (r.addInteraction(u.interactionChain), m()) : (ue("EditGeometrySession").warning(`Geometry of type ${F} is currently not supported`), f[Ge] = !1, f = null);
|
@@ -20027,7 +20059,7 @@ function Pw() {
|
|
20027
20059
|
function mM(i, t, e, s = Bt.MULTI, r = Pw()) {
|
20028
20060
|
const n = new E(), a = new E(), o = new E();
|
20029
20061
|
let l = null, c = null, d, u = null;
|
20030
|
-
const { interactionChain: f, removed: g, destroy: m } =
|
20062
|
+
const { interactionChain: f, removed: g, destroy: m } = va(i.maps.eventHandler, e), p = Ew(t, r);
|
20031
20063
|
let y = [];
|
20032
20064
|
function S() {
|
20033
20065
|
l && (l && (f.removeInteraction(l), l.destroy(), l = null), c && (f.removeInteraction(c), c.destroy(), c = null)), y.forEach((L) => {
|
@@ -20117,7 +20149,7 @@ async function pM(i, t) {
|
|
20117
20149
|
altitudeMode: "absolute"
|
20118
20150
|
}
|
20119
20151
|
});
|
20120
|
-
|
20152
|
+
Zo(r);
|
20121
20153
|
let n;
|
20122
20154
|
const [a] = t.maps.getByType(z.className);
|
20123
20155
|
a && (n = a.getScene(), n && !n.primitives.contains(s) && n.primitives.add(s)), t.layers.add(r);
|
@@ -20146,7 +20178,7 @@ async function pM(i, t) {
|
|
20146
20178
|
}
|
20147
20179
|
r.addFeatures(f);
|
20148
20180
|
const g = r.getSource().getExtent();
|
20149
|
-
e =
|
20181
|
+
e = Ao(g, g, 2);
|
20150
20182
|
};
|
20151
20183
|
o();
|
20152
20184
|
const l = [
|
@@ -20183,7 +20215,7 @@ async function pM(i, t) {
|
|
20183
20215
|
destroy: d,
|
20184
20216
|
async zoomToExtent() {
|
20185
20217
|
var g;
|
20186
|
-
if (!i.isValid() ||
|
20218
|
+
if (!i.isValid() || Qa(e))
|
20187
20219
|
return;
|
20188
20220
|
const f = mt.createViewpointFromExtent(e);
|
20189
20221
|
f && await ((g = t.maps.activeMap) == null ? void 0 : g.gotoViewpoint(f));
|
@@ -20195,9 +20227,9 @@ export {
|
|
20195
20227
|
bs as AbstractFeatureProvider,
|
20196
20228
|
ce as AbstractInteraction,
|
20197
20229
|
Ys as AltitudeModeCesium,
|
20198
|
-
|
20230
|
+
Uo as ArcStyle,
|
20199
20231
|
Qe as ArrowEnd,
|
20200
|
-
|
20232
|
+
pa as ArrowStyle,
|
20201
20233
|
P as AxisAndPlanes,
|
20202
20234
|
br as BaseOLMap,
|
20203
20235
|
Pr as CameraLimiter,
|
@@ -20213,7 +20245,7 @@ export {
|
|
20213
20245
|
ES as ClippingObjectManager,
|
20214
20246
|
Zw as ClusterContext,
|
20215
20247
|
Nt as Collection,
|
20216
|
-
|
20248
|
+
Ko as CoordinateAtPixel,
|
20217
20249
|
LS as CreateBBoxInteraction,
|
20218
20250
|
IS as CreateCircleInteraction,
|
20219
20251
|
PS as CreateLineStringInteraction,
|
@@ -20225,7 +20257,7 @@ export {
|
|
20225
20257
|
ge as DataState,
|
20226
20258
|
qe as DeclarativeStyleItem,
|
20227
20259
|
Pv as DefaultObliqueCollection,
|
20228
|
-
|
20260
|
+
ia as DisplayQuality,
|
20229
20261
|
Pt as DisplayQualityLevel,
|
20230
20262
|
pw as EditFeaturesMouseOverInteraction,
|
20231
20263
|
BS as EditGeometryMouseOverInteraction,
|
@@ -20241,13 +20273,13 @@ export {
|
|
20241
20273
|
Xv as FeatureProviderInteraction,
|
20242
20274
|
Ti as FeatureStoreLayer,
|
20243
20275
|
uS as FeatureStoreLayerChanges,
|
20244
|
-
|
20276
|
+
da as FeatureVisibility,
|
20245
20277
|
ne as FeatureVisibilityAction,
|
20246
20278
|
jS as FlightCollection,
|
20247
20279
|
Os as FlightInstance,
|
20248
20280
|
Tr as GeoJSONLayer,
|
20249
20281
|
tt as GeometryType,
|
20250
|
-
|
20282
|
+
go as GlobalHider,
|
20251
20283
|
Ii as IndexedCollection,
|
20252
20284
|
ju as InsertVertexInteraction,
|
20253
20285
|
is as InteractionChain,
|
@@ -20255,17 +20287,17 @@ export {
|
|
20255
20287
|
hi as LayerCollection,
|
20256
20288
|
ts as LayerImplementation,
|
20257
20289
|
lv as LayerObliqueImpl,
|
20258
|
-
|
20290
|
+
ga as LayerOpenlayersImpl,
|
20259
20291
|
pe as LayerState,
|
20260
20292
|
Qn as MVTTileProvider,
|
20261
|
-
|
20293
|
+
Qo as MapCollection,
|
20262
20294
|
ku as MapInteractionController,
|
20263
20295
|
Et as MapState,
|
20264
20296
|
Yr as ModelFill,
|
20265
20297
|
H as ModificationKeyType,
|
20266
20298
|
Wi as ObliqueCollection,
|
20267
|
-
|
20268
|
-
|
20299
|
+
nh as ObliqueDataSet,
|
20300
|
+
Wo as ObliqueImage,
|
20269
20301
|
xn as ObliqueImageMeta,
|
20270
20302
|
Ne as ObliqueMap,
|
20271
20303
|
mv as ObliqueProvider,
|
@@ -20304,7 +20336,7 @@ export {
|
|
20304
20336
|
Ar as TerrainLayer,
|
20305
20337
|
Kw as TileDebugOpenlayersImpl,
|
20306
20338
|
St as TileProvider,
|
20307
|
-
|
20339
|
+
So as TileProviderFeatureProvider,
|
20308
20340
|
We as TilingScheme,
|
20309
20341
|
iS as TmsCesiumImpl,
|
20310
20342
|
mS as TmsOpenlayersImpl,
|
@@ -20316,7 +20348,7 @@ export {
|
|
20316
20348
|
W_ as VcsCameraPrimitive,
|
20317
20349
|
E as VcsEvent,
|
20318
20350
|
Li as VcsMap,
|
20319
|
-
|
20351
|
+
yh as VcsModule,
|
20320
20352
|
kt as VcsObject,
|
20321
20353
|
tv as VectorCesiumImpl,
|
20322
20354
|
ev as VectorContext,
|
@@ -20330,7 +20362,7 @@ export {
|
|
20330
20362
|
Rr as VectorTileLayer,
|
20331
20363
|
pS as VectorTileOpenlayersImpl,
|
20332
20364
|
mt as Viewpoint,
|
20333
|
-
|
20365
|
+
ta as WFSLayer,
|
20334
20366
|
Xi as WMSFeatureProvider,
|
20335
20367
|
Gr as WMSLayer,
|
20336
20368
|
kr as WMTSLayer,
|
@@ -20341,16 +20373,16 @@ export {
|
|
20341
20373
|
lr as actuallyIsCircle,
|
20342
20374
|
au as addArrowsToContext,
|
20343
20375
|
ps as addPrimitiveToContext,
|
20344
|
-
|
20376
|
+
ma as addPrimitivesToContext,
|
20345
20377
|
je as alreadyTransformedToImage,
|
20346
20378
|
ui as alreadyTransformedToMercator,
|
20347
20379
|
xh as anchorFromGeojsonFeature,
|
20348
20380
|
nM as anchorFromViewpoint,
|
20349
20381
|
kS as anchorToGeojsonFeature,
|
20350
20382
|
aM as anchorToViewpoint,
|
20351
|
-
|
20383
|
+
Ia as angleEqualsEpsilon,
|
20352
20384
|
X0 as arcToCesium,
|
20353
|
-
|
20385
|
+
co as blackColor,
|
20354
20386
|
Vv as calculateMinLevel,
|
20355
20387
|
_t as cartesian2DDistance,
|
20356
20388
|
y_ as cartesian3DDistance,
|
@@ -20359,17 +20391,17 @@ export {
|
|
20359
20391
|
Fc as categoryClassRegistry,
|
20360
20392
|
_i as cesiumColorToColor,
|
20361
20393
|
vi as cesiumTilesetLastUpdated,
|
20362
|
-
|
20394
|
+
eh as checkLineIntersection,
|
20363
20395
|
Yc as circleFromCenterRadius,
|
20364
20396
|
L0 as circleToCesium,
|
20365
20397
|
dM as clampFeature,
|
20366
|
-
|
20398
|
+
_a as clearClippingPlanes,
|
20367
20399
|
Hw as colorInCanvas,
|
20368
20400
|
T_ as combineFont,
|
20369
20401
|
Y0 as convert,
|
20370
20402
|
Zc as convertGeometryToPolygon,
|
20371
20403
|
Fw as coordinateAtDistance,
|
20372
|
-
|
20404
|
+
Rl as coordinateEqualsEpsilon,
|
20373
20405
|
hr as copyClippingPlanesToCollection,
|
20374
20406
|
ew as create2DHandlers,
|
20375
20407
|
KS as create3DHandlers,
|
@@ -20399,20 +20431,20 @@ export {
|
|
20399
20431
|
Z_ as deserializeViewpoint,
|
20400
20432
|
ei as destroyCollection,
|
20401
20433
|
AS as detectBrowserLocale,
|
20402
|
-
|
20434
|
+
fa as doNotTransform,
|
20403
20435
|
uM as drapeGeometryOnTerrain,
|
20404
20436
|
Uc as embedIconsInStyle,
|
20405
20437
|
Bw as emptyColor,
|
20406
20438
|
D_ as emptyStyle,
|
20407
|
-
|
20439
|
+
po as enforceEndingVertex,
|
20408
20440
|
m0 as enforceRightHand,
|
20409
20441
|
hw as ensureFeatureAbsolute,
|
20410
20442
|
sM as exportFlightAsGeoJson,
|
20411
20443
|
rM as exportFlightPathAsGeoJson,
|
20412
20444
|
si as featureArcStruct,
|
20413
20445
|
Zr as featureExists,
|
20414
|
-
|
20415
|
-
|
20446
|
+
$a as featureFromOptions,
|
20447
|
+
Go as featureProviderClassRegistry,
|
20416
20448
|
It as featureStoreStateSymbol,
|
20417
20449
|
G_ as fromCesiumColor,
|
20418
20450
|
os as fvLastUpdated,
|
@@ -20422,7 +20454,7 @@ export {
|
|
20422
20454
|
nS as getCanvasFromFeatures,
|
20423
20455
|
k0 as getCartesian3AndWGS84FromCoordinates,
|
20424
20456
|
cn as getCartesian3Options,
|
20425
|
-
|
20457
|
+
lo as getCartesianBearing,
|
20426
20458
|
__ as getCartesianPitch,
|
20427
20459
|
Vt as getCartographicFromPlane,
|
20428
20460
|
ai as getCesiumColor,
|
@@ -20440,7 +20472,7 @@ export {
|
|
20440
20472
|
Rc as getFillFromOptions,
|
20441
20473
|
Vn as getFillOptions,
|
20442
20474
|
Ns as getFlatCoordinatesFromGeometry,
|
20443
|
-
|
20475
|
+
Vo as getFlatCoordinatesFromSimpleGeometry,
|
20444
20476
|
Nu as getFlightPathCoordinatesFromInstance,
|
20445
20477
|
qv as getFormat,
|
20446
20478
|
f0 as getHeightAboveGround,
|
@@ -20454,19 +20486,19 @@ export {
|
|
20454
20486
|
l0 as getMaterialAppearance,
|
20455
20487
|
Nc as getMidPoint,
|
20456
20488
|
d0 as getMinHeightOrGroundLevel,
|
20457
|
-
|
20489
|
+
ql as getModelOptions,
|
20458
20490
|
hn as getNearFarValueOptions,
|
20459
20491
|
ni as getObjectFromClassRegistry,
|
20460
|
-
|
20461
|
-
|
20492
|
+
th as getPolygonizedGeometry,
|
20493
|
+
yo as getPrimitiveOptions,
|
20462
20494
|
yu as getResolutionOptions,
|
20463
20495
|
jc as getShapeFromOptions,
|
20464
20496
|
Tu as getSplineAndTimesForInstance,
|
20465
20497
|
bn as getStateFromStatesArray,
|
20466
|
-
|
20467
|
-
|
20498
|
+
jl as getStoreyHeights,
|
20499
|
+
$l as getStoreyOptions,
|
20468
20500
|
ot as getStringColor,
|
20469
|
-
|
20501
|
+
zo as getStrokeFromOptions,
|
20470
20502
|
Mr as getStrokeOptions,
|
20471
20503
|
jw as getStyleFromOptions,
|
20472
20504
|
Vw as getStyleOptions,
|
@@ -20475,18 +20507,18 @@ export {
|
|
20475
20507
|
Or as getTerrainProviderForUrl,
|
20476
20508
|
kc as getTextFromOptions,
|
20477
20509
|
Gc as getTextOptions,
|
20478
|
-
|
20510
|
+
ya as getTileLoadFunction,
|
20479
20511
|
xu as getTilingScheme,
|
20480
20512
|
Pu as getURL,
|
20481
20513
|
oM as getVcsAppById,
|
20482
20514
|
vu as getVersionFromImageJson,
|
20483
|
-
|
20515
|
+
fh as getViewDirectionFromViewpoint,
|
20484
20516
|
Ou as getWMSSource,
|
20485
20517
|
nv as getZoom,
|
20486
20518
|
dt as globalHidden,
|
20487
20519
|
Ks as globalHiderLastUpdated,
|
20488
20520
|
Qw as globeLoaded,
|
20489
|
-
|
20521
|
+
Sa as greyedOutColor,
|
20490
20522
|
Te as handlerSymbol,
|
20491
20523
|
Xw as hasSameOrigin,
|
20492
20524
|
P_ as hexToOlColor,
|
@@ -20494,53 +20526,53 @@ export {
|
|
20494
20526
|
Ee as highlighted,
|
20495
20527
|
ov as imageGeometryToMercatorGeometry,
|
20496
20528
|
Rw as initialBearingBetweenCoords,
|
20497
|
-
|
20498
|
-
|
20529
|
+
ra as is1DAxis,
|
20530
|
+
na as is2DAxis,
|
20499
20531
|
Hi as isMobile,
|
20500
|
-
|
20532
|
+
uo as isOverrideCollection,
|
20501
20533
|
jv as isProvidedFeature,
|
20502
20534
|
Kt as isSameOrigin,
|
20503
20535
|
iv as isTerrainTileAvailable,
|
20504
20536
|
Lr as isTiledFeature,
|
20505
20537
|
Ae as layerClassRegistry,
|
20506
|
-
|
20538
|
+
Xl as lineStringToCesium,
|
20507
20539
|
ti as makeOverrideCollection,
|
20508
20540
|
Ts as mapClassRegistry,
|
20509
|
-
|
20541
|
+
Zo as markVolatile,
|
20510
20542
|
n0 as maxZIndex,
|
20511
20543
|
av as mercatorGeometryToImageGeometry,
|
20512
20544
|
B as mercatorProjection,
|
20513
20545
|
Xn as mercatorResolutionsToLevel,
|
20514
20546
|
xt as mercatorToCartesian,
|
20515
|
-
|
20547
|
+
Ao as mercatorToWgs84Transformer,
|
20516
20548
|
Xe as moduleIdSymbol,
|
20517
20549
|
Mn as modulo,
|
20518
20550
|
ci as mouseOverSymbol,
|
20519
20551
|
bt as obliqueGeometry,
|
20520
20552
|
mu as obliqueViewDirectionNames,
|
20521
20553
|
I_ as olColorToCesiumColor,
|
20522
|
-
|
20554
|
+
Dl as olColorToHex,
|
20523
20555
|
Bn as originalFeatureSymbol,
|
20524
20556
|
oi as originalStyle,
|
20525
|
-
|
20557
|
+
Ta as parseCartesian3,
|
20526
20558
|
Ve as parseColor,
|
20527
20559
|
RS as parseFlightOptionsFromGeoJson,
|
20528
20560
|
zw as parseFont,
|
20529
20561
|
wi as parseGeoJSON,
|
20530
|
-
|
20562
|
+
rh as parseImageData,
|
20531
20563
|
cv as parseImageMeta,
|
20532
20564
|
uv as parseLegacyImageData,
|
20533
|
-
|
20565
|
+
La as parseNearFarScalar,
|
20534
20566
|
ss as parseStoreyHeights,
|
20535
20567
|
lw as placeGeometryOnTerrain,
|
20536
20568
|
ow as pointOnLine2D,
|
20537
20569
|
aw as pointOnLine3D,
|
20538
|
-
|
20539
|
-
|
20570
|
+
Yl as pointToCesium,
|
20571
|
+
Ul as polygonToCesium,
|
20540
20572
|
Bc as propertyEqualsEpsilon,
|
20541
|
-
|
20573
|
+
Jo as rectangleToExtent,
|
20542
20574
|
Ri as removeArrayFromCollection,
|
20543
|
-
|
20575
|
+
Bl as removeEndingVertex,
|
20544
20576
|
Kc as removeEndingVertexFromGeometry,
|
20545
20577
|
ms as removeFeatureFromMap,
|
20546
20578
|
dv as requestArrayBuffer,
|
@@ -20549,20 +20581,20 @@ export {
|
|
20549
20581
|
J_ as serializeLayer,
|
20550
20582
|
Mh as setClippingPlanes,
|
20551
20583
|
m_ as setDefaultProjectionOptions,
|
20552
|
-
|
20584
|
+
ih as setNewGeometry,
|
20553
20585
|
Z0 as setReferenceForPicking,
|
20554
|
-
|
20586
|
+
Kl as setSplitDirectionOnPrimitives,
|
20555
20587
|
J0 as setupScalingPrimitiveCollection,
|
20556
20588
|
Iu as setupScratchLayer,
|
20557
20589
|
R_ as shapeCategory,
|
20558
|
-
|
20590
|
+
Ql as sortRealWordEdgeCoordinates,
|
20559
20591
|
hM as startCreateFeatureSession,
|
20560
20592
|
fM as startEditFeaturesSession,
|
20561
20593
|
gM as startEditGeometrySession,
|
20562
20594
|
mM as startSelectFeaturesSession,
|
20563
20595
|
Xr as styleClassRegistry,
|
20564
20596
|
z_ as synchronizeFeatureVisibility,
|
20565
|
-
|
20597
|
+
jo as synchronizeFeatureVisibilityWithSource,
|
20566
20598
|
Ls as tileProviderClassRegistry,
|
20567
20599
|
Jw as tiledLayerLoaded,
|
20568
20600
|
rS as toContext,
|
@@ -20574,10 +20606,10 @@ export {
|
|
20574
20606
|
Fv as updateLegacyFeature,
|
20575
20607
|
su as validateCircle,
|
20576
20608
|
kw as validateHexColor,
|
20577
|
-
|
20609
|
+
Bo as validateLineString,
|
20578
20610
|
fu as validatePoint,
|
20579
20611
|
eu as validatePolygon,
|
20580
|
-
|
20612
|
+
Vl as validateStoreys,
|
20581
20613
|
Y as vcsLayerName,
|
20582
20614
|
li as vcsMetaVersion,
|
20583
20615
|
lt as vectorStyleSymbol,
|