@vcmap/ui 5.3.2 → 5.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/cesium.js +1 -1
- package/dist/assets/{core.5e0ca2.js → core.10100b.js} +608 -601
- package/dist/assets/core.js +1 -1
- package/dist/assets/index-8a3e545b.js +1 -0
- package/dist/assets/ol.js +1 -1
- package/dist/assets/{ui.078e16.css → ui.a7d30a.css} +1 -1
- package/dist/assets/{ui.078e16.js → ui.a7d30a.js} +10 -10
- package/dist/assets/ui.js +1 -1
- package/dist/assets/vue.js +2 -2
- package/dist/assets/{vuetify.6ef1af.js → vuetify.7ec09f.js} +1 -1
- package/dist/assets/vuetify.js +2 -2
- package/dist/index.html +1 -1
- package/package.json +2 -2
- package/src/application/VcsSplashScreen.vue +1 -0
- package/src/manager/collectionManager/collectionComponentClass.js +5 -1
- package/dist/assets/index-2c09148f.js +0 -1
- /package/dist/assets/{cesium.a9cd10.js → cesium.dda0d2.js} +0 -0
- /package/dist/assets/{ol.8edcc5.js → ol.8896b2.js} +0 -0
- /package/dist/assets/{vue.007115.js → vue.ac1929.js} +0 -0
- /package/dist/assets/{vuetify.6ef1af.css → vuetify.7ec09f.css} +0 -0
@@ -1,9 +1,9 @@
|
|
1
1
|
var Vu = Object.defineProperty;
|
2
2
|
var $u = (i, t, e) => t in i ? Vu(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
|
3
3
|
var h = (i, t, e) => ($u(i, typeof t != "symbol" ? t + "" : t, e), e);
|
4
|
-
import { ol$proj$getTransform as Fe, ol$proj$get as Bu, ol$proj$equivalent as Uu, ol$proj$proj4$register as
|
5
|
-
import { Math as N, Cartesian3 as _, Cartographic as se, Cesium3DTileStyle as xn, Cesium3DTileColorBlendMode as gn, 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 bn, Primitive as pt, GeometryInstance as ct, FrustumGeometry as Od, ColorGeometryInstanceAttribute as ur, PerInstanceColorAppearance as Ms, FrustumOutlineGeometry as Ed, destroyObject as Pd, EasingFunction as Id, ConditionsExpression as Ld, Expression as Td, HeightReference as Le, ClassificationType as ys, NearFarScalar as er, SplitDirection as Me, SceneTransforms as Nd, MaterialAppearance as On, ShadowMode as Gr, ClassificationPrimitive as Uh, GroundPrimitive as
|
6
|
-
const Qi = Symbol("isMatcher"), Sf = Symbol("Integer"), wf = Symbol("NonEmptyString"),
|
4
|
+
import { ol$proj$getTransform as Fe, ol$proj$get as Bu, ol$proj$equivalent as Uu, ol$proj$proj4$register as Jo, ol$geom$Circle as bt, ol$geom$GeometryCollection as Fr, ol$style$Style as ee, ol$style$Fill as st, ol$style$Stroke as $e, ol$style$Text as po, ol$style$Icon as Ci, ol$style$Circle as xi, ol$style$RegularShape as Rr, ol$has$DEVICE_PIXEL_RATIO as qu, ol$style$Image as Th, ol$Feature as ae, ol$extent$containsCoordinate as Va, ol$Map as Wu, ol$interaction$defaults as Xu, ol$Observable$unByKey as re, ol$View as yo, ol$easing$inAndOut as Yu, ol$extent$containsXY as Nh, ol$extent$boundingExtent as ar, ol$layer$Vector as Dh, ol$extent$getBottomLeft as _o, ol$geom$SimpleGeometry as Zu, ol$geom$Point as Dt, ol$geom$LineString as qt, ol$geom$Polygon as At, ol$geom$MultiPoint as Ah, ol$geom$MultiLineString as Fh, ol$geom$MultiPolygon as or, ol$sphere$offset as fn, ol$geom$Polygon$fromCircle as Rh, ol$geom$Polygon$circular as Ku, ol$colorlike$asColorLike as Ju, Feature as Ft, ol$ImageState as Qr, ol$extent$getBottomRight as Gh, ol$extent$getTopRight as kh, ol$extent$getTopLeft as ta, ol$proj$transform as ki, ol$source$Vector as lr, ol$tilegrid$createXYZ as zh, ol$TileState as Hh, ol$proj$Projection as Qu, ol$tilegrid$TileGrid as jh, ol$source$TileImage as ed, ol$layer$Tile as Es, ol$extent$buffer as Vh, ol$extent$getCenter as hr, ol$geom$Polygon$fromExtent as td, ol$proj$transformExtent as Qo, ol$sphere$getDistance as id, ol$format$GeoJSON as $h, ol$extent$getWidth as $a, ol$source$TileWMS as sd, ol$source$ImageWMS as rd, ol$format$GML2 as Ba, ol$format$WFS as Ua, ol$format$GML3 as qa, ol$extent$createEmpty as ws, ol$structs$LRUCache as nd, ol$extent$createOrUpdateFromCoordinate as ad, ol$render$canvas$Immediate as od, ol$geom$flat$transform$transform2D as ld, ol$extent$intersects as hd, ol$geom$SimpleGeometry$transformGeom2D as cd, ol$transform$scale as ud, ol$transform$create as dd, ol$transform$compose as fd, ol$extent$extend as cr, ol$source$OSM as gd, ol$layer$Image as Bh, ol$source$ImageStatic as md, ol$source$TileDebug as pd, ol$source$XYZ as yd, ol$source$VectorTile as _d, ol$layer$VectorTile as vd, ol$tilegrid$WMTS as Sd, ol$source$WMTS as wd, ol$format$MVT as Md, ol$coordinate$equals as Cd, ol$interaction$DragPan as xd, ol$extent$isEmpty as Wa, ol$geom$LinearRing as bd } from "./ol.8896b2.js";
|
5
|
+
import { Math as N, Cartesian3 as _, Cartographic as se, Cesium3DTileStyle as xn, Cesium3DTileColorBlendMode as gn, 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 bn, Primitive as pt, GeometryInstance as ct, FrustumGeometry as Od, ColorGeometryInstanceAttribute as ur, PerInstanceColorAppearance as Ms, FrustumOutlineGeometry as Ed, destroyObject as Pd, EasingFunction as Id, ConditionsExpression as Ld, Expression as Td, HeightReference as Le, ClassificationType as ys, NearFarScalar as er, SplitDirection as Me, SceneTransforms as Nd, MaterialAppearance as On, ShadowMode as Gr, ClassificationPrimitive as Uh, GroundPrimitive as el, PolylineMaterialAppearance as Xa, GroundPolylinePrimitive as tl, PolygonGeometry as Dd, PolygonOutlineGeometry as Ad, GroundPolylineGeometry as vo, PolylineGeometry as zi, PolygonHierarchy as Ya, CircleGeometry as Fd, CircleOutlineGeometry as Rd, HeadingPitchRoll as Vi, Matrix4 as R, Transforms as bi, Model as So, sampleTerrainMostDetailed as ia, ModelAnimationLoop as Gd, CylinderOutlineGeometry as kd, CylinderGeometry as qh, EllipsoidOutlineGeometry as zd, EllipsoidGeometry as Wh, SphereOutlineGeometry as Hd, SphereGeometry as jd, BoxOutlineGeometry as Vd, BoxGeometry as Xh, WallGeometry as $d, WallOutlineGeometry as Bd, LabelStyle as ya, HorizontalOrigin as _a, CatmullRomSpline as Yh, ArcType as En, PrimitiveCollection as Oi, BillboardCollection as Ud, LabelCollection as qd, Resource as Wd, CesiumTerrainProvider as il, Cartesian4 as sl, sampleTerrain as Xd, Ellipsoid as Za, Clock as Yd, DataSourceClock as Zd, JulianDate as Zh, KeyboardEventModifier as va, ScreenSpaceEventType as pi, CesiumWidget as Kd, DataSourceDisplay as rl, DataSourceCollection as nl, RequestScheduler as Jd, ScreenSpaceEventHandler as Qd, Ray as Kh, Camera as Jh, ImageryLayer as Ji, CustomDataSource as Qh, BoundingSphere as ec, Intersect as ef, BillboardVisualizer as tf, LabelVisualizer as sf, PointVisualizer as rf, WebMercatorTilingScheme as wo, GeographicTilingScheme as tc, Rectangle as yt, Cesium3DTileset as Pn, Composite3DTileContent as nf, HeadingPitchRange as af, BoundingSphereState as al, OpenStreetMapImageryProvider as of, SingleTileImageryProvider as lf, TileMapServiceImageryProvider as hf, Event as ol, WebMapServiceImageryProvider as cf, WebMapTileServiceImageryProvider as uf, EntityCollection as df, CzmlDataSource as ff, Plane as ie, ClippingPlaneCollection as dr, ClippingPlane as fr, ConstantProperty as gf, Globe as mf, LinearSpline as pf, QuaternionSpline as yf, CoplanarPolygonGeometry as _f, IntersectionTests as vf } from "./cesium.dda0d2.js";
|
6
|
+
const Qi = Symbol("isMatcher"), Sf = Symbol("Integer"), wf = Symbol("NonEmptyString"), Mo = /* @__PURE__ */ new Map();
|
7
7
|
[
|
8
8
|
[String, "string"],
|
9
9
|
[Number, "number"],
|
@@ -12,7 +12,7 @@ const Qi = Symbol("isMatcher"), Sf = Symbol("Integer"), wf = Symbol("NonEmptyStr
|
|
12
12
|
[void 0, "undefined"],
|
13
13
|
[Symbol, "symbol"]
|
14
14
|
].forEach(([i, t]) => {
|
15
|
-
|
15
|
+
Mo.set(i, t);
|
16
16
|
});
|
17
17
|
function Mf(i) {
|
18
18
|
return i == null ? void 0 : i[Qi];
|
@@ -59,14 +59,14 @@ function xf(i, t, e) {
|
|
59
59
|
}
|
60
60
|
return null;
|
61
61
|
}
|
62
|
-
function
|
62
|
+
function Ka(i, t, e, s) {
|
63
63
|
const r = s ? `${s}.` : "";
|
64
64
|
if (!gr(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 gr(t[l]) ? a =
|
69
|
+
return gr(t[l]) ? a = Ka(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 bf(i, t) {
|
|
77
77
|
return Number.isInteger(i) ? !1 : `expected ${Be(i)} to be an integer number`;
|
78
78
|
if (t === wf)
|
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 = Mo.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 sa(i) {
|
84
84
|
if (i === null)
|
85
85
|
return "null";
|
86
|
-
const t =
|
86
|
+
const t = Mo.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 ia(i) {
|
|
98
98
|
if (gr(i)) {
|
99
99
|
const n = {};
|
100
100
|
Object.keys(i).forEach((a) => {
|
101
|
-
n[a] =
|
101
|
+
n[a] = sa(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 xf(s, r, e);
|
129
129
|
if (r === Object)
|
130
|
-
return
|
130
|
+
return Ka(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 ${sa(r)}`;
|
133
133
|
if (typeof r == "object") {
|
134
|
-
const o =
|
134
|
+
const o = Ka(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 ic(i) {
|
|
166
166
|
return t[Qi] = !0, t;
|
167
167
|
}
|
168
168
|
function Ae(...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) => sa(r)).join(" or ")}` : !1;
|
170
170
|
return t[Qi] = !0, t;
|
171
171
|
}
|
172
172
|
function Pf(i) {
|
@@ -177,8 +177,8 @@ function Pf(i) {
|
|
177
177
|
};
|
178
178
|
return t[Qi] = !0, t;
|
179
179
|
}
|
180
|
-
function
|
181
|
-
const t = (e) => gr(e) ? Object.values(e).every((r) => es(r, i)) ? !1 : `Not all values of ${Be(e)} are of type ${
|
180
|
+
function ll(i) {
|
181
|
+
const t = (e) => gr(e) ? Object.values(e).every((r) => es(r, i)) ? !1 : `Not all values of ${Be(e)} are of type ${sa(i)}` : `Expected ${Be(e)} to be a plain Object`;
|
182
182
|
return t[Qi] = !0, t;
|
183
183
|
}
|
184
184
|
function In(i) {
|
@@ -189,7 +189,7 @@ function In(i) {
|
|
189
189
|
function If(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, Lf = 4,
|
192
|
+
var $i = 1, Bi = 2, _s = 3, Lf = 4, Ja = 5, hl = 6378137, Tf = 6356752314e-3, cl = 0.0066943799901413165, tr = 484813681109536e-20, O = Math.PI / 2, Nf = 0.16666666666666666, Df = 0.04722222222222222, Af = 0.022156084656084655, T = 1e-10, He = 0.017453292519943295, $t = 57.29577951308232, K = Math.PI / 4, mr = 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 Ff = {
|
|
207
207
|
ft: { to_meter: 0.3048 },
|
208
208
|
"us-ft": { to_meter: 1200 / 3937 }
|
209
209
|
};
|
210
|
-
var
|
210
|
+
var ul = /[\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(ul, ""), r = -1, n, a; ++r < e.length; )
|
215
|
+
if (n = e[r], a = n.toLowerCase().replace(ul, ""), a === s)
|
216
216
|
return i[n];
|
217
217
|
}
|
218
|
-
function
|
218
|
+
function Qa(i) {
|
219
219
|
var t = {}, e = i.split("+").map(function(o) {
|
220
220
|
return o.trim();
|
221
221
|
}).filter(function(o) {
|
@@ -321,7 +321,7 @@ function Ja(i) {
|
|
321
321
|
r = e[s], s in a ? (n = a[s], typeof n == "function" ? n(r) : t[n] = r) : t[s] = r;
|
322
322
|
return typeof t.datumCode == "string" && t.datumCode !== "WGS84" && (t.datumCode = t.datumCode.toLowerCase()), t;
|
323
323
|
}
|
324
|
-
var pr = 1, sc = 2, rc = 3, Ln = 4, nc = 5,
|
324
|
+
var pr = 1, sc = 2, rc = 3, Ln = 4, nc = 5, Co = -1, Rf = /\s/, Gf = /[A-Za-z]/, kf = /[A-Za-z84_]/, ra = /[,\]]/, ac = /[\d\.E\-\+]/;
|
325
325
|
function gi(i) {
|
326
326
|
if (typeof i != "string")
|
327
327
|
throw new Error("not a string");
|
@@ -346,7 +346,7 @@ gi.prototype.readCharicter = function() {
|
|
346
346
|
return this.afterquote(i);
|
347
347
|
case rc:
|
348
348
|
return this.number(i);
|
349
|
-
case
|
349
|
+
case Co:
|
350
350
|
return;
|
351
351
|
}
|
352
352
|
};
|
@@ -355,7 +355,7 @@ gi.prototype.afterquote = function(i) {
|
|
355
355
|
this.word += '"', this.state = Ln;
|
356
356
|
return;
|
357
357
|
}
|
358
|
-
if (
|
358
|
+
if (ra.test(i)) {
|
359
359
|
this.word = this.word.trim(), this.afterItem(i);
|
360
360
|
return;
|
361
361
|
}
|
@@ -367,7 +367,7 @@ gi.prototype.afterItem = function(i) {
|
|
367
367
|
return;
|
368
368
|
}
|
369
369
|
if (i === "]") {
|
370
|
-
this.level--, this.word !== null && (this.currentObject.push(this.word), this.word = null), this.state = pr, this.currentObject = this.stack.pop(), this.currentObject || (this.state =
|
370
|
+
this.level--, this.word !== null && (this.currentObject.push(this.word), this.word = null), this.state = pr, this.currentObject = this.stack.pop(), this.currentObject || (this.state = Co);
|
371
371
|
return;
|
372
372
|
}
|
373
373
|
};
|
@@ -376,7 +376,7 @@ gi.prototype.number = function(i) {
|
|
376
376
|
this.word += i;
|
377
377
|
return;
|
378
378
|
}
|
379
|
-
if (
|
379
|
+
if (ra.test(i)) {
|
380
380
|
this.word = parseFloat(this.word), this.afterItem(i);
|
381
381
|
return;
|
382
382
|
}
|
@@ -399,7 +399,7 @@ gi.prototype.keyword = function(i) {
|
|
399
399
|
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 = pr;
|
400
400
|
return;
|
401
401
|
}
|
402
|
-
if (
|
402
|
+
if (ra.test(i)) {
|
403
403
|
this.afterItem(i);
|
404
404
|
return;
|
405
405
|
}
|
@@ -418,7 +418,7 @@ gi.prototype.neutral = function(i) {
|
|
418
418
|
this.word = i, this.state = rc;
|
419
419
|
return;
|
420
420
|
}
|
421
|
-
if (
|
421
|
+
if (ra.test(i)) {
|
422
422
|
this.afterItem(i);
|
423
423
|
return;
|
424
424
|
}
|
@@ -427,7 +427,7 @@ gi.prototype.neutral = function(i) {
|
|
427
427
|
gi.prototype.output = function() {
|
428
428
|
for (; this.place < this.text.length; )
|
429
429
|
this.readCharicter();
|
430
|
-
if (this.state ===
|
430
|
+
if (this.state === Co)
|
431
431
|
return this.root;
|
432
432
|
throw new Error('unable to parse string "' + this.text + '". State is ' + this.state);
|
433
433
|
};
|
@@ -435,7 +435,7 @@ function zf(i) {
|
|
435
435
|
var t = new gi(i);
|
436
436
|
return t.output();
|
437
437
|
}
|
438
|
-
function
|
438
|
+
function dl(i, t, e) {
|
439
439
|
Array.isArray(t) && (e.unshift(t), t = null);
|
440
440
|
var s = t ? {} : i, r = e.reduce(function(n, a) {
|
441
441
|
return us(a, n), n;
|
@@ -508,13 +508,13 @@ function us(i, t) {
|
|
508
508
|
case "FITTED_CS":
|
509
509
|
case "LOCAL_DATUM":
|
510
510
|
case "DATUM":
|
511
|
-
i[0] = ["name", i[0]],
|
511
|
+
i[0] = ["name", i[0]], dl(t, e, i);
|
512
512
|
return;
|
513
513
|
default:
|
514
514
|
for (s = -1; ++s < i.length; )
|
515
515
|
if (!Array.isArray(i[s]))
|
516
516
|
return us(i, t[e]);
|
517
|
-
return
|
517
|
+
return dl(t, e, i);
|
518
518
|
}
|
519
519
|
}
|
520
520
|
var Hf = 0.017453292519943295;
|
@@ -591,7 +591,7 @@ function Je(i) {
|
|
591
591
|
var t = this;
|
592
592
|
if (arguments.length === 2) {
|
593
593
|
var e = arguments[1];
|
594
|
-
typeof e == "string" ? e.charAt(0) === "+" ? Je[i] =
|
594
|
+
typeof e == "string" ? e.charAt(0) === "+" ? Je[i] = Qa(arguments[1]) : Je[i] = oc(arguments[1]) : Je[i] = e;
|
595
595
|
} else if (arguments.length === 1) {
|
596
596
|
if (Array.isArray(i))
|
597
597
|
return i.map(function(s) {
|
@@ -643,14 +643,14 @@ function Kf(i) {
|
|
643
643
|
if (Xf(t))
|
644
644
|
return Je["EPSG:3857"];
|
645
645
|
var e = Yf(t);
|
646
|
-
return e ?
|
646
|
+
return e ? Qa(e) : t;
|
647
647
|
}
|
648
648
|
if (Zf(i))
|
649
|
-
return
|
649
|
+
return Qa(i);
|
650
650
|
} else
|
651
651
|
return i;
|
652
652
|
}
|
653
|
-
function
|
653
|
+
function fl(i, t) {
|
654
654
|
i = i || {};
|
655
655
|
var e, s;
|
656
656
|
if (!t)
|
@@ -718,14 +718,14 @@ const ig = {
|
|
718
718
|
};
|
719
719
|
function sg() {
|
720
720
|
}
|
721
|
-
function
|
721
|
+
function gl(i) {
|
722
722
|
return i;
|
723
723
|
}
|
724
724
|
var rg = ["longlat", "identity"];
|
725
725
|
const ng = {
|
726
726
|
init: sg,
|
727
|
-
forward:
|
728
|
-
inverse:
|
727
|
+
forward: gl,
|
728
|
+
inverse: gl,
|
729
729
|
names: rg
|
730
730
|
};
|
731
731
|
var ag = [ig, ng], mn = {}, Tn = [];
|
@@ -1082,7 +1082,7 @@ Ge.rnb72 = {
|
|
1082
1082
|
};
|
1083
1083
|
function fg(i, t, e, s, r, n, a) {
|
1084
1084
|
var o = {};
|
1085
|
-
return i === void 0 || i === "none" ? o.datum_type =
|
1085
|
+
return i === void 0 || i === "none" ? o.datum_type = Ja : o.datum_type = Lf, 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;
|
1086
1086
|
}
|
1087
1087
|
var hc = {};
|
1088
1088
|
function gg(i, t) {
|
@@ -1120,14 +1120,14 @@ function _g(i, t) {
|
|
1120
1120
|
nFields: i.getInt32(8, t),
|
1121
1121
|
nSubgridFields: i.getInt32(24, t),
|
1122
1122
|
nSubgrids: i.getInt32(40, t),
|
1123
|
-
shiftType:
|
1123
|
+
shiftType: eo(i, 56, 56 + 8).trim(),
|
1124
1124
|
fromSemiMajorAxis: i.getFloat64(120, t),
|
1125
1125
|
fromSemiMinorAxis: i.getFloat64(136, t),
|
1126
1126
|
toSemiMajorAxis: i.getFloat64(152, t),
|
1127
1127
|
toSemiMinorAxis: i.getFloat64(168, t)
|
1128
1128
|
};
|
1129
1129
|
}
|
1130
|
-
function
|
1130
|
+
function eo(i, t, e) {
|
1131
1131
|
return String.fromCharCode.apply(null, new Uint8Array(i.buffer.slice(t, e)));
|
1132
1132
|
}
|
1133
1133
|
function vg(i, t, e) {
|
@@ -1154,8 +1154,8 @@ function Sg(i) {
|
|
1154
1154
|
}
|
1155
1155
|
function wg(i, t, e) {
|
1156
1156
|
return {
|
1157
|
-
name:
|
1158
|
-
parent:
|
1157
|
+
name: eo(i, t + 8, t + 16).trim(),
|
1158
|
+
parent: eo(i, t + 24, t + 24 + 8).trim(),
|
1159
1159
|
lowerLatitude: i.getFloat64(t + 72, e),
|
1160
1160
|
upperLatitude: i.getFloat64(t + 88, e),
|
1161
1161
|
lowerLongitude: i.getFloat64(t + 104, e),
|
@@ -1208,7 +1208,7 @@ function Ut(i, t) {
|
|
1208
1208
|
a.ep2,
|
1209
1209
|
o
|
1210
1210
|
);
|
1211
|
-
|
1211
|
+
fl(this, e), fl(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);
|
1212
1212
|
}
|
1213
1213
|
Ut.projections = hg;
|
1214
1214
|
Ut.projections.start();
|
@@ -1290,26 +1290,26 @@ function en(i) {
|
|
1290
1290
|
return i === $i || i === Bi;
|
1291
1291
|
}
|
1292
1292
|
function Og(i, t, e) {
|
1293
|
-
if (Cg(i, t) || i.datum_type ===
|
1293
|
+
if (Cg(i, t) || i.datum_type === Ja || t.datum_type === Ja)
|
1294
1294
|
return e;
|
1295
1295
|
var s = i.a, r = i.es;
|
1296
1296
|
if (i.datum_type === _s) {
|
1297
|
-
var n =
|
1297
|
+
var n = ml(i, !1, e);
|
1298
1298
|
if (n !== 0)
|
1299
1299
|
return;
|
1300
|
-
s =
|
1300
|
+
s = hl, r = cl;
|
1301
1301
|
}
|
1302
1302
|
var a = t.a, o = t.b, l = t.es;
|
1303
|
-
if (t.datum_type === _s && (a =
|
1303
|
+
if (t.datum_type === _s && (a = hl, o = Tf, l = cl), r === l && s === a && !en(i.datum_type) && !en(t.datum_type))
|
1304
1304
|
return e;
|
1305
1305
|
if (e = cc(e, r, s), en(i.datum_type) && (e = xg(e, i.datum_type, i.datum_params)), en(t.datum_type) && (e = bg(e, t.datum_type, t.datum_params)), e = uc(e, l, a, o), t.datum_type === _s) {
|
1306
|
-
var c =
|
1306
|
+
var c = ml(t, !0, e);
|
1307
1307
|
if (c !== 0)
|
1308
1308
|
return;
|
1309
1309
|
}
|
1310
1310
|
return e;
|
1311
1311
|
}
|
1312
|
-
function
|
1312
|
+
function ml(i, t, e) {
|
1313
1313
|
if (i.grids === null || i.grids.length === 0)
|
1314
1314
|
return console.log("Grid shift grids not found"), -1;
|
1315
1315
|
for (var s = { x: -e.x, y: e.y }, r = { x: Number.NaN, y: Number.NaN }, n = [], a = 0; a < i.grids.length; a++) {
|
@@ -1335,14 +1335,14 @@ function Eg(i, t, e) {
|
|
1335
1335
|
return s;
|
1336
1336
|
var r = { x: i.x, y: i.y };
|
1337
1337
|
r.x -= e.ll[0], r.y -= e.ll[1], r.x = D(r.x - Math.PI) + Math.PI;
|
1338
|
-
var n =
|
1338
|
+
var n = pl(r, e);
|
1339
1339
|
if (t) {
|
1340
1340
|
if (isNaN(n.x))
|
1341
1341
|
return s;
|
1342
1342
|
n.x = r.x - n.x, n.y = r.y - n.y;
|
1343
1343
|
var a = 9, o = 1e-12, l, c;
|
1344
1344
|
do {
|
1345
|
-
if (c =
|
1345
|
+
if (c = pl(n, e), isNaN(c.x)) {
|
1346
1346
|
console.log("Inverse grid shift iteration failed, presumably at grid edge. Using first approximation.");
|
1347
1347
|
break;
|
1348
1348
|
}
|
@@ -1355,7 +1355,7 @@ function Eg(i, t, e) {
|
|
1355
1355
|
isNaN(n.x) || (s.x = i.x + n.x, s.y = i.y + n.y);
|
1356
1356
|
return s;
|
1357
1357
|
}
|
1358
|
-
function
|
1358
|
+
function pl(i, t) {
|
1359
1359
|
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;
|
1360
1360
|
if (s.x < 0 || s.x >= t.lim[0] || s.y < 0 || s.y >= t.lim[1])
|
1361
1361
|
return n;
|
@@ -1369,7 +1369,7 @@ function ml(i, t) {
|
|
1369
1369
|
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;
|
1370
1370
|
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;
|
1371
1371
|
}
|
1372
|
-
function
|
1372
|
+
function yl(i, t, e) {
|
1373
1373
|
var s = e.x, r = e.y, n = e.z || 0, a, o, l, c = {};
|
1374
1374
|
for (l = 0; l < 3; l++)
|
1375
1375
|
if (!(t && l === 2 && e.z === void 0))
|
@@ -1405,9 +1405,9 @@ function dc(i) {
|
|
1405
1405
|
return i.length > 2 && (t.z = i[2]), i.length > 3 && (t.m = i[3]), t;
|
1406
1406
|
}
|
1407
1407
|
function Pg(i) {
|
1408
|
-
|
1408
|
+
_l(i.x), _l(i.y);
|
1409
1409
|
}
|
1410
|
-
function
|
1410
|
+
function _l(i) {
|
1411
1411
|
if (typeof Number.isFinite == "function") {
|
1412
1412
|
if (Number.isFinite(i))
|
1413
1413
|
return;
|
@@ -1428,7 +1428,7 @@ function Nn(i, t, e, s) {
|
|
1428
1428
|
m: e.m
|
1429
1429
|
};
|
1430
1430
|
var n = e.z !== void 0;
|
1431
|
-
if (Pg(e), i.datum && t.datum && Ig(i, t) && (r = new Ut("WGS84"), e = Nn(i, r, e, s), i = r), s && i.axis !== "enu" && (e =
|
1431
|
+
if (Pg(e), i.datum && t.datum && Ig(i, t) && (r = new Ut("WGS84"), e = Nn(i, r, e, s), i = r), s && i.axis !== "enu" && (e = yl(i, !1, e)), i.projName === "longlat")
|
1432
1432
|
e = {
|
1433
1433
|
x: e.x * He,
|
1434
1434
|
y: e.y * He,
|
@@ -1453,10 +1453,10 @@ function Nn(i, t, e, s) {
|
|
1453
1453
|
x: e.x / t.to_meter,
|
1454
1454
|
y: e.y / t.to_meter,
|
1455
1455
|
z: e.z || 0
|
1456
|
-
})), s && t.axis !== "enu" ?
|
1456
|
+
})), s && t.axis !== "enu" ? yl(t, !0, e) : (n || delete e.z, e);
|
1457
1457
|
}
|
1458
|
-
var
|
1459
|
-
function
|
1458
|
+
var vl = Ut("WGS84");
|
1459
|
+
function Sa(i, t, e, s) {
|
1460
1460
|
var r, n, a;
|
1461
1461
|
return Array.isArray(e) ? (r = Nn(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 = Nn(i, t, e, s), a = Object.keys(e), a.length === 2 || a.forEach(function(o) {
|
1462
1462
|
if (typeof i.name < "u" && i.name === "geocent" || typeof t.name < "u" && t.name === "geocent") {
|
@@ -1467,22 +1467,22 @@ function va(i, t, e, s) {
|
|
1467
1467
|
n[o] = e[o];
|
1468
1468
|
}), n);
|
1469
1469
|
}
|
1470
|
-
function
|
1470
|
+
function Sl(i) {
|
1471
1471
|
return i instanceof Ut ? i : i.oProj ? i.oProj : Ut(i);
|
1472
1472
|
}
|
1473
1473
|
function Ie(i, t, e) {
|
1474
|
-
i =
|
1474
|
+
i = Sl(i);
|
1475
1475
|
var s = !1, r;
|
1476
|
-
return typeof t > "u" ? (t = i, i =
|
1476
|
+
return typeof t > "u" ? (t = i, i = vl, s = !0) : (typeof t.x < "u" || Array.isArray(t)) && (e = t, t = i, i = vl, s = !0), t = Sl(t), e ? Sa(i, t, e) : (r = {
|
1477
1477
|
forward: function(n, a) {
|
1478
|
-
return
|
1478
|
+
return Sa(i, t, n, a);
|
1479
1479
|
},
|
1480
1480
|
inverse: function(n, a) {
|
1481
|
-
return
|
1481
|
+
return Sa(t, i, n, a);
|
1482
1482
|
}
|
1483
1483
|
}, s && (r.oProj = t), r);
|
1484
1484
|
}
|
1485
|
-
var
|
1485
|
+
var wl = 6, fc = "AJSAJS", gc = "AFAFAF", fs = 65, nt = 73, wt = 79, Us = 86, qs = 90;
|
1486
1486
|
const Lg = {
|
1487
1487
|
forward: mc,
|
1488
1488
|
inverse: Tg,
|
@@ -1495,22 +1495,22 @@ function mc(i, t) {
|
|
1495
1495
|
}), t);
|
1496
1496
|
}
|
1497
1497
|
function Tg(i) {
|
1498
|
-
var t =
|
1498
|
+
var t = xo(_c(i.toUpperCase()));
|
1499
1499
|
return t.lat && t.lon ? [t.lon, t.lat, t.lon, t.lat] : [t.left, t.bottom, t.right, t.top];
|
1500
1500
|
}
|
1501
1501
|
function pc(i) {
|
1502
|
-
var t =
|
1502
|
+
var t = xo(_c(i.toUpperCase()));
|
1503
1503
|
return t.lat && t.lon ? [t.lon, t.lat] : [(t.left + t.right) / 2, (t.top + t.bottom) / 2];
|
1504
1504
|
}
|
1505
|
-
function
|
1505
|
+
function wa(i) {
|
1506
1506
|
return i * (Math.PI / 180);
|
1507
1507
|
}
|
1508
|
-
function
|
1508
|
+
function Ml(i) {
|
1509
1509
|
return 180 * (i / Math.PI);
|
1510
1510
|
}
|
1511
1511
|
function Ng(i) {
|
1512
|
-
var t = i.lat, e = i.lon, s = 6378137, r = 669438e-8, n = 0.9996, a, o, l, c, d, u, f, g =
|
1513
|
-
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 =
|
1512
|
+
var t = i.lat, e = i.lon, s = 6378137, r = 669438e-8, n = 0.9996, a, o, l, c, d, u, f, g = wa(t), m = wa(e), p, y;
|
1513
|
+
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 = wa(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));
|
1514
1514
|
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));
|
1515
1515
|
return t < 0 && (w += 1e7), {
|
1516
1516
|
northing: Math.round(w),
|
@@ -1519,19 +1519,19 @@ function Ng(i) {
|
|
1519
1519
|
zoneLetter: Dg(t)
|
1520
1520
|
};
|
1521
1521
|
}
|
1522
|
-
function
|
1522
|
+
function xo(i) {
|
1523
1523
|
var t = i.northing, e = i.easting, s = i.zoneLetter, r = i.zoneNumber;
|
1524
1524
|
if (r < 0 || r > 60)
|
1525
1525
|
return null;
|
1526
1526
|
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;
|
1527
1527
|
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);
|
1528
1528
|
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);
|
1529
|
-
x =
|
1529
|
+
x = Ml(x);
|
1530
1530
|
var b = (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);
|
1531
|
-
b = y +
|
1531
|
+
b = y + Ml(b);
|
1532
1532
|
var L;
|
1533
1533
|
if (i.accuracy) {
|
1534
|
-
var F =
|
1534
|
+
var F = xo({
|
1535
1535
|
northing: i.northing + i.accuracy,
|
1536
1536
|
easting: i.easting + i.accuracy,
|
1537
1537
|
zoneLetter: i.zoneLetter,
|
@@ -1563,8 +1563,8 @@ function Fg(i, t, e) {
|
|
1563
1563
|
return Rg(r, n, s);
|
1564
1564
|
}
|
1565
1565
|
function yc(i) {
|
1566
|
-
var t = i %
|
1567
|
-
return t === 0 && (t =
|
1566
|
+
var t = i % wl;
|
1567
|
+
return t === 0 && (t = wl), t;
|
1568
1568
|
}
|
1569
1569
|
function Rg(i, t, e) {
|
1570
1570
|
var s = e - 1, r = fc.charCodeAt(s), n = gc.charCodeAt(s), a = r + i - 1, o = n + t, l = !1;
|
@@ -1718,34 +1718,34 @@ Cs.fromMGRS = function(i) {
|
|
1718
1718
|
Cs.prototype.toMGRS = function(i) {
|
1719
1719
|
return mc([this.x, this.y], i);
|
1720
1720
|
};
|
1721
|
-
var Hg = 1, jg = 0.25,
|
1721
|
+
var Hg = 1, jg = 0.25, Cl = 0.046875, xl = 0.01953125, bl = 0.01068115234375, Vg = 0.75, $g = 0.46875, Bg = 0.013020833333333334, Ug = 0.007120768229166667, qg = 0.3645833333333333, Wg = 0.005696614583333333, Xg = 0.3076171875;
|
1722
1722
|
function vc(i) {
|
1723
1723
|
var t = [];
|
1724
|
-
t[0] = Hg - i * (jg + i * (
|
1724
|
+
t[0] = Hg - i * (jg + i * (Cl + i * (xl + i * bl))), t[1] = i * (Vg - i * (Cl + i * (xl + i * bl)));
|
1725
1725
|
var e = i * i;
|
1726
1726
|
return t[2] = e * ($g - i * (Bg + i * Ug)), e *= i, t[3] = e * (qg - i * Wg), t[4] = e * i * Xg, t;
|
1727
1727
|
}
|
1728
|
-
function
|
1728
|
+
function na(i, t, e, s) {
|
1729
1729
|
return e *= t, t *= t, s[0] * i - e * (s[1] + t * (s[2] + t * (s[3] + t * s[4])));
|
1730
1730
|
}
|
1731
1731
|
var Yg = 20;
|
1732
1732
|
function Sc(i, t, e) {
|
1733
1733
|
for (var s = 1 / (1 - t), r = i, n = Yg; n; --n) {
|
1734
1734
|
var a = Math.sin(r), o = 1 - t * a * a;
|
1735
|
-
if (o = (
|
1735
|
+
if (o = (na(r, a, Math.cos(r), e) - i) * (o * Math.sqrt(o)) * s, r -= o, Math.abs(o) < T)
|
1736
1736
|
return r;
|
1737
1737
|
}
|
1738
1738
|
return r;
|
1739
1739
|
}
|
1740
1740
|
function Zg() {
|
1741
|
-
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 = vc(this.es), this.ml0 =
|
1741
|
+
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 = vc(this.es), this.ml0 = na(this.lat0, Math.sin(this.lat0), Math.cos(this.lat0), this.en));
|
1742
1742
|
}
|
1743
1743
|
function Kg(i) {
|
1744
1744
|
var t = i.x, e = i.y, s = D(t - this.long0), r, n, a, o = Math.sin(e), l = Math.cos(e);
|
1745
1745
|
if (this.es) {
|
1746
1746
|
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);
|
1747
1747
|
r = 1 - this.es * Math.pow(o, 2), d = d / Math.sqrt(r);
|
1748
|
-
var S =
|
1748
|
+
var S = na(e, o, l, this.en);
|
1749
1749
|
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;
|
1750
1750
|
} else {
|
1751
1751
|
var c = l * Math.sin(s);
|
@@ -1801,7 +1801,7 @@ function tm(i) {
|
|
1801
1801
|
var t = Math.abs(i);
|
1802
1802
|
return t = em(t * (1 + t / (It(1, t) + 1))), i < 0 ? -t : t;
|
1803
1803
|
}
|
1804
|
-
function
|
1804
|
+
function bo(i, t) {
|
1805
1805
|
for (var e = 2 * Math.cos(2 * t), s = i.length - 1, r = i[s], n = 0, a; --s >= 0; )
|
1806
1806
|
a = -n + e * r + i[s], n = r, r = a;
|
1807
1807
|
return t + a * Math.sin(2 * t);
|
@@ -1826,12 +1826,12 @@ function rm() {
|
|
1826
1826
|
this.approx && (pn.init.apply(this), this.forward = pn.forward, this.inverse = pn.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 = [];
|
1827
1827
|
var i = this.es / (1 + Math.sqrt(1 - this.es)), t = i / (2 - i), e = t;
|
1828
1828
|
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);
|
1829
|
-
var s =
|
1829
|
+
var s = bo(this.cbg, this.lat0);
|
1830
1830
|
this.Zb = -this.Qn * (s + im(this.gtu, 2 * s));
|
1831
1831
|
}
|
1832
1832
|
function nm(i) {
|
1833
1833
|
var t = D(i.x - this.long0), e = i.y;
|
1834
|
-
e =
|
1834
|
+
e = bo(this.cbg, e);
|
1835
1835
|
var s = Math.sin(e), r = Math.cos(e), n = Math.sin(t), a = Math.cos(t);
|
1836
1836
|
e = Math.atan2(s, a * r), t = Math.atan2(n * r, It(s, r * a)), t = tm(Math.tan(t));
|
1837
1837
|
var o = Mc(this.gtu, 2 * e, 2 * t);
|
@@ -1847,7 +1847,7 @@ function am(i) {
|
|
1847
1847
|
var n = Mc(this.utg, 2 * e, 2 * t);
|
1848
1848
|
e = e + n[0], t = t + n[1], t = Math.atan(wc(t));
|
1849
1849
|
var a = Math.sin(e), o = Math.cos(e), l = Math.sin(t), c = Math.cos(t);
|
1850
|
-
e = Math.atan2(a * c, It(l, c * o)), t = Math.atan2(l, c * o), s = D(t + this.long0), r =
|
1850
|
+
e = Math.atan2(a * c, It(l, c * o)), t = Math.atan2(l, c * o), s = D(t + this.long0), r = bo(this.cgb, e);
|
1851
1851
|
} else
|
1852
1852
|
s = 1 / 0, r = 1 / 0;
|
1853
1853
|
return i.x = s, i.y = r, i;
|
@@ -1881,36 +1881,36 @@ const dm = {
|
|
1881
1881
|
names: um,
|
1882
1882
|
dependsOn: hm
|
1883
1883
|
};
|
1884
|
-
function
|
1884
|
+
function Oo(i, t) {
|
1885
1885
|
return Math.pow((1 - i) / (1 + i), t);
|
1886
1886
|
}
|
1887
1887
|
var fm = 20;
|
1888
1888
|
function gm() {
|
1889
1889
|
var i = Math.sin(this.lat0), t = Math.cos(this.lat0);
|
1890
|
-
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) *
|
1890
|
+
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) * Oo(this.e * i, this.ratexp));
|
1891
1891
|
}
|
1892
1892
|
function mm(i) {
|
1893
1893
|
var t = i.x, e = i.y;
|
1894
|
-
return i.y = 2 * Math.atan(this.K * Math.pow(Math.tan(0.5 * e + K), this.C) *
|
1894
|
+
return i.y = 2 * Math.atan(this.K * Math.pow(Math.tan(0.5 * e + K), this.C) * Oo(this.e * Math.sin(e), this.ratexp)) - O, i.x = this.C * t, i;
|
1895
1895
|
}
|
1896
1896
|
function pm(i) {
|
1897
|
-
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 = fm; n > 0 && (s = 2 * Math.atan(r *
|
1897
|
+
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 = fm; n > 0 && (s = 2 * Math.atan(r * Oo(this.e * Math.sin(i.y), -0.5 * this.e)) - O, !(Math.abs(s - i.y) < t)); --n)
|
1898
1898
|
i.y = s;
|
1899
1899
|
return n ? (i.x = e, i.y = s, i) : null;
|
1900
1900
|
}
|
1901
1901
|
var ym = ["gauss"];
|
1902
|
-
const
|
1902
|
+
const Eo = {
|
1903
1903
|
init: gm,
|
1904
1904
|
forward: mm,
|
1905
1905
|
inverse: pm,
|
1906
1906
|
names: ym
|
1907
1907
|
};
|
1908
1908
|
function _m() {
|
1909
|
-
|
1909
|
+
Eo.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"));
|
1910
1910
|
}
|
1911
1911
|
function vm(i) {
|
1912
1912
|
var t, e, s, r;
|
1913
|
-
return i.x = D(i.x - this.long0),
|
1913
|
+
return i.x = D(i.x - this.long0), Eo.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;
|
1914
1914
|
}
|
1915
1915
|
function Sm(i) {
|
1916
1916
|
var t, e, s, r, n;
|
@@ -1919,7 +1919,7 @@ function Sm(i) {
|
|
1919
1919
|
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);
|
1920
1920
|
} else
|
1921
1921
|
r = this.phic0, s = 0;
|
1922
|
-
return i.x = s, i.y = r,
|
1922
|
+
return i.x = s, i.y = r, Eo.inverse.apply(this, [i]), i.x = D(i.x + this.long0), i;
|
1923
1923
|
}
|
1924
1924
|
var wm = ["Stereographic_North_Pole", "Oblique_Stereographic", "Polar_Stereographic", "sterea", "Oblique Stereographic Alternative", "Double_Stereographic"];
|
1925
1925
|
const Mm = {
|
@@ -2396,7 +2396,7 @@ const zp = {
|
|
2396
2396
|
inverse: Gp,
|
2397
2397
|
names: kp
|
2398
2398
|
};
|
2399
|
-
var
|
2399
|
+
var Ol = 20;
|
2400
2400
|
function Hp() {
|
2401
2401
|
this.temp = this.b / this.a, this.es = 1 - Math.pow(this.temp, 2), this.e = Math.sqrt(this.es), this.e0 = zr(this.es), this.e1 = Hr(this.es), this.e2 = jr(this.es), this.e3 = Vr(this.es), this.ml0 = this.a * it(this.e0, this.e1, this.e2, this.e3, this.lat0);
|
2402
2402
|
}
|
@@ -2420,7 +2420,7 @@ function Vp(i) {
|
|
2420
2420
|
else {
|
2421
2421
|
a = this.lat0 + r / this.a, o = s * s / this.a / this.a + a * a, l = a;
|
2422
2422
|
var d;
|
2423
|
-
for (n =
|
2423
|
+
for (n = Ol; n; --n)
|
2424
2424
|
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) {
|
2425
2425
|
e = l;
|
2426
2426
|
break;
|
@@ -2432,7 +2432,7 @@ function Vp(i) {
|
|
2432
2432
|
else {
|
2433
2433
|
a = (this.ml0 + r) / this.a, o = s * s / this.a / this.a + a * a, l = a;
|
2434
2434
|
var u, f, g, m, p;
|
2435
|
-
for (n =
|
2435
|
+
for (n = Ol; n; --n)
|
2436
2436
|
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) {
|
2437
2437
|
e = l;
|
2438
2438
|
break;
|
@@ -2524,7 +2524,7 @@ function sy(i) {
|
|
2524
2524
|
t = this.a * this.C_x * s * (this.m + Math.cos(r)), e = this.a * this.C_y * r;
|
2525
2525
|
} else {
|
2526
2526
|
var l = Math.sin(r), c = Math.cos(r);
|
2527
|
-
e = this.a *
|
2527
|
+
e = this.a * na(r, l, c, this.en), t = this.a * s * c / Math.sqrt(1 - this.es * l * l);
|
2528
2528
|
}
|
2529
2529
|
return i.x = t, i.y = e, i;
|
2530
2530
|
}
|
@@ -2717,7 +2717,7 @@ const Ry = {
|
|
2717
2717
|
inverse: Ay,
|
2718
2718
|
names: Fy
|
2719
2719
|
};
|
2720
|
-
var
|
2720
|
+
var to = [
|
2721
2721
|
[1, 22199e-21, -715515e-10, 31103e-10],
|
2722
2722
|
[0.9986, -482243e-9, -24897e-9, -13309e-10],
|
2723
2723
|
[0.9954, -83103e-8, -448605e-10, -986701e-12],
|
@@ -2777,7 +2777,7 @@ function jy(i) {
|
|
2777
2777
|
var t = D(i.x - this.long0), e = Math.abs(i.y), s = Math.floor(e * bc);
|
2778
2778
|
s < 0 ? s = 0 : s >= gs && (s = gs - 1), e = $t * (e - Gy * s);
|
2779
2779
|
var r = {
|
2780
|
-
x: An(
|
2780
|
+
x: An(to[s], e) * t,
|
2781
2781
|
y: An(Ws[s], e)
|
2782
2782
|
};
|
2783
2783
|
return i.y < 0 && (r.y = -r.y), r.x = r.x * this.a * Cc + this.x0, r.y = r.y * this.a * xc + this.y0, r;
|
@@ -2788,7 +2788,7 @@ function Vy(i) {
|
|
2788
2788
|
y: Math.abs(i.y - this.y0) / (this.a * xc)
|
2789
2789
|
};
|
2790
2790
|
if (t.y >= 1)
|
2791
|
-
t.x /=
|
2791
|
+
t.x /= to[gs][0], t.y = i.y < 0 ? -O : O;
|
2792
2792
|
else {
|
2793
2793
|
var e = Math.floor(t.y * gs);
|
2794
2794
|
for (e < 0 ? e = 0 : e >= gs && (e = gs - 1); ; )
|
@@ -2801,7 +2801,7 @@ function Vy(i) {
|
|
2801
2801
|
var s = Ws[e], r = 5 * (t.y - s[0]) / (Ws[e + 1][0] - s[0]);
|
2802
2802
|
r = zy(function(n) {
|
2803
2803
|
return (An(s, n) - t.y) / ky(s, n);
|
2804
|
-
}, r, T, 100), t.x /= An(
|
2804
|
+
}, r, T, 100), t.x /= An(to[e], r), t.y = (5 * e + r) * He, i.y < 0 && (t.y = -t.y);
|
2805
2805
|
}
|
2806
2806
|
return t.x = D(t.x + this.long0), t;
|
2807
2807
|
}
|
@@ -2989,11 +2989,11 @@ Ie.transform = Nn;
|
|
2989
2989
|
Ie.mgrs = Lg;
|
2990
2990
|
Ie.version = "__VERSION__";
|
2991
2991
|
a_(Ie);
|
2992
|
-
const Fn = Fe("EPSG:4326", "EPSG:3857"),
|
2993
|
-
let
|
2992
|
+
const Fn = Fe("EPSG:4326", "EPSG:3857"), Po = Fe("EPSG:3857", "EPSG:4326");
|
2993
|
+
let Io = {
|
2994
2994
|
epsg: "EPSG:4326"
|
2995
2995
|
};
|
2996
|
-
function
|
2996
|
+
function Lo(i, t = "EPSG:") {
|
2997
2997
|
if (i) {
|
2998
2998
|
const e = new RegExp(`^(?:${t})?(\\d+)`, "i"), s = `${i}`.match(e);
|
2999
2999
|
if (s && s[1])
|
@@ -3005,7 +3005,7 @@ function Oc(i) {
|
|
3005
3005
|
let t = null;
|
3006
3006
|
if (i.epsg)
|
3007
3007
|
try {
|
3008
|
-
t = Ie(
|
3008
|
+
t = Ie(Lo(i.epsg));
|
3009
3009
|
} catch {
|
3010
3010
|
t = null;
|
3011
3011
|
}
|
@@ -3021,8 +3021,8 @@ function Ec(i) {
|
|
3021
3021
|
const t = {
|
3022
3022
|
prefix: i.prefix
|
3023
3023
|
};
|
3024
|
-
return i.epsg && (t.epsg =
|
3025
|
-
Ie.defs(e, Ie.defs(t.epsg)),
|
3024
|
+
return i.epsg && (t.epsg = Lo(i.epsg, i.prefix), t.epsg && (i.proj4 && (t.proj4 = i.proj4, Ie.defs(t.epsg, i.proj4), Jo(Ie)), i.alias && Array.isArray(i.alias) && (t.alias = i.alias, t.alias.forEach((e) => {
|
3025
|
+
Ie.defs(e, Ie.defs(t.epsg)), Jo(Ie);
|
3026
3026
|
})))), t;
|
3027
3027
|
}
|
3028
3028
|
function o_(i) {
|
@@ -3031,7 +3031,7 @@ function o_(i) {
|
|
3031
3031
|
proj4: Q(String)
|
3032
3032
|
}), !Oc(i))
|
3033
3033
|
throw new Error("Cannot set invalid projection options as default options");
|
3034
|
-
|
3034
|
+
Io = Ec(i);
|
3035
3035
|
}
|
3036
3036
|
class k {
|
3037
3037
|
constructor(t = { epsg: "" }) {
|
@@ -3040,7 +3040,7 @@ class k {
|
|
3040
3040
|
h(this, "_alias");
|
3041
3041
|
h(this, "_prefix");
|
3042
3042
|
const e = Ec(t);
|
3043
|
-
this._proj4 = e.proj4, this._epsg = String(e.epsg), this.proj || (this._epsg = k.parseEPSGCode(
|
3043
|
+
this._proj4 = e.proj4, this._epsg = String(e.epsg), this.proj || (this._epsg = k.parseEPSGCode(Io.epsg)), this._alias = e.alias, this._prefix = e.prefix;
|
3044
3044
|
}
|
3045
3045
|
static get className() {
|
3046
3046
|
return "Projection";
|
@@ -3094,7 +3094,7 @@ class k {
|
|
3094
3094
|
* @param inPlace - whether to transform in place
|
3095
3095
|
*/
|
3096
3096
|
static mercatorToWgs84(t, e) {
|
3097
|
-
return
|
3097
|
+
return Po(t, e ? t : void 0, t.length);
|
3098
3098
|
}
|
3099
3099
|
/**
|
3100
3100
|
* Fast transform from WGS84 to Web-Mercator
|
@@ -3117,11 +3117,11 @@ class k {
|
|
3117
3117
|
* parseEPSGCode('asdasd', 'EPSG:') ==> ''
|
3118
3118
|
*/
|
3119
3119
|
static parseEPSGCode(t, e = "EPSG:") {
|
3120
|
-
return
|
3120
|
+
return Lo(t, e);
|
3121
3121
|
}
|
3122
3122
|
}
|
3123
3123
|
function l_() {
|
3124
|
-
return new k(
|
3124
|
+
return new k(Io);
|
3125
3125
|
}
|
3126
3126
|
const oe = new k({ epsg: 4326 }), B = new k({ epsg: 3857 });
|
3127
3127
|
function Ew(i, t, e) {
|
@@ -3136,7 +3136,7 @@ function Pw(i, t) {
|
|
3136
3136
|
let l = N.toDegrees(Math.atan2(a, o));
|
3137
3137
|
return l = (l + 360) % 360, l;
|
3138
3138
|
}
|
3139
|
-
function
|
3139
|
+
function io(i, t) {
|
3140
3140
|
let e = Math.atan2(t[0] - i[0], t[1] - i[1]);
|
3141
3141
|
return e = e < 0 ? e + N.TWO_PI : e, e;
|
3142
3142
|
}
|
@@ -3262,7 +3262,7 @@ function Rn(i, t, e, s) {
|
|
3262
3262
|
function de(i, t) {
|
3263
3263
|
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;
|
3264
3264
|
}
|
3265
|
-
function
|
3265
|
+
function aa(i, t, e) {
|
3266
3266
|
if (i != null) {
|
3267
3267
|
const s = Object.values(t).find((r) => r == i);
|
3268
3268
|
if (s != null)
|
@@ -3291,12 +3291,12 @@ for (let i = 0; i < 256; ++i)
|
|
3291
3291
|
function m_(i, t = 0) {
|
3292
3292
|
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]];
|
3293
3293
|
}
|
3294
|
-
const p_ = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto),
|
3294
|
+
const p_ = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), El = {
|
3295
3295
|
randomUUID: p_
|
3296
3296
|
};
|
3297
3297
|
function Ue(i, t, e) {
|
3298
|
-
if (
|
3299
|
-
return
|
3298
|
+
if (El.randomUUID && !t && !i)
|
3299
|
+
return El.randomUUID();
|
3300
3300
|
i = i || {};
|
3301
3301
|
const s = i.random || (i.rng || g_)();
|
3302
3302
|
if (s[6] = s[6] & 15 | 64, s[8] = s[8] & 63 | 128, t) {
|
@@ -3403,17 +3403,17 @@ class Lc {
|
|
3403
3403
|
this.className && (r = `[${this.className}] ${r}`), console[$r.get(e)](r, ...s), e & Ce.ERROR && (console.group(), console.trace(), console.groupEnd());
|
3404
3404
|
}
|
3405
3405
|
}
|
3406
|
-
const
|
3407
|
-
let
|
3406
|
+
const so = /* @__PURE__ */ new Map();
|
3407
|
+
let Ma;
|
3408
3408
|
function y_() {
|
3409
|
-
return
|
3409
|
+
return Ma || (Ma = new Lc()), Ma;
|
3410
3410
|
}
|
3411
3411
|
function __(i) {
|
3412
3412
|
const t = new Lc(i);
|
3413
|
-
return
|
3413
|
+
return so.set(i, t), t;
|
3414
3414
|
}
|
3415
3415
|
function ue(i) {
|
3416
|
-
return i ?
|
3416
|
+
return i ? so.has(i) ? so.get(i) : __(i) : y_();
|
3417
3417
|
}
|
3418
3418
|
const Ke = Symbol("moduleId");
|
3419
3419
|
var ww;
|
@@ -3639,7 +3639,7 @@ class Ni {
|
|
3639
3639
|
return v(t, { type: String }), this.create(t.type, t, ...e);
|
3640
3640
|
}
|
3641
3641
|
}
|
3642
|
-
const De = new Ni(), Ls = new Ni(),
|
3642
|
+
const De = new Ni(), Ls = new Ni(), To = new Ni(), Ts = new Ni(), Br = new Ni(), Tc = new Ni();
|
3643
3643
|
function ni(i, t, ...e) {
|
3644
3644
|
if (!es(i, Ae(Ni, Qt)))
|
3645
3645
|
return Xs().error(`ObjectCreation failed: no class registry provided for ${String(t.type)}`), null;
|
@@ -3672,7 +3672,7 @@ class Xt extends kt {
|
|
3672
3672
|
// eslint-disable-next-line class-methods-use-this
|
3673
3673
|
h(this, "_style", () => {
|
3674
3674
|
});
|
3675
|
-
this.colorBlendMode =
|
3675
|
+
this.colorBlendMode = aa(e.colorBlendMode, gn, gn.HIGHLIGHT);
|
3676
3676
|
}
|
3677
3677
|
static get className() {
|
3678
3678
|
return "StyleItem";
|
@@ -3736,7 +3736,7 @@ function Kt(i) {
|
|
3736
3736
|
const { location: t } = window, e = new URL(i, `${t.protocol}//${t.host}${t.pathname}`);
|
3737
3737
|
return e.host ? e.protocol === t.protocol && e.host === t.host : !0;
|
3738
3738
|
}
|
3739
|
-
function
|
3739
|
+
function No() {
|
3740
3740
|
return ue("StyleHelpers");
|
3741
3741
|
}
|
3742
3742
|
var ir;
|
@@ -3818,7 +3818,7 @@ function M_(i, t) {
|
|
3818
3818
|
}
|
3819
3819
|
return r.createPattern(s, "repeat");
|
3820
3820
|
}
|
3821
|
-
function
|
3821
|
+
function Pl(i) {
|
3822
3822
|
function t(e) {
|
3823
3823
|
const s = e.toString(16);
|
3824
3824
|
return s.length === 1 ? `0${s}` : s;
|
@@ -3904,14 +3904,14 @@ function Gn(i) {
|
|
3904
3904
|
try {
|
3905
3905
|
t = Ve(t).slice();
|
3906
3906
|
} catch (e) {
|
3907
|
-
|
3907
|
+
No().warning(e.message);
|
3908
3908
|
}
|
3909
3909
|
return { color: t };
|
3910
3910
|
}
|
3911
3911
|
function Nc(i) {
|
3912
3912
|
return new st(i);
|
3913
3913
|
}
|
3914
|
-
function
|
3914
|
+
function Do(i) {
|
3915
3915
|
return new $e(i);
|
3916
3916
|
}
|
3917
3917
|
function _r(i) {
|
@@ -3920,7 +3920,7 @@ function _r(i) {
|
|
3920
3920
|
try {
|
3921
3921
|
t = Ve(t).slice();
|
3922
3922
|
} catch (r) {
|
3923
|
-
|
3923
|
+
No().warning(r.message);
|
3924
3924
|
}
|
3925
3925
|
const e = {
|
3926
3926
|
color: t
|
@@ -3942,7 +3942,7 @@ function Dc(i) {
|
|
3942
3942
|
}
|
3943
3943
|
function Ac(i) {
|
3944
3944
|
const t = { ...i };
|
3945
|
-
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 = C_(t.font)), new
|
3945
|
+
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 = C_(t.font)), new po(t);
|
3946
3946
|
}
|
3947
3947
|
function Fc(i) {
|
3948
3948
|
if (i instanceof Ci) {
|
@@ -3953,7 +3953,7 @@ function Fc(i) {
|
|
3953
3953
|
const e = i.getColor() ? Ve(i.getColor()) : void 0;
|
3954
3954
|
e && (t.color = e);
|
3955
3955
|
} catch (e) {
|
3956
|
-
|
3956
|
+
No().warning(e.message);
|
3957
3957
|
}
|
3958
3958
|
if (i.getSrc() && (t.src = i.getSrc()), i.getOpacity() != null && (t.opacity = i.getOpacity()), i.getAnchor() && i.getSize()) {
|
3959
3959
|
const e = i.getAnchor()[0] / i.getSize()[0], s = i.getAnchor()[1] / i.getSize()[1];
|
@@ -3975,7 +3975,7 @@ function Fc(i) {
|
|
3975
3975
|
}
|
3976
3976
|
function x_(i) {
|
3977
3977
|
if (i.radius) {
|
3978
|
-
const t = i.fill ? Nc(i.fill) : void 0, e = i.stroke ?
|
3978
|
+
const t = i.fill ? Nc(i.fill) : void 0, e = i.stroke ? Do(i.stroke) : void 0;
|
3979
3979
|
return i.points ? new Rr({
|
3980
3980
|
fill: t,
|
3981
3981
|
stroke: e,
|
@@ -4004,7 +4004,7 @@ function x_(i) {
|
|
4004
4004
|
}
|
4005
4005
|
function Dw(i) {
|
4006
4006
|
return new ee({
|
4007
|
-
stroke: i.stroke ?
|
4007
|
+
stroke: i.stroke ? Do(i.stroke) : void 0,
|
4008
4008
|
fill: i.fill ? Nc(i.fill) : void 0,
|
4009
4009
|
image: i.image ? x_(i.image) : void 0,
|
4010
4010
|
text: i.text ? Ac(i.text) : void 0
|
@@ -4027,12 +4027,12 @@ function Fw(i) {
|
|
4027
4027
|
if (i.getStroke()) {
|
4028
4028
|
let e = i.getStroke().getWidth();
|
4029
4029
|
e = e > 1 ? 1 : e;
|
4030
|
-
const s =
|
4030
|
+
const s = Pl(Ve(i.getStroke().getColor()));
|
4031
4031
|
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}`;
|
4032
4032
|
}
|
4033
|
-
return i.getFill() && (t.color =
|
4033
|
+
return i.getFill() && (t.color = Pl(Ve(i.getFill().getColor()))), t;
|
4034
4034
|
}
|
4035
|
-
const b_ = new ee({}), Rw = [0, 0, 0, 0], vn = [255, 255, 255, 1],
|
4035
|
+
const b_ = new ee({}), Rw = [0, 0, 0, 0], vn = [255, 255, 255, 1], ro = [0, 0, 0, 1];
|
4036
4036
|
function Rc() {
|
4037
4037
|
return {
|
4038
4038
|
image: {
|
@@ -4040,7 +4040,7 @@ function Rc() {
|
|
4040
4040
|
color: [255, 255, 255, 0.4]
|
4041
4041
|
},
|
4042
4042
|
stroke: {
|
4043
|
-
color:
|
4043
|
+
color: ro,
|
4044
4044
|
width: 1
|
4045
4045
|
},
|
4046
4046
|
radius: 5
|
@@ -4065,11 +4065,11 @@ const O_ = {
|
|
4065
4065
|
olcs_color: ot(vn),
|
4066
4066
|
olcs_scale: "1.0",
|
4067
4067
|
olcs_outlineWidth: "0.0",
|
4068
|
-
olcs_outlineColor: ot(
|
4068
|
+
olcs_outlineColor: ot(ro),
|
4069
4069
|
olcs_pointSize: "8.0",
|
4070
4070
|
olcs_image: String(null),
|
4071
4071
|
olcs_font: `'${(Lh = Rc().text) == null ? void 0 : Lh.font}'`,
|
4072
|
-
olcs_fontColor: ot(
|
4072
|
+
olcs_fontColor: ot(ro),
|
4073
4073
|
olcs_fontOutlineWidth: "1.0",
|
4074
4074
|
olcs_fontOutlineColor: ot(vn),
|
4075
4075
|
olcs_labelText: String(null),
|
@@ -4098,7 +4098,7 @@ class E_ {
|
|
4098
4098
|
t.src = s.toDataURL(), this.shapes.push(t);
|
4099
4099
|
}
|
4100
4100
|
}
|
4101
|
-
const P_ = new E_(),
|
4101
|
+
const P_ = new E_(), Il = {
|
4102
4102
|
fill: new st({ color: [255, 255, 255, 1] }),
|
4103
4103
|
stroke: new $e({ color: [0, 0, 0, 1], width: 1 }),
|
4104
4104
|
radius: 16
|
@@ -4110,7 +4110,7 @@ const P_ = new E_(), Pl = {
|
|
4110
4110
|
{ points: 4, angle: Math.PI / 4 },
|
4111
4111
|
{ points: 6 }
|
4112
4112
|
].forEach((i) => {
|
4113
|
-
const t = i ? Object.assign(i,
|
4113
|
+
const t = i ? Object.assign(i, Il) : Il;
|
4114
4114
|
P_.addImage(t);
|
4115
4115
|
});
|
4116
4116
|
class Ur extends st {
|
@@ -4142,7 +4142,7 @@ class he extends Xt {
|
|
4142
4142
|
fill: e.fill === !1,
|
4143
4143
|
stroke: e.stroke === !1,
|
4144
4144
|
image: e.image === !1
|
4145
|
-
}, this._fillOptions = null, this._fill = void 0, this._stroke = e.stroke ?
|
4145
|
+
}, this._fillOptions = null, this._fill = void 0, this._stroke = e.stroke ? Do(e.stroke) : void 0, this._text = void 0, e.text && (this._text = Ac(e.text)), this._label = e.label, this.label = this._label, this._cesiumColor = new U(), this._image = void 0, e.image)
|
4146
4146
|
if (e.image.radius)
|
4147
4147
|
this._image = Gc({ ...e.image });
|
4148
4148
|
else {
|
@@ -4228,7 +4228,7 @@ class he extends Xt {
|
|
4228
4228
|
}
|
4229
4229
|
set text(e) {
|
4230
4230
|
var s, r;
|
4231
|
-
this._style instanceof ee ? (v(e, Q(
|
4231
|
+
this._style instanceof ee ? (v(e, Q(po)), 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");
|
4232
4232
|
}
|
4233
4233
|
get image() {
|
4234
4234
|
return this._image;
|
@@ -4427,7 +4427,7 @@ function Sr(i) {
|
|
4427
4427
|
(i instanceof Yi || i instanceof Zi) && qr(i) && t ? i.color = t.cesiumFillColor : i instanceof ae && i.changed();
|
4428
4428
|
}
|
4429
4429
|
}
|
4430
|
-
function
|
4430
|
+
function Ao(i) {
|
4431
4431
|
delete i[oi], kn(i), i[ut] || i[dt] ? vr(i) : i[Ee] && Sr(i);
|
4432
4432
|
}
|
4433
4433
|
function L_(i) {
|
@@ -4451,7 +4451,7 @@ function T_(i, t) {
|
|
4451
4451
|
const r = Object.keys(i.hiddenObjects);
|
4452
4452
|
return r.length > 0 && e({ action: ne.HIDE, ids: r }), i.changed.addEventListener(e);
|
4453
4453
|
}
|
4454
|
-
class
|
4454
|
+
class oa {
|
4455
4455
|
constructor() {
|
4456
4456
|
h(this, "hiddenObjects", {});
|
4457
4457
|
h(this, "highlightedObjects", {});
|
@@ -4699,7 +4699,7 @@ class z_ {
|
|
4699
4699
|
return Pd(this);
|
4700
4700
|
}
|
4701
4701
|
}
|
4702
|
-
function
|
4702
|
+
function Ll(i) {
|
4703
4703
|
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];
|
4704
4704
|
}
|
4705
4705
|
class xe {
|
@@ -4720,7 +4720,7 @@ class xe {
|
|
4720
4720
|
* @param options
|
4721
4721
|
*/
|
4722
4722
|
static validateOptions(t) {
|
4723
|
-
return k.validateOptions(t.projection || {}) &&
|
4723
|
+
return k.validateOptions(t.projection || {}) && Ll(t.coordinates);
|
4724
4724
|
}
|
4725
4725
|
getCoordinatesInProjection(t, e) {
|
4726
4726
|
if (t.epsg === this.projection.epsg)
|
@@ -4733,7 +4733,7 @@ class xe {
|
|
4733
4733
|
* @returns true if extent is valid
|
4734
4734
|
*/
|
4735
4735
|
isValid() {
|
4736
|
-
return
|
4736
|
+
return Ll(this.extent);
|
4737
4737
|
}
|
4738
4738
|
toJSON() {
|
4739
4739
|
return {
|
@@ -4752,11 +4752,11 @@ class xe {
|
|
4752
4752
|
function Hc(i, t, e) {
|
4753
4753
|
return i != null && t != null && Math.abs(i - t) <= e;
|
4754
4754
|
}
|
4755
|
-
function
|
4755
|
+
function Ca(i, t, e) {
|
4756
4756
|
const s = i - t - Math.trunc((i - t) / 360) * 360;
|
4757
4757
|
return Math.abs(s) <= e;
|
4758
4758
|
}
|
4759
|
-
function
|
4759
|
+
function Tl(i, t, e) {
|
4760
4760
|
return i != null && t != null && i.every((s, r) => Hc(s, t[r], e));
|
4761
4761
|
}
|
4762
4762
|
class mt extends kt {
|
@@ -4902,14 +4902,14 @@ class mt extends kt {
|
|
4902
4902
|
* Checks if this Viewpoint is Valid
|
4903
4903
|
*/
|
4904
4904
|
isValid() {
|
4905
|
-
const e = this.cameraPosition && Array.isArray(this.cameraPosition) && this.cameraPosition.length === 3 && this.cameraPosition.every((r) => Number.isFinite(r)) &&
|
4906
|
-
return !(!(this.groundPosition && Array.isArray(this.groundPosition) && this.groundPosition.length > 1 && this.groundPosition.length < 4 && this.groundPosition.every((r) => Number.isFinite(r)) &&
|
4905
|
+
const e = this.cameraPosition && Array.isArray(this.cameraPosition) && this.cameraPosition.length === 3 && this.cameraPosition.every((r) => Number.isFinite(r)) && Va(xe.WGS_84_EXTENT, this.cameraPosition);
|
4906
|
+
return !(!(this.groundPosition && Array.isArray(this.groundPosition) && this.groundPosition.length > 1 && this.groundPosition.length < 4 && this.groundPosition.every((r) => Number.isFinite(r)) && Va(xe.WGS_84_EXTENT, this.groundPosition)) && !e || !e && !Number.isFinite(this.distance) || !Number.isFinite(this.heading) || !Number.isFinite(this.pitch) || !Number.isFinite(this.roll));
|
4907
4907
|
}
|
4908
4908
|
/**
|
4909
4909
|
* compares the provided Viewpoint with this viewpoint componentwise
|
4910
4910
|
*/
|
4911
4911
|
equals(e, s = 0) {
|
4912
|
-
return e === this || e !== null && Hc(e.distance, this.distance, s) &&
|
4912
|
+
return e === this || e !== null && Hc(e.distance, this.distance, s) && Ca(e.heading, this.heading, s) && Ca(e.pitch, this.pitch, s) && Ca(e.roll, this.roll, s) && (Tl(e.cameraPosition, this.cameraPosition, s) || Tl(e.groundPosition, this.groundPosition, s));
|
4913
4913
|
}
|
4914
4914
|
}
|
4915
4915
|
function H_() {
|
@@ -5066,16 +5066,16 @@ class Nt {
|
|
5066
5066
|
this._array = [], this.added.destroy(), this.removed.destroy();
|
5067
5067
|
}
|
5068
5068
|
}
|
5069
|
-
function
|
5069
|
+
function Nl() {
|
5070
5070
|
return ue("OverrideCollection");
|
5071
5071
|
}
|
5072
|
-
const
|
5072
|
+
const no = Symbol("OverrideCollection");
|
5073
5073
|
function ti(i, t, e, s, r, n) {
|
5074
5074
|
v(i, Nt);
|
5075
5075
|
const a = i;
|
5076
|
-
if (a[
|
5076
|
+
if (a[no])
|
5077
5077
|
throw new Error("Cannot transform collection, collection already is an OverrideCollection");
|
5078
|
-
a[
|
5078
|
+
a[no] = !0;
|
5079
5079
|
const o = s || ((u) => u), l = e || ((u) => u.toJSON ? u.toJSON() : structuredClone(u)), c = n || ((u, f, g) => g);
|
5080
5080
|
a.shadowMap = /* @__PURE__ */ new Map(), a.replace = function(f) {
|
5081
5081
|
const g = f[a.uniqueKey], m = a.getByKey(g);
|
@@ -5098,7 +5098,7 @@ function ti(i, t, e, s, r, n) {
|
|
5098
5098
|
}, a.parseItems = async function(f, g) {
|
5099
5099
|
Array.isArray(f) && (await Promise.all(f.map(async (p) => {
|
5100
5100
|
const y = await o(p);
|
5101
|
-
return !y || r && !(y instanceof r) ? (
|
5101
|
+
return !y || r && !(y instanceof r) ? (Nl().warning(`Could not load item ${// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
5102
5102
|
// @ts-ignore
|
5103
5103
|
String(p[a.uniqueKey])} of type ${String(p.type)}`), null) : (y[Ke] = g, y);
|
5104
5104
|
}))).filter((p) => p).forEach((p) => {
|
@@ -5116,7 +5116,7 @@ function ti(i, t, e, s, r, n) {
|
|
5116
5116
|
if (m) {
|
5117
5117
|
const p = await o(m);
|
5118
5118
|
if (!p) {
|
5119
|
-
|
5119
|
+
Nl().error("failed to deserialize item");
|
5120
5120
|
return;
|
5121
5121
|
}
|
5122
5122
|
p[Ke] = m[Ke];
|
@@ -5154,12 +5154,12 @@ function ti(i, t, e, s, r, n) {
|
|
5154
5154
|
d(), a.shadowMap.clear(), a.replaced.destroy();
|
5155
5155
|
}, a;
|
5156
5156
|
}
|
5157
|
-
var
|
5157
|
+
var ao;
|
5158
5158
|
(function(i) {
|
5159
5159
|
i[i.INACTIVE = 1] = "INACTIVE", i[i.ACTIVE = 2] = "ACTIVE", i[i.LOADING = 4] = "LOADING";
|
5160
|
-
})(
|
5161
|
-
const pe =
|
5162
|
-
class
|
5160
|
+
})(ao || (ao = {}));
|
5161
|
+
const pe = ao;
|
5162
|
+
class oo {
|
5163
5163
|
constructor() {
|
5164
5164
|
h(this, "hiddenObjects", {});
|
5165
5165
|
h(this, "_hiddenObjectFeatures", {});
|
@@ -5308,7 +5308,7 @@ class Ze extends kt {
|
|
5308
5308
|
return this._url ? typeof this._url == "string" ? this._url : this._url[this._locale] ? this._url[this._locale] : Object.values(this._url)[0] : "";
|
5309
5309
|
}
|
5310
5310
|
set url(e) {
|
5311
|
-
if (v(e, Ae(String,
|
5311
|
+
if (v(e, Ae(String, ll(String))), this._url !== e) {
|
5312
5312
|
const s = this._url;
|
5313
5313
|
this._url = e, this.reload().catch((r) => {
|
5314
5314
|
this.getLogger().error("failed to reload after URL setting"), this.getLogger().error(String(r)), this._url = s;
|
@@ -5325,7 +5325,7 @@ class Ze extends kt {
|
|
5325
5325
|
return this._globalHider;
|
5326
5326
|
}
|
5327
5327
|
setGlobalHider(e) {
|
5328
|
-
v(e, Q(
|
5328
|
+
v(e, Q(oo)), e && this.active && e.hideObjects(this.hiddenObjectIds), this._globalHider = e;
|
5329
5329
|
}
|
5330
5330
|
/**
|
5331
5331
|
* Indicates, that this layer is part of an exclusiveGroup
|
@@ -5359,7 +5359,7 @@ class Ze extends kt {
|
|
5359
5359
|
* @param headers
|
5360
5360
|
*/
|
5361
5361
|
set headers(e) {
|
5362
|
-
v(e, ic(
|
5362
|
+
v(e, ic(ll(String))), at(this._headers, e) || (this._headers = structuredClone(e), this.reload());
|
5363
5363
|
}
|
5364
5364
|
/**
|
5365
5365
|
* returns the currently set locale. Can be used to provide locale specific URLs.
|
@@ -5537,13 +5537,13 @@ class Ze extends kt {
|
|
5537
5537
|
}
|
5538
5538
|
}
|
5539
5539
|
De.registerClass(Ze.className, Ze);
|
5540
|
-
const ui = Symbol("alreadyTransformedToMercator"), je = Symbol("alreadyTransformedToImage"), xt = Symbol("obliqueGeometry"),
|
5540
|
+
const ui = Symbol("alreadyTransformedToMercator"), je = Symbol("alreadyTransformedToImage"), xt = Symbol("obliqueGeometry"), la = Symbol("doNotTransform"), zn = Symbol("OriginalFeature"), rr = Symbol("ActuallyIsCircle"), Re = Symbol("createSync"), Di = new U(), q_ = new po({
|
5541
5541
|
font: "30px sans-serif",
|
5542
5542
|
fill: new st({ color: vn }),
|
5543
5543
|
textAlign: "left",
|
5544
5544
|
offsetY: -15
|
5545
5545
|
});
|
5546
|
-
function
|
5546
|
+
function Dl(i, t, e) {
|
5547
5547
|
var r;
|
5548
5548
|
let s;
|
5549
5549
|
(r = e[t]) != null && r.conditions ? s = new Ld(e[t], e.defines) : s = new Td(e[t], e.defines), i[t] = s;
|
@@ -5556,8 +5556,9 @@ class qe extends Xt {
|
|
5556
5556
|
super(e);
|
5557
5557
|
h(this, "_styleOptions");
|
5558
5558
|
h(this, "_circleCache", /* @__PURE__ */ new Map());
|
5559
|
+
h(this, "_iconCache", /* @__PURE__ */ new Map());
|
5559
5560
|
const s = e.declarativeStyle || {};
|
5560
|
-
s.show = s.show != null ? s.show : !0, this.cesiumStyle = new xn(s), this._style = this._styleFunction.bind(this), s.strokeColor &&
|
5561
|
+
s.show = s.show != null ? s.show : !0, this.cesiumStyle = new xn(s), this._style = this._styleFunction.bind(this), s.strokeColor && Dl(this.cesiumStyle, "strokeColor", s), s.strokeWidth && Dl(this.cesiumStyle, "strokeWidth", s), this._styleOptions = s, this._circleCache = /* @__PURE__ */ new Map(), this._iconCache = /* @__PURE__ */ new Map();
|
5561
5562
|
}
|
5562
5563
|
static get className() {
|
5563
5564
|
return "DeclarativeStyleItem";
|
@@ -5654,7 +5655,9 @@ class qe extends Xt {
|
|
5654
5655
|
const a = this.cesiumStyle.image.evaluate(e);
|
5655
5656
|
if (a) {
|
5656
5657
|
const o = { src: a };
|
5657
|
-
Zt.contains(a) ? o.crossOrigin = "use-credentials" : Kt(a) || (o.crossOrigin = "anonymous")
|
5658
|
+
Zt.contains(a) ? o.crossOrigin = "use-credentials" : Kt(a) || (o.crossOrigin = "anonymous");
|
5659
|
+
const l = `${a}${o.crossOrigin}`;
|
5660
|
+
this._iconCache.has(l) || this._iconCache.set(l, new Ci(o)), s.setImage(this._iconCache.get(l));
|
5658
5661
|
}
|
5659
5662
|
} else {
|
5660
5663
|
const a = ((r = this.cesiumStyle.color) == null ? void 0 : r.evaluate(e, Di)) ?? U.WHITE;
|
@@ -5841,7 +5844,7 @@ const li = "2.1", Ys = {
|
|
5841
5844
|
cesium3DTile: ys.CESIUM_3D_TILE,
|
5842
5845
|
terrain: ys.TERRAIN
|
5843
5846
|
};
|
5844
|
-
function
|
5847
|
+
function xa(i, t) {
|
5845
5848
|
if (Array.isArray(i)) {
|
5846
5849
|
const e = i.map((s) => G(s)).filter((s) => s != null);
|
5847
5850
|
if (e.length === 4)
|
@@ -5849,7 +5852,7 @@ function Ca(i, t) {
|
|
5849
5852
|
}
|
5850
5853
|
return t;
|
5851
5854
|
}
|
5852
|
-
function
|
5855
|
+
function ba(i, t) {
|
5853
5856
|
if (Array.isArray(i)) {
|
5854
5857
|
const e = i.map((s) => G(s)).filter((s) => s != null);
|
5855
5858
|
if (e.length === 3)
|
@@ -5919,7 +5922,7 @@ class Lt {
|
|
5919
5922
|
*/
|
5920
5923
|
h(this, "propertyChanged");
|
5921
5924
|
const e = Lt.getDefaultOptions();
|
5922
|
-
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 =
|
5925
|
+
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 = xa(t.scaleByDistance, void 0), this._eyeOffset = ba(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();
|
5923
5926
|
}
|
5924
5927
|
/**
|
5925
5928
|
* Returns the default options for VectorProperties
|
@@ -5987,7 +5990,7 @@ class Lt {
|
|
5987
5990
|
er.equals(t, this._scaleByDistance) || (v(t, Q(er)), this._scaleByDistance = t, this.propertyChanged.raiseEvent(["scaleByDistance"]));
|
5988
5991
|
}
|
5989
5992
|
getScaleByDistance(t) {
|
5990
|
-
return
|
5993
|
+
return xa(t.get("olcs_scaleByDistance"), this.scaleByDistance);
|
5991
5994
|
}
|
5992
5995
|
get eyeOffset() {
|
5993
5996
|
return this._eyeOffset;
|
@@ -6002,7 +6005,7 @@ class Lt {
|
|
6002
6005
|
if (s)
|
6003
6006
|
return X_().deprecate("zCoordinateEyeOffset", "use eyeOffset and provide [0,0,value]"), new _(0, 0, G(s, 0));
|
6004
6007
|
}
|
6005
|
-
return
|
6008
|
+
return ba(e, this.eyeOffset);
|
6006
6009
|
}
|
6007
6010
|
get heightAboveGround() {
|
6008
6011
|
return this._heightAboveGround;
|
@@ -6251,11 +6254,11 @@ class Lt {
|
|
6251
6254
|
this._classificationType !== n && (this._classificationType = n, s.push("classificationType"));
|
6252
6255
|
}
|
6253
6256
|
if ("scaleByDistance" in t) {
|
6254
|
-
const r =
|
6257
|
+
const r = xa(t.scaleByDistance, void 0);
|
6255
6258
|
er.equals(r, this._scaleByDistance) || (this._scaleByDistance = r, s.push("scaleByDistance"));
|
6256
6259
|
}
|
6257
6260
|
if ("eyeOffset" in t) {
|
6258
|
-
const r =
|
6261
|
+
const r = ba(t.eyeOffset, void 0);
|
6259
6262
|
_.equals(r, this._eyeOffset) || (this._eyeOffset = r, s.push("eyeOffset"));
|
6260
6263
|
}
|
6261
6264
|
if ("heightAboveGround" in t) {
|
@@ -6488,7 +6491,7 @@ class di extends Ze {
|
|
6488
6491
|
*/
|
6489
6492
|
h(this, "featureVisibility");
|
6490
6493
|
const s = di.getDefaultOptions();
|
6491
|
-
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
|
6494
|
+
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 oa();
|
6492
6495
|
}
|
6493
6496
|
static get className() {
|
6494
6497
|
return "FeatureLayer";
|
@@ -6759,7 +6762,7 @@ class hi extends Ii {
|
|
6759
6762
|
* aware layers.
|
6760
6763
|
*/
|
6761
6764
|
h(this, "_locale");
|
6762
|
-
this._layerEventListeners = {}, this._zIndexSymbol = Symbol("zIndex"), this.stateChanged = new E(), this.exclusiveManager = new Z_(), this._globalHider = new
|
6765
|
+
this._layerEventListeners = {}, this._zIndexSymbol = Symbol("zIndex"), this.stateChanged = new E(), this.exclusiveManager = new Z_(), this._globalHider = new oo(), this._locale = "en";
|
6763
6766
|
}
|
6764
6767
|
/**
|
6765
6768
|
* Creates a LayerCollection from an iterable of layers, such as an Array.
|
@@ -6791,7 +6794,7 @@ class hi extends Ii {
|
|
6791
6794
|
* @param globalHider
|
6792
6795
|
*/
|
6793
6796
|
set globalHider(e) {
|
6794
|
-
v(e,
|
6797
|
+
v(e, oo), this._globalHider = e, this._array.forEach((s) => {
|
6795
6798
|
s.setGlobalHider(this._globalHider);
|
6796
6799
|
});
|
6797
6800
|
}
|
@@ -6889,12 +6892,12 @@ class hi extends Ii {
|
|
6889
6892
|
}), this._layerEventListeners = {}, this.exclusiveManager.destroy(), this._globalHider.destroy(), super.destroy();
|
6890
6893
|
}
|
6891
6894
|
}
|
6892
|
-
var
|
6895
|
+
var lo;
|
6893
6896
|
(function(i) {
|
6894
6897
|
i[i.INACTIVE = 1] = "INACTIVE", i[i.ACTIVE = 2] = "ACTIVE", i[i.LOADING = 4] = "LOADING";
|
6895
|
-
})(
|
6896
|
-
const Ot =
|
6897
|
-
function
|
6898
|
+
})(lo || (lo = {}));
|
6899
|
+
const Ot = lo, Y = Symbol("vcsLayerName");
|
6900
|
+
function Al() {
|
6898
6901
|
return ue("vcMap");
|
6899
6902
|
}
|
6900
6903
|
class Li extends kt {
|
@@ -6970,13 +6973,13 @@ class Li extends kt {
|
|
6970
6973
|
return this._target;
|
6971
6974
|
}
|
6972
6975
|
set movementDisabled(e) {
|
6973
|
-
this._movementApiCallsDisabled = e, this._movementKeyEventsDisabled = e, this._movementPointerEventsDisabled = e,
|
6976
|
+
this._movementApiCallsDisabled = e, this._movementKeyEventsDisabled = e, this._movementPointerEventsDisabled = e, Al().deprecate("movementDisabled", "disableMovement");
|
6974
6977
|
}
|
6975
6978
|
/**
|
6976
6979
|
* @deprecated use disableMovement() for setting and movementApiCallsDisabled, movementKeyEventsDisabled and movementPointerEventsDisabled getter
|
6977
6980
|
*/
|
6978
6981
|
get movementDisabled() {
|
6979
|
-
return
|
6982
|
+
return Al().deprecate("movementDisabled", 'use the following getters: "movementApiCallsDisabled", "movementKeyEventsDisabled", "movementPointerEventsDisabled"'), this._movementApiCallsDisabled && this._movementKeyEventsDisabled && this._movementPointerEventsDisabled;
|
6980
6983
|
}
|
6981
6984
|
/** Whether api calls like gotoViewpoint & setting of oblique images are disabled */
|
6982
6985
|
get movementApiCallsDisabled() {
|
@@ -7216,7 +7219,7 @@ var Ye;
|
|
7216
7219
|
(function(i) {
|
7217
7220
|
i[i.DOWN = 1] = "DOWN", i[i.UP = 2] = "UP", i[i.MOVE = 3] = "MOVE";
|
7218
7221
|
})(Ye = Ye || (Ye = {}));
|
7219
|
-
function
|
7222
|
+
function Fl(i, t, e) {
|
7220
7223
|
const s = e.indexOfKey(t[Y]);
|
7221
7224
|
if (s > -1) {
|
7222
7225
|
const r = i.getArray();
|
@@ -7308,11 +7311,11 @@ class wr extends Li {
|
|
7308
7311
|
const s = this.getVisualizationsForLayer(e);
|
7309
7312
|
s && s.forEach((r) => {
|
7310
7313
|
const n = this._olMap.getLayers();
|
7311
|
-
n.remove(r),
|
7314
|
+
n.remove(r), Fl(n, r, this.layerCollection);
|
7312
7315
|
});
|
7313
7316
|
}
|
7314
7317
|
addOLLayer(e) {
|
7315
|
-
this.validateVisualization(e) && (this.addVisualization(e),
|
7318
|
+
this.validateVisualization(e) && (this.addVisualization(e), Fl(this._olMap.getLayers(), e, this.layerCollection));
|
7316
7319
|
}
|
7317
7320
|
/**
|
7318
7321
|
* Internal API for deregistering representations.
|
@@ -7358,7 +7361,7 @@ class be extends wr {
|
|
7358
7361
|
};
|
7359
7362
|
}
|
7360
7363
|
async initialize() {
|
7361
|
-
this.initialized || (await super.initialize(), this.olMap.setView(new
|
7364
|
+
this.initialized || (await super.initialize(), this.olMap.setView(new yo({
|
7362
7365
|
center: [1.2309226203948376e6, 6350766117974091e-9],
|
7363
7366
|
zoom: 13
|
7364
7367
|
})), this.initialized = !0);
|
@@ -7484,7 +7487,7 @@ class ts extends kt {
|
|
7484
7487
|
this._initialized = !1, this._state = pe.INACTIVE, this._map = void 0, super.destroy();
|
7485
7488
|
}
|
7486
7489
|
}
|
7487
|
-
class
|
7490
|
+
class ha extends ts {
|
7488
7491
|
constructor(e, s) {
|
7489
7492
|
super(e, s);
|
7490
7493
|
h(this, "olLayer", null);
|
@@ -7542,7 +7545,7 @@ function Q_(i, t) {
|
|
7542
7545
|
s && !i.hasFeature(e, s) && i.addFeature(e, s);
|
7543
7546
|
}), t[Ks] = Date.now();
|
7544
7547
|
}
|
7545
|
-
function
|
7548
|
+
function Fo(i, t, e) {
|
7546
7549
|
const s = t.on("addfeature", (r) => {
|
7547
7550
|
if (!r.feature)
|
7548
7551
|
return;
|
@@ -7572,7 +7575,7 @@ function Ao(i, t, e) {
|
|
7572
7575
|
}
|
7573
7576
|
];
|
7574
7577
|
}
|
7575
|
-
class Vc extends
|
7578
|
+
class Vc extends ha {
|
7576
7579
|
constructor(e, s) {
|
7577
7580
|
super(e, s);
|
7578
7581
|
h(this, "source");
|
@@ -7601,7 +7604,7 @@ class Vc extends la {
|
|
7601
7604
|
return this.minResolution && e.setMinResolution(this.minResolution), this.maxResolution && e.setMaxResolution(this.maxResolution), e;
|
7602
7605
|
}
|
7603
7606
|
async activate() {
|
7604
|
-
this.active || (await super.activate(), this.active && this._featureVisibilityListeners.length === 0 && (this._featureVisibilityListeners =
|
7607
|
+
this.active || (await super.activate(), this.active && this._featureVisibilityListeners.length === 0 && (this._featureVisibilityListeners = Fo(this.featureVisibility, this.source, this.globalHider)));
|
7605
7608
|
}
|
7606
7609
|
deactivate() {
|
7607
7610
|
super.deactivate(), this._featureVisibilityListeners.forEach((e) => {
|
@@ -7630,7 +7633,7 @@ function e0(i, t, e) {
|
|
7630
7633
|
const n = document.createElement("canvas"), a = n.getContext("2d");
|
7631
7634
|
a.fillStyle = r, a.fillRect(0, 0, 300, 300), s.material = Rt.fromType("Wallpaper", {
|
7632
7635
|
image: n,
|
7633
|
-
anchor: Nd.wgs84ToDrawingBufferCoordinates(i, _.fromDegreesArray(
|
7636
|
+
anchor: Nd.wgs84ToDrawingBufferCoordinates(i, _.fromDegreesArray(_o(e.getGeometry().getExtent()))[0])
|
7634
7637
|
});
|
7635
7638
|
} else {
|
7636
7639
|
const n = ai(r, [0, 0, 0, 1]);
|
@@ -7683,9 +7686,9 @@ function i0(i, t, e, s, r, n, a) {
|
|
7683
7686
|
l.geometryInstances = d;
|
7684
7687
|
const u = e0(i, n.getFill(), s);
|
7685
7688
|
if (l.appearance = u, a) {
|
7686
|
-
if (!
|
7689
|
+
if (!el.isSupported(i))
|
7687
7690
|
return null;
|
7688
|
-
l.classificationType = o || ys.TERRAIN, c = new
|
7691
|
+
l.classificationType = o || ys.TERRAIN, c = new el(l);
|
7689
7692
|
} else
|
7690
7693
|
c = new pt(l);
|
7691
7694
|
}
|
@@ -7727,7 +7730,7 @@ function $c(i, t, e, s, r, n, a) {
|
|
7727
7730
|
oddColor: new U(0, 0, 0, 0)
|
7728
7731
|
// transparent
|
7729
7732
|
}) : d = Rt.fromType("Color", { color: c });
|
7730
|
-
const u = new
|
7733
|
+
const u = new Xa({
|
7731
7734
|
renderState: {
|
7732
7735
|
depthTest: {
|
7733
7736
|
enabled: !0
|
@@ -7745,9 +7748,9 @@ function $c(i, t, e, s, r, n, a) {
|
|
7745
7748
|
};
|
7746
7749
|
let g;
|
7747
7750
|
if (a) {
|
7748
|
-
if (!
|
7751
|
+
if (!tl.isSupported(i))
|
7749
7752
|
return null;
|
7750
|
-
f.classificationType = o || ys.TERRAIN, g = new
|
7753
|
+
f.classificationType = o || ys.TERRAIN, g = new tl(f);
|
7751
7754
|
} else
|
7752
7755
|
g = new pt(f);
|
7753
7756
|
return g;
|
@@ -7764,7 +7767,7 @@ function r0(i, t) {
|
|
7764
7767
|
}
|
7765
7768
|
return 0;
|
7766
7769
|
}
|
7767
|
-
function
|
7770
|
+
function Rl(i, t, e) {
|
7768
7771
|
const s = Math.abs(i), r = [];
|
7769
7772
|
if (t.length) {
|
7770
7773
|
let n = 0;
|
@@ -7783,7 +7786,7 @@ function Fl(i, t, e) {
|
|
7783
7786
|
return new Array(e).fill(s / e);
|
7784
7787
|
return [s];
|
7785
7788
|
}
|
7786
|
-
function
|
7789
|
+
function Gl(i, t) {
|
7787
7790
|
if (i && t.length) {
|
7788
7791
|
const e = i - t.length;
|
7789
7792
|
e > 0 ? t.push(...new Array(e).fill(t[t.length - 1])) : e < 0 && t.splice(t.length + e), i > 100 && t.splice(100);
|
@@ -7796,7 +7799,7 @@ function n0(i, t, e) {
|
|
7796
7799
|
function Bc(i, t, e) {
|
7797
7800
|
const s = t.getExtrudedHeight(i);
|
7798
7801
|
let r = t.getStoreysAboveGround(i), n = t.getStoreysBelowGround(i), a = t.getStoreyHeightsAboveGround(i), o = t.getStoreyHeightsBelowGround(i);
|
7799
|
-
s && (s > 0 ? (a =
|
7802
|
+
s && (s > 0 ? (a = Rl(s, a, r), r = a.length, o = [], n = 0) : s < 0 && (o = Rl(s, o, n), n = o.length, a = [], r = 0)), Gl(r, a), Gl(n, o);
|
7800
7803
|
const l = t.getSkirt(i), c = t.getGroundLevel(i), d = t.getAltitudeMode(i), u = n0(i, d, t), f = r0(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);
|
7801
7804
|
return {
|
7802
7805
|
extruded: m,
|
@@ -7809,7 +7812,7 @@ function Bc(i, t, e) {
|
|
7809
7812
|
heightAboveGroundAdjustment: u
|
7810
7813
|
};
|
7811
7814
|
}
|
7812
|
-
function
|
7815
|
+
function kl(i, t, e, s) {
|
7813
7816
|
const r = e ? -1 : 1;
|
7814
7817
|
let n = t;
|
7815
7818
|
const a = i.length, o = new Array(a);
|
@@ -7822,14 +7825,14 @@ function Gl(i, t, e, s) {
|
|
7822
7825
|
}
|
7823
7826
|
return s ? (s.push(...o), s) : o;
|
7824
7827
|
}
|
7825
|
-
function
|
7828
|
+
function ca(i, t, e, s, r, n, a) {
|
7826
7829
|
if (!e.length)
|
7827
7830
|
return;
|
7828
7831
|
const o = [], l = [], c = [], d = Bc(i, s, n.getCoordinates(e)), u = !!t.getFill(), f = !!t.getStroke();
|
7829
7832
|
let g = !1;
|
7830
7833
|
e.forEach((y) => {
|
7831
|
-
const S = n.getGeometryOptions(y, d.heightAboveGroundAdjustment, d.perPositionHeight, d.groundLevel), w =
|
7832
|
-
if (
|
7834
|
+
const S = n.getGeometryOptions(y, d.heightAboveGroundAdjustment, d.perPositionHeight, d.groundLevel), w = kl(d.storeyHeightsAboveGround, d.groundLevel);
|
7835
|
+
if (kl(d.storeyHeightsBelowGround, d.groundLevel, !0, w), u && w.forEach((C) => {
|
7833
7836
|
o.push(...n.createSolidGeometries(S, C.currentHeight, d.perPositionHeight, C.extrudedHeight));
|
7834
7837
|
}), f && w.forEach((C) => {
|
7835
7838
|
l.push(...n.createOutlineGeometries(S, C.currentHeight, d.perPositionHeight, C.extrudedHeight));
|
@@ -7854,7 +7857,7 @@ function ha(i, t, e, s, r, n, a) {
|
|
7854
7857
|
}
|
7855
7858
|
a.addPrimitives(p, i, m);
|
7856
7859
|
}
|
7857
|
-
function
|
7860
|
+
function Ro(i) {
|
7858
7861
|
const t = i.getStride(), e = i.getFlatCoordinates();
|
7859
7862
|
if (e.length > 0) {
|
7860
7863
|
const s = Math.floor(e.length / t), r = new Array(s);
|
@@ -7870,7 +7873,7 @@ function Fo(i) {
|
|
7870
7873
|
}
|
7871
7874
|
function Ns(i, t) {
|
7872
7875
|
if (!t && i instanceof Zu)
|
7873
|
-
return
|
7876
|
+
return Ro(i);
|
7874
7877
|
const e = t;
|
7875
7878
|
let s = null;
|
7876
7879
|
return i instanceof Dt ? s = [e] : i instanceof qt ? s = e : i instanceof At ? s = e.reduce((r, n) => r.concat(n)) : i instanceof Ah ? s = e : i instanceof Fh ? s = e.reduce((r, n) => r.concat(n)) : i instanceof or ? s = e.reduce((r, n) => r.concat(n)).reduce((r, n) => r.concat(n)) : i instanceof bt ? s = e : i instanceof Fr && (s = i.getGeometries().map((r, n) => Ns(r, e == null ? void 0 : e[n])).reduce((r, n) => r.concat(n))), s;
|
@@ -7882,11 +7885,11 @@ function Uc(i, t) {
|
|
7882
7885
|
function qc(i) {
|
7883
7886
|
return i instanceof bt ? Rh(i) : (i instanceof At && i.unset("_vcsGeomType"), i);
|
7884
7887
|
}
|
7885
|
-
function
|
7888
|
+
function ho(i) {
|
7886
7889
|
const [t, e] = i[i.length - 1];
|
7887
7890
|
i[0][0] === t && i[0][1] === e || i.push(i[0].slice());
|
7888
7891
|
}
|
7889
|
-
function
|
7892
|
+
function zl(i) {
|
7890
7893
|
const [t, e] = i[i.length - 1];
|
7891
7894
|
i[0][0] === t && i[0][1] === e && i.pop();
|
7892
7895
|
}
|
@@ -7894,13 +7897,13 @@ function Wc(i) {
|
|
7894
7897
|
if (i instanceof At) {
|
7895
7898
|
const t = i.getCoordinates();
|
7896
7899
|
t.forEach((e) => {
|
7897
|
-
|
7900
|
+
zl(e);
|
7898
7901
|
}), i.setCoordinates(t);
|
7899
7902
|
} else if (i instanceof or) {
|
7900
7903
|
const t = i.getCoordinates();
|
7901
7904
|
t.forEach((e) => {
|
7902
7905
|
e.forEach((s) => {
|
7903
|
-
|
7906
|
+
zl(s);
|
7904
7907
|
});
|
7905
7908
|
}), i.setCoordinates(t);
|
7906
7909
|
}
|
@@ -7952,7 +7955,7 @@ function Yc(i, t) {
|
|
7952
7955
|
}), s;
|
7953
7956
|
}
|
7954
7957
|
function c0(i, t) {
|
7955
|
-
return Yc(i, t).map((e) => new
|
7958
|
+
return Yc(i, t).map((e) => new vo(e));
|
7956
7959
|
}
|
7957
7960
|
function u0(i, t) {
|
7958
7961
|
return Yc(i, t).map((e) => new zi(e));
|
@@ -7965,21 +7968,21 @@ function d0(i, t, e, s) {
|
|
7965
7968
|
const u = k.mercatorToWgs84(d);
|
7966
7969
|
return !e && s ? u[2] = s : u[2] != null && (u[2] += t), _.fromDegrees(u[0], u[1], u[2]);
|
7967
7970
|
});
|
7968
|
-
_.equals(c[0], c[c.length - 1]) || c.push(c[0]), o === 0 ? r = c : n.push(new
|
7971
|
+
_.equals(c[0], c[c.length - 1]) || c.push(c[0]), o === 0 ? r = c : n.push(new Ya(c));
|
7969
7972
|
}
|
7970
7973
|
return {
|
7971
|
-
polygonHierarchy: new
|
7974
|
+
polygonHierarchy: new Ya(r, n)
|
7972
7975
|
};
|
7973
7976
|
}
|
7974
7977
|
function f0(i) {
|
7975
7978
|
const t = [];
|
7976
7979
|
return i.forEach((e) => {
|
7977
|
-
t.push(...
|
7980
|
+
t.push(...Ro(e));
|
7978
7981
|
}), t;
|
7979
7982
|
}
|
7980
|
-
let
|
7983
|
+
let Oa = null;
|
7981
7984
|
function g0() {
|
7982
|
-
return
|
7985
|
+
return Oa || (Oa = {
|
7983
7986
|
getCoordinates: f0,
|
7984
7987
|
getGeometryOptions: d0,
|
7985
7988
|
createSolidGeometries: Xc,
|
@@ -7987,7 +7990,7 @@ function g0() {
|
|
7987
7990
|
createFillGeometries: h0,
|
7988
7991
|
createGroundLineGeometries: c0,
|
7989
7992
|
createLineGeometries: u0
|
7990
|
-
}),
|
7993
|
+
}), Oa;
|
7991
7994
|
}
|
7992
7995
|
function Zc(i) {
|
7993
7996
|
if (i.getType() !== "Polygon")
|
@@ -8001,11 +8004,11 @@ function Zc(i) {
|
|
8001
8004
|
const n = s * 3 * i.getLinearRingCount();
|
8002
8005
|
return t && t.length >= n && i.getLinearRingCount() ? t.every((a) => Number.isFinite(a)) : !1;
|
8003
8006
|
}
|
8004
|
-
function
|
8007
|
+
function Hl(i, t, e, s, r, n) {
|
8005
8008
|
if (!t.getFill() && !t.getStroke())
|
8006
8009
|
return;
|
8007
8010
|
const a = g0(), o = e.filter((l) => Zc(l));
|
8008
|
-
|
8011
|
+
ca(i, t, o, s, r, a, n);
|
8009
8012
|
}
|
8010
8013
|
function Kc(i, t, e, s) {
|
8011
8014
|
return [
|
@@ -8042,7 +8045,7 @@ function Jc(i, t) {
|
|
8042
8045
|
}
|
8043
8046
|
function y0(i, t) {
|
8044
8047
|
const e = Jc(i, t);
|
8045
|
-
return [new
|
8048
|
+
return [new vo(e)];
|
8046
8049
|
}
|
8047
8050
|
function _0(i, t) {
|
8048
8051
|
const e = Jc(i, t);
|
@@ -8062,9 +8065,9 @@ function v0(i, t, e, s) {
|
|
8062
8065
|
function S0(i) {
|
8063
8066
|
return i.map((t) => t.getCenter());
|
8064
8067
|
}
|
8065
|
-
let
|
8068
|
+
let Ea = null;
|
8066
8069
|
function w0() {
|
8067
|
-
return
|
8070
|
+
return Ea || (Ea = {
|
8068
8071
|
getCoordinates: S0,
|
8069
8072
|
getGeometryOptions: v0,
|
8070
8073
|
createSolidGeometries: Kc,
|
@@ -8072,7 +8075,7 @@ function w0() {
|
|
8072
8075
|
createFillGeometries: p0,
|
8073
8076
|
createGroundLineGeometries: y0,
|
8074
8077
|
createLineGeometries: _0
|
8075
|
-
}),
|
8078
|
+
}), Ea;
|
8076
8079
|
}
|
8077
8080
|
function Qc(i) {
|
8078
8081
|
if (i.getType() !== "Circle")
|
@@ -8084,7 +8087,7 @@ function M0(i, t, e, s, r, n) {
|
|
8084
8087
|
if (!t.getFill() && !t.getStroke())
|
8085
8088
|
return;
|
8086
8089
|
const a = w0(), o = e.filter((l) => Qc(l));
|
8087
|
-
|
8090
|
+
ca(i, t, o, s, r, a, n);
|
8088
8091
|
}
|
8089
8092
|
var Qe;
|
8090
8093
|
(function(i) {
|
@@ -8133,7 +8136,7 @@ function x0() {
|
|
8133
8136
|
offset: [0, 0, -4.3]
|
8134
8137
|
};
|
8135
8138
|
}
|
8136
|
-
class
|
8139
|
+
class ua extends ee {
|
8137
8140
|
constructor(e = {}) {
|
8138
8141
|
const s = e.color ?? "#000000", r = {
|
8139
8142
|
stroke: new $e({
|
@@ -8149,7 +8152,7 @@ class ca extends ee {
|
|
8149
8152
|
super(r);
|
8150
8153
|
h(this, "primitiveOptions");
|
8151
8154
|
h(this, "end");
|
8152
|
-
this.primitiveOptions = n, this.end =
|
8155
|
+
this.primitiveOptions = n, this.end = aa(e.end, Qe, Qe.END), this.setRenderer(this._render.bind(this));
|
8153
8156
|
}
|
8154
8157
|
/**
|
8155
8158
|
* Same as getStroke().getWidth() / getStroke().setWidth()
|
@@ -8179,7 +8182,7 @@ class ca extends ee {
|
|
8179
8182
|
_render(e, s) {
|
8180
8183
|
if (s.geometry.getType() === "LineString" && e.length > 1 && this.width) {
|
8181
8184
|
const r = s.context;
|
8182
|
-
this.end !== Qe.NONE && ((this.end === Qe.START || this.end === Qe.BOTH) && this._drawArrow(r, e[0],
|
8185
|
+
this.end !== Qe.NONE && ((this.end === Qe.START || this.end === Qe.BOTH) && this._drawArrow(r, e[0], io(e[1], e[0]), s.pixelRatio), (this.end === Qe.END || this.end === Qe.BOTH) && this._drawArrow(r, e.at(-1), io(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]);
|
8183
8186
|
for (let n = 0; n < e.length; n++)
|
8184
8187
|
r.lineTo(e[n][0], e[n][1]);
|
8185
8188
|
r.stroke(), r.restore();
|
@@ -8205,7 +8208,7 @@ class ca extends ee {
|
|
8205
8208
|
};
|
8206
8209
|
}
|
8207
8210
|
clone() {
|
8208
|
-
return new
|
8211
|
+
return new ua(this._getCloneOptions());
|
8209
8212
|
}
|
8210
8213
|
}
|
8211
8214
|
function b0(i, t, e, s) {
|
@@ -8236,7 +8239,7 @@ function eu(i, t) {
|
|
8236
8239
|
});
|
8237
8240
|
}
|
8238
8241
|
async function tu(i, t, e, s) {
|
8239
|
-
await
|
8242
|
+
await ia(e.globe.terrainProvider, [
|
8240
8243
|
se.fromCartesian(t)
|
8241
8244
|
]).then(([r]) => {
|
8242
8245
|
if (!i.isDestroyed()) {
|
@@ -8246,7 +8249,7 @@ async function tu(i, t, e, s) {
|
|
8246
8249
|
}).catch(() => {
|
8247
8250
|
});
|
8248
8251
|
}
|
8249
|
-
async function
|
8252
|
+
async function jl(i, t, e, s, r, n) {
|
8250
8253
|
const a = s.getModel(i);
|
8251
8254
|
if (!a)
|
8252
8255
|
return null;
|
@@ -8258,7 +8261,7 @@ async function Hl(i, t, e, s, r, n) {
|
|
8258
8261
|
}
|
8259
8262
|
return {
|
8260
8263
|
primitives: await Promise.all(e.map(async (g, m) => {
|
8261
|
-
const p = R.multiply(bi.headingPitchRollToFixedFrame(g, l), R.fromScale(o), new R()), y = s.getModelOptions(i), S = s.getAltitudeMode(i), w = await
|
8264
|
+
const p = R.multiply(bi.headingPitchRollToFixedFrame(g, l), R.fromScale(o), new R()), y = s.getModelOptions(i), S = s.getAltitudeMode(i), w = await So.fromGltfAsync({
|
8262
8265
|
asynchronous: !i[Re],
|
8263
8266
|
url: a.url,
|
8264
8267
|
modelMatrix: p,
|
@@ -8284,7 +8287,7 @@ async function Hl(i, t, e, s, r, n) {
|
|
8284
8287
|
options: a
|
8285
8288
|
};
|
8286
8289
|
}
|
8287
|
-
function
|
8290
|
+
function Pa(i, t, e) {
|
8288
8291
|
var r, n;
|
8289
8292
|
let s;
|
8290
8293
|
return Fi(i, Mt.CYLINDER) ? s = e ? new kd(i.geometryOptions) : new qh(i.geometryOptions) : Fi(i, Mt.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 zd(i.geometryOptions) : new Wh(i.geometryOptions)), Fi(i, Mt.SPHERE) && (s = e ? new Hd(i.geometryOptions) : new jd(i.geometryOptions)), Fi(i, Mt.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 Vd(i.geometryOptions) : new Xh(i.geometryOptions)), s ? new ct({
|
@@ -8294,7 +8297,7 @@ function Ea(i, t, e) {
|
|
8294
8297
|
}
|
8295
8298
|
}) : null;
|
8296
8299
|
}
|
8297
|
-
async function
|
8300
|
+
async function co(i, t, e, s, r, n) {
|
8298
8301
|
const a = r.getPrimitive(i);
|
8299
8302
|
if (!a)
|
8300
8303
|
return null;
|
@@ -8341,27 +8344,27 @@ async function ho(i, t, e, s, r, n) {
|
|
8341
8344
|
}, q = [];
|
8342
8345
|
if (d)
|
8343
8346
|
q.push(F(d.alpha < 1 || !!L, [
|
8344
|
-
|
8347
|
+
Pa(a.primitiveOptions, d)
|
8345
8348
|
], L));
|
8346
8349
|
else if (L) {
|
8347
8350
|
const $ = U.TRANSPARENT;
|
8348
8351
|
q.push(F(!0, [
|
8349
|
-
|
8352
|
+
Pa(a.primitiveOptions, $)
|
8350
8353
|
], L));
|
8351
8354
|
}
|
8352
8355
|
return u && q.push(F(u.alpha < 1 || !!L, [
|
8353
|
-
|
8356
|
+
Pa(a.primitiveOptions, u, !0)
|
8354
8357
|
])), Promise.all(q);
|
8355
8358
|
}))).flatMap((S) => S),
|
8356
8359
|
options: a
|
8357
8360
|
};
|
8358
8361
|
}
|
8359
|
-
function
|
8362
|
+
function Vl(i, t, e) {
|
8360
8363
|
let s = e === Le.NONE ? c_(t, i) : 0;
|
8361
8364
|
return s += 90, {
|
8362
8365
|
location: t,
|
8363
8366
|
pitch: s,
|
8364
|
-
heading: N.toDegrees(
|
8367
|
+
heading: N.toDegrees(io(i, t) + N.PI_OVER_TWO)
|
8365
8368
|
};
|
8366
8369
|
}
|
8367
8370
|
async function iu(i, t, e, s, r, n, a) {
|
@@ -8371,7 +8374,7 @@ async function iu(i, t, e, s, r, n, a) {
|
|
8371
8374
|
const o = [], l = s.getAltitudeMode(i);
|
8372
8375
|
if (e.forEach((f) => {
|
8373
8376
|
const g = n.getCoordinates([f]);
|
8374
|
-
(t.end === Qe.START || t.end === Qe.BOTH) && o.push(
|
8377
|
+
(t.end === Qe.START || t.end === Qe.BOTH) && o.push(Vl(g[1], g[0], l)), (t.end === Qe.END || t.end === Qe.BOTH) && o.push(Vl(g.at(-2), g.at(-1), l));
|
8375
8378
|
}), o.length === 0)
|
8376
8379
|
return;
|
8377
8380
|
const c = t.getOlcsStyle(), d = s.getAllowPicking(i);
|
@@ -8383,7 +8386,7 @@ async function iu(i, t, e, s, r, n, a) {
|
|
8383
8386
|
olcs_modelPitch: f.pitch,
|
8384
8387
|
geometry: new Dt(f.location),
|
8385
8388
|
olcs_modelAutoScale: !0
|
8386
|
-
}), m = k.mercatorToWgs84(f.location), p = _.fromDegrees(m[0], m[1], m[2]), y = await
|
8389
|
+
}), m = k.mercatorToWgs84(f.location), p = _.fromDegrees(m[0], m[1], m[2]), y = await co(g, c, [m], [p], s, r);
|
8387
8390
|
y != null && y.primitives && a.addScaledPrimitives(y.primitives, i, d);
|
8388
8391
|
}));
|
8389
8392
|
}
|
@@ -8411,13 +8414,13 @@ function nu(i, t, e) {
|
|
8411
8414
|
function au(i, t) {
|
8412
8415
|
const e = G(t.getStroke().getWidth(), 1);
|
8413
8416
|
return [
|
8414
|
-
new
|
8417
|
+
new vo({
|
8415
8418
|
...i,
|
8416
8419
|
width: e
|
8417
8420
|
})
|
8418
8421
|
];
|
8419
8422
|
}
|
8420
|
-
function
|
8423
|
+
function Go(i, t) {
|
8421
8424
|
const e = G(t.getStroke().getWidth(), 1);
|
8422
8425
|
return [
|
8423
8426
|
new zi({
|
@@ -8435,32 +8438,32 @@ function ou(i, t, e, s) {
|
|
8435
8438
|
function lu(i) {
|
8436
8439
|
const t = [];
|
8437
8440
|
return i.forEach((e) => {
|
8438
|
-
t.push(...
|
8441
|
+
t.push(...Ro(e));
|
8439
8442
|
}), t;
|
8440
8443
|
}
|
8441
|
-
let
|
8444
|
+
let Ia = null;
|
8442
8445
|
function O0() {
|
8443
|
-
return
|
8446
|
+
return Ia || (Ia = {
|
8444
8447
|
getCoordinates: lu,
|
8445
8448
|
getGeometryOptions: ou,
|
8446
8449
|
createSolidGeometries: su,
|
8447
8450
|
createOutlineGeometries: ru,
|
8448
8451
|
createFillGeometries: nu,
|
8449
8452
|
createGroundLineGeometries: au,
|
8450
|
-
createLineGeometries:
|
8451
|
-
}),
|
8453
|
+
createLineGeometries: Go
|
8454
|
+
}), Ia;
|
8452
8455
|
}
|
8453
|
-
function
|
8456
|
+
function ko(i) {
|
8454
8457
|
if (i.getType() !== "LineString")
|
8455
8458
|
return !1;
|
8456
8459
|
const t = i.getFlatCoordinates(), e = i.getStride() * 2;
|
8457
8460
|
return t && t.length >= e ? t.every((s) => Number.isFinite(s)) : !1;
|
8458
8461
|
}
|
8459
|
-
async function
|
8462
|
+
async function $l(i, t, e, s, r, n) {
|
8460
8463
|
if (!t.getFill() && !t.getStroke())
|
8461
8464
|
return;
|
8462
|
-
const a = O0(), o = e.filter((l) =>
|
8463
|
-
|
8465
|
+
const a = O0(), o = e.filter((l) => ko(l));
|
8466
|
+
ca(i, t, o, s, r, a, n), t instanceof ua && await iu(i, t, o, s, r, a, n);
|
8464
8467
|
}
|
8465
8468
|
function E0(i) {
|
8466
8469
|
return i.map((t) => t.getCoordinates());
|
@@ -8501,18 +8504,18 @@ function I0(i, t, e, s) {
|
|
8501
8504
|
c && (a.font = c);
|
8502
8505
|
const d = r.getFill(), u = r.getStroke();
|
8503
8506
|
let f;
|
8504
|
-
d && (a.fillColor = ai(d.getColor(), [0, 0, 0, 1]), f =
|
8507
|
+
d && (a.fillColor = ai(d.getColor(), [0, 0, 0, 1]), f = ya.FILL), u && (a.outlineWidth = G(u.getWidth(), 1), a.outlineColor = ai(u.getColor(), [0, 0, 0, 1]), f = ya.OUTLINE), d && u && (f = ya.FILL_AND_OUTLINE), a.style = f;
|
8505
8508
|
let g;
|
8506
8509
|
switch (r.getTextAlign()) {
|
8507
8510
|
case "left":
|
8508
|
-
g =
|
8511
|
+
g = _a.LEFT;
|
8509
8512
|
break;
|
8510
8513
|
case "right":
|
8511
|
-
g =
|
8514
|
+
g = _a.RIGHT;
|
8512
8515
|
break;
|
8513
8516
|
case "center":
|
8514
8517
|
default:
|
8515
|
-
g =
|
8518
|
+
g = _a.CENTER;
|
8516
8519
|
}
|
8517
8520
|
a.horizontalOrigin = g;
|
8518
8521
|
let m;
|
@@ -8561,11 +8564,11 @@ function T0(i, t, e, s) {
|
|
8561
8564
|
let l = o[2] != null ? o[2] : t.groundLevel;
|
8562
8565
|
l -= n;
|
8563
8566
|
const c = _.fromDegrees(o[0], o[1], l), d = [e[a], c];
|
8564
|
-
r.push(...
|
8567
|
+
r.push(...Go({ positions: d }, s));
|
8565
8568
|
}
|
8566
8569
|
return r;
|
8567
8570
|
}
|
8568
|
-
async function
|
8571
|
+
async function Bl(i, t, e, s, r, n) {
|
8569
8572
|
if (!t.getImage() && !(t.getText() && t.getText().getText()))
|
8570
8573
|
return;
|
8571
8574
|
const a = e.filter((m) => hu(m));
|
@@ -8575,7 +8578,7 @@ async function $l(i, t, e, s, r, n) {
|
|
8575
8578
|
let { heightReference: c } = l;
|
8576
8579
|
const d = s.getAllowPicking(i), { positions: u, wgs84Positions: f } = L0(o, l);
|
8577
8580
|
let g = null;
|
8578
|
-
if (i.get("olcs_modelUrl") ? g = await
|
8581
|
+
if (i.get("olcs_modelUrl") ? g = await jl(i, f, u, s, r, t) : i.get("olcs_primitiveOptions") ? g = await co(i, t, f, u, s, r) : g = await jl(i, f, u, s, r, t) ?? await co(i, t, f, u, s, r), l.extruded && t.getStroke()) {
|
8579
8582
|
const m = T0(f, l, u, t);
|
8580
8583
|
if (m.length) {
|
8581
8584
|
c = Le.NONE;
|
@@ -8598,7 +8601,7 @@ async function $l(i, t, e, s, r, n) {
|
|
8598
8601
|
}
|
8599
8602
|
}
|
8600
8603
|
}
|
8601
|
-
const si = Symbol("FeatureArcStruct"),
|
8604
|
+
const si = Symbol("FeatureArcStruct"), Ul = Symbol("ArcStyleId");
|
8602
8605
|
function N0(i, t, e) {
|
8603
8606
|
const s = X.determinant(new X(i[0], i[1], 1, t[0], t[1], 1, e[0], e[1], 1));
|
8604
8607
|
if (s === 0)
|
@@ -8664,16 +8667,16 @@ function R0(i, t, e, s, r, n) {
|
|
8664
8667
|
];
|
8665
8668
|
return m;
|
8666
8669
|
}
|
8667
|
-
function
|
8670
|
+
function uo(i, t, e, s) {
|
8668
8671
|
t[si] && t[si].destroy();
|
8669
8672
|
const r = t.getGeometry(), n = [], a = () => {
|
8670
8673
|
re(n);
|
8671
8674
|
};
|
8672
8675
|
if (n.push(t.on("change:geometry", () => {
|
8673
|
-
|
8676
|
+
uo(i, t, e, s);
|
8674
8677
|
})), r instanceof qt) {
|
8675
8678
|
n.push(r.on("change", () => {
|
8676
|
-
|
8679
|
+
uo(i, t, e, s);
|
8677
8680
|
}));
|
8678
8681
|
const o = r.getFirstCoordinate(), l = r.getLastCoordinate(), c = _t(o, l), d = c * i;
|
8679
8682
|
let u = s;
|
@@ -8698,7 +8701,7 @@ function co(i, t, e, s) {
|
|
8698
8701
|
destroy: a
|
8699
8702
|
};
|
8700
8703
|
}
|
8701
|
-
class
|
8704
|
+
class zo extends ua {
|
8702
8705
|
/**
|
8703
8706
|
* @param [options=]
|
8704
8707
|
*/
|
@@ -8745,14 +8748,14 @@ class ko extends ca {
|
|
8745
8748
|
}
|
8746
8749
|
_getFeatureArcGeometry(e) {
|
8747
8750
|
var s;
|
8748
|
-
return (!e[si] || e[
|
8751
|
+
return (!e[si] || e[Ul] !== this._revisionId) && (uo(this._arcFactor, e, this._numberOfSegments, this._offset), e[Ul] = this._revisionId), (s = e[si]) == null ? void 0 : s.geometry;
|
8749
8752
|
}
|
8750
8753
|
_getCloneOptions() {
|
8751
8754
|
const e = super._getCloneOptions();
|
8752
8755
|
return e.arcFactor = this._arcFactor, e.numberOfSegments = this._numberOfSegments, e;
|
8753
8756
|
}
|
8754
8757
|
clone() {
|
8755
|
-
return new
|
8758
|
+
return new zo(this._getCloneOptions());
|
8756
8759
|
}
|
8757
8760
|
}
|
8758
8761
|
function G0(i, t, e, s, r) {
|
@@ -8772,18 +8775,18 @@ function z0(i, t) {
|
|
8772
8775
|
createOutlineGeometries: ru,
|
8773
8776
|
createFillGeometries: nu,
|
8774
8777
|
createGroundLineGeometries: au,
|
8775
|
-
createLineGeometries:
|
8778
|
+
createLineGeometries: Go
|
8776
8779
|
};
|
8777
8780
|
}
|
8778
8781
|
async function H0(i, t, e, s, r, n) {
|
8779
8782
|
if (!t.getFill() && !t.getStroke())
|
8780
8783
|
return;
|
8781
|
-
const a = s.getAltitudeMode(i), o = z0(i[si].coordinates, a), l = e.filter((c) =>
|
8782
|
-
|
8784
|
+
const a = s.getAltitudeMode(i), o = z0(i[si].coordinates, a), l = e.filter((c) => ko(c));
|
8785
|
+
ca(i, t, l, s, r, o, n), await iu(i, t, l, s, r, o, n);
|
8783
8786
|
}
|
8784
8787
|
async function cu(i, t, e, s, r, n) {
|
8785
8788
|
var a;
|
8786
|
-
t instanceof Dt ? await
|
8789
|
+
t instanceof Dt ? await Bl(i, e, [t], s, r, n) : t instanceof At ? Hl(i, e, [t], s, r, n) : t instanceof qt ? e instanceof zo && ((a = i[si]) != null && a.coordinates) ? await H0(i, e, [t], s, r, n) : await $l(i, e, [t], s, r, n) : t instanceof bt ? M0(i, e, [t], s, r, n) : t instanceof Ah ? await Bl(i, e, t.getPoints(), s, r, n) : t instanceof or ? Hl(i, e, t.getPolygons(), s, r, n) : t instanceof Fh ? await $l(i, e, t.getLineStrings(), s, r, n) : t instanceof Fr && await Promise.all(t.getGeometries().map(async (o) => {
|
8787
8790
|
await cu(i, o, e, s, r, n);
|
8788
8791
|
}));
|
8789
8792
|
}
|
@@ -8815,18 +8818,18 @@ function ps(i, t, e, s, r, n) {
|
|
8815
8818
|
if (i.length) {
|
8816
8819
|
const a = i.map((o) => {
|
8817
8820
|
const l = s.add(o);
|
8818
|
-
return e && V0(t, l), n && l instanceof
|
8821
|
+
return e && V0(t, l), n && l instanceof So && (l.splitDirection = n), l;
|
8819
8822
|
});
|
8820
8823
|
r.has(t) ? r.get(t).push(...a) : r.set(t, a);
|
8821
8824
|
}
|
8822
8825
|
}
|
8823
|
-
function
|
8826
|
+
function ql(i, t) {
|
8824
8827
|
for (let e = 0; e < t.length; e++) {
|
8825
8828
|
const s = t.get(e);
|
8826
|
-
s instanceof
|
8829
|
+
s instanceof So && (s.splitDirection = i);
|
8827
8830
|
}
|
8828
8831
|
}
|
8829
|
-
const
|
8832
|
+
const Wl = Symbol("Scale"), $0 = new _();
|
8830
8833
|
function B0(i, t, e) {
|
8831
8834
|
let s = new mt({});
|
8832
8835
|
return i.getScene().postRender.addEventListener(() => {
|
@@ -8839,7 +8842,7 @@ function B0(i, t, e) {
|
|
8839
8842
|
const o = t.get(a);
|
8840
8843
|
if (!o.isDestroyed()) {
|
8841
8844
|
const { modelMatrix: l } = o, c = R.getTranslation(l, $0), d = i.getCurrentResolutionFromCartesian(c);
|
8842
|
-
o[
|
8845
|
+
o[Wl] !== d && (o.modelMatrix = R.setScale(l, new _(d, d, d), new R()), o[Wl] = d);
|
8843
8846
|
}
|
8844
8847
|
}
|
8845
8848
|
e.value = !1, s = n;
|
@@ -8944,7 +8947,7 @@ class q0 {
|
|
8944
8947
|
* @param splitDirection
|
8945
8948
|
*/
|
8946
8949
|
updateSplitDirection(t) {
|
8947
|
-
this.splitDirection = t,
|
8950
|
+
this.splitDirection = t, ql(t, this.primitives), ql(t, this.scaledPrimitives);
|
8948
8951
|
}
|
8949
8952
|
/**
|
8950
8953
|
* Clears all collections and maps
|
@@ -9040,7 +9043,7 @@ class W0 extends ts {
|
|
9040
9043
|
this._featureToAdd.delete(e), this._addFeature(e), this._context.clearFeatureCache(s);
|
9041
9044
|
}
|
9042
9045
|
async activate() {
|
9043
|
-
this.active || (await super.activate(), this.active && (this._addFeatures([...this._featureToAdd]), this._featureToAdd.clear(), this._rootCollection.show = !0, this._featureVisibilityListeners.length === 0 && (this._featureVisibilityListeners =
|
9046
|
+
this.active || (await super.activate(), this.active && (this._addFeatures([...this._featureToAdd]), this._featureToAdd.clear(), this._rootCollection.show = !0, this._featureVisibilityListeners.length === 0 && (this._featureVisibilityListeners = Fo(this.featureVisibility, this.source, this.globalHider))));
|
9044
9047
|
}
|
9045
9048
|
deactivate() {
|
9046
9049
|
super.deactivate(), this._rootCollection.show = !1, this._featureVisibilityListeners.forEach((e) => {
|
@@ -9092,16 +9095,16 @@ function fi(i, t) {
|
|
9092
9095
|
const rs = {};
|
9093
9096
|
async function Mr(i, t, e) {
|
9094
9097
|
if (!rs[i])
|
9095
|
-
return rs[i] = await
|
9098
|
+
return rs[i] = await il.fromUrl(fi(i, e), t), rs[i];
|
9096
9099
|
let s = rs[i];
|
9097
|
-
return (t.requestVertexNormals !== void 0 && s.requestVertexNormals !== t.requestVertexNormals || t.requestWaterMask !== void 0 && s.requestWaterMask !== t.requestWaterMask) && (rs[i] = await
|
9100
|
+
return (t.requestVertexNormals !== void 0 && s.requestVertexNormals !== t.requestVertexNormals || t.requestWaterMask !== void 0 && s.requestWaterMask !== t.requestWaterMask) && (rs[i] = await il.fromUrl(fi(i, e), t), s = rs[i]), s;
|
9098
9101
|
}
|
9099
9102
|
function Ds(i, t, e, s) {
|
9100
9103
|
const r = e ? Fe(e.proj, oe.proj) : null, n = t.map((o) => {
|
9101
9104
|
const l = r ? r(o, o.slice(), o.length) : o;
|
9102
9105
|
return se.fromDegrees(l[0], l[1]);
|
9103
9106
|
}), a = s || t.map((o) => o.slice());
|
9104
|
-
return
|
9107
|
+
return ia(i, n).then((o) => (o.forEach((l, c) => {
|
9105
9108
|
a[c][2] = l.height || 0;
|
9106
9109
|
}), a));
|
9107
9110
|
}
|
@@ -9109,14 +9112,14 @@ function X0(i, t, e) {
|
|
9109
9112
|
const s = i.tilingScheme.positionToTileXY(e, t, new j());
|
9110
9113
|
return !!i.getTileDataAvailable(s.x, s.y, t);
|
9111
9114
|
}
|
9112
|
-
let
|
9113
|
-
function
|
9115
|
+
let La = new j(), Ta = new j();
|
9116
|
+
function Xl(i, t = !1) {
|
9114
9117
|
const e = i.slice(), s = ar(e);
|
9115
9118
|
let n = [
|
9116
|
-
|
9119
|
+
_o(s),
|
9117
9120
|
Gh(s),
|
9118
9121
|
kh(s),
|
9119
|
-
|
9122
|
+
ta(s)
|
9120
9123
|
].map((a) => {
|
9121
9124
|
let o = 0, l = 1 / 0;
|
9122
9125
|
return e.forEach((c, d) => {
|
@@ -9127,9 +9130,9 @@ function Wl(i, t = !1) {
|
|
9127
9130
|
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;
|
9128
9131
|
}
|
9129
9132
|
function Vs(i, t) {
|
9130
|
-
return
|
9133
|
+
return La = j.fromElements(i[0], i[1], La), Ta = j.fromElements(t[0], t[1], Ta), j.angleBetween(La, Ta);
|
9131
9134
|
}
|
9132
|
-
function
|
9135
|
+
function Yl(i, t) {
|
9133
9136
|
const [[e, s], [r, n]] = i, [[a, o], [l, c]] = t;
|
9134
9137
|
let d, u;
|
9135
9138
|
const f = {
|
@@ -9145,14 +9148,14 @@ function Xl(i, t) {
|
|
9145
9148
|
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;
|
9146
9149
|
}
|
9147
9150
|
function Y0(i, t, e, s, r) {
|
9148
|
-
const n =
|
9151
|
+
const n = Xl(i, e ? !1 : r), a = Xl(t, e ? r : !1), o = [];
|
9149
9152
|
for (let d = 0; d < n.length; ++d) {
|
9150
9153
|
const u = [];
|
9151
9154
|
for (let m = 0; m < n.length; ++m) {
|
9152
9155
|
const p = m === n.length - 1 ? 0 : m + 1;
|
9153
9156
|
if (d === m || d === p || m === 3 && p === 0 || m === 1 && p === 2)
|
9154
9157
|
continue;
|
9155
|
-
const y =
|
9158
|
+
const y = Yl([n[d], s], [n[m], n[p]]);
|
9156
9159
|
if (y.x == null || y.y == null)
|
9157
9160
|
continue;
|
9158
9161
|
const S = [
|
@@ -9229,7 +9232,7 @@ function Y0(i, t, e, s, r) {
|
|
9229
9232
|
C[0] - a[u[1].cornerPoint][0],
|
9230
9233
|
C[1] - a[u[1].cornerPoint][1]
|
9231
9234
|
];
|
9232
|
-
return !(Vs(M, x) == null || (c =
|
9235
|
+
return !(Vs(M, x) == null || (c = Yl([a[u[0].cornerPoint], p], [a[u[1].cornerPoint], C]), c.x == null || c.y == null));
|
9233
9236
|
}), c;
|
9234
9237
|
}
|
9235
9238
|
function zw(i, t, e = {}) {
|
@@ -9309,7 +9312,7 @@ async function J0(i, t, e) {
|
|
9309
9312
|
let a = Fe(B.proj, e.meta.projection.proj), o = [];
|
9310
9313
|
if (e.meta.terrainProvider) {
|
9311
9314
|
const l = n.map((c) => (k.mercatorToWgs84(c, !0), se.fromDegrees(c[0], c[1])));
|
9312
|
-
a = Fe(oe.proj, e.meta.projection.proj), o = await
|
9315
|
+
a = Fe(oe.proj, e.meta.projection.proj), o = await ia(e.meta.terrainProvider, l);
|
9313
9316
|
}
|
9314
9317
|
return n.forEach((l, c) => {
|
9315
9318
|
a(l, l, 3);
|
@@ -9323,14 +9326,14 @@ function Q0(i, t, e) {
|
|
9323
9326
|
}));
|
9324
9327
|
return Promise.all(n).then(() => (delete t[je], t.setCoordinates(s), t));
|
9325
9328
|
}
|
9326
|
-
function
|
9329
|
+
function Zl(i, t = !1) {
|
9327
9330
|
const e = i.getGeometry();
|
9328
9331
|
if ((e.get("_vcsGeomType") === "bbox" || e.get("_vcsGeomType") === "rectangle") && t)
|
9329
9332
|
return e;
|
9330
9333
|
const r = e instanceof bt, n = qc(e);
|
9331
9334
|
return n[rr] = r, n;
|
9332
9335
|
}
|
9333
|
-
function
|
9336
|
+
function Kl(i, t) {
|
9334
9337
|
const e = i.getGeometry(), s = i.getGeometry().clone();
|
9335
9338
|
t.setGeometry(e[je] ? s : qc(s)), e[je] && t.getGeometry().setProperties(i.getGeometry().getProperties(), !1), i[xt] = t.getGeometry();
|
9336
9339
|
}
|
@@ -9428,22 +9431,22 @@ class gu extends ev {
|
|
9428
9431
|
}
|
9429
9432
|
async activate() {
|
9430
9433
|
var e;
|
9431
|
-
this.active || (await super.activate(), this.active && (this.olLayer.setVisible(!0), this._featureVisibilityListeners.length === 0 && (this._featureVisibilityListeners =
|
9434
|
+
this.active || (await super.activate(), this.active && (this.olLayer.setVisible(!0), this._featureVisibilityListeners.length === 0 && (this._featureVisibilityListeners = Fo(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()));
|
9432
9435
|
}
|
9433
9436
|
async addFeature(e) {
|
9434
9437
|
if (this.active || (this.fetchedFeaturesForImageName = null), this.active && this.currentExtent) {
|
9435
9438
|
const s = e.getId(), r = e.getGeometry();
|
9436
|
-
if (e[
|
9439
|
+
if (e[la])
|
9437
9440
|
return r && !this.obliqueSource.getFeatureById(s) && this.obliqueSource.addFeature(e), Promise.resolve();
|
9438
9441
|
if (this.obliqueSource.getFeatureById(s) || this._updatingOblique[s])
|
9439
9442
|
return Promise.resolve();
|
9440
9443
|
const n = new ae({});
|
9441
|
-
n.setId(s), n[zn] = e,
|
9444
|
+
n.setId(s), n[zn] = e, Kl(e, n), n.setStyle(e.getStyle()), this._setFeatureListeners(e, n), await this._convertToOblique(e, n), this.source.hasFeature(e) && this.obliqueSource.addFeature(n);
|
9442
9445
|
}
|
9443
9446
|
return Promise.resolve();
|
9444
9447
|
}
|
9445
9448
|
_originalGeometryChanged(e, s, r) {
|
9446
|
-
re(e.originalGeometryChanged), re(e.obliqueGeometryChanged),
|
9449
|
+
re(e.originalGeometryChanged), re(e.obliqueGeometryChanged), Kl(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));
|
9447
9450
|
}
|
9448
9451
|
_setFeatureListeners(e, s) {
|
9449
9452
|
const r = s.getId(), n = {
|
@@ -9485,9 +9488,9 @@ class gu extends ev {
|
|
9485
9488
|
this._updatingMercator[r] != null && clearTimeout(this._updatingMercator[r]);
|
9486
9489
|
const n = this.fetchedFeaturesForImageName;
|
9487
9490
|
this._updatingMercator[r] = setTimeout(async () => {
|
9488
|
-
const a =
|
9491
|
+
const a = Zl(e, !1);
|
9489
9492
|
a[rr] && e.setGeometry(a);
|
9490
|
-
const o =
|
9493
|
+
const o = Zl(s, !0);
|
9491
9494
|
this._updatingMercator[r] = !0, await Q0(o, a, this.map.collection.getImageByName(n)), this._updatingMercator[r] = null;
|
9492
9495
|
}, 200);
|
9493
9496
|
}
|
@@ -9539,9 +9542,9 @@ class gu extends ev {
|
|
9539
9542
|
}), this._clearCurrentImage(), super.destroy();
|
9540
9543
|
}
|
9541
9544
|
}
|
9542
|
-
const
|
9545
|
+
const Ho = Symbol("isDefaultImage");
|
9543
9546
|
var Mw;
|
9544
|
-
class
|
9547
|
+
class jo {
|
9545
9548
|
constructor(t) {
|
9546
9549
|
/**
|
9547
9550
|
* Name of the image
|
@@ -9614,7 +9617,7 @@ class Ho {
|
|
9614
9617
|
transformRealWorld2Image(t, e) {
|
9615
9618
|
if (!this.meta.principalPoint)
|
9616
9619
|
return this._transformNoCamera(t, !1, e);
|
9617
|
-
const s = e || this.averageHeight, r = new
|
9620
|
+
const s = e || this.averageHeight, r = new sl(t[0], t[1], s, 1), n = R.multiplyByVector(this.pToImage, r, new sl()), a = [n.x / n.z, n.y / n.z], o = [
|
9618
9621
|
a[0],
|
9619
9622
|
this.meta.size[1] - a[1]
|
9620
9623
|
];
|
@@ -9652,7 +9655,7 @@ class Ho {
|
|
9652
9655
|
return Promise.resolve();
|
9653
9656
|
}
|
9654
9657
|
}
|
9655
|
-
Mw =
|
9658
|
+
Mw = Ho;
|
9656
9659
|
class Sn {
|
9657
9660
|
constructor(t) {
|
9658
9661
|
/**
|
@@ -9712,9 +9715,9 @@ class Sn {
|
|
9712
9715
|
return t.slice();
|
9713
9716
|
}
|
9714
9717
|
}
|
9715
|
-
let
|
9718
|
+
let Jl = 0;
|
9716
9719
|
function tv() {
|
9717
|
-
return
|
9720
|
+
return Jl += 1, Jl;
|
9718
9721
|
}
|
9719
9722
|
function mu(i) {
|
9720
9723
|
var e, s, r;
|
@@ -9766,7 +9769,7 @@ function iv(i, t, e, s, r) {
|
|
9766
9769
|
...d
|
9767
9770
|
})), c;
|
9768
9771
|
}
|
9769
|
-
function
|
9772
|
+
function Ql(i, t) {
|
9770
9773
|
const e = i.images[0], s = {
|
9771
9774
|
name: e.indexOf("name"),
|
9772
9775
|
width: e.indexOf("width"),
|
@@ -9796,7 +9799,7 @@ function Jl(i, t) {
|
|
9796
9799
|
(!f.size || f.size[0] === 0 && f.size[1] === 0) && (n[s.height] && n[s.width] ? f.size = [
|
9797
9800
|
n[s.width],
|
9798
9801
|
n[s.height]
|
9799
|
-
] : 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
|
9802
|
+
] : 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 jo({
|
9800
9803
|
name: n[s.name],
|
9801
9804
|
viewDirection: n[s.viewDirection],
|
9802
9805
|
viewDirectionAngle: n[s.viewDirectionAngle],
|
@@ -9828,7 +9831,7 @@ function sv(i, t) {
|
|
9828
9831
|
const b = 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());
|
9829
9832
|
p.projectionCenter = F, p.pToRealworld = b, p.pToImage = $;
|
9830
9833
|
}
|
9831
|
-
return new
|
9834
|
+
return new jo(p);
|
9832
9835
|
});
|
9833
9836
|
}
|
9834
9837
|
async function Wr(i, t) {
|
@@ -9843,7 +9846,7 @@ async function qi(i, t) {
|
|
9843
9846
|
async function rv(i, t) {
|
9844
9847
|
return (await Wr(i, t)).arrayBuffer();
|
9845
9848
|
}
|
9846
|
-
async function
|
9849
|
+
async function Vo(i, t) {
|
9847
9850
|
const s = await (await Wr(i, t)).blob();
|
9848
9851
|
return URL.createObjectURL(s);
|
9849
9852
|
}
|
@@ -9858,7 +9861,7 @@ var ge;
|
|
9858
9861
|
function wn(i) {
|
9859
9862
|
return i.some((t) => t === ge.PENDING) ? ge.PENDING : i.some((t) => t === ge.LOADING) ? ge.LOADING : ge.READY;
|
9860
9863
|
}
|
9861
|
-
class
|
9864
|
+
class eh {
|
9862
9865
|
constructor(t, e, s, r) {
|
9863
9866
|
h(this, "url");
|
9864
9867
|
h(this, "baseUrl");
|
@@ -9945,7 +9948,7 @@ class Ql {
|
|
9945
9948
|
});
|
9946
9949
|
else {
|
9947
9950
|
let r = [];
|
9948
|
-
e >= 3.5 || e === 3.4 && s > 36 ? r =
|
9951
|
+
e >= 3.5 || e === 3.4 && s > 36 ? r = Ql(t, this._imageMetas) : (e >= 3.1 || e === void 0) && (r = sv(t, this._imageMetas)), r.length > 0 && (this._images = r, this.imagesLoaded.raiseEvent({ images: r }));
|
9949
9952
|
}
|
9950
9953
|
}
|
9951
9954
|
_getClosestTileCoordinate(t) {
|
@@ -9996,7 +9999,7 @@ class Ql {
|
|
9996
9999
|
return Promise.resolve();
|
9997
10000
|
this._tiles.set(t, ge.LOADING);
|
9998
10001
|
const e = Gt(this.url, this._headers), s = qi(`${this.baseUrl}/${t}.json`, e).then((r) => {
|
9999
|
-
const n =
|
10002
|
+
const n = Ql(r, this._imageMetas);
|
10000
10003
|
n.length > 0 && (this._images = this._images.concat(n), this.imagesLoaded.raiseEvent({
|
10001
10004
|
images: n,
|
10002
10005
|
tileCoordinate: t
|
@@ -10031,10 +10034,10 @@ class Ql {
|
|
10031
10034
|
return this.projection && (t.projection = this.projection.toJSON()), this._terrainProviderOptions && (t.terrainProvider = { ...this._terrainProviderOptions }), this._headers && (t.headers = this._headers), t;
|
10032
10035
|
}
|
10033
10036
|
}
|
10034
|
-
function
|
10037
|
+
function da(i) {
|
10035
10038
|
return function(e, s) {
|
10036
10039
|
const r = e.getImage(), n = Gt(s, i);
|
10037
|
-
|
10040
|
+
Vo(s, n).then((a) => {
|
10038
10041
|
r.src = a, r.onload = () => {
|
10039
10042
|
URL.revokeObjectURL(a);
|
10040
10043
|
};
|
@@ -10043,15 +10046,15 @@ function ua(i) {
|
|
10043
10046
|
});
|
10044
10047
|
};
|
10045
10048
|
}
|
10046
|
-
let
|
10049
|
+
let Na = "";
|
10047
10050
|
function nv() {
|
10048
|
-
if (!
|
10051
|
+
if (!Na) {
|
10049
10052
|
const i = document.createElement("canvas");
|
10050
10053
|
i.height = 512, i.width = 512;
|
10051
10054
|
const t = i.getContext("2d");
|
10052
|
-
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),
|
10055
|
+
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), Na = i.toDataURL("png");
|
10053
10056
|
}
|
10054
|
-
return
|
10057
|
+
return Na;
|
10055
10058
|
}
|
10056
10059
|
class av {
|
10057
10060
|
constructor(t, e) {
|
@@ -10076,7 +10079,7 @@ class av {
|
|
10076
10079
|
units: "pixels",
|
10077
10080
|
extent: r
|
10078
10081
|
}), a = this.maxZoom > 0 ? this.maxZoom : this.tileResolution.length + 4, o = Math.log(2) / Math.log(this.scaleFactor);
|
10079
|
-
this._view = new
|
10082
|
+
this._view = new yo({
|
10080
10083
|
projection: n,
|
10081
10084
|
center: [this.size[0] / 2, this.size[1] / 2],
|
10082
10085
|
constrainOnlyCenter: !0,
|
@@ -10095,7 +10098,7 @@ class av {
|
|
10095
10098
|
tileSize: this.tileSize
|
10096
10099
|
})
|
10097
10100
|
};
|
10098
|
-
Zt.contains(this.url) ? l.crossOrigin = "use-credentials" : Kt(this.url) || (l.crossOrigin = "anonymous"), this._headers && (l.tileLoadFunction =
|
10101
|
+
Zt.contains(this.url) ? l.crossOrigin = "use-credentials" : Kt(this.url) || (l.crossOrigin = "anonymous"), this._headers && (l.tileLoadFunction = da(this._headers)), this._tileImageSource = new ed(l), this._layer = new Es({
|
10099
10102
|
source: this.tileImageSource,
|
10100
10103
|
extent: r
|
10101
10104
|
});
|
@@ -10141,7 +10144,7 @@ class av {
|
|
10141
10144
|
this._view = void 0, this._layer = void 0, this.tileImageSource.clear(), this._tileImageSource = void 0;
|
10142
10145
|
}
|
10143
10146
|
}
|
10144
|
-
function
|
10147
|
+
function th(i, t) {
|
10145
10148
|
return i < 0 ? 0 : i > t ? t : i;
|
10146
10149
|
}
|
10147
10150
|
class ov {
|
@@ -10266,12 +10269,12 @@ class ov {
|
|
10266
10269
|
let r;
|
10267
10270
|
this._viewCache.has(t.meta) ? r = this._viewCache.get(t.meta) : (r = new av(t.meta, this._collection.viewOptions), this._viewCache.set(t.meta, r));
|
10268
10271
|
const n = this._currentView;
|
10269
|
-
this._currentView = r, s && this._currentView.setImageName(this._currentImage.name, this._currentImage[
|
10272
|
+
this._currentView = r, s && this._currentView.setImageName(this._currentImage.name, this._currentImage[Ho]);
|
10270
10273
|
const [a, o] = this._currentImage.meta.size;
|
10271
10274
|
let l = [a / 2, o / 2];
|
10272
10275
|
if (e) {
|
10273
10276
|
const c = Fe(B.proj, this._currentImage.meta.projection.proj)(e.slice(0, 2), void 0, void 0), d = this._currentImage.transformRealWorld2Image(c, e[2]);
|
10274
|
-
d[0] =
|
10277
|
+
d[0] = th(d[0], a), d[1] = th(d[1], o), l = d;
|
10275
10278
|
}
|
10276
10279
|
return this._currentView.view.setCenter(l), this._active && this._setCurrentView(n), this._loadingImage = null, s && this.imageChanged.raiseEvent(t), !0;
|
10277
10280
|
}
|
@@ -10279,7 +10282,7 @@ class ov {
|
|
10279
10282
|
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)));
|
10280
10283
|
}
|
10281
10284
|
_removeCurrentView() {
|
10282
|
-
this._currentView && (this._olMap.getView() === this._currentView.view && this._olMap.setView(new
|
10285
|
+
this._currentView && (this._olMap.getView() === this._currentView.view && this._olMap.setView(new yo()), this._olMap.removeLayer(this._currentView.layer));
|
10283
10286
|
}
|
10284
10287
|
/**
|
10285
10288
|
* Sets a new image based on a ground coordinate and a direction.
|
@@ -10355,7 +10358,7 @@ function $s(i, t, e) {
|
|
10355
10358
|
function hv(i, t) {
|
10356
10359
|
return i < t ? -1 : i > t ? 1 : 0;
|
10357
10360
|
}
|
10358
|
-
class
|
10361
|
+
class fo {
|
10359
10362
|
constructor(t = 9) {
|
10360
10363
|
this._maxEntries = Math.max(4, t), this._minEntries = Math.max(2, Math.ceil(this._maxEntries * 0.4)), this.clear();
|
10361
10364
|
}
|
@@ -10371,7 +10374,7 @@ class uo {
|
|
10371
10374
|
for (; e; ) {
|
10372
10375
|
for (let a = 0; a < e.children.length; a++) {
|
10373
10376
|
const o = e.children[a], l = e.leaf ? r(o) : o;
|
10374
|
-
ln(t, l) && (e.leaf ? s.push(o) :
|
10377
|
+
ln(t, l) && (e.leaf ? s.push(o) : Aa(t, l) ? this._all(o, s) : n.push(o));
|
10375
10378
|
}
|
10376
10379
|
e = n.pop();
|
10377
10380
|
}
|
@@ -10386,7 +10389,7 @@ class uo {
|
|
10386
10389
|
for (let r = 0; r < e.children.length; r++) {
|
10387
10390
|
const n = e.children[r], a = e.leaf ? this.toBBox(n) : n;
|
10388
10391
|
if (ln(t, a)) {
|
10389
|
-
if (e.leaf ||
|
10392
|
+
if (e.leaf || Aa(t, a))
|
10390
10393
|
return !0;
|
10391
10394
|
s.push(n);
|
10392
10395
|
}
|
@@ -10435,7 +10438,7 @@ class uo {
|
|
10435
10438
|
if (d !== -1)
|
10436
10439
|
return s.children.splice(d, 1), n.push(s), this._condense(n), this;
|
10437
10440
|
}
|
10438
|
-
!c && !s.leaf &&
|
10441
|
+
!c && !s.leaf && Aa(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;
|
10439
10442
|
}
|
10440
10443
|
return this;
|
10441
10444
|
}
|
@@ -10467,10 +10470,10 @@ class uo {
|
|
10467
10470
|
return o = ls(t.slice(e, s + 1)), ns(o, this.toBBox), o;
|
10468
10471
|
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;
|
10469
10472
|
const l = Math.ceil(n / a), c = l * Math.ceil(Math.sqrt(a));
|
10470
|
-
|
10473
|
+
ih(t, e, s, c, this.compareMinX);
|
10471
10474
|
for (let d = e; d <= s; d += c) {
|
10472
10475
|
const u = Math.min(d + c - 1, s);
|
10473
|
-
|
10476
|
+
ih(t, d, u, l, this.compareMinY);
|
10474
10477
|
for (let f = d; f <= u; f += l) {
|
10475
10478
|
const g = Math.min(f + l - 1, u);
|
10476
10479
|
o.children.push(this._build(t, f, g, r - 1));
|
@@ -10482,7 +10485,7 @@ class uo {
|
|
10482
10485
|
for (; r.push(e), !(e.leaf || r.length - 1 === s); ) {
|
10483
10486
|
let n = 1 / 0, a = 1 / 0, o;
|
10484
10487
|
for (let l = 0; l < e.children.length; l++) {
|
10485
|
-
const c = e.children[l], d =
|
10488
|
+
const c = e.children[l], d = Da(c), u = fv(t, c) - d;
|
10486
10489
|
u < a ? (a = u, n = d < n ? d : n, o = c) : u === a && d < n && (n = d, o = c);
|
10487
10490
|
}
|
10488
10491
|
e = o || e.children[0];
|
@@ -10508,7 +10511,7 @@ class uo {
|
|
10508
10511
|
_chooseSplitIndex(t, e, s) {
|
10509
10512
|
let r, n = 1 / 0, a = 1 / 0;
|
10510
10513
|
for (let o = e; o <= s - e; o++) {
|
10511
|
-
const l = Js(t, 0, o, this.toBBox), c = Js(t, o, s, this.toBBox), d = gv(l, c), u =
|
10514
|
+
const l = Js(t, 0, o, this.toBBox), c = Js(t, o, s, this.toBBox), d = gv(l, c), u = Da(l) + Da(c);
|
10512
10515
|
d < n ? (n = d, r = o, a = u < a ? u : a) : d === n && u < a && (a = u, r = o);
|
10513
10516
|
}
|
10514
10517
|
return r || s - e;
|
@@ -10570,7 +10573,7 @@ function uv(i, t) {
|
|
10570
10573
|
function dv(i, t) {
|
10571
10574
|
return i.minY - t.minY;
|
10572
10575
|
}
|
10573
|
-
function
|
10576
|
+
function Da(i) {
|
10574
10577
|
return (i.maxX - i.minX) * (i.maxY - i.minY);
|
10575
10578
|
}
|
10576
10579
|
function on(i) {
|
@@ -10583,7 +10586,7 @@ function gv(i, t) {
|
|
10583
10586
|
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);
|
10584
10587
|
return Math.max(0, r - e) * Math.max(0, n - s);
|
10585
10588
|
}
|
10586
|
-
function
|
10589
|
+
function Aa(i, t) {
|
10587
10590
|
return i.minX <= t.minX && i.minY <= t.minY && t.maxX <= i.maxX && t.maxY <= i.maxY;
|
10588
10591
|
}
|
10589
10592
|
function ln(i, t) {
|
@@ -10600,7 +10603,7 @@ function ls(i) {
|
|
10600
10603
|
maxY: -1 / 0
|
10601
10604
|
};
|
10602
10605
|
}
|
10603
|
-
function
|
10606
|
+
function ih(i, t, e, s, r) {
|
10604
10607
|
const n = [t, e];
|
10605
10608
|
for (; n.length; ) {
|
10606
10609
|
if (e = n.pop(), t = n.pop(), e - t <= s)
|
@@ -10609,7 +10612,7 @@ function th(i, t, e, s, r) {
|
|
10609
10612
|
lv(i, a, t, e, r), n.push(t, a, a, e);
|
10610
10613
|
}
|
10611
10614
|
}
|
10612
|
-
var
|
10615
|
+
var $o = { exports: {} }, yu = { exports: {} };
|
10613
10616
|
(function(i, t) {
|
10614
10617
|
(function(e, s) {
|
10615
10618
|
i.exports = s();
|
@@ -10652,8 +10655,8 @@ var Vo = { exports: {} }, yu = { exports: {} };
|
|
10652
10655
|
});
|
10653
10656
|
})(yu);
|
10654
10657
|
var mv = yu.exports, pv = mv;
|
10655
|
-
|
10656
|
-
|
10658
|
+
$o.exports = _u;
|
10659
|
+
$o.exports.default = _u;
|
10657
10660
|
function _u(i, t, e, s, r, n) {
|
10658
10661
|
for (var a = i.data, o = [], l = i.toBBox, c, d, u, f, g = new pv(void 0, yv); a; ) {
|
10659
10662
|
for (c = 0; c < a.children.length; c++)
|
@@ -10673,15 +10676,15 @@ function yv(i, t) {
|
|
10673
10676
|
return i.dist - t.dist;
|
10674
10677
|
}
|
10675
10678
|
function _v(i, t, e) {
|
10676
|
-
var s =
|
10679
|
+
var s = sh(i, e.minX, e.maxX), r = sh(t, e.minY, e.maxY);
|
10677
10680
|
return s * s + r * r;
|
10678
10681
|
}
|
10679
|
-
function
|
10682
|
+
function sh(i, t, e) {
|
10680
10683
|
return i < t ? t - i : i <= e ? 0 : i - e;
|
10681
10684
|
}
|
10682
|
-
var vv =
|
10683
|
-
const
|
10684
|
-
function
|
10685
|
+
var vv = $o.exports;
|
10686
|
+
const rh = /* @__PURE__ */ Ic(vv);
|
10687
|
+
function nh(i) {
|
10685
10688
|
return i.map((t) => {
|
10686
10689
|
const e = Fe(t.meta.projection.proj, B.proj), s = new ae({
|
10687
10690
|
// error in TransformFunction type definition, remove undefined after openlayer fixed the type
|
@@ -10693,7 +10696,7 @@ function rh(i) {
|
|
10693
10696
|
return s.setId(t.name), s;
|
10694
10697
|
});
|
10695
10698
|
}
|
10696
|
-
function
|
10699
|
+
function ah(i) {
|
10697
10700
|
const t = zh();
|
10698
10701
|
return Object.entries(i).map(([e, s]) => {
|
10699
10702
|
const r = e.split("/").map((o) => Number.parseInt(o, 10)), n = t.getTileCoordExtent(r), a = new ae({
|
@@ -10792,16 +10795,16 @@ class Wi extends kt {
|
|
10792
10795
|
return [...this._images.values()];
|
10793
10796
|
}
|
10794
10797
|
_createTileFeatureSource() {
|
10795
|
-
const e =
|
10798
|
+
const e = ah(this.getTiles()), s = new lr();
|
10796
10799
|
return s.addFeatures(e), s;
|
10797
10800
|
}
|
10798
10801
|
_createImageFeatureSource() {
|
10799
|
-
const e =
|
10802
|
+
const e = nh([...this._images.values()]), s = new lr();
|
10800
10803
|
return s.addFeatures(e), s;
|
10801
10804
|
}
|
10802
10805
|
async _loadDataSet(e) {
|
10803
10806
|
if (await e.load(), this._tileFeatureSource) {
|
10804
|
-
const s =
|
10807
|
+
const s = ah(e.getTiles());
|
10805
10808
|
this._tileFeatureSource.addFeatures(s);
|
10806
10809
|
}
|
10807
10810
|
}
|
@@ -10810,7 +10813,7 @@ class Wi extends kt {
|
|
10810
10813
|
*/
|
10811
10814
|
_addDataSet(e) {
|
10812
10815
|
let s;
|
10813
|
-
e instanceof
|
10816
|
+
e instanceof eh ? s = e : s = new eh(e.url, e.projection, e.terrainProvider, e.headers), s.imagesLoaded.addEventListener(({ images: r, tileCoordinate: n }) => {
|
10814
10817
|
this._loadImages(r, n);
|
10815
10818
|
}), this._loadImages(s.images), this._dataSets.push(s);
|
10816
10819
|
}
|
@@ -10844,9 +10847,9 @@ class Wi extends kt {
|
|
10844
10847
|
name: n.name
|
10845
10848
|
});
|
10846
10849
|
}), r.forEach((n, a) => {
|
10847
|
-
this._directionTrees.get(a) || this._directionTrees.set(a, new
|
10850
|
+
this._directionTrees.get(a) || this._directionTrees.set(a, new fo()), this._directionTrees.get(a).load(n);
|
10848
10851
|
}), this._imageFeatureSource) {
|
10849
|
-
const n =
|
10852
|
+
const n = nh(e);
|
10850
10853
|
this._imageFeatureSource.addFeatures(n);
|
10851
10854
|
}
|
10852
10855
|
this.imagesLoaded.raiseEvent(e);
|
@@ -10907,7 +10910,7 @@ class Wi extends kt {
|
|
10907
10910
|
_getNextImageForCoordinate(e, s) {
|
10908
10911
|
const r = this._directionTrees.get(s);
|
10909
10912
|
if (r) {
|
10910
|
-
const n =
|
10913
|
+
const n = rh(r, e[0], e[1], 1);
|
10911
10914
|
if (n.length === 1 && n[0].name)
|
10912
10915
|
return this.getImageByName(n[0].name);
|
10913
10916
|
}
|
@@ -10949,7 +10952,7 @@ class Wi extends kt {
|
|
10949
10952
|
const n = Fe(B.proj, r.meta.projection.proj), a = e.slice(0, 2);
|
10950
10953
|
n(a, a, void 0);
|
10951
10954
|
const o = ar(r.groundCoordinates);
|
10952
|
-
return
|
10955
|
+
return Va(o, a);
|
10953
10956
|
}
|
10954
10957
|
return !1;
|
10955
10958
|
}
|
@@ -10966,7 +10969,7 @@ class Wi extends kt {
|
|
10966
10969
|
if (n) {
|
10967
10970
|
const a = Fe(e.meta.projection.proj, B.proj), o = e.groundCoordinates.map((f) => a(f.slice(0, 2), void 0, void 0)), l = ar(o);
|
10968
10971
|
await this.loadDataForExtent(Vh(l, 200));
|
10969
|
-
const c = hr(l), u =
|
10972
|
+
const c = hr(l), u = rh(n, c[0], c[1], 20).find((f) => {
|
10970
10973
|
if (f.name !== e.name) {
|
10971
10974
|
let g = Math.atan2(f.minY - c[1], f.minX - c[0]);
|
10972
10975
|
g <= 0 && (g += Math.PI * 2);
|
@@ -11014,7 +11017,7 @@ class wv extends Wi {
|
|
11014
11017
|
[t[0] + 100, t[1] - 100, 0],
|
11015
11018
|
[t[0] + 100, t[1] + 100, 0],
|
11016
11019
|
[t[0] - 100, t[1] + 100, 0]
|
11017
|
-
], r = new
|
11020
|
+
], r = new jo({
|
11018
11021
|
meta: Sv,
|
11019
11022
|
viewDirection: ve.NORTH,
|
11020
11023
|
viewDirectionAngle: 0,
|
@@ -11022,7 +11025,7 @@ class wv extends Wi {
|
|
11022
11025
|
groundCoordinates: s,
|
11023
11026
|
centerPointOnGround: t
|
11024
11027
|
});
|
11025
|
-
return r[
|
11028
|
+
return r[Ho] = !0, r;
|
11026
11029
|
}
|
11027
11030
|
}
|
11028
11031
|
const Mv = {
|
@@ -11031,13 +11034,13 @@ const Mv = {
|
|
11031
11034
|
[ve.SOUTH]: 180,
|
11032
11035
|
[ve.WEST]: 270,
|
11033
11036
|
[ve.NADIR]: 0
|
11034
|
-
},
|
11035
|
-
function
|
11037
|
+
}, oh = new wv();
|
11038
|
+
function lh(i) {
|
11036
11039
|
const { heading: t } = i;
|
11037
11040
|
let e = ve.NORTH;
|
11038
11041
|
return t >= 45 && t < 135 ? e = ve.EAST : t >= 135 && t < 225 ? e = ve.SOUTH : t >= 225 && t < 315 && (e = ve.WEST), e;
|
11039
11042
|
}
|
11040
|
-
function
|
11043
|
+
function hh(i) {
|
11041
11044
|
const t = i.groundPosition ?? i.cameraPosition ?? [0, 0, 0];
|
11042
11045
|
return ki(t, oe.proj, B.proj);
|
11043
11046
|
}
|
@@ -11101,7 +11104,7 @@ class Ne extends wr {
|
|
11101
11104
|
this.initializedPromise || (this.initializedPromise = super.initialize().then(async () => {
|
11102
11105
|
this._obliqueProvider = new ov(this.olMap), this.mapChangeEvent = this._mapChangeEvent, this.switchThreshold = this._switchThreshold, this.switchEnabled = this._switchEnabled;
|
11103
11106
|
let e = this._loadingCollection;
|
11104
|
-
e || (e =
|
11107
|
+
e || (e = oh), e && await this._setCollection(e);
|
11105
11108
|
}).then(() => {
|
11106
11109
|
this.initialized = !0;
|
11107
11110
|
})), await this.initializedPromise;
|
@@ -11126,7 +11129,7 @@ class Ne extends wr {
|
|
11126
11129
|
}
|
11127
11130
|
async canShowViewpoint(e) {
|
11128
11131
|
if (await this.initialize(), this.collection) {
|
11129
|
-
const s =
|
11132
|
+
const s = lh(e), r = hh(e);
|
11130
11133
|
return this.collection.hasImageAtCoordinate(r, s);
|
11131
11134
|
}
|
11132
11135
|
return !1;
|
@@ -11140,7 +11143,7 @@ class Ne extends wr {
|
|
11140
11143
|
if (e) {
|
11141
11144
|
const s = ar(e.groundCoordinates);
|
11142
11145
|
return new xe({
|
11143
|
-
coordinates:
|
11146
|
+
coordinates: Qo(s, e.meta.projection.proj, B.proj),
|
11144
11147
|
projection: B.toJSON()
|
11145
11148
|
});
|
11146
11149
|
}
|
@@ -11170,7 +11173,7 @@ class Ne extends wr {
|
|
11170
11173
|
async _setCollection(e, s) {
|
11171
11174
|
var n;
|
11172
11175
|
this._loadingCollection = e, this._activeCollectionDestroyedListener(), this._activeCollectionDestroyedListener = e.destroyed.addEventListener(() => {
|
11173
|
-
this._setCollection(
|
11176
|
+
this._setCollection(oh);
|
11174
11177
|
}), await e.load();
|
11175
11178
|
const r = s || await this.getViewpoint();
|
11176
11179
|
this._loadingCollection === e && ((n = this._obliqueProvider) == null || n.setCollection(e), this.collectionChanged.raiseEvent(e), r && await this.gotoViewpoint(r));
|
@@ -11220,7 +11223,7 @@ class Ne extends wr {
|
|
11220
11223
|
async gotoViewpoint(e) {
|
11221
11224
|
if (this.movementApiCallsDisabled || !this.olMap || !this._obliqueProvider || !e.isValid())
|
11222
11225
|
return;
|
11223
|
-
const s =
|
11226
|
+
const s = lh(e), r = hh(e), { distance: n } = e;
|
11224
11227
|
if (await this._obliqueProvider.setView(r, s), this._obliqueProvider.currentImage) {
|
11225
11228
|
const a = K0(this.olMap, this._obliqueProvider.currentImage, n);
|
11226
11229
|
this.olMap.getView().setZoom(a);
|
@@ -11230,7 +11233,7 @@ class Ne extends wr {
|
|
11230
11233
|
const s = this.currentImage;
|
11231
11234
|
if (!s || !this.active)
|
11232
11235
|
return !1;
|
11233
|
-
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 =
|
11236
|
+
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 = Qo(l, s.meta.projection.proj, oe.proj);
|
11234
11237
|
return Nh(c, e[0], e[1]);
|
11235
11238
|
}
|
11236
11239
|
toJSON() {
|
@@ -11272,7 +11275,7 @@ class xr {
|
|
11272
11275
|
h(this, "_terrainHeight", null);
|
11273
11276
|
h(this, "_updatingTerrainHeight", !1);
|
11274
11277
|
const e = xr.getDefaultOptions();
|
11275
|
-
this.mode =
|
11278
|
+
this.mode = aa(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;
|
11276
11279
|
}
|
11277
11280
|
static get className() {
|
11278
11281
|
return "CameraLimiter";
|
@@ -11301,7 +11304,7 @@ class xr {
|
|
11301
11304
|
}
|
11302
11305
|
async _limitMostDetailed(t) {
|
11303
11306
|
const e = await Mr(this.terrainUrl, {}, this.terrainRequestHeaders);
|
11304
|
-
return
|
11307
|
+
return ia(e, [t]);
|
11305
11308
|
}
|
11306
11309
|
async _updateTerrainHeight(t) {
|
11307
11310
|
if (!this._updatingTerrainHeight && !t.equalsEpsilon(this.lastCheckedPosition, N.EPSILON5)) {
|
@@ -11320,10 +11323,10 @@ class xr {
|
|
11320
11323
|
if (this.mode === Ss.DISTANCE && this.terrainUrl) {
|
11321
11324
|
if (e = this._updateTerrainHeight(s), this._terrainHeight && s.height - this._terrainHeight < this.limit) {
|
11322
11325
|
const r = this._terrainHeight + this.limit;
|
11323
|
-
se.toCartesian(new se(s.longitude, s.latitude, r),
|
11326
|
+
se.toCartesian(new se(s.longitude, s.latitude, r), Za.WGS84, t.position);
|
11324
11327
|
}
|
11325
11328
|
} else
|
11326
|
-
s.height < this.limit && se.toCartesian(new se(s.longitude, s.latitude, this.limit),
|
11329
|
+
s.height < this.limit && se.toCartesian(new se(s.longitude, s.latitude, this.limit), Za.WGS84, t.position);
|
11327
11330
|
return e;
|
11328
11331
|
}
|
11329
11332
|
toJSON() {
|
@@ -11378,7 +11381,7 @@ function xv(i, t, e) {
|
|
11378
11381
|
function bv(i, t, e) {
|
11379
11382
|
vu(i, t, e);
|
11380
11383
|
}
|
11381
|
-
function
|
11384
|
+
function ch(i, t) {
|
11382
11385
|
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) => {
|
11383
11386
|
t[s] = r;
|
11384
11387
|
});
|
@@ -11503,15 +11506,15 @@ class z extends Li {
|
|
11503
11506
|
throw new Error("Cannot setup interactions on uninitailized map");
|
11504
11507
|
const e = [
|
11505
11508
|
{
|
11506
|
-
csModifier:
|
11509
|
+
csModifier: va.ALT,
|
11507
11510
|
vcsModifier: H.ALT
|
11508
11511
|
},
|
11509
11512
|
{
|
11510
|
-
csModifier:
|
11513
|
+
csModifier: va.CTRL,
|
11511
11514
|
vcsModifier: H.CTRL
|
11512
11515
|
},
|
11513
11516
|
{
|
11514
|
-
csModifier:
|
11517
|
+
csModifier: va.SHIFT,
|
11515
11518
|
vcsModifier: H.SHIFT
|
11516
11519
|
},
|
11517
11520
|
{ csModifier: void 0, vcsModifier: H.NONE }
|
@@ -11582,9 +11585,9 @@ class z extends Li {
|
|
11582
11585
|
antialias: this.webGLaa
|
11583
11586
|
}
|
11584
11587
|
}
|
11585
|
-
}), this._cesiumWidget.scene.globe.tileCacheSize = this.tileCacheSize, this._cesiumWidget.scene.globe.baseColor = this.globeColor, this.dataSourceDisplay = new
|
11588
|
+
}), this._cesiumWidget.scene.globe.tileCacheSize = this.tileCacheSize, this._cesiumWidget.scene.globe.baseColor = this.globeColor, this.dataSourceDisplay = new rl({
|
11586
11589
|
scene: this._cesiumWidget.scene,
|
11587
|
-
dataSourceCollection: new
|
11590
|
+
dataSourceCollection: new nl()
|
11588
11591
|
}), this._cesiumWidget.scene.frameState.creditDisplay.update = () => {
|
11589
11592
|
}, this._cesiumWidget.scene.frameState.creditDisplay.beginFrame = () => {
|
11590
11593
|
}, this._cesiumWidget.scene.frameState.creditDisplay.endFrame = () => {
|
@@ -11639,7 +11642,7 @@ class z extends Li {
|
|
11639
11642
|
const a = new Kh(e.position, e.direction), o = this._cesiumWidget.scene.globe.pick(a, this._cesiumWidget.scene);
|
11640
11643
|
if (o) {
|
11641
11644
|
n = _.distance(o, s);
|
11642
|
-
const d =
|
11645
|
+
const d = Za.WGS84.cartesianToCartographic(o);
|
11643
11646
|
r = [
|
11644
11647
|
N.toDegrees(d.longitude),
|
11645
11648
|
N.toDegrees(d.latitude),
|
@@ -11731,7 +11734,7 @@ class z extends Li {
|
|
11731
11734
|
*/
|
11732
11735
|
setDataSourceDisplayClock(e) {
|
11733
11736
|
const s = this._dataSourceClocks[this._dataSourceClocks.length - 1];
|
11734
|
-
e !== s && (this._clockSyncListener && (this._clockSyncListener(), this._clockSyncListener = null), this._clockSyncListener =
|
11737
|
+
e !== s && (this._clockSyncListener && (this._clockSyncListener(), this._clockSyncListener = null), this._clockSyncListener = ch(e, this.dataSourceDisplayClock)), this._dataSourceClocks.push(e);
|
11735
11738
|
}
|
11736
11739
|
/**
|
11737
11740
|
* unset dataSource clock
|
@@ -11740,7 +11743,7 @@ class z extends Li {
|
|
11740
11743
|
const s = this._dataSourceClocks.lastIndexOf(e);
|
11741
11744
|
if (s > -1 && (this._dataSourceClocks.splice(s, 1), s === this._dataSourceClocks.length)) {
|
11742
11745
|
const r = this._dataSourceClocks[this._dataSourceClocks.length - 1] || this._defaultClock;
|
11743
|
-
this._clockSyncListener && (this._clockSyncListener(), this._clockSyncListener = null), this._clockSyncListener =
|
11746
|
+
this._clockSyncListener && (this._clockSyncListener(), this._clockSyncListener = null), this._clockSyncListener = ch(r, this.dataSourceDisplayClock);
|
11744
11747
|
}
|
11745
11748
|
}
|
11746
11749
|
/**
|
@@ -11809,7 +11812,7 @@ class z extends Li {
|
|
11809
11812
|
return this._clusterDataSourceDisplay.dataSources;
|
11810
11813
|
if (!this._cesiumWidget)
|
11811
11814
|
throw new Error("Cannot get Datasource collection from uninitialized map");
|
11812
|
-
const e = new
|
11815
|
+
const e = new nl(), s = (r, n, a) => {
|
11813
11816
|
const { entities: o } = a;
|
11814
11817
|
return [
|
11815
11818
|
new tf(n, o),
|
@@ -11817,7 +11820,7 @@ class z extends Li {
|
|
11817
11820
|
new rf(n, o)
|
11818
11821
|
];
|
11819
11822
|
};
|
11820
|
-
return this._clusterDataSourceDisplay = new
|
11823
|
+
return this._clusterDataSourceDisplay = new rl({
|
11821
11824
|
scene: this._cesiumWidget.scene,
|
11822
11825
|
dataSourceCollection: e,
|
11823
11826
|
visualizersCallback: s
|
@@ -12060,7 +12063,7 @@ class rt extends di {
|
|
12060
12063
|
this.getFeatures().forEach((n) => {
|
12061
12064
|
if (n[lt]) {
|
12062
12065
|
let a;
|
12063
|
-
r ? (a = !0, n.setStyle(void 0)) : n.getStyle() !== n[lt].style && (a = !0, n.setStyle(n[lt].style)), a && Reflect.has(n, oi) &&
|
12066
|
+
r ? (a = !0, n.setStyle(void 0)) : n.getStyle() !== n[lt].style && (a = !0, n.setStyle(n[lt].style)), a && Reflect.has(n, oi) && Ao(n);
|
12064
12067
|
}
|
12065
12068
|
});
|
12066
12069
|
}
|
@@ -12270,9 +12273,9 @@ class ri {
|
|
12270
12273
|
}
|
12271
12274
|
}
|
12272
12275
|
const Ov = "EPSG:3857";
|
12273
|
-
let
|
12274
|
-
function
|
12275
|
-
return
|
12276
|
+
let Fa;
|
12277
|
+
function Bo() {
|
12278
|
+
return Fa || (Fa = new $h()), Fa;
|
12276
12279
|
}
|
12277
12280
|
function Ev(i) {
|
12278
12281
|
const { crs: t } = i;
|
@@ -12298,7 +12301,7 @@ function Pv(i) {
|
|
12298
12301
|
}
|
12299
12302
|
function Iv(i, t) {
|
12300
12303
|
var s;
|
12301
|
-
const e =
|
12304
|
+
const e = Bo().readGeometry(i, t.formatOptions);
|
12302
12305
|
return String((s = t.formatOptions) == null ? void 0 : s.featureProjection) === "EPSG:3857" && (e[ui] = !0), Wc(e), new ae({ geometry: e });
|
12303
12306
|
}
|
12304
12307
|
function Su(i, t) {
|
@@ -12337,12 +12340,12 @@ function Lv(i, t) {
|
|
12337
12340
|
}
|
12338
12341
|
};
|
12339
12342
|
}
|
12340
|
-
function
|
12343
|
+
function uh(i, t) {
|
12341
12344
|
var a;
|
12342
12345
|
if (!i.geometry)
|
12343
12346
|
return null;
|
12344
12347
|
const e = i.geometry.olcs_radius;
|
12345
|
-
let s =
|
12348
|
+
let s = Bo().readGeometry(i.geometry, t.formatOptions);
|
12346
12349
|
if (i.radius && s instanceof Dt) {
|
12347
12350
|
const o = s.getCoordinates();
|
12348
12351
|
o.length === 2 && o.push(0), s = new bt(o, i.radius, "XYZ");
|
@@ -12378,12 +12381,12 @@ function wi(i, t = {}) {
|
|
12378
12381
|
};
|
12379
12382
|
let a;
|
12380
12383
|
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 = Su(e.vcsMeta.style, n), n.defaultStyle = (n.defaultStyle ?? Ui).clone().assign(new he(e.vcsMeta.style)), a = n.defaultStyle)), {
|
12381
|
-
features: e.features.map((o) =>
|
12384
|
+
features: e.features.map((o) => uh(o, n)).filter((o) => o),
|
12382
12385
|
style: e.vcsMeta.style ? a : void 0,
|
12383
12386
|
vcsMeta: e.vcsMeta ? e.vcsMeta : void 0
|
12384
12387
|
};
|
12385
12388
|
} else if (e.type === "Feature") {
|
12386
|
-
const a =
|
12389
|
+
const a = uh(e, n);
|
12387
12390
|
return {
|
12388
12391
|
features: a ? [a] : [],
|
12389
12392
|
vcsMeta: e.vcsMeta ? e.vcsMeta : void 0
|
@@ -12403,17 +12406,17 @@ function br(i, t = {}, e = []) {
|
|
12403
12406
|
} else if (s instanceof At) {
|
12404
12407
|
const l = s.getCoordinates();
|
12405
12408
|
l.forEach((c) => {
|
12406
|
-
|
12409
|
+
ho(c);
|
12407
12410
|
}), s = new At(l, s.getLayout());
|
12408
12411
|
} else if (s instanceof or) {
|
12409
12412
|
const l = s.getCoordinates();
|
12410
12413
|
l.forEach((c) => {
|
12411
12414
|
c.forEach((d) => {
|
12412
|
-
|
12415
|
+
ho(d);
|
12413
12416
|
});
|
12414
12417
|
}), s = new or(l, s.getLayout());
|
12415
12418
|
}
|
12416
|
-
const n =
|
12419
|
+
const n = Bo().writeGeometryObject(s, {
|
12417
12420
|
featureProjection: Ov,
|
12418
12421
|
rightHanded: !0
|
12419
12422
|
}), a = i.getProperties();
|
@@ -12438,10 +12441,10 @@ function jw(i, t = {}) {
|
|
12438
12441
|
return t.asObject ? r : JSON.stringify(r, void 0, t.prettyPrint ? 2 : void 0);
|
12439
12442
|
}
|
12440
12443
|
const Tv = Ue();
|
12441
|
-
function
|
12444
|
+
function Uo(i) {
|
12442
12445
|
i[Ke] = Tv;
|
12443
12446
|
}
|
12444
|
-
class
|
12447
|
+
class dh {
|
12445
12448
|
/**
|
12446
12449
|
* @param config
|
12447
12450
|
*/
|
@@ -12483,7 +12486,7 @@ function Nv(i, t) {
|
|
12483
12486
|
}
|
12484
12487
|
t.vectorProperties && i.vectorProperties.setValues(t.vectorProperties), t.zIndex != null && (i.zIndex = t.zIndex);
|
12485
12488
|
}
|
12486
|
-
function
|
12489
|
+
function Ra(i, t, e, s) {
|
12487
12490
|
if (s == null ? t !== e : s !== t)
|
12488
12491
|
throw new Error(`Cannot merge options, values of ${i} do not match`);
|
12489
12492
|
}
|
@@ -12507,7 +12510,7 @@ class Mi extends kt {
|
|
12507
12510
|
h(this, "_moduleRemovedListener", () => {
|
12508
12511
|
});
|
12509
12512
|
const s = Mi.getDefaultConfig();
|
12510
|
-
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),
|
12513
|
+
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), Uo(this._layer)), this._keyProperty = e.keyProperty || s.keyProperty, this.setCollection(new Ii(this._keyProperty));
|
12511
12514
|
}
|
12512
12515
|
static get className() {
|
12513
12516
|
return "Category";
|
@@ -12580,7 +12583,7 @@ class Mi extends kt {
|
|
12580
12583
|
*/
|
12581
12584
|
mergeOptions(e) {
|
12582
12585
|
const s = Mi.getDefaultConfig();
|
12583
|
-
|
12586
|
+
Ra("classRegistryName", this._classRegistryName, s.classRegistryName, e.classRegistryName), Ra("featureProperty", this._featureProperty, s.featureProperty, e.featureProperty), Ra("keyProperty", this._keyProperty, s.keyProperty, e.keyProperty), this.title = e.title || this.title, e.layerOptions && this._layer && Nv(this._layer, e.layerOptions);
|
12584
12587
|
}
|
12585
12588
|
/**
|
12586
12589
|
* When setting the category, it MUST use the same uniqueKey as the previous collection (default is "name").
|
@@ -12594,7 +12597,7 @@ class Mi extends kt {
|
|
12594
12597
|
throw new Error("The collections key property does not match the categories key property");
|
12595
12598
|
this._collectionListeners.forEach((s) => {
|
12596
12599
|
s();
|
12597
|
-
}), this._collection && ei(this._collection), this._layer && this._layer.removeAllFeatures(), this._collection = e[
|
12600
|
+
}), this._collection && ei(this._collection), this._layer && this._layer.removeAllFeatures(), this._collection = e[no] ? e : ti(e, this._getDynamicModuleId.bind(this), this._serializeItem.bind(this), this._deserializeItem.bind(this)), [...this.collection].forEach((s) => {
|
12598
12601
|
this._itemAdded(s);
|
12599
12602
|
}), this._collectionListeners = [
|
12600
12603
|
this._collection.added.addEventListener(this._itemAdded.bind(this)),
|
@@ -12642,7 +12645,7 @@ class Mi extends kt {
|
|
12642
12645
|
}
|
12643
12646
|
}
|
12644
12647
|
Tc.registerClass(Mi.className, Mi);
|
12645
|
-
function
|
12648
|
+
function fh() {
|
12646
12649
|
return ue("CategoryCollection");
|
12647
12650
|
}
|
12648
12651
|
class Dv extends Ii {
|
@@ -12691,8 +12694,8 @@ class Dv extends Ii {
|
|
12691
12694
|
*/
|
12692
12695
|
requestCategory(e) {
|
12693
12696
|
if (!e.name)
|
12694
|
-
return
|
12695
|
-
e.type || (
|
12697
|
+
return fh().error("Cannot request a category without a name"), null;
|
12698
|
+
e.type || (fh().warning(`Implicitly typing category ${e.name} as ${Mi.className}`), e.type = Mi.className);
|
12696
12699
|
let s;
|
12697
12700
|
if (this.hasKey(e.name))
|
12698
12701
|
s = this.getByKey(e.name), s.mergeOptions(e);
|
@@ -12792,7 +12795,7 @@ class bs extends kt {
|
|
12792
12795
|
this.style = void 0, this.vectorProperties.destroy(), super.destroy();
|
12793
12796
|
}
|
12794
12797
|
}
|
12795
|
-
class
|
12798
|
+
class go extends bs {
|
12796
12799
|
/**
|
12797
12800
|
* @param layerName
|
12798
12801
|
* @param options
|
@@ -12813,14 +12816,14 @@ class fo extends bs {
|
|
12813
12816
|
this.tileProvider.destroy(), super.destroy();
|
12814
12817
|
}
|
12815
12818
|
}
|
12816
|
-
|
12819
|
+
To.registerClass(go.className, go);
|
12817
12820
|
var We;
|
12818
12821
|
(function(i) {
|
12819
12822
|
i.GEOGRAPHIC = "geographic", i.MERCATOR = "mercator";
|
12820
12823
|
})(We = We || (We = {}));
|
12821
12824
|
function wu(i) {
|
12822
12825
|
const t = {};
|
12823
|
-
return i.numberOfLevelZeroTilesX && i.numberOfLevelZeroTilesX > 1 && (t.numberOfLevelZeroTilesX = i.numberOfLevelZeroTilesX), i.numberOfLevelZeroTilesY && i.numberOfLevelZeroTilesY > 1 && (t.numberOfLevelZeroTilesY = i.numberOfLevelZeroTilesY), i.tilingSchema === We.MERCATOR ? new
|
12826
|
+
return i.numberOfLevelZeroTilesX && i.numberOfLevelZeroTilesX > 1 && (t.numberOfLevelZeroTilesX = i.numberOfLevelZeroTilesX), i.numberOfLevelZeroTilesY && i.numberOfLevelZeroTilesY > 1 && (t.numberOfLevelZeroTilesY = i.numberOfLevelZeroTilesY), i.tilingSchema === We.MERCATOR ? new wo(t) : new tc(t);
|
12824
12827
|
}
|
12825
12828
|
function Fv(i, t, e, s = 0) {
|
12826
12829
|
if (!i.isValid())
|
@@ -12828,10 +12831,10 @@ function Fv(i, t, e, s = 0) {
|
|
12828
12831
|
const r = i.getCoordinatesInProjection(oe);
|
12829
12832
|
r[1] < -85 && (r[1] = -85), r[3] > 85 && (r[3] = 85);
|
12830
12833
|
const a = [
|
12831
|
-
|
12834
|
+
_o(r),
|
12832
12835
|
Gh(r),
|
12833
12836
|
kh(r),
|
12834
|
-
|
12837
|
+
ta(r)
|
12835
12838
|
].map((l) => se.fromDegrees(l[0], l[1]));
|
12836
12839
|
let o = s;
|
12837
12840
|
for (; o < e; ) {
|
@@ -12865,7 +12868,7 @@ class vt extends Ze {
|
|
12865
12868
|
*/
|
12866
12869
|
h(this, "splitDirectionChanged", new E());
|
12867
12870
|
const s = vt.getDefaultOptions();
|
12868
|
-
this.extent = e.extent ? new xe(e.extent) : new xe(), this.tilingSchema =
|
12871
|
+
this.extent = e.extent ? new xe(e.extent) : new xe(), this.tilingSchema = aa(e.tilingSchema, We, s.tilingSchema), this.maxLevel = le(e.maxLevel, s.maxLevel), this._minLevel = le(e.minLevel, s.minLevel);
|
12869
12872
|
const r = wu(e);
|
12870
12873
|
this.minLevel = Fv(this.extent, r, this.maxLevel, this._minLevel), this._opacity = Rn(e.opacity, s.opacity, 0, 1), e.splitDirection && (this._splitDirection = e.splitDirection === "left" ? Me.LEFT : Me.RIGHT);
|
12871
12874
|
}
|
@@ -12931,11 +12934,11 @@ function Mu(i, t) {
|
|
12931
12934
|
return i === "geographic" ? t === "1.3.0" ? "CRS:84" : "EPSG:4326" : "EPSG:3857";
|
12932
12935
|
}
|
12933
12936
|
function Cu(i) {
|
12934
|
-
const t = i.tilingSchema === "geographic" ? oe : B, e = t.proj.getExtent(), s =
|
12937
|
+
const t = i.tilingSchema === "geographic" ? oe : B, e = t.proj.getExtent(), s = $a(e), r = i.tilingSchema === We.GEOGRAPHIC ? s / (i.tileSize[0] * 2) : s / i.tileSize[0], n = i.maxLevel + 1, a = [];
|
12935
12938
|
for (let c = 0; c < n; ++c)
|
12936
12939
|
a.push(r / 2 ** c);
|
12937
12940
|
const o = {
|
12938
|
-
origin:
|
12941
|
+
origin: ta(e),
|
12939
12942
|
resolutions: a,
|
12940
12943
|
tileSize: i.tileSize,
|
12941
12944
|
minZoom: i.minLevel
|
@@ -12947,7 +12950,7 @@ function Cu(i) {
|
|
12947
12950
|
params: i.parameters,
|
12948
12951
|
projection: Mu(i.tilingSchema, i.version)
|
12949
12952
|
};
|
12950
|
-
return Zt.contains(i.url) ? l.crossOrigin = "use-credentials" : Kt(i.url) || (l.crossOrigin = "anonymous"), i.headers && (l.tileLoadFunction =
|
12953
|
+
return Zt.contains(i.url) ? l.crossOrigin = "use-credentials" : Kt(i.url) || (l.crossOrigin = "anonymous"), i.headers && (l.tileLoadFunction = da(i.headers)), new sd(l);
|
12951
12954
|
}
|
12952
12955
|
function Rv(i) {
|
12953
12956
|
const t = {
|
@@ -12957,7 +12960,7 @@ function Rv(i) {
|
|
12957
12960
|
};
|
12958
12961
|
return Zt.contains(i.url) ? t.crossOrigin = "use-credentials" : Kt(i.url) || (t.crossOrigin = "anonymous"), i.headers && (t.imageLoadFunction = function(s, r) {
|
12959
12962
|
const n = s.getImage(), a = Gt(r, i.headers);
|
12960
|
-
|
12963
|
+
Vo(r, a).then((o) => {
|
12961
12964
|
n.src = o, n.onload = () => {
|
12962
12965
|
URL.revokeObjectURL(o);
|
12963
12966
|
};
|
@@ -12967,9 +12970,9 @@ function Rv(i) {
|
|
12967
12970
|
}), new rd(t);
|
12968
12971
|
}
|
12969
12972
|
const Gv = {
|
12970
|
-
GML:
|
12971
|
-
GML2:
|
12972
|
-
GML3:
|
12973
|
+
GML: qa,
|
12974
|
+
GML2: Ba,
|
12975
|
+
GML3: qa
|
12973
12976
|
}, kv = [
|
12974
12977
|
"application/geojson",
|
12975
12978
|
"application/json",
|
@@ -12978,10 +12981,10 @@ const Gv = {
|
|
12978
12981
|
];
|
12979
12982
|
function zv(i, t = {}) {
|
12980
12983
|
if (i === "text/xml") {
|
12981
|
-
const e = t.gmlFormat ? new Gv[t.gmlFormat]() : new
|
12982
|
-
return new
|
12984
|
+
const e = t.gmlFormat ? new Gv[t.gmlFormat]() : new Ba();
|
12985
|
+
return new Ua({ ...t, gmlFormat: e });
|
12983
12986
|
}
|
12984
|
-
return kv.includes(i) ? new $h(t) : i === "application/vnd.ogc.gml" ? new
|
12987
|
+
return kv.includes(i) ? new $h(t) : i === "application/vnd.ogc.gml" ? new Ba(t) : i === "application/vnd.ogc.gml/3.1.1" || i === "text/xml; subtype=gml/3.1.1" ? new qa(t) : null;
|
12985
12988
|
}
|
12986
12989
|
class Xi extends bs {
|
12987
12990
|
constructor(e, s) {
|
@@ -13084,7 +13087,7 @@ class Xi extends bs {
|
|
13084
13087
|
this._wmsSource = void 0, this.featureFormat = null, this.projection = void 0, this._formatOptions = void 0, super.destroy();
|
13085
13088
|
}
|
13086
13089
|
}
|
13087
|
-
|
13090
|
+
To.registerClass(Xi.className, Xi);
|
13088
13091
|
class ce {
|
13089
13092
|
/**
|
13090
13093
|
* @param [defaultActive=EventType.NONE] - A bitmask representing the default to listen to
|
@@ -13155,7 +13158,7 @@ class ce {
|
|
13155
13158
|
destroy() {
|
13156
13159
|
}
|
13157
13160
|
}
|
13158
|
-
class
|
13161
|
+
class qo extends ce {
|
13159
13162
|
constructor() {
|
13160
13163
|
super(I.ALL, H.ALL, Oe.ALL);
|
13161
13164
|
h(this, "_scratchCartographic", new se());
|
@@ -13163,7 +13166,7 @@ class Uo extends ce {
|
|
13163
13166
|
this.setActive();
|
13164
13167
|
}
|
13165
13168
|
async pipe(e) {
|
13166
|
-
return e.map.className === "CesiumMap" ? this._cesiumHandler(e) : e.map.className === "ObliqueMap" ?
|
13169
|
+
return e.map.className === "CesiumMap" ? this._cesiumHandler(e) : e.map.className === "ObliqueMap" ? qo.obliqueHandler(e) : e;
|
13167
13170
|
}
|
13168
13171
|
_cesiumHandler(e) {
|
13169
13172
|
const r = e.map.getScene();
|
@@ -13368,7 +13371,7 @@ class $v {
|
|
13368
13371
|
h(this, "exclusiveAdded");
|
13369
13372
|
h(this, "_boundKeyListener");
|
13370
13373
|
h(this, "_modifierChanged");
|
13371
|
-
this._positionInteraction = new
|
13374
|
+
this._positionInteraction = new qo(), this._featureInteraction = new Hv(), this._featureProviderInteraction = new jv(), this._interactionChain = new is([
|
13372
13375
|
this._positionInteraction,
|
13373
13376
|
this._featureInteraction,
|
13374
13377
|
this._featureProviderInteraction
|
@@ -13657,7 +13660,7 @@ class Gi extends ts {
|
|
13657
13660
|
let f = u.getProperty("id");
|
13658
13661
|
f || (f = `${e.url}${d}`);
|
13659
13662
|
let g = !0;
|
13660
|
-
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] &&
|
13663
|
+
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] && Ao(u);
|
13661
13664
|
}
|
13662
13665
|
}
|
13663
13666
|
(c.hideLocal.length > 0 || c.hideGlobal.length > 0 || c.highlight.length > 0) && (e[hn] = () => {
|
@@ -13783,8 +13786,8 @@ class Uv extends ts {
|
|
13783
13786
|
let f, g = 0;
|
13784
13787
|
const m = () => {
|
13785
13788
|
const y = r.getBoundingSphere(s, !0, o);
|
13786
|
-
if (y !==
|
13787
|
-
if (y ===
|
13789
|
+
if (y !== al.PENDING) {
|
13790
|
+
if (y === al.FAILED) {
|
13788
13791
|
g += 1, g > 3 && f();
|
13789
13792
|
return;
|
13790
13793
|
}
|
@@ -13944,7 +13947,7 @@ class Yv extends As {
|
|
13944
13947
|
const $n = new Array(25);
|
13945
13948
|
for (let i = 0; i < $n.length; i++)
|
13946
13949
|
$n[i] = 200375083427892e-7 * 2 / 256 / 2 ** (i + 1);
|
13947
|
-
function
|
13950
|
+
function Wo(i) {
|
13948
13951
|
const t = yt.southwest(i), e = yt.northeast(i), s = [
|
13949
13952
|
N.toDegrees(t.longitude),
|
13950
13953
|
N.toDegrees(t.latitude)
|
@@ -13961,7 +13964,7 @@ class St extends kt {
|
|
13961
13964
|
/**
|
13962
13965
|
* Cesium Webmercator TilingScheme
|
13963
13966
|
*/
|
13964
|
-
h(this, "tilingScheme", new
|
13967
|
+
h(this, "tilingScheme", new wo());
|
13965
13968
|
/**
|
13966
13969
|
* sorted baseLevels, maximumLevel first example: [18,17,16]
|
13967
13970
|
*/
|
@@ -14049,7 +14052,7 @@ class St extends kt {
|
|
14049
14052
|
a.forEach((l) => {
|
14050
14053
|
l.getId() || l.setId(Ue());
|
14051
14054
|
});
|
14052
|
-
const o = new
|
14055
|
+
const o = new fo(a.length);
|
14053
14056
|
return o.load(a.map((l) => {
|
14054
14057
|
const c = l.getGeometry();
|
14055
14058
|
if (c) {
|
@@ -14066,7 +14069,7 @@ class St extends kt {
|
|
14066
14069
|
}).filter((l) => l)), this.tileLoadedEvent.raiseEvent({ tileId: r, rtree: o }), this._trackFeatures(a, r), this.rtreeCache.set(r, o), o;
|
14067
14070
|
}).catch(() => {
|
14068
14071
|
this.getLogger().warning(`Could not load Tile ${r}`);
|
14069
|
-
const a = new
|
14072
|
+
const a = new fo();
|
14070
14073
|
return this.rtreeCache.set(r, a), a;
|
14071
14074
|
});
|
14072
14075
|
this.cache.get(s).set(r, n), this.cache.get(s).canExpireCache() && await Promise.all([
|
@@ -14127,7 +14130,7 @@ class St extends kt {
|
|
14127
14130
|
async getFeaturesByCoordinate(e, s, r) {
|
14128
14131
|
const n = ad(e);
|
14129
14132
|
Vh(n, s, n);
|
14130
|
-
const a =
|
14133
|
+
const a = Po(e), o = se.fromDegrees(a[0], a[1]), l = this.getBaseLevelForResolution(s, o.latitude), c = await this._getRtreeForBaseTile(l, o, r);
|
14131
14134
|
return c ? c.search({
|
14132
14135
|
minX: n[0],
|
14133
14136
|
minY: n[1],
|
@@ -14150,7 +14153,7 @@ class St extends kt {
|
|
14150
14153
|
if (r === l)
|
14151
14154
|
return c.all().map((d) => d.value);
|
14152
14155
|
{
|
14153
|
-
const d =
|
14156
|
+
const d = Wo(a);
|
14154
14157
|
return c.search({
|
14155
14158
|
minX: d[0],
|
14156
14159
|
minY: d[1],
|
@@ -14353,13 +14356,13 @@ class Qv {
|
|
14353
14356
|
h(this, "tileProvider");
|
14354
14357
|
h(this, "_tilingScheme");
|
14355
14358
|
h(this, "_tileSize");
|
14356
|
-
h(this, "_errorEvent", new
|
14359
|
+
h(this, "_errorEvent", new ol());
|
14357
14360
|
h(this, "headers");
|
14358
14361
|
h(this, "emptyCanvas");
|
14359
14362
|
h(this, "minLevel", 0);
|
14360
14363
|
h(this, "maxLevel", 26);
|
14361
14364
|
h(this, "_reload");
|
14362
|
-
this.tileProvider = t.tileProvider, this._tilingScheme = this.tileProvider.tilingScheme, this._tileSize = t.tileSize, this._errorEvent = new
|
14365
|
+
this.tileProvider = t.tileProvider, this._tilingScheme = this.tileProvider.tilingScheme, this._tileSize = t.tileSize, this._errorEvent = new ol(), this.emptyCanvas = document.createElement("canvas"), this.emptyCanvas.width = this.tileWidth, this.emptyCanvas.height = this.tileHeight, this.headers = t.headers;
|
14363
14366
|
}
|
14364
14367
|
// eslint-disable-next-line class-methods-use-this
|
14365
14368
|
get _ready() {
|
@@ -14419,7 +14422,7 @@ class Qv {
|
|
14419
14422
|
const r = await this.tileProvider.getFeaturesForTile(t, e, s, this.headers);
|
14420
14423
|
if (r.length === 0)
|
14421
14424
|
return this.emptyCanvas;
|
14422
|
-
const n = this.tileProvider.tilingScheme.tileXYToRectangle(t, e, s), a =
|
14425
|
+
const n = this.tileProvider.tilingScheme.tileXYToRectangle(t, e, s), a = Wo(n), o = yt.center(n);
|
14423
14426
|
return Jv(r, a, o, this._tileSize);
|
14424
14427
|
}
|
14425
14428
|
}
|
@@ -14511,7 +14514,7 @@ class tS extends As {
|
|
14511
14514
|
const a = this.extent.getCoordinatesInProjection(oe);
|
14512
14515
|
a && (s.rectangle = yt.fromDegrees(a[0], a[1], a[2], a[3]));
|
14513
14516
|
}
|
14514
|
-
this.tilingSchema === "mercator" && (s.tilingScheme = new
|
14517
|
+
this.tilingSchema === "mercator" && (s.tilingScheme = new wo());
|
14515
14518
|
const r = new cf(s), n = {
|
14516
14519
|
alpha: this.opacity,
|
14517
14520
|
splitDirection: this.splitDirection
|
@@ -14695,7 +14698,7 @@ class Bn extends Ze {
|
|
14695
14698
|
/**
|
14696
14699
|
* The feature visibility of this layer. NOTE: Entities cannot be highlighted at this moment.
|
14697
14700
|
*/
|
14698
|
-
h(this, "featureVisibility", new
|
14701
|
+
h(this, "featureVisibility", new oa());
|
14699
14702
|
h(this, "_supportedMaps", [z.className]);
|
14700
14703
|
h(this, "_featureVisibilityListeners", []);
|
14701
14704
|
}
|
@@ -15027,7 +15030,7 @@ class rS extends kt {
|
|
15027
15030
|
this.unTrack(), this._layer = void 0, this.changed.destroy(), super.destroy();
|
15028
15031
|
}
|
15029
15032
|
}
|
15030
|
-
class nS extends
|
15033
|
+
class nS extends oa {
|
15031
15034
|
constructor(e) {
|
15032
15035
|
super();
|
15033
15036
|
h(this, "_changeTracker");
|
@@ -15082,7 +15085,7 @@ class Ti extends rt {
|
|
15082
15085
|
h(this, "injectedFetchDynamicFeatureFunc", () => {
|
15083
15086
|
throw new Error("Missing get dynamic feature");
|
15084
15087
|
});
|
15085
|
-
h(this, "_staticFeatureVisibility", new
|
15088
|
+
h(this, "_staticFeatureVisibility", new oa());
|
15086
15089
|
h(this, "_setEditing", null);
|
15087
15090
|
h(this, "_twoDimLoaded", null);
|
15088
15091
|
h(this, "_twoDimStyleChanged", null);
|
@@ -15211,7 +15214,7 @@ class Ti extends rt {
|
|
15211
15214
|
this._twoDimStaticSource.getFeatures().forEach((a) => {
|
15212
15215
|
if (a[lt]) {
|
15213
15216
|
let o;
|
15214
|
-
n ? (o = !0, a.setStyle(void 0)) : a.getStyle() !== a[lt].style && (o = !0, a.setStyle(a[lt].style)), o && Reflect.has(a, oi) &&
|
15217
|
+
n ? (o = !0, a.setStyle(void 0)) : a.getStyle() !== a[lt].style && (o = !0, a.setStyle(a[lt].style)), o && Reflect.has(a, oi) && Ao(a);
|
15215
15218
|
}
|
15216
15219
|
}), r && (this.changeTracker.track(), this.changeTracker.changed.raiseEvent());
|
15217
15220
|
}
|
@@ -15303,7 +15306,7 @@ class Ti extends rt {
|
|
15303
15306
|
}
|
15304
15307
|
}
|
15305
15308
|
De.registerClass(Ti.className, Ti);
|
15306
|
-
const
|
15309
|
+
const Ga = Symbol("featureFromOptions");
|
15307
15310
|
class Er extends rt {
|
15308
15311
|
constructor(e) {
|
15309
15312
|
const s = Er.getDefaultOptions();
|
@@ -15330,7 +15333,7 @@ class Er extends rt {
|
|
15330
15333
|
}
|
15331
15334
|
async reload() {
|
15332
15335
|
if (this._dataFetchedPromise) {
|
15333
|
-
const e = this.getFeatures().filter((s) => s[
|
15336
|
+
const e = this.getFeatures().filter((s) => s[Ga]);
|
15334
15337
|
this.removeAllFeatures(), this.source.addFeatures(e), this._dataFetchedPromise = null, await this.fetchData();
|
15335
15338
|
}
|
15336
15339
|
return super.reload();
|
@@ -15345,7 +15348,7 @@ class Er extends rt {
|
|
15345
15348
|
type: "FeatureCollection",
|
15346
15349
|
features: this._featuresToLoad
|
15347
15350
|
}), this.getFeatures().forEach((e) => {
|
15348
|
-
e[
|
15351
|
+
e[Ga] = !0;
|
15349
15352
|
}), this._featuresToLoad = void 0), this.url) {
|
15350
15353
|
const e = Gt(this.url, this.headers);
|
15351
15354
|
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)));
|
@@ -15368,7 +15371,7 @@ class Er extends rt {
|
|
15368
15371
|
if (this.projection.equals(r) ? delete e.projection : e.projection = this.projection.toJSON(), Array.isArray(this._featuresToLoad))
|
15369
15372
|
e.features = this._featuresToLoad.slice();
|
15370
15373
|
else {
|
15371
|
-
const n = this.getFeatures().filter((a) => a[
|
15374
|
+
const n = this.getFeatures().filter((a) => a[Ga]);
|
15372
15375
|
n.length > 0 && (e.features = n.map((a) => br(a, { writeStyle: !0, writeId: !0 })));
|
15373
15376
|
}
|
15374
15377
|
return e;
|
@@ -15378,7 +15381,7 @@ class Er extends rt {
|
|
15378
15381
|
}
|
15379
15382
|
}
|
15380
15383
|
De.registerClass(Er.className, Er);
|
15381
|
-
class Xr extends
|
15384
|
+
class Xr extends ha {
|
15382
15385
|
constructor(e, s) {
|
15383
15386
|
super(e, s);
|
15384
15387
|
h(this, "minLevel");
|
@@ -15503,7 +15506,7 @@ class oS extends Xr {
|
|
15503
15506
|
};
|
15504
15507
|
return Zt.contains(e.url) ? e.crossOrigin = "use-credentials" : Kt(this.url) || (e.crossOrigin = "anonymous"), this.headers && (e.imageLoadFunction = (s, r) => {
|
15505
15508
|
const n = Gt(r, this.headers);
|
15506
|
-
|
15509
|
+
Vo(r, n).then((a) => {
|
15507
15510
|
const o = s.getImage();
|
15508
15511
|
o.src = a, o.onload = () => {
|
15509
15512
|
URL.revokeObjectURL(a);
|
@@ -15517,7 +15520,7 @@ class oS extends Xr {
|
|
15517
15520
|
});
|
15518
15521
|
}
|
15519
15522
|
}
|
15520
|
-
class $w extends
|
15523
|
+
class $w extends ha {
|
15521
15524
|
static get className() {
|
15522
15525
|
return "TileDebugOpenlayersImpl";
|
15523
15526
|
}
|
@@ -15559,7 +15562,7 @@ class lS extends Xr {
|
|
15559
15562
|
maxZoom: this.maxLevel,
|
15560
15563
|
wrapX: !1
|
15561
15564
|
};
|
15562
|
-
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 =
|
15565
|
+
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 = da(this.headers));
|
15563
15566
|
const s = {
|
15564
15567
|
source: new yd(e),
|
15565
15568
|
opacity: this.opacity
|
@@ -15567,7 +15570,7 @@ class lS extends Xr {
|
|
15567
15570
|
return this.extent && this.extent.isValid() && (s.extent = this.extent.getCoordinatesInProjection(B)), new Es(s);
|
15568
15571
|
}
|
15569
15572
|
}
|
15570
|
-
class hS extends
|
15573
|
+
class hS extends ha {
|
15571
15574
|
constructor(e, s) {
|
15572
15575
|
super(e, s);
|
15573
15576
|
h(this, "tileProvider");
|
@@ -15581,7 +15584,8 @@ class hS extends la {
|
|
15581
15584
|
h(this, "minLevel");
|
15582
15585
|
h(this, "maxLevel");
|
15583
15586
|
h(this, "extent");
|
15584
|
-
this
|
15587
|
+
h(this, "declutter");
|
15588
|
+
this.tileProvider = s.tileProvider, this.tileSize = s.tileSize, this.minLevel = s.minLevel, this.maxLevel = s.maxLevel, this.extent = s.extent, this.declutter = s.declutter;
|
15585
15589
|
}
|
15586
15590
|
static get className() {
|
15587
15591
|
return "VectorTileOpenlayersImpl";
|
@@ -15607,7 +15611,7 @@ class hS extends la {
|
|
15607
15611
|
source: this.source,
|
15608
15612
|
renderBuffer: 200,
|
15609
15613
|
renderMode: "hybrid",
|
15610
|
-
declutter:
|
15614
|
+
declutter: this.declutter,
|
15611
15615
|
extent: e,
|
15612
15616
|
minZoom: s,
|
15613
15617
|
maxZoom: r
|
@@ -15701,10 +15705,10 @@ class uS extends Xr {
|
|
15701
15705
|
}
|
15702
15706
|
getOLLayer() {
|
15703
15707
|
const e = this.tilingSchema === We.GEOGRAPHIC ? oe : B, s = e.proj.getExtent();
|
15704
|
-
let r =
|
15705
|
-
this.numberOfLevelZeroTilesX > 1 && (r /= this.numberOfLevelZeroTilesX), this.tilingSchema === We.GEOGRAPHIC && (r =
|
15708
|
+
let r = $a(s) / this.tileSize[0];
|
15709
|
+
this.numberOfLevelZeroTilesX > 1 && (r /= this.numberOfLevelZeroTilesX), this.tilingSchema === We.GEOGRAPHIC && (r = $a(s) / (this.tileSize[0] * 2));
|
15706
15710
|
const n = this.maxLevel + 1, a = new Array(n).fill(void 0).map((f, g) => r / 2 ** g), o = this.extent.getCoordinatesInProjection(e), l = {
|
15707
|
-
origin:
|
15711
|
+
origin: ta(s),
|
15708
15712
|
extent: o,
|
15709
15713
|
resolutions: a,
|
15710
15714
|
matrixIds: this.matrixIds,
|
@@ -15726,7 +15730,7 @@ class uS extends Xr {
|
|
15726
15730
|
matrixSet: this.tileMatrixSetID,
|
15727
15731
|
url: this.url
|
15728
15732
|
};
|
15729
|
-
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 =
|
15733
|
+
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 = da(this.headers)), Object.assign(u, this.openlayersOptions), new Es({
|
15730
15734
|
opacity: this.opacity,
|
15731
15735
|
source: new wd(u)
|
15732
15736
|
});
|
@@ -15983,7 +15987,7 @@ class Xn extends St {
|
|
15983
15987
|
this.locale !== e && (super.locale = e, this.url.includes("{locale}") && this.clearCache());
|
15984
15988
|
}
|
15985
15989
|
async loader(e, s, r, n) {
|
15986
|
-
const a = this.tilingScheme.tileXYToRectangle(e, s, r), o = bu(this.url, e, s, r, a, this.locale), l =
|
15990
|
+
const a = this.tilingScheme.tileXYToRectangle(e, s, r), o = bu(this.url, e, s, r, a, this.locale), l = Wo(a), c = hr(l), d = Gt(this.url, n), u = await rv(o, d), f = this._MVTFormat.readFeatures(u), g = (l[2] - l[0]) / 4096, m = -((l[3] - l[1]) / 4096);
|
15987
15991
|
return f.forEach((p) => {
|
15988
15992
|
const y = this.idProperty ? p.get(this.idProperty) : null;
|
15989
15993
|
y != null && p.setId(String(y));
|
@@ -16062,7 +16066,7 @@ class Tr extends vt {
|
|
16062
16066
|
}
|
16063
16067
|
}
|
16064
16068
|
De.registerClass(Tr.className, Tr);
|
16065
|
-
function
|
16069
|
+
function gh(i, t, e) {
|
16066
16070
|
const s = e.getId();
|
16067
16071
|
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];
|
16068
16072
|
}
|
@@ -16081,6 +16085,7 @@ class Nr extends di {
|
|
16081
16085
|
h(this, "tileProvider");
|
16082
16086
|
h(this, "_maxLevel");
|
16083
16087
|
h(this, "_minLevel");
|
16088
|
+
h(this, "_declutter");
|
16084
16089
|
h(this, "_featureVisibilityListeners", []);
|
16085
16090
|
// eslint-disable-next-line class-methods-use-this
|
16086
16091
|
h(this, "_tileLoadEventListener", () => {
|
@@ -16097,7 +16102,7 @@ class Nr extends di {
|
|
16097
16102
|
this.highlightStyle = void 0, e.highlightStyle && (this.highlightStyle = e.highlightStyle instanceof he ? e.highlightStyle : new he(e.highlightStyle)), this.vectorProperties = new Lt({
|
16098
16103
|
allowPicking: this.allowPicking,
|
16099
16104
|
...e.vectorProperties
|
16100
|
-
}), this.tileProvider = e.tileProvider instanceof St ? e.tileProvider : ni(Ls, e.tileProvider ?? { type: St.className }), this.tileProvider && (this.tileProvider.locale = this.locale), this._maxLevel = le(e.maxLevel, s.maxLevel), this._minLevel = le(e.minLevel, s.minLevel);
|
16105
|
+
}), this.tileProvider = e.tileProvider instanceof St ? e.tileProvider : ni(Ls, e.tileProvider ?? { type: St.className }), this.tileProvider && (this.tileProvider.locale = this.locale), this._maxLevel = le(e.maxLevel, s.maxLevel), this._minLevel = le(e.minLevel, s.minLevel), this._declutter = de(e.declutter, s.declutter);
|
16101
16106
|
}
|
16102
16107
|
static get className() {
|
16103
16108
|
return "VectorTileLayer";
|
@@ -16111,7 +16116,8 @@ class Nr extends di {
|
|
16111
16116
|
highlightStyle: void 0,
|
16112
16117
|
vectorProperties: {},
|
16113
16118
|
minLevel: void 0,
|
16114
|
-
maxLevel: void 0
|
16119
|
+
maxLevel: void 0,
|
16120
|
+
declutter: !0
|
16115
16121
|
};
|
16116
16122
|
}
|
16117
16123
|
/**
|
@@ -16126,7 +16132,7 @@ class Nr extends di {
|
|
16126
16132
|
async initialize() {
|
16127
16133
|
this.initialized || (this._tileLoadEventListener = this.tileProvider.tileLoadedEvent.addEventListener((e) => this._handleTileLoaded(e)), this._vectorPropertiesChangedListener = this.vectorProperties.propertyChanged.addEventListener(() => {
|
16128
16134
|
this.reload();
|
16129
|
-
}), this.featureProvider = new
|
16135
|
+
}), this.featureProvider = new go(this.name, {
|
16130
16136
|
// XXX this overwrites
|
16131
16137
|
style: this.style,
|
16132
16138
|
tileProvider: this.tileProvider,
|
@@ -16139,7 +16145,7 @@ class Nr extends di {
|
|
16139
16145
|
_handleTileLoaded({ rtree: e }) {
|
16140
16146
|
e.all().map((s) => s.value).forEach((s) => {
|
16141
16147
|
const r = s.getStyle();
|
16142
|
-
r && r instanceof ee && r.setZIndex(this._getNextStyleZIndex()), s[Y] = this.name, s.getStyleFunction = () => this._featureStyle.bind(this), this.tileProvider.trackFeaturesToTiles && this.globalHider &&
|
16148
|
+
r && r instanceof ee && r.setZIndex(this._getNextStyleZIndex()), s[Y] = this.name, s.getStyleFunction = () => this._featureStyle.bind(this), this.tileProvider.trackFeaturesToTiles && this.globalHider && gh(this.featureVisibility, this.globalHider, s);
|
16143
16149
|
});
|
16144
16150
|
}
|
16145
16151
|
setGlobalHider(e) {
|
@@ -16202,7 +16208,8 @@ class Nr extends di {
|
|
16202
16208
|
tileSize: this._tileSize,
|
16203
16209
|
minLevel: this._minLevel,
|
16204
16210
|
maxLevel: this._maxLevel,
|
16205
|
-
extent: this.extent ?? new xe()
|
16211
|
+
extent: this.extent ?? new xe(),
|
16212
|
+
declutter: this._declutter
|
16206
16213
|
};
|
16207
16214
|
}
|
16208
16215
|
createImplementationsForMap(e) {
|
@@ -16217,7 +16224,7 @@ class Nr extends di {
|
|
16217
16224
|
}
|
16218
16225
|
async activate() {
|
16219
16226
|
await super.activate(), this._setupFeatureVisibilityHandlers(), this.tileProvider.trackFeaturesToTiles && this.tileProvider.forEachFeature((e) => {
|
16220
|
-
|
16227
|
+
gh(this.featureVisibility, this.globalHider, e);
|
16221
16228
|
});
|
16222
16229
|
}
|
16223
16230
|
deactivate() {
|
@@ -16234,11 +16241,11 @@ class Nr extends di {
|
|
16234
16241
|
const e = super.toJSON(), s = Nr.getDefaultOptions();
|
16235
16242
|
this._maxLevel !== s.maxLevel && (e.maxLevel = this._maxLevel), this._minLevel !== s.minLevel && (e.minLevel = this._minLevel);
|
16236
16243
|
const r = this.vectorProperties.getVcsMeta();
|
16237
|
-
return Object.keys(r).length > 0 && (e.vectorProperties = r), this.tileProvider && (e.tileProvider = this.tileProvider.toJSON()), e;
|
16244
|
+
return Object.keys(r).length > 0 && (e.vectorProperties = r), this.tileProvider && (e.tileProvider = this.tileProvider.toJSON()), this._declutter !== s.declutter && (e.declutter = this._declutter), e;
|
16238
16245
|
}
|
16239
16246
|
}
|
16240
16247
|
De.registerClass(Nr.className, Nr);
|
16241
|
-
class
|
16248
|
+
class Zn extends rt {
|
16242
16249
|
constructor(e) {
|
16243
16250
|
var r;
|
16244
16251
|
const s = new k(e.projection).toJSON();
|
@@ -16253,7 +16260,7 @@ class gh extends rt {
|
|
16253
16260
|
h(this, "getFeaturesOptions");
|
16254
16261
|
h(this, "wfsFormat");
|
16255
16262
|
h(this, "_dataFetchedPromise");
|
16256
|
-
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
|
16263
|
+
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 Ua({
|
16257
16264
|
featureNS: this.featureNS,
|
16258
16265
|
featureType: this.featureType,
|
16259
16266
|
version: this.version
|
@@ -16276,7 +16283,7 @@ class gh extends rt {
|
|
16276
16283
|
return this.initialized || await this.fetchData(), super.initialize();
|
16277
16284
|
}
|
16278
16285
|
async reload() {
|
16279
|
-
return this.wfsFormat = new
|
16286
|
+
return this.wfsFormat = new Ua({
|
16280
16287
|
featureNS: this.featureNS,
|
16281
16288
|
featureType: this.featureType,
|
16282
16289
|
version: this.version
|
@@ -16308,11 +16315,11 @@ class gh extends rt {
|
|
16308
16315
|
this.addFeatures(s);
|
16309
16316
|
}
|
16310
16317
|
toJSON() {
|
16311
|
-
const e = super.toJSON();
|
16312
|
-
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;
|
16318
|
+
const e = super.toJSON(), s = Zn.getDefaultOptions();
|
16319
|
+
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;
|
16313
16320
|
}
|
16314
16321
|
}
|
16315
|
-
De.registerClass(
|
16322
|
+
De.registerClass(Zn.className, Zn);
|
16316
16323
|
class Dr extends vt {
|
16317
16324
|
/**
|
16318
16325
|
* @param options
|
@@ -16486,7 +16493,7 @@ class Ar extends vt {
|
|
16486
16493
|
}
|
16487
16494
|
}
|
16488
16495
|
De.registerClass(Ar.className, Ar);
|
16489
|
-
function
|
16496
|
+
function ka() {
|
16490
16497
|
return ue("ClippingObject");
|
16491
16498
|
}
|
16492
16499
|
const cn = Symbol("ClippingObjectGlobe");
|
@@ -16570,7 +16577,7 @@ class un {
|
|
16570
16577
|
});
|
16571
16578
|
else {
|
16572
16579
|
const n = this.layerNames.indexOf(t.name);
|
16573
|
-
|
16580
|
+
ka().warning(`layer ${t.name} cannot have a ClippingObject applied`), this.layerNames.splice(n, 1);
|
16574
16581
|
}
|
16575
16582
|
} else
|
16576
16583
|
this.targets.has(t.name) && (this.targets.delete(t.name), this.targetsUpdated.raiseEvent());
|
@@ -16579,7 +16586,7 @@ class un {
|
|
16579
16586
|
const r = e.getVisualizationsForLayer(t), n = r ? [...r][0] : null;
|
16580
16587
|
if (!n) {
|
16581
16588
|
const a = this.layerNames.indexOf(t.name);
|
16582
|
-
|
16589
|
+
ka().warning(`layer ${t.name} cannot have a ClippingObject applied`), this.layerNames.splice(a, 1);
|
16583
16590
|
return;
|
16584
16591
|
}
|
16585
16592
|
this.entities.filter((a) => a.layerName === t.name).forEach((a) => {
|
@@ -16590,7 +16597,7 @@ class un {
|
|
16590
16597
|
this.targets.set(o, l), s = !0;
|
16591
16598
|
else {
|
16592
16599
|
const c = this.entities.indexOf(a);
|
16593
|
-
|
16600
|
+
ka().warning(`could not find entity with id ${a.entityId} in layer ${a.layerName}`), this.entities.splice(c, 1);
|
16594
16601
|
}
|
16595
16602
|
} else
|
16596
16603
|
this.targets.has(o) && (this.targets.delete(o), s = !0);
|
@@ -16700,7 +16707,7 @@ function qw(i, t = {}, e = void 0) {
|
|
16700
16707
|
const a = Ns(r);
|
16701
16708
|
if (a.length < 2 || a[0][0] === a[1][0] && a[0][1] === a[1][1])
|
16702
16709
|
return null;
|
16703
|
-
n === "Polygon" ? (
|
16710
|
+
n === "Polygon" ? (ho(a), o0(a)) : n === "LineString" && a.length === 2 && t.createEndingPlanes && s.push(...pS(a)), t.createVerticalPlanes && s.push(...mS(a)), i.get("olcs_altitudeMode") === "absolute" && (t.createBottomPlane || t.createTopPlane) && s.push(...ph(i, a, t));
|
16704
16711
|
}
|
16705
16712
|
return e && s.forEach((a) => {
|
16706
16713
|
const o = ie.transform(a, e);
|
@@ -16724,11 +16731,11 @@ function nr(i, t, e, s) {
|
|
16724
16731
|
}
|
16725
16732
|
return t.modelMatrix = i.modelMatrix.clone(), t.unionClippingRegions = i.unionClippingRegions, t.edgeColor = i.edgeColor.clone(), t.edgeWidth = i.edgeWidth, t;
|
16726
16733
|
}
|
16727
|
-
function
|
16734
|
+
function fa(i) {
|
16728
16735
|
i.isDestroyed && i.isDestroyed() || (i instanceof Ki ? i.model && (i.model.clippingPlanes ? i.model.clippingPlanes.getValue().removeAll() : i.model.clippingPlanes = new gf(new dr())) : i.clippingPlanes ? i.clippingPlanes.removeAll() : i.clippingPlanes = new dr());
|
16729
16736
|
}
|
16730
16737
|
function yS(i, t, e) {
|
16731
|
-
if (
|
16738
|
+
if (fa(i), e)
|
16732
16739
|
nr(t, i.clippingPlanes);
|
16733
16740
|
else if (!t.modelMatrix.equals(R.IDENTITY))
|
16734
16741
|
nr(t, i.clippingPlanes), i.clippingPlanes.modelMatrix = R.multiply(R.inverse(i.clippingPlanesOriginMatrix, i.clippingPlanes.modelMatrix), t.modelMatrix, i.clippingPlanes.modelMatrix);
|
@@ -16738,11 +16745,11 @@ function yS(i, t, e) {
|
|
16738
16745
|
}
|
16739
16746
|
}
|
16740
16747
|
function _S(i, t) {
|
16741
|
-
|
16748
|
+
fa(i), nr(t, i.clippingPlanes);
|
16742
16749
|
}
|
16743
16750
|
function vS(i, t, e) {
|
16744
16751
|
if (i.model) {
|
16745
|
-
|
16752
|
+
fa(i);
|
16746
16753
|
const s = i.model.clippingPlanes.getValue();
|
16747
16754
|
if (nr(t, s), !e) {
|
16748
16755
|
const r = i.computeModelMatrix(Zh.now());
|
@@ -16900,7 +16907,7 @@ class SS {
|
|
16900
16907
|
});
|
16901
16908
|
};
|
16902
16909
|
this._targetsMap.clear(), this._defaultClippingObjects.forEach(e), this._exclusiveClippingObjects && this._exclusiveClippingObjects.forEach(e), t.forEach((s) => {
|
16903
|
-
|
16910
|
+
fa(s);
|
16904
16911
|
}), this._targetsMap.forEach((s, r) => {
|
16905
16912
|
s.clippingPlaneCollection && yh(r, s.clippingPlaneCollection, s.local);
|
16906
16913
|
});
|
@@ -16922,7 +16929,7 @@ var Et;
|
|
16922
16929
|
(function(i) {
|
16923
16930
|
i.LOW = "low", i.MEDIUM = "medium", i.HIGH = "high";
|
16924
16931
|
})(Et = Et || (Et = {}));
|
16925
|
-
class
|
16932
|
+
class Kn {
|
16926
16933
|
constructor(t) {
|
16927
16934
|
h(this, "_app");
|
16928
16935
|
h(this, "_layerSettingsCache");
|
@@ -16933,7 +16940,7 @@ class Zn {
|
|
16933
16940
|
* An event raised when the current quality level has been changed
|
16934
16941
|
*/
|
16935
16942
|
h(this, "qualityLevelChanged", new E());
|
16936
|
-
this._app = t, this._layerSettingsCache = [], this._viewModelSettings =
|
16943
|
+
this._app = t, this._layerSettingsCache = [], this._viewModelSettings = Kn.getDefaultOptions(), this._currentQualityLevel = void 0, this._listeners = [
|
16937
16944
|
this._app.maps.mapActivated.addEventListener(() => {
|
16938
16945
|
this._app.maps.activeMap instanceof z && !this.currentQualityLevel && (Hi() ? this.setLevel(this._viewModelSettings.startingMobileQualityLevel) : this.setLevel(this._viewModelSettings.startingQualityLevel));
|
16939
16946
|
}),
|
@@ -17012,7 +17019,7 @@ class Zn {
|
|
17012
17019
|
const s = Object.fromEntries(Object.entries(t).filter(([, n]) => n != null).map(([n, a]) => n === Et.LOW || n === Et.MEDIUM || n === Et.HIGH ? [
|
17013
17020
|
n,
|
17014
17021
|
Object.fromEntries(Object.entries(a).filter(([, o]) => o != null))
|
17015
|
-
] : [n, a])), r =
|
17022
|
+
] : [n, a])), r = Kn.getDefaultOptions();
|
17016
17023
|
this._viewModelSettings = {
|
17017
17024
|
...r,
|
17018
17025
|
...s,
|
@@ -17096,9 +17103,9 @@ function Ou(i) {
|
|
17096
17103
|
}
|
17097
17104
|
}
|
17098
17105
|
});
|
17099
|
-
return
|
17106
|
+
return Uo(t), i.add(t), t.activate(), t;
|
17100
17107
|
}
|
17101
|
-
function
|
17108
|
+
function ga(i, t) {
|
17102
17109
|
const e = new is(), s = new E(), r = i.addExclusiveInteraction(e, () => {
|
17103
17110
|
s.raiseEvent();
|
17104
17111
|
}, void 0, t), n = i.featureInteraction.active;
|
@@ -17294,7 +17301,7 @@ async function OS(i, t) {
|
|
17294
17301
|
const s = e.clone();
|
17295
17302
|
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));
|
17296
17303
|
}
|
17297
|
-
class
|
17304
|
+
class Xo extends Nt {
|
17298
17305
|
constructor() {
|
17299
17306
|
super();
|
17300
17307
|
h(this, "_activeMap", null);
|
@@ -17349,7 +17356,7 @@ class Wo extends Nt {
|
|
17349
17356
|
* Creates a MapCollection from an iterable of maps, such as an Array.
|
17350
17357
|
*/
|
17351
17358
|
static from(e) {
|
17352
|
-
const s = new
|
17359
|
+
const s = new Xo();
|
17353
17360
|
if (e)
|
17354
17361
|
for (const r of e)
|
17355
17362
|
s.add(r);
|
@@ -18007,7 +18014,7 @@ class DS extends Nt {
|
|
18007
18014
|
function Bs() {
|
18008
18015
|
return ue("init");
|
18009
18016
|
}
|
18010
|
-
const
|
18017
|
+
const Jn = /* @__PURE__ */ new Map(), AS = "_defaultDynamicModule";
|
18011
18018
|
class Nu {
|
18012
18019
|
/**
|
18013
18020
|
* @param options
|
@@ -18047,9 +18054,9 @@ class Nu {
|
|
18047
18054
|
h(this, "_categoryItemClassRegistry");
|
18048
18055
|
h(this, "_tileProviderClassRegistry");
|
18049
18056
|
h(this, "_featureProviderClassRegistry");
|
18050
|
-
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
|
18057
|
+
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 dh({ _id: AS }), this._dynamicModule = this._defaultDynamicModule;
|
18051
18058
|
const e = () => this._dynamicModule._id;
|
18052
|
-
this._dynamicModuleIdChanged = new E(), this._locale = ES(), this._localeChanged = new E(), this._mapClassRegistry = new Qt(Ts), this._maps = ti(new
|
18059
|
+
this._dynamicModuleIdChanged = new E(), this._locale = ES(), this._localeChanged = new E(), this._mapClassRegistry = new Qt(Ts), this._maps = ti(new Xo(), e, void 0, j_.bind(null, this), Li), this._layerClassRegistry = new Qt(De), this._layers = ti(this._maps.layerCollection, e, B_.bind(null, this), $_.bind(null, this), Ze, U_), 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, V_, mt), this._styleClassRegistry = new Qt(Br), 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 = PS(e, this._layers.globalHider), this._flights = ti(new DS(this), e, void 0, (s) => new Os(s)), this._categoryClassRegistry = new Qt(Tc), this._categories = new Dv(this), this._displayQuality = new Kn(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(To), Jn.set(this._id, this);
|
18053
18060
|
}
|
18054
18061
|
get id() {
|
18055
18062
|
return this._id;
|
@@ -18168,7 +18175,7 @@ class Nu {
|
|
18168
18175
|
* @param module
|
18169
18176
|
*/
|
18170
18177
|
async addModule(t) {
|
18171
|
-
v(t,
|
18178
|
+
v(t, dh);
|
18172
18179
|
const e = async () => {
|
18173
18180
|
try {
|
18174
18181
|
if (this._modules.hasKey(t._id)) {
|
@@ -18260,19 +18267,19 @@ class Nu {
|
|
18260
18267
|
get() {
|
18261
18268
|
throw new Error("VcsApp was destroyed");
|
18262
18269
|
}
|
18263
|
-
}),
|
18270
|
+
}), Jn.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();
|
18264
18271
|
}
|
18265
18272
|
}
|
18266
18273
|
function Qw(i) {
|
18267
|
-
return
|
18274
|
+
return Jn.get(i);
|
18268
18275
|
}
|
18269
18276
|
window.vcs = window.vcs || {};
|
18270
|
-
window.vcs.apps =
|
18277
|
+
window.vcs.apps = Jn;
|
18271
18278
|
function Du(i) {
|
18272
18279
|
if (!i)
|
18273
18280
|
return !1;
|
18274
18281
|
const t = i.getType();
|
18275
|
-
return t === "LineString" ?
|
18282
|
+
return t === "LineString" ? ko(i) : t === "Polygon" ? Zc(i) : t === "Point" ? hu(i) : t === "Circle" ? Qc(i) : !1;
|
18276
18283
|
}
|
18277
18284
|
const Yr = Symbol("Vertex"), eM = Symbol("VertexIndex"), Te = Symbol("Handler"), ci = Symbol("MouseOver"), FS = `<svg xmlns="http://www.w3.org/2000/svg" width="19" height="19" viewBox="0 0 19 19">
|
18278
18285
|
<g id="pen">
|
@@ -18344,7 +18351,7 @@ function GS(i) {
|
|
18344
18351
|
}
|
18345
18352
|
function tM(i, t, e, s) {
|
18346
18353
|
v(i, Nu), v(t, rt), v(e, In(tt));
|
18347
|
-
const { interactionChain: r, removed: n, destroy: a } =
|
18354
|
+
const { interactionChain: r, removed: n, destroy: a } = ga(i.maps.eventHandler), o = new E(), l = new E(), c = new E();
|
18348
18355
|
let d = !1, u = null, f = null, g = !1, m = s;
|
18349
18356
|
const p = Eu(i), y = () => {
|
18350
18357
|
const $ = f ?? new Ft({ olcs_altitudeMode: m }), A = t.vectorProperties.getAltitudeMode($);
|
@@ -18423,11 +18430,11 @@ var _e;
|
|
18423
18430
|
(function(i) {
|
18424
18431
|
i.TRANSLATE = "translate", i.ROTATE = "rotate", i.SCALE = "scale", i.EXTRUDE = "extrude";
|
18425
18432
|
})(_e = _e || (_e = {}));
|
18426
|
-
const
|
18427
|
-
function
|
18433
|
+
const ma = U.GRAY.withAlpha(0.5);
|
18434
|
+
function Qn(i) {
|
18428
18435
|
return i === P.X || i === P.Y || i === P.Z;
|
18429
18436
|
}
|
18430
|
-
function
|
18437
|
+
function ea(i) {
|
18431
18438
|
return i === P.XY || i === P.XZ || i === P.YZ;
|
18432
18439
|
}
|
18433
18440
|
function Mn(i) {
|
@@ -18438,19 +18445,19 @@ function Mn(i) {
|
|
18438
18445
|
}
|
18439
18446
|
function Cn(i) {
|
18440
18447
|
return {
|
18441
|
-
appearance: new
|
18448
|
+
appearance: new Xa({
|
18442
18449
|
material: Rt.fromType("Color", {
|
18443
18450
|
color: i
|
18444
18451
|
})
|
18445
18452
|
}),
|
18446
|
-
depthFailAppearance: new
|
18453
|
+
depthFailAppearance: new Xa({
|
18447
18454
|
material: Rt.fromType("Color", {
|
18448
18455
|
color: U.divideByScalar(i, 1.5, new U()).withAlpha(0.2)
|
18449
18456
|
})
|
18450
18457
|
})
|
18451
18458
|
};
|
18452
18459
|
}
|
18453
|
-
function
|
18460
|
+
function Yo(i) {
|
18454
18461
|
return {
|
18455
18462
|
appearance: new On({
|
18456
18463
|
flat: !0,
|
@@ -18466,9 +18473,9 @@ function Xo(i) {
|
|
18466
18473
|
})
|
18467
18474
|
};
|
18468
18475
|
}
|
18469
|
-
function
|
18476
|
+
function za(i, t, e = !1) {
|
18470
18477
|
let s, r;
|
18471
|
-
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 ?
|
18478
|
+
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 ? ma : s;
|
18472
18479
|
const n = new pt({
|
18473
18480
|
allowPicking: !e,
|
18474
18481
|
asynchronous: !1,
|
@@ -18482,7 +18489,7 @@ function ka(i, t, e = !1) {
|
|
18482
18489
|
})
|
18483
18490
|
})
|
18484
18491
|
],
|
18485
|
-
...
|
18492
|
+
...Yo(s)
|
18486
18493
|
});
|
18487
18494
|
let a = R.multiplyByMatrix3(t, r, new R());
|
18488
18495
|
return Object.defineProperty(n, "modelMatrix", {
|
@@ -18571,7 +18578,7 @@ function jS(i, t, e, s, r) {
|
|
18571
18578
|
geometry: i
|
18572
18579
|
})
|
18573
18580
|
],
|
18574
|
-
...
|
18581
|
+
...Yo(t)
|
18575
18582
|
});
|
18576
18583
|
let a = R.multiply(e, s, new R());
|
18577
18584
|
return Object.defineProperty(n, "modelMatrix", {
|
@@ -18585,7 +18592,7 @@ function jS(i, t, e, s, r) {
|
|
18585
18592
|
}
|
18586
18593
|
function hs(i, t, e, s = !1) {
|
18587
18594
|
let r, n, a;
|
18588
|
-
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 ?
|
18595
|
+
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 ? ma : n;
|
18589
18596
|
const o = e === _e.SCALE ? new Xh({
|
18590
18597
|
minimum: new _(-0.1, -0.1, -0.1),
|
18591
18598
|
maximum: new _(0.1, 0.1, 0.1)
|
@@ -18635,18 +18642,18 @@ function cs(i, t, e = !1) {
|
|
18635
18642
|
new _(1e-7, 0.4, 0.2),
|
18636
18643
|
new _(1e-7, 0.4, 0.4),
|
18637
18644
|
new _(1e-7, 0.2, 0.4)
|
18638
|
-
], r = U.RED), r = e ?
|
18645
|
+
], r = U.RED), r = e ? ma : r;
|
18639
18646
|
const n = new pt({
|
18640
18647
|
allowPicking: !e,
|
18641
18648
|
asynchronous: !1,
|
18642
18649
|
geometryInstances: [
|
18643
18650
|
new ct({
|
18644
18651
|
geometry: new _f({
|
18645
|
-
polygonHierarchy: new
|
18652
|
+
polygonHierarchy: new Ya(s)
|
18646
18653
|
})
|
18647
18654
|
})
|
18648
18655
|
],
|
18649
|
-
...
|
18656
|
+
...Yo(r),
|
18650
18657
|
modelMatrix: t
|
18651
18658
|
});
|
18652
18659
|
return e || (n[Te] = i), n;
|
@@ -18654,9 +18661,9 @@ function cs(i, t, e = !1) {
|
|
18654
18661
|
function VS(i) {
|
18655
18662
|
let t;
|
18656
18663
|
return (e, s, r) => {
|
18657
|
-
t && (i.remove(t), t = void 0), e !== P.NONE && (t = new Oi(),
|
18664
|
+
t && (i.remove(t), t = void 0), e !== P.NONE && (t = new Oi(), Qn(e) ? hs(e, s, r, !0).forEach((n) => {
|
18658
18665
|
t.add(n);
|
18659
|
-
}) :
|
18666
|
+
}) : ea(e) && t.add(cs(e, s, !0)), i.add(t));
|
18660
18667
|
};
|
18661
18668
|
}
|
18662
18669
|
function $S(i, t) {
|
@@ -18671,7 +18678,7 @@ function $S(i, t) {
|
|
18671
18678
|
Mn(m), e.add(m);
|
18672
18679
|
});
|
18673
18680
|
} else
|
18674
|
-
t === _e.ROTATE ? (e.add(
|
18681
|
+
t === _e.ROTATE ? (e.add(za(P.X, s, !0)), e.add(za(P.Y, s, !0)), e.add(za(P.Z, s))) : t === _e.EXTRUDE && hs(P.Z, s, t).forEach((g) => {
|
18675
18682
|
Mn(g), e.add(g);
|
18676
18683
|
});
|
18677
18684
|
const n = i.getScene();
|
@@ -18764,12 +18771,12 @@ function BS(i, t) {
|
|
18764
18771
|
}
|
18765
18772
|
a.forEach((o) => {
|
18766
18773
|
const l = o.getGeometry();
|
18767
|
-
l[je] = !0, o[
|
18774
|
+
l[je] = !0, o[la] = !0;
|
18768
18775
|
}), e = i.addFeatures(a);
|
18769
18776
|
}
|
18770
18777
|
};
|
18771
18778
|
}
|
18772
|
-
function
|
18779
|
+
function mo(i, t, e) {
|
18773
18780
|
let s, r, n = 0;
|
18774
18781
|
i === P.X ? (s = U.RED.toCssColorString(), r = [
|
18775
18782
|
[0, 0, 0],
|
@@ -18816,11 +18823,11 @@ function Au(i) {
|
|
18816
18823
|
}
|
18817
18824
|
function US(i) {
|
18818
18825
|
let t;
|
18819
|
-
const e =
|
18826
|
+
const e = ma.toCssColorString();
|
18820
18827
|
return (s, r, n, a) => {
|
18821
18828
|
if (t && (i.removeFeaturesById(t), t = void 0), s !== P.NONE) {
|
18822
18829
|
let o = [];
|
18823
|
-
|
18830
|
+
Qn(s) ? o = mo(s, r, e) : ea(s) && (o = [Au(e)]), o.forEach((l) => {
|
18824
18831
|
l.getGeometry().applyTransform((c, d) => {
|
18825
18832
|
const u = c.length;
|
18826
18833
|
for (let f = 0; f < u; f += 3)
|
@@ -18834,8 +18841,8 @@ function US(i) {
|
|
18834
18841
|
function qS(i, t, e) {
|
18835
18842
|
let s = [0, 0, 0], r = 1, n = [];
|
18836
18843
|
e === _e.TRANSLATE || e === _e.SCALE ? n = [
|
18837
|
-
...
|
18838
|
-
...
|
18844
|
+
...mo(P.X, e),
|
18845
|
+
...mo(P.Y, e),
|
18839
18846
|
Au()
|
18840
18847
|
] : e === _e.ROTATE && (n = [
|
18841
18848
|
new Ft({
|
@@ -18846,7 +18853,7 @@ function qS(i, t, e) {
|
|
18846
18853
|
stroke: new $e({ color: U.BLUE.toCssColorString(), width: 2 })
|
18847
18854
|
}))), n.forEach((u) => {
|
18848
18855
|
const f = u.getGeometry();
|
18849
|
-
f[je] = !0, u[
|
18856
|
+
f[je] = !0, u[la] = !0, u[Te] = u.get("axis");
|
18850
18857
|
});
|
18851
18858
|
const a = i.olMap.on("postrender", () => {
|
18852
18859
|
if (!(s[0] === 0 && s[1] === 0 && s[2] === 0)) {
|
@@ -19000,7 +19007,7 @@ class Fu extends ce {
|
|
19000
19007
|
this.reset();
|
19001
19008
|
}
|
19002
19009
|
}
|
19003
|
-
const
|
19010
|
+
const Zo = [
|
19004
19011
|
"olcs_altitudeMode",
|
19005
19012
|
"olcs_groundLevel",
|
19006
19013
|
"olcs_heightAboveGround"
|
@@ -19011,7 +19018,7 @@ const Yo = [
|
|
19011
19018
|
];
|
19012
19019
|
function Fs(i) {
|
19013
19020
|
const t = {};
|
19014
|
-
return
|
19021
|
+
return Zo.forEach((e) => {
|
19015
19022
|
const s = i.get(e);
|
19016
19023
|
s != null && (t[e] = s);
|
19017
19024
|
}), t;
|
@@ -19023,9 +19030,9 @@ function Rs(i, t) {
|
|
19023
19030
|
geometry: e,
|
19024
19031
|
...t
|
19025
19032
|
});
|
19026
|
-
return s[Yr] = !0, s[
|
19033
|
+
return s[Yr] = !0, s[la] = !0, s[Re] = !0, s;
|
19027
19034
|
}
|
19028
|
-
let Se = new j(), jt = new j(),
|
19035
|
+
let Se = new j(), jt = new j(), Ha = new j(), et = new _(), Pe = new _(), ja = new _();
|
19029
19036
|
function xh(i, t, e) {
|
19030
19037
|
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);
|
19031
19038
|
const s = j.dot(Se, jt);
|
@@ -19036,14 +19043,14 @@ function xh(i, t, e) {
|
|
19036
19043
|
];
|
19037
19044
|
}
|
19038
19045
|
function JS(i, t, e, s) {
|
19039
|
-
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),
|
19046
|
+
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), ja = _.fromElements(e[0] - t[0], e[1] - t[1], e[2] - e[2], ja);
|
19040
19047
|
const r = _.magnitude(et);
|
19041
|
-
return r < _.magnitude(Pe) || r < _.magnitude(
|
19048
|
+
return r < _.magnitude(Pe) || r < _.magnitude(ja) ? !1 : (et = _.normalize(et, et), Pe = _.normalize(Pe, Pe), et.equalsEpsilon(Pe, s || N.EPSILON5));
|
19042
19049
|
}
|
19043
19050
|
function QS(i, t, e, s) {
|
19044
|
-
Se = j.fromElements(t[0] - i[0], t[1] - i[1], Se), jt = j.fromElements(e[0] - i[0], e[1] - i[1], jt),
|
19051
|
+
Se = j.fromElements(t[0] - i[0], t[1] - i[1], Se), jt = j.fromElements(e[0] - i[0], e[1] - i[1], jt), Ha = j.fromElements(e[0] - t[0], e[1] - t[1], Ha);
|
19045
19052
|
const r = j.magnitude(Se);
|
19046
|
-
return r < j.magnitude(jt) || r < j.magnitude(
|
19053
|
+
return r < j.magnitude(jt) || r < j.magnitude(Ha) ? !1 : (Se = j.normalize(Se, Se), jt = j.normalize(jt, jt), Se.equalsEpsilon(jt, s || N.EPSILON5));
|
19047
19054
|
}
|
19048
19055
|
function Ru(i, t) {
|
19049
19056
|
return et = Ct(i, et), Pe = t.globe.ellipsoid.geodeticSurfaceNormal(et, Pe), Pe = _.cross(t.camera.rightWC, Pe, Pe), Pe = _.normalize(Pe, Pe), ie.fromPointNormal(et, Pe);
|
@@ -19102,7 +19109,7 @@ class iw extends ce {
|
|
19102
19109
|
this.translated.raiseEvent(this._getTranslateEvent(e.positionOrPixel, e.windowPosition)), e.type === I.DRAGEND && (this._getTranslateEvent = null, this._transformationHandler.showAxis = P.NONE);
|
19103
19110
|
else if (e.type === I.DRAGSTART && ((s = e == null ? void 0 : e.feature) != null && s[Te])) {
|
19104
19111
|
const r = e.feature[Te];
|
19105
|
-
r !== P.NONE && (this._transformationHandler.showAxis = r, e.map instanceof z ?
|
19112
|
+
r !== P.NONE && (this._transformationHandler.showAxis = r, e.map instanceof z ? Qn(r) ? this._getTranslateEvent = this._dragAlongAxis3D(r, e) : ea(r) && (this._getTranslateEvent = this._dragAlongPlane3D(r, e)) : Qn(r) ? this._getTranslateEvent = this._dragAlongAxis2D(r, e) : ea(r) && (this._getTranslateEvent = this._dragAlongPlane2D(r, e)));
|
19106
19113
|
}
|
19107
19114
|
return Promise.resolve(e);
|
19108
19115
|
}
|
@@ -19406,7 +19413,7 @@ function nM(i, t, e, s = _e.TRANSLATE) {
|
|
19406
19413
|
Z.set("olcs_allowPicking", W);
|
19407
19414
|
});
|
19408
19415
|
});
|
19409
|
-
const d = Ou(i.layers), { interactionChain: u, removed: f, destroy: g } =
|
19416
|
+
const d = Ou(i.layers), { interactionChain: u, removed: f, destroy: g } = ga(i.maps.eventHandler, e), { exclusiveInteractionId: m } = i.maps.eventHandler, p = i.maps.eventHandler.addExclusiveInteraction(c, () => f.raiseEvent(), 0, m), y = new lw();
|
19410
19417
|
u.addInteraction(y), u.addInteraction(new ow(n));
|
19411
19418
|
const S = new Fu();
|
19412
19419
|
u.addInteraction(S);
|
@@ -19428,7 +19435,7 @@ function nM(i, t, e, s = _e.TRANSLATE) {
|
|
19428
19435
|
const fe = ws();
|
19429
19436
|
n.forEach((ke) => {
|
19430
19437
|
cr(fe, ke.getGeometry().getExtent());
|
19431
|
-
}),
|
19438
|
+
}), Wa(fe) || (Z = hr(fe));
|
19432
19439
|
}
|
19433
19440
|
n.forEach((fe) => {
|
19434
19441
|
(fe[xt] ?? fe.getGeometry()).rotate(W, Z);
|
@@ -19439,7 +19446,7 @@ function nM(i, t, e, s = _e.TRANSLATE) {
|
|
19439
19446
|
const ke = ws();
|
19440
19447
|
n.forEach((ks) => {
|
19441
19448
|
cr(ke, ks.getGeometry().getExtent());
|
19442
|
-
}),
|
19449
|
+
}), Wa(ke) || (fe = hr(ke));
|
19443
19450
|
}
|
19444
19451
|
n.forEach((ke) => {
|
19445
19452
|
(ke[xt] ?? ke.getGeometry()).scale(W, Z, fe);
|
@@ -19489,17 +19496,17 @@ function nM(i, t, e, s = _e.TRANSLATE) {
|
|
19489
19496
|
let zt = [];
|
19490
19497
|
const Gs = () => {
|
19491
19498
|
re(zt), zt = n.map((W) => W.on("propertychange", ({ key: Z }) => {
|
19492
|
-
|
19499
|
+
Zo.includes(Z) && (M == null || M.setFeatures(n));
|
19493
19500
|
}));
|
19494
|
-
},
|
19501
|
+
}, pa = /* @__PURE__ */ new Map(), Ko = () => {
|
19495
19502
|
C(), g(), $(), Jt(), l(), re(zt), n.forEach((W) => {
|
19496
|
-
Eh(W, a), Ph(W,
|
19503
|
+
Eh(W, a), Ph(W, pa);
|
19497
19504
|
}), a.clear(), i.layers.remove(d), q.destroy(), p(), c.destroy(), r.raiseEvent(), r.destroy();
|
19498
19505
|
};
|
19499
|
-
return f.addEventListener(
|
19506
|
+
return f.addEventListener(Ko), {
|
19500
19507
|
type: ji.EDIT_FEATURES,
|
19501
19508
|
stopped: r,
|
19502
|
-
stop:
|
19509
|
+
stop: Ko,
|
19503
19510
|
get mode() {
|
19504
19511
|
return w;
|
19505
19512
|
},
|
@@ -19510,9 +19517,9 @@ function nM(i, t, e, s = _e.TRANSLATE) {
|
|
19510
19517
|
scale: L,
|
19511
19518
|
setFeatures(W) {
|
19512
19519
|
n.forEach((Z) => {
|
19513
|
-
Eh(Z, a), Ph(Z,
|
19520
|
+
Eh(Z, a), Ph(Z, pa);
|
19514
19521
|
}), n.length = 0, n.push(...W), n.forEach((Z) => {
|
19515
|
-
uw(Z, a, o), dw(Z,
|
19522
|
+
uw(Z, a, o), dw(Z, pa);
|
19516
19523
|
}), Gs(), M == null || M.setFeatures(W);
|
19517
19524
|
},
|
19518
19525
|
get features() {
|
@@ -19723,7 +19730,7 @@ function yw(i, t, e) {
|
|
19723
19730
|
};
|
19724
19731
|
}
|
19725
19732
|
function aM(i, t, e, s = {}) {
|
19726
|
-
const { interactionChain: r, removed: n, destroy: a } =
|
19733
|
+
const { interactionChain: r, removed: n, destroy: a } = ga(i.maps.eventHandler, e), o = Ou(i.layers), l = new Fu();
|
19727
19734
|
r.addInteraction(l);
|
19728
19735
|
const c = new RS(s.denyRemoval);
|
19729
19736
|
r.addInteraction(c);
|
@@ -19747,7 +19754,7 @@ function aM(i, t, e, s = {}) {
|
|
19747
19754
|
function w(b) {
|
19748
19755
|
if (y(), S && re(S), b) {
|
19749
19756
|
S = b.on("propertychange", ({ key: q }) => {
|
19750
|
-
|
19757
|
+
Zo.includes(q) && w(b);
|
19751
19758
|
}), f = b, f[Re] = !0;
|
19752
19759
|
const L = b[xt] ?? b.getGeometry(), F = L.getType();
|
19753
19760
|
o.vectorProperties.altitudeMode = t.vectorProperties.getAltitudeMode(b), F === tt.Polygon ? L.get("_vcsGeomType") === tt.BBox ? u = mw(b, o) : L.getLinearRingCount() === 1 && (u = pw(b, o, s)) : F === tt.LineString ? u = fw(b, o, s) : F === tt.Point ? u = yw(b, o, t) : F === tt.Circle && (u = gw(b, o)), u ? (r.addInteraction(u.interactionChain), m()) : (ue("EditGeometrySession").warning(`Geometry of type ${F} is currently not supported`), f[Re] = !1, f = null);
|
@@ -19959,7 +19966,7 @@ function Sw() {
|
|
19959
19966
|
function oM(i, t, e, s = Bt.MULTI, r = Sw()) {
|
19960
19967
|
const n = new E(), a = new E(), o = new E();
|
19961
19968
|
let l = null, c = null, d, u = null;
|
19962
|
-
const { interactionChain: f, removed: g, destroy: m } =
|
19969
|
+
const { interactionChain: f, removed: g, destroy: m } = ga(i.maps.eventHandler, e), p = vw(t, r);
|
19963
19970
|
let y = [];
|
19964
19971
|
function S() {
|
19965
19972
|
l && (l && (f.removeInteraction(l), l.destroy(), l = null), c && (f.removeInteraction(c), c.destroy(), c = null)), y.forEach((L) => {
|
@@ -20049,7 +20056,7 @@ async function lM(i, t) {
|
|
20049
20056
|
altitudeMode: "absolute"
|
20050
20057
|
}
|
20051
20058
|
});
|
20052
|
-
|
20059
|
+
Uo(r);
|
20053
20060
|
let n;
|
20054
20061
|
const [a] = t.maps.getByType(z.className);
|
20055
20062
|
a && (n = a.getScene(), n && !n.primitives.contains(s) && n.primitives.add(s)), t.layers.add(r);
|
@@ -20078,7 +20085,7 @@ async function lM(i, t) {
|
|
20078
20085
|
}
|
20079
20086
|
r.addFeatures(f);
|
20080
20087
|
const g = r.getSource().getExtent();
|
20081
|
-
e =
|
20088
|
+
e = Po(g, g, 2);
|
20082
20089
|
};
|
20083
20090
|
o();
|
20084
20091
|
const l = [
|
@@ -20115,7 +20122,7 @@ async function lM(i, t) {
|
|
20115
20122
|
destroy: d,
|
20116
20123
|
async zoomToExtent() {
|
20117
20124
|
var g;
|
20118
|
-
if (!i.isValid() ||
|
20125
|
+
if (!i.isValid() || Wa(e))
|
20119
20126
|
return;
|
20120
20127
|
const f = mt.createViewpointFromExtent(e);
|
20121
20128
|
f && await ((g = t.maps.activeMap) == null ? void 0 : g.gotoViewpoint(f));
|
@@ -20127,9 +20134,9 @@ export {
|
|
20127
20134
|
bs as AbstractFeatureProvider,
|
20128
20135
|
ce as AbstractInteraction,
|
20129
20136
|
Ys as AltitudeModeCesium,
|
20130
|
-
|
20137
|
+
zo as ArcStyle,
|
20131
20138
|
Qe as ArrowEnd,
|
20132
|
-
|
20139
|
+
ua as ArrowStyle,
|
20133
20140
|
P as AxisAndPlanes,
|
20134
20141
|
wr as BaseOLMap,
|
20135
20142
|
xr as CameraLimiter,
|
@@ -20145,7 +20152,7 @@ export {
|
|
20145
20152
|
SS as ClippingObjectManager,
|
20146
20153
|
Vw as ClusterContext,
|
20147
20154
|
Nt as Collection,
|
20148
|
-
|
20155
|
+
qo as CoordinateAtPixel,
|
20149
20156
|
CS as CreateBBoxInteraction,
|
20150
20157
|
MS as CreateCircleInteraction,
|
20151
20158
|
wS as CreateLineStringInteraction,
|
@@ -20157,7 +20164,7 @@ export {
|
|
20157
20164
|
ge as DataState,
|
20158
20165
|
qe as DeclarativeStyleItem,
|
20159
20166
|
wv as DefaultObliqueCollection,
|
20160
|
-
|
20167
|
+
Kn as DisplayQuality,
|
20161
20168
|
Et as DisplayQualityLevel,
|
20162
20169
|
lw as EditFeaturesMouseOverInteraction,
|
20163
20170
|
RS as EditGeometryMouseOverInteraction,
|
@@ -20173,13 +20180,13 @@ export {
|
|
20173
20180
|
jv as FeatureProviderInteraction,
|
20174
20181
|
Ti as FeatureStoreLayer,
|
20175
20182
|
rS as FeatureStoreLayerChanges,
|
20176
|
-
|
20183
|
+
oa as FeatureVisibility,
|
20177
20184
|
ne as FeatureVisibilityAction,
|
20178
20185
|
DS as FlightCollection,
|
20179
20186
|
Os as FlightInstance,
|
20180
20187
|
Er as GeoJSONLayer,
|
20181
20188
|
tt as GeometryType,
|
20182
|
-
|
20189
|
+
oo as GlobalHider,
|
20183
20190
|
Ii as IndexedCollection,
|
20184
20191
|
ku as InsertVertexInteraction,
|
20185
20192
|
is as InteractionChain,
|
@@ -20187,17 +20194,17 @@ export {
|
|
20187
20194
|
hi as LayerCollection,
|
20188
20195
|
ts as LayerImplementation,
|
20189
20196
|
ev as LayerObliqueImpl,
|
20190
|
-
|
20197
|
+
ha as LayerOpenlayersImpl,
|
20191
20198
|
pe as LayerState,
|
20192
20199
|
Xn as MVTTileProvider,
|
20193
|
-
|
20200
|
+
Xo as MapCollection,
|
20194
20201
|
Fu as MapInteractionController,
|
20195
20202
|
Ot as MapState,
|
20196
20203
|
Ur as ModelFill,
|
20197
20204
|
H as ModificationKeyType,
|
20198
20205
|
Wi as ObliqueCollection,
|
20199
|
-
|
20200
|
-
|
20206
|
+
eh as ObliqueDataSet,
|
20207
|
+
jo as ObliqueImage,
|
20201
20208
|
Sn as ObliqueImageMeta,
|
20202
20209
|
Ne as ObliqueMap,
|
20203
20210
|
ov as ObliqueProvider,
|
@@ -20236,7 +20243,7 @@ export {
|
|
20236
20243
|
Lr as TerrainLayer,
|
20237
20244
|
$w as TileDebugOpenlayersImpl,
|
20238
20245
|
St as TileProvider,
|
20239
|
-
|
20246
|
+
go as TileProviderFeatureProvider,
|
20240
20247
|
We as TilingScheme,
|
20241
20248
|
Yv as TmsCesiumImpl,
|
20242
20249
|
lS as TmsOpenlayersImpl,
|
@@ -20248,7 +20255,7 @@ export {
|
|
20248
20255
|
z_ as VcsCameraPrimitive,
|
20249
20256
|
E as VcsEvent,
|
20250
20257
|
Li as VcsMap,
|
20251
|
-
|
20258
|
+
dh as VcsModule,
|
20252
20259
|
kt as VcsObject,
|
20253
20260
|
W0 as VectorCesiumImpl,
|
20254
20261
|
q0 as VectorContext,
|
@@ -20262,7 +20269,7 @@ export {
|
|
20262
20269
|
Nr as VectorTileLayer,
|
20263
20270
|
hS as VectorTileOpenlayersImpl,
|
20264
20271
|
mt as Viewpoint,
|
20265
|
-
|
20272
|
+
Zn as WFSLayer,
|
20266
20273
|
Xi as WMSFeatureProvider,
|
20267
20274
|
Dr as WMSLayer,
|
20268
20275
|
Ar as WMTSLayer,
|
@@ -20273,16 +20280,16 @@ export {
|
|
20273
20280
|
rr as actuallyIsCircle,
|
20274
20281
|
iu as addArrowsToContext,
|
20275
20282
|
ps as addPrimitiveToContext,
|
20276
|
-
|
20283
|
+
ca as addPrimitivesToContext,
|
20277
20284
|
je as alreadyTransformedToImage,
|
20278
20285
|
ui as alreadyTransformedToMercator,
|
20279
20286
|
vh as anchorFromGeojsonFeature,
|
20280
20287
|
Kw as anchorFromViewpoint,
|
20281
20288
|
TS as anchorToGeojsonFeature,
|
20282
20289
|
Jw as anchorToViewpoint,
|
20283
|
-
|
20290
|
+
Ca as angleEqualsEpsilon,
|
20284
20291
|
H0 as arcToCesium,
|
20285
|
-
|
20292
|
+
ro as blackColor,
|
20286
20293
|
Fv as calculateMinLevel,
|
20287
20294
|
_t as cartesian2DDistance,
|
20288
20295
|
h_ as cartesian3DDistance,
|
@@ -20291,17 +20298,17 @@ export {
|
|
20291
20298
|
Tc as categoryClassRegistry,
|
20292
20299
|
_i as cesiumColorToColor,
|
20293
20300
|
vi as cesiumTilesetLastUpdated,
|
20294
|
-
|
20301
|
+
Yl as checkLineIntersection,
|
20295
20302
|
Uc as circleFromCenterRadius,
|
20296
20303
|
M0 as circleToCesium,
|
20297
20304
|
rM as clampFeature,
|
20298
|
-
|
20305
|
+
fa as clearClippingPlanes,
|
20299
20306
|
Nw as colorInCanvas,
|
20300
20307
|
C_ as combineFont,
|
20301
20308
|
j0 as convert,
|
20302
20309
|
qc as convertGeometryToPolygon,
|
20303
20310
|
Ew as coordinateAtDistance,
|
20304
|
-
|
20311
|
+
Tl as coordinateEqualsEpsilon,
|
20305
20312
|
nr as copyClippingPlanesToCollection,
|
20306
20313
|
qS as create2DHandlers,
|
20307
20314
|
$S as create3DHandlers,
|
@@ -20331,20 +20338,20 @@ export {
|
|
20331
20338
|
V_ as deserializeViewpoint,
|
20332
20339
|
ei as destroyCollection,
|
20333
20340
|
ES as detectBrowserLocale,
|
20334
|
-
|
20341
|
+
la as doNotTransform,
|
20335
20342
|
sM as drapeGeometryOnTerrain,
|
20336
20343
|
jc as embedIconsInStyle,
|
20337
20344
|
Rw as emptyColor,
|
20338
20345
|
b_ as emptyStyle,
|
20339
|
-
|
20346
|
+
ho as enforceEndingVertex,
|
20340
20347
|
o0 as enforceRightHand,
|
20341
20348
|
tw as ensureFeatureAbsolute,
|
20342
20349
|
Yw as exportFlightAsGeoJson,
|
20343
20350
|
Zw as exportFlightPathAsGeoJson,
|
20344
20351
|
si as featureArcStruct,
|
20345
20352
|
qr as featureExists,
|
20346
|
-
|
20347
|
-
|
20353
|
+
Ga as featureFromOptions,
|
20354
|
+
To as featureProviderClassRegistry,
|
20348
20355
|
Pt as featureStoreStateSymbol,
|
20349
20356
|
I_ as fromCesiumColor,
|
20350
20357
|
os as fvLastUpdated,
|
@@ -20354,7 +20361,7 @@ export {
|
|
20354
20361
|
Jv as getCanvasFromFeatures,
|
20355
20362
|
L0 as getCartesian3AndWGS84FromCoordinates,
|
20356
20363
|
an as getCartesian3Options,
|
20357
|
-
|
20364
|
+
io as getCartesianBearing,
|
20358
20365
|
c_ as getCartesianPitch,
|
20359
20366
|
Vt as getCartographicFromPlane,
|
20360
20367
|
ai as getCesiumColor,
|
@@ -20372,7 +20379,7 @@ export {
|
|
20372
20379
|
Nc as getFillFromOptions,
|
20373
20380
|
Gn as getFillOptions,
|
20374
20381
|
Ns as getFlatCoordinatesFromGeometry,
|
20375
|
-
|
20382
|
+
Ro as getFlatCoordinatesFromSimpleGeometry,
|
20376
20383
|
Iu as getFlightPathCoordinatesFromInstance,
|
20377
20384
|
zv as getFormat,
|
20378
20385
|
n0 as getHeightAboveGround,
|
@@ -20386,19 +20393,19 @@ export {
|
|
20386
20393
|
e0 as getMaterialAppearance,
|
20387
20394
|
Pc as getMidPoint,
|
20388
20395
|
r0 as getMinHeightOrGroundLevel,
|
20389
|
-
|
20396
|
+
jl as getModelOptions,
|
20390
20397
|
nn as getNearFarValueOptions,
|
20391
20398
|
ni as getObjectFromClassRegistry,
|
20392
|
-
|
20393
|
-
|
20399
|
+
Zl as getPolygonizedGeometry,
|
20400
|
+
co as getPrimitiveOptions,
|
20394
20401
|
fu as getResolutionOptions,
|
20395
20402
|
Gc as getShapeFromOptions,
|
20396
20403
|
Pu as getSplineAndTimesForInstance,
|
20397
20404
|
wn as getStateFromStatesArray,
|
20398
|
-
|
20399
|
-
|
20405
|
+
Rl as getStoreyHeights,
|
20406
|
+
kl as getStoreyOptions,
|
20400
20407
|
ot as getStringColor,
|
20401
|
-
|
20408
|
+
Do as getStrokeFromOptions,
|
20402
20409
|
_r as getStrokeOptions,
|
20403
20410
|
Dw as getStyleFromOptions,
|
20404
20411
|
Aw as getStyleOptions,
|
@@ -20407,18 +20414,18 @@ export {
|
|
20407
20414
|
Mr as getTerrainProviderForUrl,
|
20408
20415
|
Ac as getTextFromOptions,
|
20409
20416
|
Dc as getTextOptions,
|
20410
|
-
|
20417
|
+
da as getTileLoadFunction,
|
20411
20418
|
wu as getTilingScheme,
|
20412
20419
|
bu as getURL,
|
20413
20420
|
Qw as getVcsAppById,
|
20414
20421
|
mu as getVersionFromImageJson,
|
20415
|
-
|
20422
|
+
lh as getViewDirectionFromViewpoint,
|
20416
20423
|
Cu as getWMSSource,
|
20417
20424
|
K0 as getZoom,
|
20418
20425
|
dt as globalHidden,
|
20419
20426
|
Ks as globalHiderLastUpdated,
|
20420
20427
|
Uw as globeLoaded,
|
20421
|
-
|
20428
|
+
ma as greyedOutColor,
|
20422
20429
|
Te as handlerSymbol,
|
20423
20430
|
Hw as hasSameOrigin,
|
20424
20431
|
S_ as hexToOlColor,
|
@@ -20426,53 +20433,53 @@ export {
|
|
20426
20433
|
Ee as highlighted,
|
20427
20434
|
Q0 as imageGeometryToMercatorGeometry,
|
20428
20435
|
Pw as initialBearingBetweenCoords,
|
20429
|
-
|
20430
|
-
|
20436
|
+
Qn as is1DAxis,
|
20437
|
+
ea as is2DAxis,
|
20431
20438
|
Hi as isMobile,
|
20432
|
-
|
20439
|
+
no as isOverrideCollection,
|
20433
20440
|
Av as isProvidedFeature,
|
20434
20441
|
Kt as isSameOrigin,
|
20435
20442
|
X0 as isTerrainTileAvailable,
|
20436
20443
|
Or as isTiledFeature,
|
20437
20444
|
De as layerClassRegistry,
|
20438
|
-
|
20445
|
+
$l as lineStringToCesium,
|
20439
20446
|
ti as makeOverrideCollection,
|
20440
20447
|
Ts as mapClassRegistry,
|
20441
|
-
|
20448
|
+
Uo as markVolatile,
|
20442
20449
|
K_ as maxZIndex,
|
20443
20450
|
J0 as mercatorGeometryToImageGeometry,
|
20444
20451
|
B as mercatorProjection,
|
20445
20452
|
$n as mercatorResolutionsToLevel,
|
20446
20453
|
Ct as mercatorToCartesian,
|
20447
|
-
|
20454
|
+
Po as mercatorToWgs84Transformer,
|
20448
20455
|
Ke as moduleIdSymbol,
|
20449
20456
|
_n as modulo,
|
20450
20457
|
ci as mouseOverSymbol,
|
20451
20458
|
xt as obliqueGeometry,
|
20452
20459
|
uu as obliqueViewDirectionNames,
|
20453
20460
|
w_ as olColorToCesiumColor,
|
20454
|
-
|
20461
|
+
Pl as olColorToHex,
|
20455
20462
|
zn as originalFeatureSymbol,
|
20456
20463
|
oi as originalStyle,
|
20457
|
-
|
20464
|
+
ba as parseCartesian3,
|
20458
20465
|
Ve as parseColor,
|
20459
20466
|
IS as parseFlightOptionsFromGeoJson,
|
20460
20467
|
Tw as parseFont,
|
20461
20468
|
wi as parseGeoJSON,
|
20462
|
-
|
20469
|
+
Ql as parseImageData,
|
20463
20470
|
iv as parseImageMeta,
|
20464
20471
|
sv as parseLegacyImageData,
|
20465
|
-
|
20472
|
+
xa as parseNearFarScalar,
|
20466
20473
|
ss as parseStoreyHeights,
|
20467
20474
|
ew as placeGeometryOnTerrain,
|
20468
20475
|
QS as pointOnLine2D,
|
20469
20476
|
JS as pointOnLine3D,
|
20470
|
-
|
20471
|
-
|
20477
|
+
Bl as pointToCesium,
|
20478
|
+
Hl as polygonToCesium,
|
20472
20479
|
Hc as propertyEqualsEpsilon,
|
20473
|
-
|
20480
|
+
Wo as rectangleToExtent,
|
20474
20481
|
Ri as removeArrayFromCollection,
|
20475
|
-
|
20482
|
+
zl as removeEndingVertex,
|
20476
20483
|
Wc as removeEndingVertexFromGeometry,
|
20477
20484
|
ms as removeFeatureFromMap,
|
20478
20485
|
rv as requestArrayBuffer,
|
@@ -20481,20 +20488,20 @@ export {
|
|
20481
20488
|
B_ as serializeLayer,
|
20482
20489
|
yh as setClippingPlanes,
|
20483
20490
|
o_ as setDefaultProjectionOptions,
|
20484
|
-
|
20491
|
+
Kl as setNewGeometry,
|
20485
20492
|
V0 as setReferenceForPicking,
|
20486
|
-
|
20493
|
+
ql as setSplitDirectionOnPrimitives,
|
20487
20494
|
B0 as setupScalingPrimitiveCollection,
|
20488
20495
|
Ou as setupScratchLayer,
|
20489
20496
|
P_ as shapeCategory,
|
20490
|
-
|
20497
|
+
Xl as sortRealWordEdgeCoordinates,
|
20491
20498
|
tM as startCreateFeatureSession,
|
20492
20499
|
nM as startEditFeaturesSession,
|
20493
20500
|
aM as startEditGeometrySession,
|
20494
20501
|
oM as startSelectFeaturesSession,
|
20495
20502
|
Br as styleClassRegistry,
|
20496
20503
|
T_ as synchronizeFeatureVisibility,
|
20497
|
-
|
20504
|
+
Fo as synchronizeFeatureVisibilityWithSource,
|
20498
20505
|
Ls as tileProviderClassRegistry,
|
20499
20506
|
Bw as tiledLayerLoaded,
|
20500
20507
|
Kv as toContext,
|
@@ -20506,10 +20513,10 @@ export {
|
|
20506
20513
|
Pv as updateLegacyFeature,
|
20507
20514
|
Qc as validateCircle,
|
20508
20515
|
Lw as validateHexColor,
|
20509
|
-
|
20516
|
+
ko as validateLineString,
|
20510
20517
|
hu as validatePoint,
|
20511
20518
|
Zc as validatePolygon,
|
20512
|
-
|
20519
|
+
Gl as validateStoreys,
|
20513
20520
|
Y as vcsLayerName,
|
20514
20521
|
li as vcsMetaVersion,
|
20515
20522
|
lt as vectorStyleSymbol,
|