@vcmap/ui 5.1.1 → 5.1.2
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.8ecfba.js → core.753649.js} +609 -611
- package/dist/assets/core.js +1 -1
- package/dist/assets/index-cc59d4fd.js +1 -0
- package/dist/assets/ol.js +1 -1
- package/dist/assets/{ui.186a84.css → ui.a843ac.css} +1 -1
- package/dist/assets/{ui.186a84.js → ui.a843ac.js} +9 -9
- package/dist/assets/ui.js +1 -1
- package/dist/assets/vue.js +2 -2
- package/dist/assets/{vuetify.10881a.js → vuetify.50800a.js} +1 -1
- package/dist/assets/vuetify.js +2 -2
- package/dist/index.html +1 -1
- package/package.json +2 -2
- package/src/components/tables/VcsDataTable.vue +7 -1
- package/dist/assets/index-c87f843d.js +0 -1
- /package/dist/assets/{cesium.c1accb.js → cesium.6a1548.js} +0 -0
- /package/dist/assets/{ol.b751cb.js → ol.441b59.js} +0 -0
- /package/dist/assets/{vue.3f80ec.js → vue.118f2c.js} +0 -0
- /package/dist/assets/{vuetify.10881a.css → vuetify.50800a.css} +0 -0
@@ -1,8 +1,8 @@
|
|
1
1
|
var Du = Object.defineProperty;
|
2
2
|
var Au = (i, t, e) => t in i ? Du(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
|
3
3
|
var h = (i, t, e) => (Au(i, typeof t != "symbol" ? t + "" : t, e), e);
|
4
|
-
import { ol$proj$getTransform as Ae, ol$proj$get as Fu, ol$proj$equivalent as Ru, ol$proj$proj4$register as Bo, ol$geom$Circle as Ot, ol$geom$GeometryCollection as
|
5
|
-
import { Math as L, Cartesian3 as v, Cartographic as ie, Cesium3DTileStyle as _n, Cesium3DTileColorBlendMode as ln, Color as q, TrustedServers as Xt, VerticalOrigin as gt, Cesium3DTileFeature as Ui, Cesium3DTilePointFeature as qi, Entity as Wi, Material as Ft, Cartesian2 as z, Matrix3 as X, Quaternion as vn, Primitive as pt, GeometryInstance as ct, FrustumGeometry as pd, ColorGeometryInstanceAttribute as
|
4
|
+
import { ol$proj$getTransform as Ae, ol$proj$get as Fu, ol$proj$equivalent as Ru, ol$proj$proj4$register as Bo, ol$geom$Circle as Ot, ol$geom$GeometryCollection as Tr, ol$style$Style as ee, ol$style$Fill as ht, ol$style$Stroke as He, ol$style$Text as oo, ol$style$Icon as Si, ol$style$Circle as wi, ol$style$RegularShape as Nr, ol$has$DEVICE_PIXEL_RATIO as Gu, ol$style$Image as Mh, ol$Feature as ae, ol$extent$containsCoordinate as Aa, ol$Map as ku, ol$interaction$defaults as zu, ol$Observable$unByKey as re, ol$View as lo, ol$easing$inAndOut as Hu, ol$extent$containsXY as Ch, ol$extent$boundingExtent as tr, ol$layer$Vector as xh, ol$extent$getBottomLeft as ho, ol$geom$SimpleGeometry as ju, ol$geom$Point as Nt, ol$geom$LineString as Ut, ol$geom$Polygon as Dt, ol$geom$MultiPoint as Oh, ol$geom$MultiLineString as bh, ol$geom$MultiPolygon as ir, ol$sphere$offset as on, ol$geom$Polygon$fromCircle as Eh, ol$geom$Polygon$circular as Vu, Feature as At, ol$ImageState as Wr, ol$extent$getBottomRight as Ph, ol$extent$getTopRight as Ih, ol$extent$getTopLeft as Xn, ol$proj$transform as Ri, ol$source$Vector as sr, ol$tilegrid$createXYZ as Lh, ol$TileState as Th, ol$proj$Projection as $u, ol$tilegrid$TileGrid as Nh, ol$source$TileImage as Bu, ol$layer$Tile as Ms, ol$extent$buffer as Dh, ol$extent$getCenter as rr, ol$geom$Polygon$fromExtent as Uu, ol$proj$transformExtent as Uo, ol$sphere$getDistance as qu, ol$format$GeoJSON as Ah, ol$extent$getWidth as Fa, ol$source$TileWMS as Wu, ol$source$ImageWMS as Xu, ol$format$GML2 as Ra, ol$format$WFS as Ga, ol$format$GML3 as ka, ol$extent$createEmpty as ps, ol$structs$LRUCache as Yu, ol$extent$createOrUpdateFromCoordinate as Zu, ol$render$canvas$Immediate as Ku, ol$geom$flat$transform$transform2D as Ju, ol$extent$intersects as Qu, ol$geom$SimpleGeometry$transformGeom2D as ed, ol$transform$scale as td, ol$transform$create as id, ol$transform$compose as sd, ol$extent$extend as nr, ol$source$OSM as rd, ol$layer$Image as Fh, ol$source$ImageStatic as nd, ol$source$TileDebug as ad, ol$source$XYZ as od, ol$source$VectorTile as ld, ol$layer$VectorTile as hd, ol$tilegrid$WMTS as cd, ol$source$WMTS as ud, ol$format$MVT as dd, ol$coordinate$equals as fd, ol$interaction$DragPan as gd, ol$extent$isEmpty as za, ol$geom$LinearRing as md } from "./ol.441b59.js";
|
5
|
+
import { Math as L, Cartesian3 as v, Cartographic as ie, Cesium3DTileStyle as _n, Cesium3DTileColorBlendMode as ln, Color as q, TrustedServers as Xt, VerticalOrigin as gt, Cesium3DTileFeature as Ui, Cesium3DTilePointFeature as qi, Entity as Wi, Material as Ft, Cartesian2 as z, Matrix3 as X, Quaternion as vn, Primitive as pt, GeometryInstance as ct, FrustumGeometry as pd, ColorGeometryInstanceAttribute as ar, PerInstanceColorAppearance as ys, FrustumOutlineGeometry as yd, destroyObject as _d, EasingFunction as vd, ConditionsExpression as Sd, Expression as wd, HeightReference as Le, ClassificationType as ds, NearFarScalar as Ys, SplitDirection as we, SceneTransforms as Md, MaterialAppearance as Sn, ShadowMode as Dr, ClassificationPrimitive as Rh, GroundPrimitive as qo, PolylineMaterialAppearance as Ha, GroundPolylinePrimitive as Wo, PolygonGeometry as Cd, PolygonOutlineGeometry as xd, GroundPolylineGeometry as co, PolylineGeometry as Gi, PolygonHierarchy as ja, CircleGeometry as Od, CircleOutlineGeometry as bd, HeadingPitchRoll as Mi, Matrix4 as F, Transforms as Ci, Model as uo, sampleTerrainMostDetailed as Yn, ModelAnimationLoop as Ed, CylinderOutlineGeometry as Pd, CylinderGeometry as Gh, EllipsoidOutlineGeometry as Id, EllipsoidGeometry as kh, SphereOutlineGeometry as Ld, SphereGeometry as Td, BoxOutlineGeometry as Nd, BoxGeometry as zh, WallGeometry as Dd, WallOutlineGeometry as Ad, LabelStyle as ha, HorizontalOrigin as ca, CatmullRomSpline as Hh, ArcType as wn, PrimitiveCollection as xi, BillboardCollection as Fd, LabelCollection as Rd, Resource as Gd, CesiumTerrainProvider as Xo, Cartesian4 as Yo, sampleTerrain as kd, Ellipsoid as Va, Clock as zd, DataSourceClock as Hd, JulianDate as jh, KeyboardEventModifier as ua, ScreenSpaceEventType as fi, CesiumWidget as jd, DataSourceDisplay as Zo, DataSourceCollection as Ko, RequestScheduler as Vd, ScreenSpaceEventHandler as $d, Ray as Vh, Camera as $h, ImageryLayer as Xi, CustomDataSource as Bh, BoundingSphere as Uh, Intersect as Bd, BillboardVisualizer as Ud, LabelVisualizer as qd, PointVisualizer as Wd, WebMercatorTilingScheme as fo, GeographicTilingScheme as qh, Rectangle as yt, Cesium3DTileset as Mn, Composite3DTileContent as Xd, HeadingPitchRange as Yd, BoundingSphereState as Jo, OpenStreetMapImageryProvider as Zd, SingleTileImageryProvider as Kd, TileMapServiceImageryProvider as Jd, Event as Qo, WebMapServiceImageryProvider as Qd, WebMapTileServiceImageryProvider as ef, EntityCollection as tf, CzmlDataSource as sf, Plane as te, ClippingPlaneCollection as or, ClippingPlane as lr, ConstantProperty as rf, Globe as nf, LinearSpline as af, QuaternionSpline as of, CoplanarPolygonGeometry as lf, IntersectionTests as hf } from "./cesium.6a1548.js";
|
6
6
|
const Yi = Symbol("isMatcher"), cf = Symbol("Integer"), uf = Symbol("NonEmptyString"), go = /* @__PURE__ */ new Map();
|
7
7
|
[
|
8
8
|
[String, "string"],
|
@@ -17,7 +17,7 @@ const Yi = Symbol("isMatcher"), cf = Symbol("Integer"), uf = Symbol("NonEmptyStr
|
|
17
17
|
function df(i) {
|
18
18
|
return i == null ? void 0 : i[Yi];
|
19
19
|
}
|
20
|
-
function
|
20
|
+
function hr(i) {
|
21
21
|
if (!i || String(i) !== "[object Object]")
|
22
22
|
return !1;
|
23
23
|
const t = Object.getPrototypeOf(i);
|
@@ -61,12 +61,12 @@ function gf(i, t, e) {
|
|
61
61
|
}
|
62
62
|
function $a(i, t, e, s) {
|
63
63
|
const r = s ? `${s}.` : "";
|
64
|
-
if (!
|
64
|
+
if (!hr(i))
|
65
65
|
return `Expected ${je(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
|
69
|
+
return hr(t[l]) ? a = $a(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
|
}
|
@@ -95,7 +95,7 @@ function Zn(i) {
|
|
95
95
|
const n = i == null ? void 0 : i.name;
|
96
96
|
return n || r[1].substring(0, 20);
|
97
97
|
}
|
98
|
-
if (
|
98
|
+
if (hr(i)) {
|
99
99
|
const n = {};
|
100
100
|
Object.keys(i).forEach((a) => {
|
101
101
|
n[a] = Zn(i[a]);
|
@@ -110,7 +110,7 @@ function Zn(i) {
|
|
110
110
|
}
|
111
111
|
function pf(i, t) {
|
112
112
|
let e = !1;
|
113
|
-
return
|
113
|
+
return hr(i) ? Object.keys(i).find((n) => (t[n] || (e = `Found additional key ${n}`), e)) ? `${String(e)} in ${je(i)}` : !1 : `Expected ${je(i)} to be a plain Object`;
|
114
114
|
}
|
115
115
|
function Cs(i, t) {
|
116
116
|
const e = (s, r) => {
|
@@ -138,7 +138,7 @@ function Cs(i, t) {
|
|
138
138
|
};
|
139
139
|
return e(i, t);
|
140
140
|
}
|
141
|
-
function
|
141
|
+
function xs(i, t) {
|
142
142
|
return !Cs(i, t);
|
143
143
|
}
|
144
144
|
let yf = Error;
|
@@ -178,7 +178,7 @@ function _f(i) {
|
|
178
178
|
return t[Yi] = !0, t;
|
179
179
|
}
|
180
180
|
function el(i) {
|
181
|
-
const t = (e) =>
|
181
|
+
const t = (e) => hr(e) ? Object.values(e).every((r) => xs(r, i)) ? !1 : `Not all values of ${je(e)} are of type ${Zn(i)}` : `Expected ${je(e)} to be a plain Object`;
|
182
182
|
return t[Yi] = !0, t;
|
183
183
|
}
|
184
184
|
function Cn(i) {
|
@@ -189,7 +189,7 @@ function Cn(i) {
|
|
189
189
|
function vf(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 zi = 1, Hi = 2, fs = 3, Sf = 4, Ba = 5, tl = 6378137, wf = 6356752314e-3, il = 0.0066943799901413165,
|
192
|
+
var zi = 1, Hi = 2, fs = 3, Sf = 4, Ba = 5, tl = 6378137, wf = 6356752314e-3, il = 0.0066943799901413165, Zs = 484813681109536e-20, O = Math.PI / 2, Mf = 0.16666666666666666, Cf = 0.04722222222222222, xf = 0.022156084656084655, I = 1e-10, ke = 0.017453292519943295, Vt = 57.29577951308232, K = Math.PI / 4, cr = Math.PI * 2, Se = 3.14159265359, ft = {};
|
193
193
|
ft.greenwich = 0;
|
194
194
|
ft.lisbon = -9.131906111111;
|
195
195
|
ft.paris = 2.337229166667;
|
@@ -321,11 +321,11 @@ function Ua(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
|
324
|
+
var ur = 1, Xh = 2, Yh = 3, xn = 4, Zh = 5, mo = -1, bf = /\s/, Ef = /[A-Za-z]/, Pf = /[A-Za-z84_]/, Kn = /[,\]]/, Kh = /[\d\.E\-\+]/;
|
325
325
|
function ui(i) {
|
326
326
|
if (typeof i != "string")
|
327
327
|
throw new Error("not a string");
|
328
|
-
this.text = i.trim(), this.level = 0, this.place = 0, this.root = null, this.stack = [], this.currentObject = null, this.state =
|
328
|
+
this.text = i.trim(), this.level = 0, this.place = 0, this.root = null, this.stack = [], this.currentObject = null, this.state = ur;
|
329
329
|
}
|
330
330
|
ui.prototype.readCharicter = function() {
|
331
331
|
var i = this.text[this.place++];
|
@@ -336,7 +336,7 @@ ui.prototype.readCharicter = function() {
|
|
336
336
|
i = this.text[this.place++];
|
337
337
|
}
|
338
338
|
switch (this.state) {
|
339
|
-
case
|
339
|
+
case ur:
|
340
340
|
return this.neutral(i);
|
341
341
|
case Xh:
|
342
342
|
return this.keyword(i);
|
@@ -355,7 +355,7 @@ ui.prototype.afterquote = function(i) {
|
|
355
355
|
this.word += '"', this.state = xn;
|
356
356
|
return;
|
357
357
|
}
|
358
|
-
if (
|
358
|
+
if (Kn.test(i)) {
|
359
359
|
this.word = this.word.trim(), this.afterItem(i);
|
360
360
|
return;
|
361
361
|
}
|
@@ -363,20 +363,20 @@ ui.prototype.afterquote = function(i) {
|
|
363
363
|
};
|
364
364
|
ui.prototype.afterItem = function(i) {
|
365
365
|
if (i === ",") {
|
366
|
-
this.word !== null && this.currentObject.push(this.word), this.word = null, this.state =
|
366
|
+
this.word !== null && this.currentObject.push(this.word), this.word = null, this.state = ur;
|
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 =
|
370
|
+
this.level--, this.word !== null && (this.currentObject.push(this.word), this.word = null), this.state = ur, this.currentObject = this.stack.pop(), this.currentObject || (this.state = mo);
|
371
371
|
return;
|
372
372
|
}
|
373
373
|
};
|
374
374
|
ui.prototype.number = function(i) {
|
375
|
-
if (
|
375
|
+
if (Kh.test(i)) {
|
376
376
|
this.word += i;
|
377
377
|
return;
|
378
378
|
}
|
379
|
-
if (
|
379
|
+
if (Kn.test(i)) {
|
380
380
|
this.word = parseFloat(this.word), this.afterItem(i);
|
381
381
|
return;
|
382
382
|
}
|
@@ -396,10 +396,10 @@ ui.prototype.keyword = function(i) {
|
|
396
396
|
}
|
397
397
|
if (i === "[") {
|
398
398
|
var t = [];
|
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 =
|
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 = ur;
|
400
400
|
return;
|
401
401
|
}
|
402
|
-
if (
|
402
|
+
if (Kn.test(i)) {
|
403
403
|
this.afterItem(i);
|
404
404
|
return;
|
405
405
|
}
|
@@ -414,11 +414,11 @@ ui.prototype.neutral = function(i) {
|
|
414
414
|
this.word = "", this.state = xn;
|
415
415
|
return;
|
416
416
|
}
|
417
|
-
if (
|
417
|
+
if (Kh.test(i)) {
|
418
418
|
this.word = i, this.state = Yh;
|
419
419
|
return;
|
420
420
|
}
|
421
|
-
if (
|
421
|
+
if (Kn.test(i)) {
|
422
422
|
this.afterItem(i);
|
423
423
|
return;
|
424
424
|
}
|
@@ -581,36 +581,36 @@ function Nf(i) {
|
|
581
581
|
];
|
582
582
|
l.forEach(o), !i.long0 && i.longc && (i.projName === "Albers_Conic_Equal_Area" || i.projName === "Lambert_Azimuthal_Equal_Area") && (i.long0 = i.longc), !i.lat_ts && i.lat1 && (i.projName === "Stereographic_South_Pole" || i.projName === "Polar Stereographic (variant B)") ? (i.lat0 = zt(i.lat1 > 0 ? 90 : -90), i.lat_ts = i.lat1) : !i.lat_ts && i.lat0 && i.projName === "Polar_Stereographic" && (i.lat_ts = i.lat0, i.lat0 = zt(i.lat0 > 0 ? 90 : -90));
|
583
583
|
}
|
584
|
-
function
|
584
|
+
function Jh(i) {
|
585
585
|
var t = If(i), e = t.shift(), s = t.shift();
|
586
586
|
t.unshift(["name", s]), t.unshift(["type", e]);
|
587
587
|
var r = {};
|
588
588
|
return as(t, r), Nf(r), r;
|
589
589
|
}
|
590
|
-
function
|
590
|
+
function Ke(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) === "+" ?
|
594
|
+
typeof e == "string" ? e.charAt(0) === "+" ? Ke[i] = Ua(arguments[1]) : Ke[i] = Jh(arguments[1]) : Ke[i] = e;
|
595
595
|
} else if (arguments.length === 1) {
|
596
596
|
if (Array.isArray(i))
|
597
597
|
return i.map(function(s) {
|
598
|
-
Array.isArray(s) ?
|
598
|
+
Array.isArray(s) ? Ke.apply(t, s) : Ke(s);
|
599
599
|
});
|
600
600
|
if (typeof i == "string") {
|
601
|
-
if (i in
|
602
|
-
return
|
601
|
+
if (i in Ke)
|
602
|
+
return Ke[i];
|
603
603
|
} else
|
604
|
-
"EPSG" in i ?
|
604
|
+
"EPSG" in i ? Ke["EPSG:" + i.EPSG] = i : "ESRI" in i ? Ke["ESRI:" + i.ESRI] = i : "IAU2000" in i ? Ke["IAU2000:" + i.IAU2000] = i : console.log(i);
|
605
605
|
return;
|
606
606
|
}
|
607
607
|
}
|
608
|
-
vf(
|
608
|
+
vf(Ke);
|
609
609
|
function Df(i) {
|
610
610
|
return typeof i == "string";
|
611
611
|
}
|
612
612
|
function Af(i) {
|
613
|
-
return i in
|
613
|
+
return i in Ke;
|
614
614
|
}
|
615
615
|
var Ff = ["PROJECTEDCRS", "PROJCRS", "GEOGCS", "GEOCCS", "PROJCS", "LOCAL_CS", "GEODCRS", "GEODETICCRS", "GEODETICDATUM", "ENGCRS", "ENGINEERINGCRS"];
|
616
616
|
function Rf(i) {
|
@@ -637,11 +637,11 @@ function Hf(i) {
|
|
637
637
|
function jf(i) {
|
638
638
|
if (Df(i)) {
|
639
639
|
if (Af(i))
|
640
|
-
return
|
640
|
+
return Ke[i];
|
641
641
|
if (Rf(i)) {
|
642
|
-
var t =
|
642
|
+
var t = Jh(i);
|
643
643
|
if (kf(t))
|
644
|
-
return
|
644
|
+
return Ke["EPSG:3857"];
|
645
645
|
var e = zf(t);
|
646
646
|
return e ? Ua(e) : t;
|
647
647
|
}
|
@@ -667,13 +667,13 @@ function Ar(i) {
|
|
667
667
|
return i < 0 ? -1 : 1;
|
668
668
|
}
|
669
669
|
function D(i) {
|
670
|
-
return Math.abs(i) <= Se ? i : i - Ar(i) *
|
670
|
+
return Math.abs(i) <= Se ? i : i - Ar(i) * cr;
|
671
671
|
}
|
672
672
|
function Lt(i, t, e) {
|
673
673
|
var s = i * e, r = 0.5 * i;
|
674
674
|
return s = Math.pow((1 - s) / (1 + s), r), Math.tan(0.5 * (O - t)) / s;
|
675
675
|
}
|
676
|
-
function
|
676
|
+
function dr(i, t) {
|
677
677
|
for (var e = 0.5 * i, s, r, n = O - 2 * Math.atan(t), a = 0; a <= 15; a++)
|
678
678
|
if (s = i * Math.sin(n), r = O - 2 * Math.atan(t * Math.pow((1 - s) / (1 + s), e)) - n, n += r, Math.abs(r) <= 1e-10)
|
679
679
|
return n;
|
@@ -691,7 +691,7 @@ function $f(i) {
|
|
691
691
|
if (Math.abs(Math.abs(e) - O) <= I)
|
692
692
|
return null;
|
693
693
|
if (this.sphere)
|
694
|
-
s = this.x0 + this.a * this.k0 * D(t - this.long0), r = this.y0 + this.a * this.k0 * Math.log(Math.tan(
|
694
|
+
s = this.x0 + this.a * this.k0 * D(t - this.long0), r = this.y0 + this.a * this.k0 * Math.log(Math.tan(K + 0.5 * e));
|
695
695
|
else {
|
696
696
|
var n = Math.sin(e), a = Lt(this.e, e, n);
|
697
697
|
s = this.x0 + this.a * this.k0 * D(t - this.long0), r = this.y0 - this.a * this.k0 * Math.log(a);
|
@@ -704,7 +704,7 @@ function Bf(i) {
|
|
704
704
|
r = O - 2 * Math.atan(Math.exp(-e / (this.a * this.k0)));
|
705
705
|
else {
|
706
706
|
var n = Math.exp(-e / (this.a * this.k0));
|
707
|
-
if (r =
|
707
|
+
if (r = dr(this.e, n), r === -9999)
|
708
708
|
return null;
|
709
709
|
}
|
710
710
|
return s = D(this.long0 + t / (this.a * this.k0)), i.x = s, i.y = r, i;
|
@@ -735,20 +735,20 @@ function Qh(i, t) {
|
|
735
735
|
hn[s.toLowerCase()] = e;
|
736
736
|
}), this) : (console.log(t), !0);
|
737
737
|
}
|
738
|
-
function
|
738
|
+
function Kf(i) {
|
739
739
|
if (!i)
|
740
740
|
return !1;
|
741
741
|
var t = i.toLowerCase();
|
742
742
|
if (typeof hn[t] < "u" && On[hn[t]])
|
743
743
|
return On[hn[t]];
|
744
744
|
}
|
745
|
-
function
|
745
|
+
function Jf() {
|
746
746
|
Zf.forEach(Qh);
|
747
747
|
}
|
748
748
|
const Qf = {
|
749
|
-
start:
|
749
|
+
start: Jf,
|
750
750
|
add: Qh,
|
751
|
-
get:
|
751
|
+
get: Kf
|
752
752
|
};
|
753
753
|
var V = {};
|
754
754
|
V.MERIT = {
|
@@ -1082,7 +1082,7 @@ Fe.rnb72 = {
|
|
1082
1082
|
};
|
1083
1083
|
function sg(i, t, e, s, r, n, a) {
|
1084
1084
|
var o = {};
|
1085
|
-
return i === void 0 || i === "none" ? o.datum_type = Ba : o.datum_type = Sf, 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 = zi), 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 = Hi, o.datum_params[3] *=
|
1085
|
+
return i === void 0 || i === "none" ? o.datum_type = Ba : o.datum_type = Sf, 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 = zi), 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 = Hi, o.datum_params[3] *= Zs, o.datum_params[4] *= Zs, o.datum_params[5] *= Zs, o.datum_params[6] = o.datum_params[6] / 1e6 + 1)), a && (o.datum_type = fs, o.grids = a), o.a = e, o.b = s, o.es = r, o.ep2 = n, o;
|
1086
1086
|
}
|
1087
1087
|
var ec = {};
|
1088
1088
|
function rg(i, t) {
|
@@ -1470,7 +1470,7 @@ function da(i, t, e, s) {
|
|
1470
1470
|
function dl(i) {
|
1471
1471
|
return i instanceof Bt ? i : i.oProj ? i.oProj : Bt(i);
|
1472
1472
|
}
|
1473
|
-
function
|
1473
|
+
function Ie(i, t, e) {
|
1474
1474
|
i = dl(i);
|
1475
1475
|
var s = !1, r;
|
1476
1476
|
return typeof t > "u" ? (t = i, i = ul, s = !0) : (typeof t.x < "u" || Array.isArray(t)) && (e = t, t = i, i = ul, s = !0), t = dl(t), e ? da(i, t, e) : (r = {
|
@@ -1482,7 +1482,7 @@ function Pe(i, t, e) {
|
|
1482
1482
|
}
|
1483
1483
|
}, s && (r.oProj = t), r);
|
1484
1484
|
}
|
1485
|
-
var fl = 6, rc = "AJSAJS", nc = "AFAFAF", ls = 65, rt = 73, wt = 79,
|
1485
|
+
var fl = 6, rc = "AJSAJS", nc = "AFAFAF", ls = 65, rt = 73, wt = 79, Hs = 86, js = 90;
|
1486
1486
|
const Sg = {
|
1487
1487
|
forward: ac,
|
1488
1488
|
inverse: wg,
|
@@ -1568,7 +1568,7 @@ function lc(i) {
|
|
1568
1568
|
}
|
1569
1569
|
function bg(i, t, e) {
|
1570
1570
|
var s = e - 1, r = rc.charCodeAt(s), n = nc.charCodeAt(s), a = r + i - 1, o = n + t, l = !1;
|
1571
|
-
a >
|
1571
|
+
a > js && (a = a - js + ls - 1, l = !0), (a === rt || r < rt && a > rt || (a > rt || r < rt) && l) && a++, (a === wt || r < wt && a > wt || (a > wt || r < wt) && l) && (a++, a === rt && a++), a > js && (a = a - js + ls - 1), o > Hs ? (o = o - Hs + ls - 1, l = !0) : l = !1, (o === rt || n < rt && o > rt || (o > rt || n < rt) && l) && o++, (o === wt || n < wt && o > wt || (o > wt || n < wt) && l) && (o++, o === rt && o++), o > Hs && (o = o - Hs + ls - 1);
|
1572
1572
|
var c = String.fromCharCode(a) + String.fromCharCode(o);
|
1573
1573
|
return c;
|
1574
1574
|
}
|
@@ -1606,7 +1606,7 @@ northing meters` + i;
|
|
1606
1606
|
}
|
1607
1607
|
function Eg(i, t) {
|
1608
1608
|
for (var e = rc.charCodeAt(t - 1), s = 1e5, r = !1; e !== i.charCodeAt(0); ) {
|
1609
|
-
if (e++, e === rt && e++, e === wt && e++, e >
|
1609
|
+
if (e++, e === rt && e++, e === wt && e++, e > js) {
|
1610
1610
|
if (r)
|
1611
1611
|
throw "Bad character: " + i;
|
1612
1612
|
e = ls, r = !0;
|
@@ -1619,7 +1619,7 @@ function Pg(i, t) {
|
|
1619
1619
|
if (i > "V")
|
1620
1620
|
throw "MGRSPoint given invalid Northing " + i;
|
1621
1621
|
for (var e = nc.charCodeAt(t - 1), s = 0, r = !1; e !== i.charCodeAt(0); ) {
|
1622
|
-
if (e++, e === rt && e++, e === wt && e++, e >
|
1622
|
+
if (e++, e === rt && e++, e === wt && e++, e > Hs) {
|
1623
1623
|
if (r)
|
1624
1624
|
throw "Bad character: " + i;
|
1625
1625
|
e = ls, r = !0;
|
@@ -1725,27 +1725,27 @@ function cc(i) {
|
|
1725
1725
|
var e = i * i;
|
1726
1726
|
return t[2] = e * (Dg - i * (Ag + i * Fg)), e *= i, t[3] = e * (Rg - i * Gg), t[4] = e * i * kg, t;
|
1727
1727
|
}
|
1728
|
-
function
|
1728
|
+
function Jn(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 zg = 20;
|
1732
1732
|
function uc(i, t, e) {
|
1733
1733
|
for (var s = 1 / (1 - t), r = i, n = zg; n; --n) {
|
1734
1734
|
var a = Math.sin(r), o = 1 - t * a * a;
|
1735
|
-
if (o = (
|
1735
|
+
if (o = (Jn(r, a, Math.cos(r), e) - i) * (o * Math.sqrt(o)) * s, r -= o, Math.abs(o) < I)
|
1736
1736
|
return r;
|
1737
1737
|
}
|
1738
1738
|
return r;
|
1739
1739
|
}
|
1740
1740
|
function Hg() {
|
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 = cc(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 = cc(this.es), this.ml0 = Jn(this.lat0, Math.sin(this.lat0), Math.cos(this.lat0), this.en));
|
1742
1742
|
}
|
1743
1743
|
function jg(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) > I ? 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 _ =
|
1748
|
+
var _ = Jn(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 * (_ - 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);
|
@@ -1852,14 +1852,14 @@ function Zg(i) {
|
|
1852
1852
|
s = 1 / 0, r = 1 / 0;
|
1853
1853
|
return i.x = s, i.y = r, i;
|
1854
1854
|
}
|
1855
|
-
var
|
1855
|
+
var Kg = ["Extended_Transverse_Mercator", "Extended Transverse Mercator", "etmerc", "Transverse_Mercator", "Transverse Mercator", "tmerc"];
|
1856
1856
|
const un = {
|
1857
1857
|
init: Xg,
|
1858
1858
|
forward: Yg,
|
1859
1859
|
inverse: Zg,
|
1860
|
-
names:
|
1860
|
+
names: Kg
|
1861
1861
|
};
|
1862
|
-
function
|
1862
|
+
function Jg(i, t) {
|
1863
1863
|
if (i === void 0) {
|
1864
1864
|
if (i = Math.floor((D(t) + Math.PI) * 30 / Math.PI) + 1, i < 0)
|
1865
1865
|
return 0;
|
@@ -1870,7 +1870,7 @@ function Kg(i, t) {
|
|
1870
1870
|
}
|
1871
1871
|
var Qg = "etmerc";
|
1872
1872
|
function em() {
|
1873
|
-
var i =
|
1873
|
+
var i = Jg(this.zone, this.long0);
|
1874
1874
|
if (i === void 0)
|
1875
1875
|
throw new Error("unknown utm zone");
|
1876
1876
|
this.lat0 = 0, this.long0 = (6 * Math.abs(i) - 183) * ke, this.x0 = 5e5, this.y0 = this.utmSouth ? 1e7 : 0, this.k0 = 0.9996, un.init.apply(this), this.forward = un.forward, this.inverse = un.inverse;
|
@@ -1887,14 +1887,14 @@ function _o(i, t) {
|
|
1887
1887
|
var sm = 20;
|
1888
1888
|
function rm() {
|
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 +
|
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) * _o(this.e * i, this.ratexp));
|
1891
1891
|
}
|
1892
1892
|
function nm(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 +
|
1894
|
+
return i.y = 2 * Math.atan(this.K * Math.pow(Math.tan(0.5 * e + K), this.C) * _o(this.e * Math.sin(e), this.ratexp)) - O, i.x = this.C * t, i;
|
1895
1895
|
}
|
1896
1896
|
function am(i) {
|
1897
|
-
for (var t = 1e-14, e = i.x / this.C, s = i.y, r = Math.pow(Math.tan(0.5 * s +
|
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 = sm; n > 0 && (s = 2 * Math.atan(r * _o(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
|
}
|
@@ -1947,9 +1947,9 @@ function pm(i) {
|
|
1947
1947
|
} else if (Math.abs(this.coslat0) <= I) {
|
1948
1948
|
if (a <= I)
|
1949
1949
|
return e = this.lat0, t = this.long0, i.x = t, i.y = e, i;
|
1950
|
-
i.x *= this.con, i.y *= this.con, s = a * this.cons / (2 * this.a * this.k0), e = this.con *
|
1950
|
+
i.x *= this.con, i.y *= this.con, s = a * this.cons / (2 * this.a * this.k0), e = this.con * dr(this.e, s), t = this.con * D(this.con * this.long0 + Math.atan2(i.x, -1 * i.y));
|
1951
1951
|
} else
|
1952
|
-
r = 2 * Math.atan(a * this.cosX0 / (2 * this.a * this.k0 * this.ms1)), t = this.long0, a <= I ? n = this.X0 : (n = Math.asin(Math.cos(r) * this.sinX0 + i.y * Math.sin(r) * this.cosX0 / a), t = D(this.long0 + Math.atan2(i.x * Math.sin(r), a * this.cosX0 * Math.cos(r) - i.y * this.sinX0 * Math.sin(r)))), e = -1 *
|
1952
|
+
r = 2 * Math.atan(a * this.cosX0 / (2 * this.a * this.k0 * this.ms1)), t = this.long0, a <= I ? n = this.X0 : (n = Math.asin(Math.cos(r) * this.sinX0 + i.y * Math.sin(r) * this.cosX0 / a), t = D(this.long0 + Math.atan2(i.x * Math.sin(r), a * this.cosX0 * Math.cos(r) - i.y * this.sinX0 * Math.sin(r)))), e = -1 * dr(this.e, Math.tan(0.5 * (O + n)));
|
1953
1953
|
return i.x = t, i.y = e, i;
|
1954
1954
|
}
|
1955
1955
|
var ym = ["stere", "Stereographic_South_Pole", "Polar Stereographic (variant B)"];
|
@@ -2003,7 +2003,7 @@ function Om() {
|
|
2003
2003
|
else if (g = this.long1, p = this.lat1, m = this.long2, y = this.lat2, Math.abs(p - y) <= ts || (i = Math.abs(p)) <= ts || Math.abs(i - O) <= ts || Math.abs(Math.abs(this.lat0) - O) <= ts || Math.abs(Math.abs(y) - O) <= ts)
|
2004
2004
|
throw new Error();
|
2005
2005
|
var M = 1 - this.es;
|
2006
|
-
t = Math.sqrt(M), Math.abs(this.lat0) > I ? (o = Math.sin(this.lat0), e = Math.cos(this.lat0), i = 1 - this.es * o * o, this.B = e * e, this.B = Math.sqrt(1 + this.es * this.B * this.B / M), this.A = this.B * this.k0 * t / i, s = this.B * t / (e * Math.sqrt(i)), r = s * s - 1, r <= 0 ? r = 0 : (r = Math.sqrt(r), this.lat0 < 0 && (r = -r)), this.E = r += s, this.E *= Math.pow(Lt(this.e, this.lat0, o), this.B)) : (this.B = 1 / t, this.A = this.k0, this.E = s = r = 1), w || x ? (w ? (u = Math.asin(Math.sin(_) / s), x || (d = _)) : (u = d, _ = Math.asin(s * Math.sin(u))), this.lam0 = f - Math.asin(0.5 * (r - 1 / r) * Math.tan(u)) / this.B) : (n = Math.pow(Lt(this.e, p, Math.sin(p)), this.B), a = Math.pow(Lt(this.e, y, Math.sin(y)), this.B), r = this.E / n, l = (a - n) / (a + n), c = this.E * this.E, c = (c - a * n) / (c + a * n), i = g - m, i < -Math.pi ? m -=
|
2006
|
+
t = Math.sqrt(M), Math.abs(this.lat0) > I ? (o = Math.sin(this.lat0), e = Math.cos(this.lat0), i = 1 - this.es * o * o, this.B = e * e, this.B = Math.sqrt(1 + this.es * this.B * this.B / M), this.A = this.B * this.k0 * t / i, s = this.B * t / (e * Math.sqrt(i)), r = s * s - 1, r <= 0 ? r = 0 : (r = Math.sqrt(r), this.lat0 < 0 && (r = -r)), this.E = r += s, this.E *= Math.pow(Lt(this.e, this.lat0, o), this.B)) : (this.B = 1 / t, this.A = this.k0, this.E = s = r = 1), w || x ? (w ? (u = Math.asin(Math.sin(_) / s), x || (d = _)) : (u = d, _ = Math.asin(s * Math.sin(u))), this.lam0 = f - Math.asin(0.5 * (r - 1 / r) * Math.tan(u)) / this.B) : (n = Math.pow(Lt(this.e, p, Math.sin(p)), this.B), a = Math.pow(Lt(this.e, y, Math.sin(y)), this.B), r = this.E / n, l = (a - n) / (a + n), c = this.E * this.E, c = (c - a * n) / (c + a * n), i = g - m, i < -Math.pi ? m -= cr : i > Math.pi && (m += cr), this.lam0 = D(0.5 * (g + m) - Math.atan(c * Math.tan(0.5 * this.B * (g - m)) / l) / this.B), u = Math.atan(2 * Math.sin(this.B * D(g - this.lam0)) / (r - 1 / r)), d = _ = Math.asin(s * Math.sin(u))), this.singam = Math.sin(u), this.cosgam = Math.cos(u), this.sinrot = Math.sin(d), this.cosrot = Math.cos(d), this.rB = 1 / this.B, this.ArB = this.A * this.rB, this.BrA = 1 / this.ArB, this.A * this.B, this.no_off ? this.u_0 = 0 : (this.u_0 = Math.abs(this.ArB * Math.atan(Math.sqrt(s * s - 1) / Math.cos(_))), this.lat0 < 0 && (this.u_0 = -this.u_0)), r = 0.5 * u, this.v_pole_n = this.ArB * Math.log(Math.tan(K - r)), this.v_pole_s = this.ArB * Math.log(Math.tan(K + r));
|
2007
2007
|
}
|
2008
2008
|
function bm(i) {
|
2009
2009
|
var t = {}, e, s, r, n, a, o, l, c;
|
@@ -2020,7 +2020,7 @@ function Em(i) {
|
|
2020
2020
|
if (i.x = (i.x - this.x0) * (1 / this.a), i.y = (i.y - this.y0) * (1 / this.a), this.no_rot ? (e = i.y, t = i.x) : (e = i.x * this.cosrot - i.y * this.sinrot, t = i.y * this.cosrot + i.x * this.sinrot + this.u_0), s = Math.exp(-this.BrA * e), r = 0.5 * (s - 1 / s), n = 0.5 * (s + 1 / s), a = Math.sin(this.BrA * t), o = (a * this.cosgam + r * this.singam) / n, Math.abs(Math.abs(o) - 1) < I)
|
2021
2021
|
l.x = 0, l.y = o < 0 ? -O : O;
|
2022
2022
|
else {
|
2023
|
-
if (l.y = this.E / Math.sqrt((1 + o) / (1 - o)), l.y =
|
2023
|
+
if (l.y = this.E / Math.sqrt((1 + o) / (1 - o)), l.y = dr(this.e, Math.pow(l.y, 1 / this.B)), l.y === 1 / 0)
|
2024
2024
|
throw new Error();
|
2025
2025
|
l.x = -this.rB * Math.atan2(r * this.cosgam - a * this.singam, Math.cos(this.BrA * t));
|
2026
2026
|
}
|
@@ -2060,7 +2060,7 @@ function Nm(i) {
|
|
2060
2060
|
this.ns > 0 ? (t = Math.sqrt(a * a + o * o), e = 1) : (t = -Math.sqrt(a * a + o * o), e = -1);
|
2061
2061
|
var l = 0;
|
2062
2062
|
if (t !== 0 && (l = Math.atan2(e * a, e * o)), t !== 0 || this.ns > 0) {
|
2063
|
-
if (e = 1 / this.ns, s = Math.pow(t / (this.a * this.f0), e), r =
|
2063
|
+
if (e = 1 / this.ns, s = Math.pow(t / (this.a * this.f0), e), r = dr(this.e, s), r === -9999)
|
2064
2064
|
return null;
|
2065
2065
|
} else
|
2066
2066
|
r = -O;
|
@@ -2123,7 +2123,7 @@ function vs(i, t, e) {
|
|
2123
2123
|
var s = t * e;
|
2124
2124
|
return i / Math.sqrt(1 - s * s);
|
2125
2125
|
}
|
2126
|
-
function
|
2126
|
+
function Os(i) {
|
2127
2127
|
return Math.abs(i) < O ? i : i - Ar(i) * Math.PI;
|
2128
2128
|
}
|
2129
2129
|
function En(i, t, e, s, r) {
|
@@ -2160,7 +2160,7 @@ function Vm(i) {
|
|
2160
2160
|
var l = vs(this.a, this.e, Math.sin(o)), c = l * l * l / this.a / this.a * (1 - this.es), d = Math.pow(Math.tan(o), 2), u = t * this.a / l, f = u * u;
|
2161
2161
|
s = o - l * Math.tan(o) / c * u * u * (0.5 - (1 + 3 * d) * u * u / 24), r = u * (1 - f * (d / 3 + (1 + 3 * d) * d * f / 15)) / Math.cos(o);
|
2162
2162
|
}
|
2163
|
-
return i.x = D(r + this.long0), i.y =
|
2163
|
+
return i.x = D(r + this.long0), i.y = Os(s), i;
|
2164
2164
|
}
|
2165
2165
|
var $m = ["Cassini", "Cassini_Soldner", "cass"];
|
2166
2166
|
const Bm = {
|
@@ -2205,7 +2205,7 @@ function Zm(i) {
|
|
2205
2205
|
} else if (this.mode === this.N_POLE || this.mode === this.S_POLE) {
|
2206
2206
|
if (this.mode === this.N_POLE && (s = -s), Math.abs(f + this.lat0) < I)
|
2207
2207
|
return null;
|
2208
|
-
e =
|
2208
|
+
e = K - f * 0.5, e = 2 * (this.mode === this.S_POLE ? Math.cos(e) : Math.sin(e)), t = e * Math.sin(u), e *= s;
|
2209
2209
|
}
|
2210
2210
|
} else {
|
2211
2211
|
switch (o = 0, l = 0, c = 0, s = Math.cos(u), r = Math.sin(u), n = Math.sin(f), a = yi(this.e, n), (this.mode === this.OBLIQ || this.mode === this.EQUIT) && (o = a / this.qp, l = Math.sqrt(1 - o * o)), this.mode) {
|
@@ -2237,7 +2237,7 @@ function Zm(i) {
|
|
2237
2237
|
}
|
2238
2238
|
return i.x = this.a * t + this.x0, i.y = this.a * e + this.y0, i;
|
2239
2239
|
}
|
2240
|
-
function
|
2240
|
+
function Km(i) {
|
2241
2241
|
i.x -= this.x0, i.y -= this.y0;
|
2242
2242
|
var t = i.x / this.a, e = i.y / this.a, s, r, n, a, o, l, c;
|
2243
2243
|
if (this.sphere) {
|
@@ -2273,10 +2273,10 @@ function Jm(i) {
|
|
2273
2273
|
}
|
2274
2274
|
return i.x = D(this.long0 + s), i.y = r, i;
|
2275
2275
|
}
|
2276
|
-
var
|
2276
|
+
var Jm = 0.3333333333333333, Qm = 0.17222222222222222, ep = 0.10257936507936508, tp = 0.06388888888888888, ip = 0.0664021164021164, sp = 0.016415012942191543;
|
2277
2277
|
function rp(i) {
|
2278
2278
|
var t, e = [];
|
2279
|
-
return e[0] = i *
|
2279
|
+
return e[0] = i * Jm, t = i * i, e[0] += t * Qm, e[1] = t * tp, t *= i, e[0] += t * ep, e[1] += t * ip, e[2] = t * sp, e;
|
2280
2280
|
}
|
2281
2281
|
function np(i, t) {
|
2282
2282
|
var e = i + i;
|
@@ -2286,7 +2286,7 @@ var ap = ["Lambert Azimuthal Equal Area", "Lambert_Azimuthal_Equal_Area", "laea"
|
|
2286
2286
|
const op = {
|
2287
2287
|
init: Ym,
|
2288
2288
|
forward: Zm,
|
2289
|
-
inverse:
|
2289
|
+
inverse: Km,
|
2290
2290
|
names: ap,
|
2291
2291
|
S_POLE: Um,
|
2292
2292
|
N_POLE: qm,
|
@@ -2382,12 +2382,12 @@ function Op() {
|
|
2382
2382
|
this.x0 = this.x0 || 0, this.y0 = this.y0 || 0, this.lat0 = this.lat0 || 0, this.long0 = this.long0 || 0, this.lat_ts = this.lat_ts || 0, this.title = this.title || "Equidistant Cylindrical (Plate Carre)", this.rc = Math.cos(this.lat_ts);
|
2383
2383
|
}
|
2384
2384
|
function bp(i) {
|
2385
|
-
var t = i.x, e = i.y, s = D(t - this.long0), r =
|
2385
|
+
var t = i.x, e = i.y, s = D(t - this.long0), r = Os(e - this.lat0);
|
2386
2386
|
return i.x = this.x0 + this.a * s * this.rc, i.y = this.y0 + this.a * r, i;
|
2387
2387
|
}
|
2388
2388
|
function Ep(i) {
|
2389
2389
|
var t = i.x, e = i.y;
|
2390
|
-
return i.x = D(this.long0 + (t - this.x0) / (this.a * this.rc)), i.y =
|
2390
|
+
return i.x = D(this.long0 + (t - this.x0) / (this.a * this.rc)), i.y = Os(this.lat0 + (e - this.y0) / this.a), i;
|
2391
2391
|
}
|
2392
2392
|
var Pp = ["Equirectangular", "Equidistant_Cylindrical", "eqc"];
|
2393
2393
|
const Ip = {
|
@@ -2403,7 +2403,7 @@ function Lp() {
|
|
2403
2403
|
function Tp(i) {
|
2404
2404
|
var t = i.x, e = i.y, s, r, n, a = D(t - this.long0);
|
2405
2405
|
if (n = a * Math.sin(e), this.sphere)
|
2406
|
-
Math.abs(e) <= I ? (s = this.a * a, r = -1 * this.a * this.lat0) : (s = this.a * Math.sin(n) / Math.tan(e), r = this.a * (
|
2406
|
+
Math.abs(e) <= I ? (s = this.a * a, r = -1 * this.a * this.lat0) : (s = this.a * Math.sin(n) / Math.tan(e), r = this.a * (Os(e - this.lat0) + (1 - Math.cos(n)) / Math.tan(e)));
|
2407
2407
|
else if (Math.abs(e) <= I)
|
2408
2408
|
s = this.a * a, r = -1 * this.ml0;
|
2409
2409
|
else {
|
@@ -2452,7 +2452,7 @@ function Fp() {
|
|
2452
2452
|
this.A = [], this.A[1] = 0.6399175073, this.A[2] = -0.1358797613, this.A[3] = 0.063294409, this.A[4] = -0.02526853, this.A[5] = 0.0117879, this.A[6] = -55161e-7, this.A[7] = 26906e-7, this.A[8] = -1333e-6, this.A[9] = 67e-5, this.A[10] = -34e-5, this.B_re = [], this.B_im = [], this.B_re[1] = 0.7557853228, this.B_im[1] = 0, this.B_re[2] = 0.249204646, this.B_im[2] = 3371507e-9, this.B_re[3] = -1541739e-9, this.B_im[3] = 0.04105856, this.B_re[4] = -0.10162907, this.B_im[4] = 0.01727609, this.B_re[5] = -0.26623489, this.B_im[5] = -0.36249218, this.B_re[6] = -0.6870983, this.B_im[6] = -1.1651967, this.C_re = [], this.C_im = [], this.C_re[1] = 1.3231270439, this.C_im[1] = 0, this.C_re[2] = -0.577245789, this.C_im[2] = -7809598e-9, this.C_re[3] = 0.508307513, this.C_im[3] = -0.112208952, this.C_re[4] = -0.15094762, this.C_im[4] = 0.18200602, this.C_re[5] = 1.01418179, this.C_im[5] = 1.64497696, this.C_re[6] = 1.9660549, this.C_im[6] = 2.5127645, this.D = [], this.D[1] = 1.5627014243, this.D[2] = 0.5185406398, this.D[3] = -0.03333098, this.D[4] = -0.1052906, this.D[5] = -0.0368594, this.D[6] = 7317e-6, this.D[7] = 0.0122, this.D[8] = 394e-5, this.D[9] = -13e-4;
|
2453
2453
|
}
|
2454
2454
|
function Rp(i) {
|
2455
|
-
var t, e = i.x, s = i.y, r = s - this.lat0, n = e - this.long0, a = r /
|
2455
|
+
var t, e = i.x, s = i.y, r = s - this.lat0, n = e - this.long0, a = r / Zs * 1e-5, o = n, l = 1, c = 0;
|
2456
2456
|
for (t = 1; t <= 10; t++)
|
2457
2457
|
l = l * a, c = c + this.A[t] * l;
|
2458
2458
|
var d = c, u = o, f = 1, g = 0, m, p, y = 0, _ = 0;
|
@@ -2478,7 +2478,7 @@ function Gp(i) {
|
|
2478
2478
|
var k = f, W = g, se = 1, B = 0;
|
2479
2479
|
for (t = 1; t <= 9; t++)
|
2480
2480
|
se = se * k, B = B + this.D[t] * se;
|
2481
|
-
var A = this.lat0 + B *
|
2481
|
+
var A = this.lat0 + B * Zs * 1e5, kt = this.long0 + W;
|
2482
2482
|
return i.x = kt, i.y = A, i;
|
2483
2483
|
}
|
2484
2484
|
var kp = ["New_Zealand_Map_Grid", "nzmg"];
|
@@ -2524,13 +2524,13 @@ function Wp(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 * Jn(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
|
}
|
2531
2531
|
function Xp(i) {
|
2532
2532
|
var t, e, s, r;
|
2533
|
-
return i.x -= this.x0, s = i.x / this.a, i.y -= this.y0, t = i.y / this.a, this.sphere ? (t /= this.C_y, s = s / (this.C_x * (this.m + Math.cos(t))), this.m ? t = bi((this.m * t + Math.sin(t)) / this.n) : this.n !== 1 && (t = bi(Math.sin(t) / this.n)), s = D(s + this.long0), t =
|
2533
|
+
return i.x -= this.x0, s = i.x / this.a, i.y -= this.y0, t = i.y / this.a, this.sphere ? (t /= this.C_y, s = s / (this.C_x * (this.m + Math.cos(t))), this.m ? t = bi((this.m * t + Math.sin(t)) / this.n) : this.n !== 1 && (t = bi(Math.sin(t) / this.n)), s = D(s + this.long0), t = Os(t)) : (t = uc(i.y / this.a, this.es, this.en), r = Math.abs(t), r < O ? (r = Math.sin(t), e = this.long0 + i.x * Math.sqrt(1 - this.es * r * r) / (this.a * Math.cos(t)), s = D(e)) : r - I < O && (s = this.long0)), i.x = s, i.y = t, i;
|
2534
2534
|
}
|
2535
2535
|
var Yp = ["Sinusoidal", "sinu"];
|
2536
2536
|
const Zp = {
|
@@ -2539,9 +2539,9 @@ const Zp = {
|
|
2539
2539
|
inverse: Xp,
|
2540
2540
|
names: Yp
|
2541
2541
|
};
|
2542
|
-
function
|
2542
|
+
function Kp() {
|
2543
2543
|
}
|
2544
|
-
function
|
2544
|
+
function Jp(i) {
|
2545
2545
|
for (var t = i.x, e = i.y, s = D(t - this.long0), r = e, n = Math.PI * Math.sin(e); ; ) {
|
2546
2546
|
var a = -(r + Math.sin(r) - n) / (1 + Math.cos(r));
|
2547
2547
|
if (r += a, Math.abs(a) < I)
|
@@ -2561,8 +2561,8 @@ function Qp(i) {
|
|
2561
2561
|
}
|
2562
2562
|
var ey = ["Mollweide", "moll"];
|
2563
2563
|
const ty = {
|
2564
|
-
init:
|
2565
|
-
forward:
|
2564
|
+
init: Kp,
|
2565
|
+
forward: Jp,
|
2566
2566
|
inverse: Qp,
|
2567
2567
|
names: ey
|
2568
2568
|
};
|
@@ -2586,7 +2586,7 @@ function ry(i) {
|
|
2586
2586
|
this.ns >= 0 ? (e = Math.sqrt(i.x * i.x + i.y * i.y), t = 1) : (e = -Math.sqrt(i.x * i.x + i.y * i.y), t = -1);
|
2587
2587
|
var n = 0;
|
2588
2588
|
if (e !== 0 && (n = Math.atan2(t * i.x, t * i.y)), this.sphere)
|
2589
|
-
return r = D(this.long0 + n / this.ns), s =
|
2589
|
+
return r = D(this.long0 + n / this.ns), s = Os(this.g - e / this.a), i.x = r, i.y = s, i;
|
2590
2590
|
var a = this.g - e / this.a;
|
2591
2591
|
return s = En(a, this.e0, this.e1, this.e2, this.e3), r = D(this.long0 + n / this.ns), i.x = r, i.y = s, i;
|
2592
2592
|
}
|
@@ -2665,36 +2665,36 @@ var ge = {
|
|
2665
2665
|
LEFT: 4,
|
2666
2666
|
TOP: 5,
|
2667
2667
|
BOTTOM: 6
|
2668
|
-
},
|
2668
|
+
}, J = {
|
2669
2669
|
AREA_0: 1,
|
2670
2670
|
AREA_1: 2,
|
2671
2671
|
AREA_2: 3,
|
2672
2672
|
AREA_3: 4
|
2673
2673
|
};
|
2674
2674
|
function My() {
|
2675
|
-
this.x0 = this.x0 || 0, this.y0 = this.y0 || 0, this.lat0 = this.lat0 || 0, this.long0 = this.long0 || 0, this.lat_ts = this.lat_ts || 0, this.title = this.title || "Quadrilateralized Spherical Cube", this.lat0 >= O -
|
2675
|
+
this.x0 = this.x0 || 0, this.y0 = this.y0 || 0, this.lat0 = this.lat0 || 0, this.long0 = this.long0 || 0, this.lat_ts = this.lat_ts || 0, this.title = this.title || "Quadrilateralized Spherical Cube", this.lat0 >= O - K / 2 ? this.face = ge.TOP : this.lat0 <= -(O - K / 2) ? this.face = ge.BOTTOM : Math.abs(this.long0) <= K ? this.face = ge.FRONT : Math.abs(this.long0) <= O + K ? this.face = this.long0 > 0 ? ge.RIGHT : ge.LEFT : this.face = ge.BACK, this.es !== 0 && (this.one_minus_f = 1 - (this.a - this.b) / this.a, this.one_minus_f_squared = this.one_minus_f * this.one_minus_f);
|
2676
2676
|
}
|
2677
2677
|
function Cy(i) {
|
2678
2678
|
var t = { x: 0, y: 0 }, e, s, r, n, a, o, l = { value: 0 };
|
2679
2679
|
if (i.x -= this.long0, this.es !== 0 ? e = Math.atan(this.one_minus_f_squared * Math.tan(i.y)) : e = i.y, s = i.x, this.face === ge.TOP)
|
2680
|
-
n = O - e, s >=
|
2680
|
+
n = O - e, s >= K && s <= O + K ? (l.value = J.AREA_0, r = s - O) : s > O + K || s <= -(O + K) ? (l.value = J.AREA_1, r = s > 0 ? s - Se : s + Se) : s > -(O + K) && s <= -K ? (l.value = J.AREA_2, r = s + O) : (l.value = J.AREA_3, r = s);
|
2681
2681
|
else if (this.face === ge.BOTTOM)
|
2682
|
-
n = O + e, s >=
|
2682
|
+
n = O + e, s >= K && s <= O + K ? (l.value = J.AREA_0, r = -s + O) : s < K && s >= -K ? (l.value = J.AREA_1, r = -s) : s < -K && s >= -(O + K) ? (l.value = J.AREA_2, r = -s - O) : (l.value = J.AREA_3, r = s > 0 ? -s + Se : -s - Se);
|
2683
2683
|
else {
|
2684
2684
|
var c, d, u, f, g, m, p;
|
2685
|
-
this.face === ge.RIGHT ? s = gs(s, +O) : this.face === ge.BACK ? s = gs(s, +Se) : this.face === ge.LEFT && (s = gs(s, -O)), f = Math.sin(e), g = Math.cos(e), m = Math.sin(s), p = Math.cos(s), c = g * p, d = g * m, u = f, this.face === ge.FRONT ? (n = Math.acos(c), r = Yr(n, u, d, l)) : this.face === ge.RIGHT ? (n = Math.acos(d), r = Yr(n, u, -c, l)) : this.face === ge.BACK ? (n = Math.acos(-c), r = Yr(n, u, -d, l)) : this.face === ge.LEFT ? (n = Math.acos(-d), r = Yr(n, u, c, l)) : (n = r = 0, l.value =
|
2685
|
+
this.face === ge.RIGHT ? s = gs(s, +O) : this.face === ge.BACK ? s = gs(s, +Se) : this.face === ge.LEFT && (s = gs(s, -O)), f = Math.sin(e), g = Math.cos(e), m = Math.sin(s), p = Math.cos(s), c = g * p, d = g * m, u = f, this.face === ge.FRONT ? (n = Math.acos(c), r = Yr(n, u, d, l)) : this.face === ge.RIGHT ? (n = Math.acos(d), r = Yr(n, u, -c, l)) : this.face === ge.BACK ? (n = Math.acos(-c), r = Yr(n, u, -d, l)) : this.face === ge.LEFT ? (n = Math.acos(-d), r = Yr(n, u, c, l)) : (n = r = 0, l.value = J.AREA_0);
|
2686
2686
|
}
|
2687
|
-
return o = Math.atan(12 / Se * (r + Math.acos(Math.sin(r) * Math.cos(
|
2687
|
+
return o = Math.atan(12 / Se * (r + Math.acos(Math.sin(r) * Math.cos(K)) - O)), a = Math.sqrt((1 - Math.cos(n)) / (Math.cos(o) * Math.cos(o)) / (1 - Math.cos(Math.atan(1 / Math.cos(r))))), l.value === J.AREA_1 ? o += O : l.value === J.AREA_2 ? o += Se : l.value === J.AREA_3 && (o += 1.5 * Se), t.x = a * Math.cos(o), t.y = a * Math.sin(o), t.x = t.x * this.a + this.x0, t.y = t.y * this.a + this.y0, i.x = t.x, i.y = t.y, i;
|
2688
2688
|
}
|
2689
2689
|
function xy(i) {
|
2690
2690
|
var t = { lam: 0, phi: 0 }, e, s, r, n, a, o, l, c, d, u = { value: 0 };
|
2691
|
-
if (i.x = (i.x - this.x0) / this.a, i.y = (i.y - this.y0) / this.a, s = Math.atan(Math.sqrt(i.x * i.x + i.y * i.y)), e = Math.atan2(i.y, i.x), i.x >= 0 && i.x >= Math.abs(i.y) ? u.value =
|
2692
|
-
c = Math.acos(l), t.phi = O - c, u.value ===
|
2691
|
+
if (i.x = (i.x - this.x0) / this.a, i.y = (i.y - this.y0) / this.a, s = Math.atan(Math.sqrt(i.x * i.x + i.y * i.y)), e = Math.atan2(i.y, i.x), i.x >= 0 && i.x >= Math.abs(i.y) ? u.value = J.AREA_0 : i.y >= 0 && i.y >= Math.abs(i.x) ? (u.value = J.AREA_1, e -= O) : i.x < 0 && -i.x >= Math.abs(i.y) ? (u.value = J.AREA_2, e = e < 0 ? e + Se : e - Se) : (u.value = J.AREA_3, e += O), d = Se / 12 * Math.tan(e), a = Math.sin(d) / (Math.cos(d) - 1 / Math.sqrt(2)), o = Math.atan(a), r = Math.cos(e), n = Math.tan(s), l = 1 - r * r * n * n * (1 - Math.cos(Math.atan(1 / Math.cos(o)))), l < -1 ? l = -1 : l > 1 && (l = 1), this.face === ge.TOP)
|
2692
|
+
c = Math.acos(l), t.phi = O - c, u.value === J.AREA_0 ? t.lam = o + O : u.value === J.AREA_1 ? t.lam = o < 0 ? o + Se : o - Se : u.value === J.AREA_2 ? t.lam = o - O : t.lam = o;
|
2693
2693
|
else if (this.face === ge.BOTTOM)
|
2694
|
-
c = Math.acos(l), t.phi = c - O, u.value ===
|
2694
|
+
c = Math.acos(l), t.phi = c - O, u.value === J.AREA_0 ? t.lam = -o + O : u.value === J.AREA_1 ? t.lam = -o : u.value === J.AREA_2 ? t.lam = -o - O : t.lam = o < 0 ? -o - Se : -o + Se;
|
2695
2695
|
else {
|
2696
2696
|
var f, g, m;
|
2697
|
-
f = l, d = f * f, d >= 1 ? m = 0 : m = Math.sqrt(1 - d) * Math.sin(o), d += m * m, d >= 1 ? g = 0 : g = Math.sqrt(1 - d), u.value ===
|
2697
|
+
f = l, d = f * f, d >= 1 ? m = 0 : m = Math.sqrt(1 - d) * Math.sin(o), d += m * m, d >= 1 ? g = 0 : g = Math.sqrt(1 - d), u.value === J.AREA_1 ? (d = g, g = -m, m = d) : u.value === J.AREA_2 ? (g = -g, m = -m) : u.value === J.AREA_3 && (d = g, g = m, m = -d), this.face === ge.RIGHT ? (d = f, f = -g, g = d) : this.face === ge.BACK ? (f = -f, g = -g) : this.face === ge.LEFT && (d = f, f = g, g = -d), t.phi = Math.acos(-m) - O, t.lam = Math.atan2(g, f), this.face === ge.RIGHT ? t.lam = gs(t.lam, -O) : this.face === ge.BACK ? t.lam = gs(t.lam, -Se) : this.face === ge.LEFT && (t.lam = gs(t.lam, +O));
|
2698
2698
|
}
|
2699
2699
|
if (this.es !== 0) {
|
2700
2700
|
var p, y, _;
|
@@ -2704,11 +2704,11 @@ function xy(i) {
|
|
2704
2704
|
}
|
2705
2705
|
function Yr(i, t, e, s) {
|
2706
2706
|
var r;
|
2707
|
-
return i < I ? (s.value =
|
2707
|
+
return i < I ? (s.value = J.AREA_0, r = 0) : (r = Math.atan2(t, e), Math.abs(r) <= K ? s.value = J.AREA_0 : r > K && r <= O + K ? (s.value = J.AREA_1, r -= O) : r > O + K || r <= -(O + K) ? (s.value = J.AREA_2, r = r >= 0 ? r - Se : r + Se) : (s.value = J.AREA_3, r += O)), r;
|
2708
2708
|
}
|
2709
2709
|
function gs(i, t) {
|
2710
2710
|
var e = i + t;
|
2711
|
-
return e < -Se ? e +=
|
2711
|
+
return e < -Se ? e += cr : e > +Se && (e -= cr), e;
|
2712
2712
|
}
|
2713
2713
|
var Oy = ["Quadrilateralized Spherical Cube", "Quadrilateralized_Spherical_Cube", "qsc"];
|
2714
2714
|
const by = {
|
@@ -2737,7 +2737,7 @@ var Wa = [
|
|
2737
2737
|
[0.6213, -0.010418, 883923e-10, 624051e-11],
|
2738
2738
|
[0.5722, -906601e-8, 182e-6, 624051e-11],
|
2739
2739
|
[0.5322, -677797e-8, 275608e-9, 624051e-11]
|
2740
|
-
],
|
2740
|
+
], Vs = [
|
2741
2741
|
[-520417e-23, 0.0124, 121431e-23, -845284e-16],
|
2742
2742
|
[0.062, 0.0124, -126793e-14, 422642e-15],
|
2743
2743
|
[0.124, 0.0124, 507171e-14, -160604e-14],
|
@@ -2778,7 +2778,7 @@ function Ty(i) {
|
|
2778
2778
|
s < 0 ? s = 0 : s >= hs && (s = hs - 1), e = Vt * (e - Ey * s);
|
2779
2779
|
var r = {
|
2780
2780
|
x: Pn(Wa[s], e) * t,
|
2781
|
-
y: Pn(
|
2781
|
+
y: Pn(Vs[s], e)
|
2782
2782
|
};
|
2783
2783
|
return i.y < 0 && (r.y = -r.y), r.x = r.x * this.a * gc + this.x0, r.y = r.y * this.a * mc + this.y0, r;
|
2784
2784
|
}
|
@@ -2792,13 +2792,13 @@ function Ny(i) {
|
|
2792
2792
|
else {
|
2793
2793
|
var e = Math.floor(t.y * hs);
|
2794
2794
|
for (e < 0 ? e = 0 : e >= hs && (e = hs - 1); ; )
|
2795
|
-
if (
|
2795
|
+
if (Vs[e][0] > t.y)
|
2796
2796
|
--e;
|
2797
|
-
else if (
|
2797
|
+
else if (Vs[e + 1][0] <= t.y)
|
2798
2798
|
++e;
|
2799
2799
|
else
|
2800
2800
|
break;
|
2801
|
-
var s =
|
2801
|
+
var s = Vs[e], r = 5 * (t.y - s[0]) / (Vs[e + 1][0] - s[0]);
|
2802
2802
|
r = Iy(function(n) {
|
2803
2803
|
return (Pn(s, n) - t.y) / Py(s, n);
|
2804
2804
|
}, r, I, 100), t.x /= Pn(Wa[e], r), t.y = (5 * e + r) * ke, i.y < 0 && (t.y = -t.y);
|
@@ -2835,7 +2835,7 @@ var qe = {
|
|
2835
2835
|
S_POLE: 1,
|
2836
2836
|
EQUIT: 2,
|
2837
2837
|
OBLIQ: 3
|
2838
|
-
},
|
2838
|
+
}, As = {
|
2839
2839
|
h: { def: 1e5, num: !0 },
|
2840
2840
|
// default is Karman line, no default in PROJ.7
|
2841
2841
|
azi: { def: 0, num: !0, degrees: !0 },
|
@@ -2848,15 +2848,15 @@ var qe = {
|
|
2848
2848
|
// default is Equator, conversion to rad is automatic
|
2849
2849
|
};
|
2850
2850
|
function Hy() {
|
2851
|
-
if (Object.keys(
|
2851
|
+
if (Object.keys(As).forEach((function(e) {
|
2852
2852
|
if (typeof this[e] > "u")
|
2853
|
-
this[e] =
|
2853
|
+
this[e] = As[e].def;
|
2854
2854
|
else {
|
2855
|
-
if (
|
2855
|
+
if (As[e].num && isNaN(this[e]))
|
2856
2856
|
throw new Error("Invalid parameter value, must be numeric " + e + " = " + this[e]);
|
2857
|
-
|
2857
|
+
As[e].num && (this[e] = parseFloat(this[e]));
|
2858
2858
|
}
|
2859
|
-
|
2859
|
+
As[e].degrees && (this[e] = this[e] * ke);
|
2860
2860
|
}).bind(this)), Math.abs(Math.abs(this.lat0) - O) < I ? this.mode = this.lat0 < 0 ? qe.S_POLE : qe.N_POLE : Math.abs(this.lat0) < I ? this.mode = qe.EQUIT : (this.mode = qe.OBLIQ, this.sinph0 = Math.sin(this.lat0), this.cosph0 = Math.cos(this.lat0)), this.pn1 = this.h / this.a, this.pn1 <= 0 || this.pn1 > 1e10)
|
2861
2861
|
throw new Error("Invalid height");
|
2862
2862
|
this.p = 1 + this.pn1, this.rp = 1 / this.p, this.h1 = 1 / this.pn1, this.pfact = (this.p + 1) * this.h1, this.es = 0;
|
@@ -2978,17 +2978,17 @@ const Yy = {
|
|
2978
2978
|
function Zy(i) {
|
2979
2979
|
i.Proj.projections.add(cn), i.Proj.projections.add(un), i.Proj.projections.add(im), i.Proj.projections.add(dm), i.Proj.projections.add(_m), i.Proj.projections.add(Cm), i.Proj.projections.add(Im), i.Proj.projections.add(Am), i.Proj.projections.add(zm), i.Proj.projections.add(Bm), i.Proj.projections.add(op), i.Proj.projections.add(fp), i.Proj.projections.add(_p), i.Proj.projections.add(xp), i.Proj.projections.add(Ip), i.Proj.projections.add(Ap), i.Proj.projections.add(zp), i.Proj.projections.add(Bp), i.Proj.projections.add(Zp), i.Proj.projections.add(ty), i.Proj.projections.add(ay), i.Proj.projections.add(uy), i.Proj.projections.add(py), i.Proj.projections.add(wy), i.Proj.projections.add(by), i.Proj.projections.add(Ay), i.Proj.projections.add(zy), i.Proj.projections.add(By), i.Proj.projections.add(Yy);
|
2980
2980
|
}
|
2981
|
-
|
2982
|
-
|
2983
|
-
|
2984
|
-
|
2985
|
-
|
2986
|
-
|
2987
|
-
|
2988
|
-
|
2989
|
-
|
2990
|
-
|
2991
|
-
Zy(
|
2981
|
+
Ie.defaultDatum = "WGS84";
|
2982
|
+
Ie.Proj = Bt;
|
2983
|
+
Ie.WGS84 = new Ie.Proj("WGS84");
|
2984
|
+
Ie.Point = _s;
|
2985
|
+
Ie.toPoint = sc;
|
2986
|
+
Ie.defs = Ke;
|
2987
|
+
Ie.nadgrid = rg;
|
2988
|
+
Ie.transform = bn;
|
2989
|
+
Ie.mgrs = Sg;
|
2990
|
+
Ie.version = "__VERSION__";
|
2991
|
+
Zy(Ie);
|
2992
2992
|
const In = Ae("EPSG:4326", "EPSG:3857"), So = Ae("EPSG:3857", "EPSG:4326");
|
2993
2993
|
let wo = {
|
2994
2994
|
epsg: "EPSG:4326"
|
@@ -3005,13 +3005,13 @@ function yc(i) {
|
|
3005
3005
|
let t = null;
|
3006
3006
|
if (i.epsg)
|
3007
3007
|
try {
|
3008
|
-
t =
|
3008
|
+
t = Ie(Mo(i.epsg));
|
3009
3009
|
} catch {
|
3010
3010
|
t = null;
|
3011
3011
|
}
|
3012
3012
|
if (i.proj4)
|
3013
3013
|
try {
|
3014
|
-
t =
|
3014
|
+
t = Ie(i.proj4);
|
3015
3015
|
} catch {
|
3016
3016
|
t = null;
|
3017
3017
|
}
|
@@ -3021,11 +3021,11 @@ function _c(i) {
|
|
3021
3021
|
const t = {
|
3022
3022
|
prefix: i.prefix
|
3023
3023
|
};
|
3024
|
-
return i.epsg && (t.epsg = Mo(i.epsg, i.prefix), t.epsg && (i.proj4 && (t.proj4 = i.proj4,
|
3025
|
-
|
3024
|
+
return i.epsg && (t.epsg = Mo(i.epsg, i.prefix), t.epsg && (i.proj4 && (t.proj4 = i.proj4, Ie.defs(t.epsg, i.proj4), Bo(Ie)), i.alias && Array.isArray(i.alias) && (t.alias = i.alias, t.alias.forEach((e) => {
|
3025
|
+
Ie.defs(e, Ie.defs(t.epsg)), Bo(Ie);
|
3026
3026
|
})))), t;
|
3027
3027
|
}
|
3028
|
-
function
|
3028
|
+
function Ky(i) {
|
3029
3029
|
if (S(i, {
|
3030
3030
|
epsg: Ve(String, Number),
|
3031
3031
|
proj4: Q(String)
|
@@ -3120,7 +3120,7 @@ class G {
|
|
3120
3120
|
return Mo(t, e);
|
3121
3121
|
}
|
3122
3122
|
}
|
3123
|
-
function
|
3123
|
+
function Jy() {
|
3124
3124
|
return new G(wo);
|
3125
3125
|
}
|
3126
3126
|
const oe = new G({ epsg: 4326 }), U = new G({ epsg: 3857 });
|
@@ -3189,13 +3189,13 @@ Ot.prototype.setCoordinates = function(t, e) {
|
|
3189
3189
|
const s = e || this.getLayout(), r = /XYM?/.test(s) ? _t : Qy;
|
3190
3190
|
this.setCenterAndRadius(t[0], r(t[0], t[1]), e);
|
3191
3191
|
};
|
3192
|
-
|
3192
|
+
Tr.prototype.getCoordinates = function() {
|
3193
3193
|
return this.getGeometries().map((t) => t.getCoordinates());
|
3194
3194
|
};
|
3195
|
-
|
3195
|
+
Tr.prototype.setCoordinates = function(t, e) {
|
3196
3196
|
S(t, Array), S(t.length, this.getGeometries().length), this.setGeometries(this.getGeometries().map((s, r) => (s.setCoordinates(t[r], e), s)));
|
3197
3197
|
};
|
3198
|
-
|
3198
|
+
Tr.prototype.getLayout = function() {
|
3199
3199
|
const t = this.getGeometries()[0];
|
3200
3200
|
return t ? t.getLayout() : "XYZ";
|
3201
3201
|
};
|
@@ -3323,7 +3323,7 @@ Qt.ERROR = Me.ERROR | Me.WARN | Me.INFO | Me.DEBUG;
|
|
3323
3323
|
Qt.WARN = Me.WARN | Me.INFO | Me.DEBUG;
|
3324
3324
|
Qt.INFO = Me.INFO | Me.DEBUG;
|
3325
3325
|
Qt.DEBUG = Me.DEBUG;
|
3326
|
-
const
|
3326
|
+
const Fs = {
|
3327
3327
|
useTimestamp: !1,
|
3328
3328
|
logLevel: Me.INFO
|
3329
3329
|
}, zr = /* @__PURE__ */ new Map();
|
@@ -3344,7 +3344,7 @@ class wc {
|
|
3344
3344
|
* @param {...any} optArgs
|
3345
3345
|
*/
|
3346
3346
|
error(t, ...e) {
|
3347
|
-
|
3347
|
+
Fs.logLevel & Qt.ERROR && this._log(String(t), Me.ERROR, e);
|
3348
3348
|
}
|
3349
3349
|
/**
|
3350
3350
|
* Logs a warning message
|
@@ -3352,7 +3352,7 @@ class wc {
|
|
3352
3352
|
* @param {...any} optArgs
|
3353
3353
|
*/
|
3354
3354
|
warning(t, ...e) {
|
3355
|
-
|
3355
|
+
Fs.logLevel & Qt.WARN && this._log(String(t), Me.WARN, e);
|
3356
3356
|
}
|
3357
3357
|
/**
|
3358
3358
|
* Deprecate a function. deprecations are stored on the logger
|
@@ -3373,7 +3373,7 @@ class wc {
|
|
3373
3373
|
* @param {...any} optArgs
|
3374
3374
|
*/
|
3375
3375
|
info(t, ...e) {
|
3376
|
-
|
3376
|
+
Fs.logLevel & Qt.INFO && this._log(String(t), Me.INFO, e);
|
3377
3377
|
}
|
3378
3378
|
/**
|
3379
3379
|
* Logs a debug message
|
@@ -3381,7 +3381,7 @@ class wc {
|
|
3381
3381
|
* @param {...any} optArgs
|
3382
3382
|
*/
|
3383
3383
|
debug(t, ...e) {
|
3384
|
-
|
3384
|
+
Fs.logLevel & Qt.DEBUG && this._log(String(t), Me.DEBUG, e);
|
3385
3385
|
}
|
3386
3386
|
/**
|
3387
3387
|
* Alias for debug
|
@@ -3389,7 +3389,7 @@ class wc {
|
|
3389
3389
|
* @param {...any} optArgs
|
3390
3390
|
*/
|
3391
3391
|
log(t, ...e) {
|
3392
|
-
|
3392
|
+
Fs.logLevel & Qt.DEBUG && this._log(String(t), Me.DEBUG, e);
|
3393
3393
|
}
|
3394
3394
|
/**
|
3395
3395
|
* Logs a message
|
@@ -3479,19 +3479,19 @@ class P {
|
|
3479
3479
|
return this._listeners.has(t) ? (this._listeners.delete(t), !0) : !1;
|
3480
3480
|
}
|
3481
3481
|
/**
|
3482
|
-
* Raise the event, calling all listeners
|
3483
|
-
*
|
3482
|
+
* Raise the event, calling all listeners, if a listener is removed in between calling listeners, the listener is not
|
3483
|
+
* called.
|
3484
|
+
* @param event
|
3484
3485
|
*/
|
3485
3486
|
raiseEvent(t) {
|
3486
3487
|
[...this._listeners].forEach((e) => {
|
3487
|
-
e(t);
|
3488
|
+
this._listeners.has(e) && e(t);
|
3488
3489
|
});
|
3489
3490
|
}
|
3490
3491
|
async awaitRaisedEvent(t) {
|
3491
|
-
const e =
|
3492
|
-
|
3493
|
-
|
3494
|
-
e[s] = r(t), s += 1;
|
3492
|
+
const e = [];
|
3493
|
+
[...this._listeners].forEach((s) => {
|
3494
|
+
this._listeners.has(s) && e.push(s(t));
|
3495
3495
|
}), await Promise.all(e);
|
3496
3496
|
}
|
3497
3497
|
/**
|
@@ -3595,7 +3595,7 @@ class Zt {
|
|
3595
3595
|
this._coreClassRegistry = void 0, this._classMap.clear(), this._classShadows.clear(), this.replaced.destroy(), this.removed.destroy();
|
3596
3596
|
}
|
3597
3597
|
}
|
3598
|
-
function
|
3598
|
+
function $s() {
|
3599
3599
|
return Ce("ClassRegistry");
|
3600
3600
|
}
|
3601
3601
|
class Li {
|
@@ -3630,7 +3630,7 @@ class Li {
|
|
3630
3630
|
S(t, String);
|
3631
3631
|
const s = this.getClass(t);
|
3632
3632
|
if (!s) {
|
3633
|
-
|
3633
|
+
$s().error(`could not find constructor ${t}`);
|
3634
3634
|
return;
|
3635
3635
|
}
|
3636
3636
|
return new s(...e);
|
@@ -3639,19 +3639,19 @@ class Li {
|
|
3639
3639
|
return S(t, { type: String }), this.create(t.type, t, ...e);
|
3640
3640
|
}
|
3641
3641
|
}
|
3642
|
-
const
|
3642
|
+
const De = new Li(), bs = new Li(), Co = new Li(), Es = new Li(), Hr = new Li(), Mc = new Li();
|
3643
3643
|
function ii(i, t, ...e) {
|
3644
|
-
if (!
|
3645
|
-
return
|
3644
|
+
if (!xs(i, Ve(Li, Zt)))
|
3645
|
+
return $s().error(`ObjectCreation failed: no class registry provided for ${String(t.type)}`), null;
|
3646
3646
|
if (!(t != null && t.type))
|
3647
|
-
return
|
3647
|
+
return $s().warning("ObjectCreation failed: could not find type in options"), null;
|
3648
3648
|
let s;
|
3649
3649
|
try {
|
3650
3650
|
s = i.createFromTypeOptions(t, ...e);
|
3651
3651
|
} catch (r) {
|
3652
|
-
|
3652
|
+
$s().warning(`Error: ${String(r)}`);
|
3653
3653
|
}
|
3654
|
-
return s || (
|
3654
|
+
return s || ($s().warning("ObjectCreation failed: could not create new Object"), null);
|
3655
3655
|
}
|
3656
3656
|
class Wt extends Gt {
|
3657
3657
|
/**
|
@@ -3739,10 +3739,10 @@ function Yt(i) {
|
|
3739
3739
|
function xo() {
|
3740
3740
|
return Ce("StyleHelpers");
|
3741
3741
|
}
|
3742
|
-
var
|
3742
|
+
var Ks;
|
3743
3743
|
(function(i) {
|
3744
3744
|
i[i.NWSE = 1] = "NWSE", i[i.SWNE = 2] = "SWNE", i[i.DIAGONALCROSS = 3] = "DIAGONALCROSS", i[i.NS = 4] = "NS", i[i.WE = 5] = "WE", i[i.CROSS = 6] = "CROSS";
|
3745
|
-
})(
|
3745
|
+
})(Ks = Ks || (Ks = {}));
|
3746
3746
|
function c_(i, t) {
|
3747
3747
|
let e = i.substring(1);
|
3748
3748
|
return e.length === 3 && (e = e.replace(/([\w\d])/g, "$1$1")), [
|
@@ -3914,7 +3914,7 @@ function Cc(i) {
|
|
3914
3914
|
function Oo(i) {
|
3915
3915
|
return new He(i);
|
3916
3916
|
}
|
3917
|
-
function
|
3917
|
+
function fr(i) {
|
3918
3918
|
let t = i.getColor();
|
3919
3919
|
if (t)
|
3920
3920
|
try {
|
@@ -3933,7 +3933,7 @@ function xc(i) {
|
|
3933
3933
|
return {
|
3934
3934
|
font: i.getFont(),
|
3935
3935
|
fill: i.getFill() ? Tn(i.getFill()) : void 0,
|
3936
|
-
stroke: i.getStroke() ?
|
3936
|
+
stroke: i.getStroke() ? fr(i.getStroke()) : void 0,
|
3937
3937
|
textBaseline: i.getTextBaseline(),
|
3938
3938
|
offsetY: i.getOffsetY(),
|
3939
3939
|
offsetX: i.getOffsetX(),
|
@@ -3964,19 +3964,19 @@ function bc(i) {
|
|
3964
3964
|
const t = {
|
3965
3965
|
scale: i.getScale()
|
3966
3966
|
};
|
3967
|
-
return i.getFill() && (t.fill = Tn(i.getFill())), i.getRadius() != null && (t.radius = i.getRadius()), i.getStroke() && (t.stroke =
|
3968
|
-
} else if (i instanceof
|
3967
|
+
return i.getFill() && (t.fill = Tn(i.getFill())), i.getRadius() != null && (t.radius = i.getRadius()), i.getStroke() && (t.stroke = fr(i.getStroke())), t;
|
3968
|
+
} else if (i instanceof Nr) {
|
3969
3969
|
const t = {
|
3970
3970
|
scale: i.getScale()
|
3971
3971
|
};
|
3972
|
-
return i.getFill() && (t.fill = Tn(i.getFill())), i.getPoints() && (t.points = i.getPoints()), i.getAngle() && (t.angle = i.getAngle()), i.getRotation() && (t.rotation = i.getRotation()), i.getRadius() != null && (t.radius = i.getRadius()), i.getRadius2() != null && (t.radius2 = i.getRadius2()), i.getStroke() && (t.stroke =
|
3972
|
+
return i.getFill() && (t.fill = Tn(i.getFill())), i.getPoints() && (t.points = i.getPoints()), i.getAngle() && (t.angle = i.getAngle()), i.getRotation() && (t.rotation = i.getRotation()), i.getRadius() != null && (t.radius = i.getRadius()), i.getRadius2() != null && (t.radius2 = i.getRadius2()), i.getStroke() && (t.stroke = fr(i.getStroke())), t;
|
3973
3973
|
}
|
3974
3974
|
throw new Error("no Subclass of ImageStyle found");
|
3975
3975
|
}
|
3976
3976
|
function g_(i) {
|
3977
3977
|
if (i.radius) {
|
3978
3978
|
const t = i.fill ? Cc(i.fill) : void 0, e = i.stroke ? Oo(i.stroke) : void 0;
|
3979
|
-
return i.points ? new
|
3979
|
+
return i.points ? new Nr({
|
3980
3980
|
fill: t,
|
3981
3981
|
stroke: e,
|
3982
3982
|
points: i.points,
|
@@ -4013,7 +4013,7 @@ function vw(i) {
|
|
4013
4013
|
function Sw(i) {
|
4014
4014
|
return {
|
4015
4015
|
fill: i.getFill() ? Tn(i.getFill()) : void 0,
|
4016
|
-
stroke: i.getStroke() ?
|
4016
|
+
stroke: i.getStroke() ? fr(i.getStroke()) : void 0,
|
4017
4017
|
image: i.getImage() ? bc(i.getImage()) : void 0,
|
4018
4018
|
text: i.getText() ? xc(i.getText()) : void 0
|
4019
4019
|
};
|
@@ -4087,7 +4087,7 @@ const Cw = (
|
|
4087
4087
|
"${attributes} !== undefined && ${attributes} !== null && ${attributes.olcs_extrudedHeight} !== undefined && ${attributes.olcs_extrudedHeight}!==null"
|
4088
4088
|
);
|
4089
4089
|
function Pc(i) {
|
4090
|
-
return i.fill && !(i.fill instanceof ht) && (i.fill = new ht(i.fill)), i.stroke && !(i.stroke instanceof He) && (i.stroke = new He(i.stroke)), i.points ? new
|
4090
|
+
return i.fill && !(i.fill instanceof ht) && (i.fill = new ht(i.fill)), i.stroke && !(i.stroke instanceof He) && (i.stroke = new He(i.stroke)), i.points ? new Nr(i) : new wi(i);
|
4091
4091
|
}
|
4092
4092
|
class y_ {
|
4093
4093
|
constructor() {
|
@@ -4160,7 +4160,7 @@ class he extends Wt {
|
|
4160
4160
|
}, r = (o) => {
|
4161
4161
|
s(o), o.width || (this.getLogger().error("missing width for stroke, setting to 1.5"), o.width = 1.5);
|
4162
4162
|
};
|
4163
|
-
e.fill && (s(e.fill), e.fill.pattern && (r(e.fill.pattern), e.fill.pattern.type && Object.values(
|
4163
|
+
e.fill && (s(e.fill), e.fill.pattern && (r(e.fill.pattern), e.fill.pattern.type && Object.values(Ks).includes(e.fill.pattern.type) || (this.getLogger().error(`Cannot find pattern ${e.fill.pattern.type}`), e.fill.pattern.type = Ks.NWSE))), e.stroke && r(e.stroke), e.image && (e.image.icon ? e.image = e.image.icon : e.image.circle && (e.image = e.image.circle), e.image.src || e.image.radius || (this.getLogger().error("missing source or label in style, setting default circle"), e.image = {
|
4164
4164
|
fill: {
|
4165
4165
|
color: "rgba(255,255,255,0.4)"
|
4166
4166
|
},
|
@@ -4275,7 +4275,7 @@ class he extends Wt {
|
|
4275
4275
|
r.splice(1, 1, ["true", `${d}`]), c -= d;
|
4276
4276
|
}
|
4277
4277
|
a.splice(1, 1, ["true", `${c}`]);
|
4278
|
-
} else if (this._image instanceof
|
4278
|
+
} else if (this._image instanceof Nr) {
|
4279
4279
|
const l = this._image.getImage(1).toDataURL();
|
4280
4280
|
o.splice(1, 1, ["true", `"${l}"`]);
|
4281
4281
|
} else
|
@@ -4353,7 +4353,7 @@ class he extends Wt {
|
|
4353
4353
|
const e = super.toJSON();
|
4354
4354
|
this._fillOptions ? (e.fill = {
|
4355
4355
|
color: ze(this._fillOptions.color).slice()
|
4356
|
-
}, this._fillOptions.pattern && (e.fill.pattern = { ...this._fillOptions.pattern })) : this.exclude.fill && (e.fill = !1), this._stroke ? e.stroke =
|
4356
|
+
}, this._fillOptions.pattern && (e.fill.pattern = { ...this._fillOptions.pattern })) : this.exclude.fill && (e.fill = !1), this._stroke ? e.stroke = fr(this._stroke) : this.exclude.stroke && (e.stroke = !1), this._text && (e.text = xc(this._text)), this._label && (e.label = this._label);
|
4357
4357
|
const s = this._image ? bc(this._image) : void 0;
|
4358
4358
|
return s ? e.image = s : this.exclude.image && (e.image = !1), e;
|
4359
4359
|
}
|
@@ -4392,7 +4392,7 @@ function v_(i) {
|
|
4392
4392
|
}
|
4393
4393
|
});
|
4394
4394
|
}
|
4395
|
-
const ri = Symbol("originalStyle"),
|
4395
|
+
const ri = Symbol("originalStyle"), be = Symbol("highlighted"), ut = Symbol("hidden"), dt = Symbol("globalHidden");
|
4396
4396
|
var ne;
|
4397
4397
|
(function(i) {
|
4398
4398
|
i[i.HIGHLIGHT = 1] = "HIGHLIGHT", i[i.UNHIGHLIGHT = 2] = "UNHIGHLIGHT", i[i.HIDE = 3] = "HIDE", i[i.SHOW = 4] = "SHOW";
|
@@ -4400,32 +4400,32 @@ var ne;
|
|
4400
4400
|
function jr(i) {
|
4401
4401
|
return i && i.content && !i.content.isDestroyed() && !i.content.batchTable.isDestroyed();
|
4402
4402
|
}
|
4403
|
-
function
|
4403
|
+
function gr(i) {
|
4404
4404
|
(i instanceof Ui || i instanceof qi) && jr(i) || i instanceof Wi ? i.show = !1 : i instanceof ae && i.changed();
|
4405
4405
|
}
|
4406
4406
|
function Nn(i) {
|
4407
4407
|
Reflect.has(i, ri) || ((i instanceof Ui || i instanceof qi) && jr(i) ? i[ri] = i.color.clone() : i instanceof ae && (i[ri] = i.getStyle()));
|
4408
4408
|
}
|
4409
4409
|
function Ic(i) {
|
4410
|
-
if (!(i[dt] || i[ut] || i[
|
4410
|
+
if (!(i[dt] || i[ut] || i[be])) {
|
4411
4411
|
const t = i[ri];
|
4412
4412
|
t && (i instanceof Ui || i instanceof qi) && jr(i) ? i.color = t : i instanceof ae && i.changed(), delete i[ri];
|
4413
4413
|
}
|
4414
4414
|
}
|
4415
|
-
function
|
4415
|
+
function mr(i) {
|
4416
4416
|
if (!(i[dt] || i[ut])) {
|
4417
|
-
const t = i[
|
4417
|
+
const t = i[be];
|
4418
4418
|
(i instanceof Ui || i instanceof qi) && jr(i) && t ? i.color = t.cesiumFillColor : i instanceof ae && i.changed();
|
4419
4419
|
}
|
4420
4420
|
}
|
4421
4421
|
function bo(i) {
|
4422
|
-
delete i[ri], Nn(i), i[ut] || i[dt] ?
|
4422
|
+
delete i[ri], Nn(i), i[ut] || i[dt] ? gr(i) : i[be] && mr(i);
|
4423
4423
|
}
|
4424
4424
|
function S_(i) {
|
4425
|
-
delete i[
|
4425
|
+
delete i[be], Ic(i);
|
4426
4426
|
}
|
4427
4427
|
function Lc(i, t) {
|
4428
|
-
delete i[t], i[ut] || i[dt] || (((i instanceof Ui || i instanceof qi) && jr(i) || i instanceof Wi) && (i.show = !0), i[
|
4428
|
+
delete i[t], i[ut] || i[dt] || (((i instanceof Ui || i instanceof qi) && jr(i) || i instanceof Wi) && (i.show = !0), i[be] ? mr(i) : Ic(i));
|
4429
4429
|
}
|
4430
4430
|
function w_(i, t) {
|
4431
4431
|
function e({ action: n, ids: a }) {
|
@@ -4460,8 +4460,8 @@ class Eo {
|
|
4460
4460
|
const e = [];
|
4461
4461
|
Object.entries(t).forEach(([s, r]) => {
|
4462
4462
|
let n;
|
4463
|
-
r instanceof q ? n = v_(r) : r instanceof ee ? (n = new he({}), r.getText() && r.getText().getText() && !Array.isArray(r.getText().getText()) && (n.label = String(r.getText().getText())), n.style = r) : n = r, this.highlightedObjects[s] ? this.highlightedObjects[s].style !== n && (this.highlightedObjects[s].style = n, this.highlightedObjects[s].features.forEach((a, o) => {
|
4464
|
-
o[
|
4463
|
+
r instanceof q ? n = v_(r) : r instanceof ee ? (n = new he({}), r.getText() && r.getText().getText() && !Array.isArray(r.getText().getText()) && (n.label = String(r.getText().getText())), n.style = r) : xs(r, Function) ? (n = new he({}), n.style = r) : n = r, this.highlightedObjects[s] ? this.highlightedObjects[s].style !== n && (this.highlightedObjects[s].style = n, this.highlightedObjects[s].features.forEach((a, o) => {
|
4464
|
+
o[be] = n, mr(o);
|
4465
4465
|
})) : (this.highlightedObjects[s] = {
|
4466
4466
|
style: n,
|
4467
4467
|
features: /* @__PURE__ */ new Set()
|
@@ -4496,7 +4496,7 @@ class Eo {
|
|
4496
4496
|
return this.highlightedObjects[t] && this.highlightedObjects[t].features.has(e);
|
4497
4497
|
}
|
4498
4498
|
addHighlightFeature(t, e) {
|
4499
|
-
this.highlightedObjects[t] && (Nn(e), this.highlightedObjects[t].features.add(e), e[
|
4499
|
+
this.highlightedObjects[t] && (Nn(e), this.highlightedObjects[t].features.add(e), e[be] = this.highlightedObjects[t].style, mr(e));
|
4500
4500
|
}
|
4501
4501
|
/**
|
4502
4502
|
* hides a number of objects
|
@@ -4536,7 +4536,7 @@ class Eo {
|
|
4536
4536
|
return this.hiddenObjects[t] && this.hiddenObjects[t].has(e);
|
4537
4537
|
}
|
4538
4538
|
addHiddenFeature(t, e) {
|
4539
|
-
this.hiddenObjects[t] && (Nn(e), this.hiddenObjects[t].add(e), e[ut] = !0,
|
4539
|
+
this.hiddenObjects[t] && (Nn(e), this.hiddenObjects[t].add(e), e[ut] = !0, gr(e));
|
4540
4540
|
}
|
4541
4541
|
/**
|
4542
4542
|
* Clears all caches and removes cesium events.
|
@@ -4565,16 +4565,14 @@ ae.prototype.getPropertyInherited = function(t) {
|
|
4565
4565
|
};
|
4566
4566
|
const M_ = ae.prototype.getStyleFunction;
|
4567
4567
|
ae.prototype.getStyleFunction = function() {
|
4568
|
-
return this[ut] || this[dt] ? () => [] : this[
|
4569
|
-
var
|
4570
|
-
return [
|
4571
|
-
(t = this[De]) == null ? void 0 : t.style
|
4572
|
-
];
|
4568
|
+
return this[ut] || this[dt] ? () => [] : this[be] ? (t, e) => {
|
4569
|
+
var s, r, n;
|
4570
|
+
return typeof ((s = this[be]) == null ? void 0 : s.style) == "function" ? (r = this[be]) == null ? void 0 : r.style(t, e) : [(n = this[be]) == null ? void 0 : n.style];
|
4573
4571
|
} : M_.bind(this)();
|
4574
4572
|
};
|
4575
4573
|
const C_ = ae.prototype.getStyle;
|
4576
4574
|
ae.prototype.getStyle = function() {
|
4577
|
-
return this[ut] || this[dt] ? new ee({}) : this[
|
4575
|
+
return this[ut] || this[dt] ? new ee({}) : this[be] ? this[be].style : C_.bind(this)();
|
4578
4576
|
};
|
4579
4577
|
Ft._materialCache.addMaterial("Wallpaper", {
|
4580
4578
|
fabric: {
|
@@ -4643,7 +4641,7 @@ class I_ {
|
|
4643
4641
|
_drawNearPlane: !0
|
4644
4642
|
}),
|
4645
4643
|
attributes: {
|
4646
|
-
color:
|
4644
|
+
color: ar.fromColor(q.fromAlpha(this._color, 0.1, E_))
|
4647
4645
|
},
|
4648
4646
|
id: this.id,
|
4649
4647
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
@@ -4667,7 +4665,7 @@ class I_ {
|
|
4667
4665
|
_drawNearPlane: !0
|
4668
4666
|
}),
|
4669
4667
|
attributes: {
|
4670
|
-
color:
|
4668
|
+
color: ar.fromColor(this._color)
|
4671
4669
|
},
|
4672
4670
|
id: this.id,
|
4673
4671
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
@@ -4937,7 +4935,7 @@ function A_(i, t) {
|
|
4937
4935
|
function F_(i, t, e) {
|
4938
4936
|
return i.zIndex !== (t == null ? void 0 : t.zIndex) ? null : e;
|
4939
4937
|
}
|
4940
|
-
function
|
4938
|
+
function Kt(i) {
|
4941
4939
|
[...i].forEach((t) => {
|
4942
4940
|
t.destroy && !t.isDestroyed && t.destroy();
|
4943
4941
|
}), i.destroy();
|
@@ -5062,13 +5060,13 @@ class Tt {
|
|
5062
5060
|
function xl() {
|
5063
5061
|
return Ce("OverrideCollection");
|
5064
5062
|
}
|
5065
|
-
const
|
5066
|
-
function
|
5063
|
+
const Ka = Symbol("OverrideCollection");
|
5064
|
+
function Jt(i, t, e, s, r, n) {
|
5067
5065
|
S(i, Tt);
|
5068
5066
|
const a = i;
|
5069
|
-
if (a[
|
5067
|
+
if (a[Ka])
|
5070
5068
|
throw new Error("Cannot transform collection, collection already is an OverrideCollection");
|
5071
|
-
a[
|
5069
|
+
a[Ka] = !0;
|
5072
5070
|
const o = s || ((u) => u), l = e || ((u) => u.toJSON ? u.toJSON() : structuredClone(u)), c = n || ((u, f, g) => g);
|
5073
5071
|
a.shadowMap = /* @__PURE__ */ new Map(), a.replace = function(f) {
|
5074
5072
|
const g = f[a.uniqueKey], m = a.getByKey(g);
|
@@ -5147,11 +5145,11 @@ function Kt(i, t, e, s, r, n) {
|
|
5147
5145
|
d(), a.shadowMap.clear(), a.replaced.destroy();
|
5148
5146
|
}, a;
|
5149
5147
|
}
|
5150
|
-
var
|
5148
|
+
var Ja;
|
5151
5149
|
(function(i) {
|
5152
5150
|
i[i.INACTIVE = 1] = "INACTIVE", i[i.ACTIVE = 2] = "ACTIVE", i[i.LOADING = 4] = "LOADING";
|
5153
|
-
})(
|
5154
|
-
const me =
|
5151
|
+
})(Ja || (Ja = {}));
|
5152
|
+
const me = Ja;
|
5155
5153
|
class Qa {
|
5156
5154
|
constructor() {
|
5157
5155
|
h(this, "hiddenObjects", {});
|
@@ -5192,7 +5190,7 @@ class Qa {
|
|
5192
5190
|
});
|
5193
5191
|
}
|
5194
5192
|
addFeature(t, e) {
|
5195
|
-
this._hiddenObjectFeatures[t] || (this._hiddenObjectFeatures[t] = /* @__PURE__ */ new Set()), Nn(e), this._hiddenObjectFeatures[t].add(e), e[dt] = !0,
|
5193
|
+
this._hiddenObjectFeatures[t] || (this._hiddenObjectFeatures[t] = /* @__PURE__ */ new Set()), Nn(e), this._hiddenObjectFeatures[t].add(e), e[dt] = !0, gr(e);
|
5196
5194
|
}
|
5197
5195
|
hasFeature(t, e) {
|
5198
5196
|
return this._hiddenObjectFeatures[t] ? this._hiddenObjectFeatures[t].has(e) : !1;
|
@@ -5529,8 +5527,8 @@ class Ye extends Gt {
|
|
5529
5527
|
}), this._initialized = !1, this._implementations.clear(), this.stateChanged.destroy(), this.zIndexChanged.destroy(), this.exclusiveGroupsChanged.destroy();
|
5530
5528
|
}
|
5531
5529
|
}
|
5532
|
-
|
5533
|
-
const li = Symbol("alreadyTransformedToMercator"), Xe = Symbol("alreadyTransformedToImage"), xt = Symbol("obliqueGeometry"), ea = Symbol("doNotTransform"), Dn = Symbol("OriginalFeature"),
|
5530
|
+
De.registerClass(Ye.className, Ye);
|
5531
|
+
const li = Symbol("alreadyTransformedToMercator"), Xe = Symbol("alreadyTransformedToImage"), xt = Symbol("obliqueGeometry"), ea = Symbol("doNotTransform"), Dn = Symbol("OriginalFeature"), Qs = Symbol("ActuallyIsCircle"), it = Symbol("createSync"), Ti = new q(), R_ = new oo({
|
5534
5532
|
font: "30px sans-serif",
|
5535
5533
|
fill: new ht({ color: fn }),
|
5536
5534
|
textAlign: "left",
|
@@ -5560,7 +5558,7 @@ class Be extends Wt {
|
|
5560
5558
|
}
|
5561
5559
|
toJSON() {
|
5562
5560
|
const e = super.toJSON();
|
5563
|
-
return e.declarativeStyle = Object.fromEntries(Object.entries(this.cesiumStyle.style).filter(([, s]) => s != null).map(([s, r]) =>
|
5561
|
+
return e.declarativeStyle = Object.fromEntries(Object.entries(this.cesiumStyle.style).filter(([, s]) => s != null).map(([s, r]) => xs(r, Boolean) ? [s, String(r)] : [s, r])), e;
|
5564
5562
|
}
|
5565
5563
|
clone(e) {
|
5566
5564
|
if (e)
|
@@ -5825,11 +5823,11 @@ var Mt;
|
|
5825
5823
|
function Di(i, t) {
|
5826
5824
|
return i.type === t;
|
5827
5825
|
}
|
5828
|
-
const ni = "2.1",
|
5829
|
-
clampToGround:
|
5830
|
-
absolute:
|
5831
|
-
relativeToGround:
|
5832
|
-
},
|
5826
|
+
const ni = "2.1", Bs = {
|
5827
|
+
clampToGround: Le.CLAMP_TO_GROUND,
|
5828
|
+
absolute: Le.NONE,
|
5829
|
+
relativeToGround: Le.RELATIVE_TO_GROUND
|
5830
|
+
}, Us = {
|
5833
5831
|
both: ds.BOTH,
|
5834
5832
|
cesium3DTile: ds.CESIUM_3D_TILE,
|
5835
5833
|
terrain: ds.TERRAIN
|
@@ -5838,7 +5836,7 @@ function pa(i, t) {
|
|
5838
5836
|
if (Array.isArray(i)) {
|
5839
5837
|
const e = i.map((s) => R(s)).filter((s) => s != null);
|
5840
5838
|
if (e.length === 4)
|
5841
|
-
return new
|
5839
|
+
return new Ys(e[0], e[1], e[2], e[3]);
|
5842
5840
|
}
|
5843
5841
|
return t;
|
5844
5842
|
}
|
@@ -5850,7 +5848,7 @@ function ya(i, t) {
|
|
5850
5848
|
}
|
5851
5849
|
return t;
|
5852
5850
|
}
|
5853
|
-
function
|
5851
|
+
function Ji(i, t) {
|
5854
5852
|
if (Array.isArray(i))
|
5855
5853
|
return i.map((e) => R(e)).filter((e) => e != null && e > 0);
|
5856
5854
|
{
|
@@ -5860,19 +5858,19 @@ function Ki(i, t) {
|
|
5860
5858
|
}
|
5861
5859
|
return t ? Array.isArray(t) ? t : [t] : [];
|
5862
5860
|
}
|
5863
|
-
function
|
5864
|
-
for (const [t, e] of Object.entries(
|
5861
|
+
function Rs(i) {
|
5862
|
+
for (const [t, e] of Object.entries(Bs))
|
5865
5863
|
if (e === i)
|
5866
5864
|
return t;
|
5867
5865
|
throw new Error(`Unknown altitude mode ${i}`);
|
5868
5866
|
}
|
5869
|
-
function
|
5870
|
-
for (const [t, e] of Object.entries(
|
5867
|
+
function Kr(i) {
|
5868
|
+
for (const [t, e] of Object.entries(Us))
|
5871
5869
|
if (e === i)
|
5872
5870
|
return t;
|
5873
5871
|
}
|
5874
|
-
function
|
5875
|
-
return i ?
|
5872
|
+
function Jr(i) {
|
5873
|
+
return i ? Ys.pack(i, []) : void 0;
|
5876
5874
|
}
|
5877
5875
|
function Qr(i) {
|
5878
5876
|
return i ? v.pack(i, []) : void 0;
|
@@ -5912,7 +5910,7 @@ class It {
|
|
5912
5910
|
*/
|
5913
5911
|
h(this, "propertyChanged");
|
5914
5912
|
const e = It.getDefaultOptions();
|
5915
|
-
this._altitudeMode = gi(t.altitudeMode,
|
5913
|
+
this._altitudeMode = gi(t.altitudeMode, Bs, Le.CLAMP_TO_GROUND), this._allowPicking = ue(t.allowPicking, e.allowPicking), this._classificationType = gi(t.classificationType, Us), this._scaleByDistance = pa(t.scaleByDistance, void 0), this._eyeOffset = ya(t.eyeOffset, void 0), this._heightAboveGround = R(t.heightAboveGround, e.heightAboveGround), this._skirt = R(t.skirt, e.skirt), this._groundLevel = R(t.groundLevel, e.groundLevel), this._extrudedHeight = R(t.extrudedHeight, e.extrudedHeight), this._storeysAboveGround = le(t.storeysAboveGround, e.storeysAboveGround), this._storeysBelowGround = le(t.storeysBelowGround, e.storeysBelowGround), this._storeyHeightsAboveGround = Ji(t.storeyHeightsAboveGround, e.storeyHeightsAboveGround), this._storeyHeightsBelowGround = Ji(t.storeyHeightsBelowGround, e.storeyHeightsBelowGround), this._modelUrl = t.modelUrl ?? e.modelUrl, this._modelScaleX = R(t.modelScaleX, e.modelScaleX), this._modelScaleY = R(t.modelScaleY, e.modelScaleY), this._modelScaleZ = R(t.modelScaleZ, e.modelScaleZ), this._modelHeading = R(t.modelHeading, e.modelHeading), this._modelPitch = R(t.modelPitch, e.modelPitch), this._modelRoll = R(t.modelRoll, e.modelRoll), this._baseUrl = t.baseUrl ?? e.baseUrl, this._modelOptions = t.modelOptions || e.modelOptions, this._modelAutoScale = ue(t.modelAutoScale, e.modelAutoScale), this._primitiveOptions = t.primitiveOptions || e.primitiveOptions, this.propertyChanged = new P();
|
5916
5914
|
}
|
5917
5915
|
/**
|
5918
5916
|
* Returns the default options for VectorProperties
|
@@ -5949,10 +5947,10 @@ class It {
|
|
5949
5947
|
return this._altitudeMode;
|
5950
5948
|
}
|
5951
5949
|
set altitudeMode(t) {
|
5952
|
-
t !== this._altitudeMode && (S(t, Cn(
|
5950
|
+
t !== this._altitudeMode && (S(t, Cn(Le)), this._altitudeMode = t, this.propertyChanged.raiseEvent(["altitudeMode"]));
|
5953
5951
|
}
|
5954
5952
|
getAltitudeMode(t) {
|
5955
|
-
return gi(t.get("olcs_altitudeMode"),
|
5953
|
+
return gi(t.get("olcs_altitudeMode"), Bs, this._altitudeMode);
|
5956
5954
|
}
|
5957
5955
|
get allowPicking() {
|
5958
5956
|
return this._allowPicking;
|
@@ -5971,13 +5969,13 @@ class It {
|
|
5971
5969
|
t !== this._classificationType && (S(t, Q(Cn(ds))), this._classificationType = t, this.propertyChanged.raiseEvent(["classificationType"]));
|
5972
5970
|
}
|
5973
5971
|
getClassificationType(t) {
|
5974
|
-
return gi(t.get("olcs_classificationType"),
|
5972
|
+
return gi(t.get("olcs_classificationType"), Us, this.classificationType);
|
5975
5973
|
}
|
5976
5974
|
get scaleByDistance() {
|
5977
5975
|
return this._scaleByDistance;
|
5978
5976
|
}
|
5979
5977
|
set scaleByDistance(t) {
|
5980
|
-
|
5978
|
+
Ys.equals(t, this._scaleByDistance) || (S(t, Q(Ys)), this._scaleByDistance = t, this.propertyChanged.raiseEvent(["scaleByDistance"]));
|
5981
5979
|
}
|
5982
5980
|
getScaleByDistance(t) {
|
5983
5981
|
return pa(t.get("olcs_scaleByDistance"), this.scaleByDistance);
|
@@ -6058,7 +6056,7 @@ class It {
|
|
6058
6056
|
nt(t, this._storeyHeightsAboveGround) || (S(t, [Number]), this._storeyHeightsAboveGround = t, this.propertyChanged.raiseEvent(["storeyHeightsAboveGround"]));
|
6059
6057
|
}
|
6060
6058
|
getStoreyHeightsAboveGround(t) {
|
6061
|
-
return
|
6059
|
+
return Ji(t.get("olcs_storeyHeightsAboveGround"), this.storeyHeightsAboveGround);
|
6062
6060
|
}
|
6063
6061
|
get storeyHeightsBelowGround() {
|
6064
6062
|
return this._storeyHeightsBelowGround.slice();
|
@@ -6067,7 +6065,7 @@ class It {
|
|
6067
6065
|
nt(t, this._storeyHeightsBelowGround) || (S(t, [Number]), this._storeyHeightsBelowGround = t, this.propertyChanged.raiseEvent(["storeyHeightsBelowGround"]));
|
6068
6066
|
}
|
6069
6067
|
getStoreyHeightsBelowGround(t) {
|
6070
|
-
return
|
6068
|
+
return Ji(t.get("olcs_storeyHeightsBelowGround"), this.storeyHeightsBelowGround);
|
6071
6069
|
}
|
6072
6070
|
get modelUrl() {
|
6073
6071
|
return this._modelUrl;
|
@@ -6223,7 +6221,7 @@ class It {
|
|
6223
6221
|
*/
|
6224
6222
|
setVcsMeta(t) {
|
6225
6223
|
const e = It.getDefaultOptions();
|
6226
|
-
t.altitudeMode || (t.altitudeMode =
|
6224
|
+
t.altitudeMode || (t.altitudeMode = Rs(this.altitudeMode)), Object.assign(e, t), this.setValues(e);
|
6227
6225
|
}
|
6228
6226
|
/**
|
6229
6227
|
* sets given values only raises propertyChanged event if a value has been set;
|
@@ -6232,7 +6230,7 @@ class It {
|
|
6232
6230
|
setValues(t) {
|
6233
6231
|
const e = It.getDefaultOptions(), s = [];
|
6234
6232
|
if ("altitudeMode" in t) {
|
6235
|
-
const r = gi(e.altitudeMode,
|
6233
|
+
const r = gi(e.altitudeMode, Bs, void 0), n = gi(t.altitudeMode, Bs, r);
|
6236
6234
|
this._altitudeMode !== n && (this._altitudeMode = n, s.push("altitudeMode"));
|
6237
6235
|
}
|
6238
6236
|
if ("allowPicking" in t) {
|
@@ -6240,12 +6238,12 @@ class It {
|
|
6240
6238
|
this._allowPicking !== r && (this._allowPicking = r, s.push("allowPicking"));
|
6241
6239
|
}
|
6242
6240
|
if ("classificationType" in t) {
|
6243
|
-
const r = gi(e.classificationType,
|
6241
|
+
const r = gi(e.classificationType, Us, void 0), n = gi(t.classificationType, Us, r);
|
6244
6242
|
this._classificationType !== n && (this._classificationType = n, s.push("classificationType"));
|
6245
6243
|
}
|
6246
6244
|
if ("scaleByDistance" in t) {
|
6247
6245
|
const r = pa(t.scaleByDistance, void 0);
|
6248
|
-
|
6246
|
+
Ys.equals(r, this._scaleByDistance) || (this._scaleByDistance = r, s.push("scaleByDistance"));
|
6249
6247
|
}
|
6250
6248
|
if ("eyeOffset" in t) {
|
6251
6249
|
const r = ya(t.eyeOffset, void 0);
|
@@ -6276,11 +6274,11 @@ class It {
|
|
6276
6274
|
r !== this._storeysBelowGround && (this._storeysBelowGround = r, s.push("storeysBelowGround"));
|
6277
6275
|
}
|
6278
6276
|
if ("storeyHeightsAboveGround" in t) {
|
6279
|
-
const r =
|
6277
|
+
const r = Ji(t.storeyHeightsAboveGround, e.storeyHeightsAboveGround);
|
6280
6278
|
nt(r, this._storeyHeightsAboveGround) || (this._storeyHeightsAboveGround = r, s.push("storeyHeightsAboveGround"));
|
6281
6279
|
}
|
6282
6280
|
if ("storeyHeightsBelowGround" in t) {
|
6283
|
-
const r =
|
6281
|
+
const r = Ji(t.storeyHeightsBelowGround, e.storeyHeightsBelowGround);
|
6284
6282
|
nt(r, this._storeyHeightsBelowGround) || (this._storeyHeightsBelowGround = r, s.push("storeyHeightsBelowGround"));
|
6285
6283
|
}
|
6286
6284
|
if ("modelUrl" in t && t.modelUrl !== this._modelUrl && (this._modelUrl = t.modelUrl ?? "", s.push("modelUrl")), "modelScaleX" in t) {
|
@@ -6311,10 +6309,10 @@ class It {
|
|
6311
6309
|
}
|
6312
6310
|
getValues() {
|
6313
6311
|
return {
|
6314
|
-
altitudeMode:
|
6312
|
+
altitudeMode: Rs(this.altitudeMode),
|
6315
6313
|
allowPicking: this.allowPicking,
|
6316
|
-
classificationType:
|
6317
|
-
scaleByDistance:
|
6314
|
+
classificationType: Kr(this.classificationType),
|
6315
|
+
scaleByDistance: Jr(this.scaleByDistance),
|
6318
6316
|
eyeOffset: Qr(this.eyeOffset),
|
6319
6317
|
heightAboveGround: this.heightAboveGround,
|
6320
6318
|
skirt: this.skirt,
|
@@ -6347,12 +6345,12 @@ class It {
|
|
6347
6345
|
return A.every((kt, $, Z) => $ === 0 ? !0 : nt(kt, Z[0]));
|
6348
6346
|
}
|
6349
6347
|
const r = t.map((A) => this.getAltitudeMode(A));
|
6350
|
-
s(r) && (e.altitudeMode =
|
6348
|
+
s(r) && (e.altitudeMode = Rs(r[0]));
|
6351
6349
|
const n = t.map((A) => this.getAllowPicking(A));
|
6352
6350
|
s(n) && (e.allowPicking = n[0]);
|
6353
6351
|
const a = t.map((A) => this.getClassificationType(A));
|
6354
|
-
s(a) && (e.classificationType =
|
6355
|
-
const o = t.map((A) =>
|
6352
|
+
s(a) && (e.classificationType = Kr(a[0]));
|
6353
|
+
const o = t.map((A) => Jr(this.getScaleByDistance(A)));
|
6356
6354
|
s(o) && (e.scaleByDistance = o[0]);
|
6357
6355
|
const l = t.map((A) => Qr(this.getEyeOffset(A)));
|
6358
6356
|
s(l) && (e.eyeOffset = l[0]);
|
@@ -6419,7 +6417,7 @@ class It {
|
|
6419
6417
|
// XXX ugly design, this does NOT return a VcsMeta (missing version) but is missued to get config objects too often to change
|
6420
6418
|
getVcsMeta(t) {
|
6421
6419
|
const e = t || It.getDefaultOptions(), s = {};
|
6422
|
-
return
|
6420
|
+
return Rs(this.altitudeMode) !== e.altitudeMode && (s.altitudeMode = Rs(this.altitudeMode)), this.allowPicking !== e.allowPicking && (s.allowPicking = this.allowPicking), Kr(this.classificationType) !== e.classificationType && (s.classificationType = Kr(this.classificationType)), nt(Jr(this.scaleByDistance), e.scaleByDistance) || (s.scaleByDistance = Jr(this.scaleByDistance)), nt(Qr(this.eyeOffset), e.eyeOffset) || (s.eyeOffset = Qr(this.eyeOffset)), this.heightAboveGround !== e.heightAboveGround && (s.heightAboveGround = this.heightAboveGround), this.skirt !== e.skirt && (s.skirt = this.skirt), this.groundLevel !== e.groundLevel && (s.groundLevel = this.groundLevel), this.extrudedHeight !== e.extrudedHeight && (s.extrudedHeight = this.extrudedHeight), this.storeysAboveGround !== e.storeysAboveGround && (s.storeysAboveGround = this.storeysAboveGround), this.storeysBelowGround !== e.storeysBelowGround && (s.storeysBelowGround = this.storeysBelowGround), nt(this.storeyHeightsAboveGround, e.storeyHeightsAboveGround) || (s.storeyHeightsAboveGround = this.storeyHeightsAboveGround), nt(this.storeyHeightsBelowGround, e.storeyHeightsBelowGround) || (s.storeyHeightsBelowGround = this.storeyHeightsBelowGround), this.modelUrl !== e.modelUrl && (s.modelUrl = this.modelUrl), this.modelScaleX !== e.modelScaleX && (s.modelScaleX = this.modelScaleX), this.modelScaleY !== e.modelScaleY && (s.modelScaleY = this.modelScaleY), this.modelScaleZ !== e.modelScaleZ && (s.modelScaleZ = this.modelScaleZ), this.modelHeading !== e.modelHeading && (s.modelHeading = this.modelHeading), this.modelPitch !== e.modelPitch && (s.modelPitch = this.modelPitch), this.modelRoll !== e.modelRoll && (s.modelRoll = this.modelRoll), this.baseUrl !== e.baseUrl && (s.baseUrl = this.baseUrl), s;
|
6423
6421
|
}
|
6424
6422
|
/**
|
6425
6423
|
* destroys the vectorProperties and removes all listeners
|
@@ -6444,7 +6442,7 @@ function z_(i, t = { version: ni }) {
|
|
6444
6442
|
return i instanceof he ? t.style = Nc(i.toJSON(), t.embeddedIcons) : i instanceof Be && (t.style = i.toJSON()), t;
|
6445
6443
|
}
|
6446
6444
|
function An(i, t) {
|
6447
|
-
if (
|
6445
|
+
if (xs(i, Ve(Wt, { type: String }))) {
|
6448
6446
|
if (i instanceof Wt)
|
6449
6447
|
return i;
|
6450
6448
|
{
|
@@ -6555,7 +6553,7 @@ class hi extends Ye {
|
|
6555
6553
|
this.featureVisibility && this.featureVisibility.destroy(), this.styleChanged.destroy(), this.splitDirectionChanged.destroy(), super.destroy();
|
6556
6554
|
}
|
6557
6555
|
}
|
6558
|
-
|
6556
|
+
De.registerClass(hi.className, hi);
|
6559
6557
|
class Ei extends Tt {
|
6560
6558
|
/**
|
6561
6559
|
* @param [uniqueKey='name'] - a key to maintain uniquely within the collection. passing false disables uniqueness.
|
@@ -7163,7 +7161,7 @@ class Pi extends Gt {
|
|
7163
7161
|
}), this.stateChanged && this.stateChanged.destroy(), this.destroyLayerCollection && this.layerCollection && this.layerCollection.destroy(), this.pointerInteractionEvent && this.pointerInteractionEvent.destroy(), this._layerCollection = new ai(), this._layerCollection.destroy(), this._postRender.destroy();
|
7164
7162
|
}
|
7165
7163
|
}
|
7166
|
-
|
7164
|
+
Es.registerClass(Pi.className, Pi);
|
7167
7165
|
var j;
|
7168
7166
|
(function(i) {
|
7169
7167
|
i[i.NONE = 2] = "NONE", i[i.ALT = 4] = "ALT", i[i.CTRL = 8] = "CTRL", i[i.SHIFT = 16] = "SHIFT", i[i.ALL = 30] = "ALL";
|
@@ -7172,10 +7170,10 @@ var E;
|
|
7172
7170
|
(function(i) {
|
7173
7171
|
i[i.NONE = 0] = "NONE", i[i.CLICK = 32] = "CLICK", i[i.DBLCLICK = 64] = "DBLCLICK", i[i.DRAG = 128] = "DRAG", i[i.DRAGSTART = 256] = "DRAGSTART", i[i.DRAGEND = 512] = "DRAGEND", i[i.MOVE = 1024] = "MOVE", i[i.DRAGEVENTS = 896] = "DRAGEVENTS", i[i.CLICKMOVE = 1056] = "CLICKMOVE", i[i.ALL = 2016] = "ALL";
|
7174
7172
|
})(E = E || (E = {}));
|
7175
|
-
var
|
7173
|
+
var Pe;
|
7176
7174
|
(function(i) {
|
7177
7175
|
i[i.LEFT = 2048] = "LEFT", i[i.RIGHT = 4096] = "RIGHT", i[i.MIDDLE = 8192] = "MIDDLE", i[i.ALL = 14336] = "ALL";
|
7178
|
-
})(
|
7176
|
+
})(Pe = Pe || (Pe = {}));
|
7179
7177
|
var We;
|
7180
7178
|
(function(i) {
|
7181
7179
|
i[i.DOWN = 1] = "DOWN", i[i.UP = 2] = "UP", i[i.MOVE = 3] = "MOVE";
|
@@ -7190,7 +7188,7 @@ function bl(i, t, e) {
|
|
7190
7188
|
}
|
7191
7189
|
}
|
7192
7190
|
}
|
7193
|
-
class
|
7191
|
+
class pr extends Pi {
|
7194
7192
|
constructor() {
|
7195
7193
|
super(...arguments);
|
7196
7194
|
h(this, "_olMap", null);
|
@@ -7210,10 +7208,10 @@ class mr extends Pi {
|
|
7210
7208
|
}
|
7211
7209
|
_raisePointerInteraction(e, s) {
|
7212
7210
|
const r = {
|
7213
|
-
"-1":
|
7214
|
-
0:
|
7215
|
-
1:
|
7216
|
-
2:
|
7211
|
+
"-1": Pe.ALL,
|
7212
|
+
0: Pe.LEFT,
|
7213
|
+
1: Pe.MIDDLE,
|
7214
|
+
2: Pe.RIGHT
|
7217
7215
|
};
|
7218
7216
|
let n = e.originalEvent.shiftKey ? j.SHIFT : j.NONE;
|
7219
7217
|
n = e.originalEvent.ctrlKey ? j.CTRL : n, n = e.originalEvent.altKey ? j.ALT : n, n !== j.NONE && e.preventDefault(), e.originalEvent.preventDefault();
|
@@ -7301,8 +7299,8 @@ class mr extends Pi {
|
|
7301
7299
|
this._olMap && this._olMap.setTarget(), re(this._olListeners), super.destroy();
|
7302
7300
|
}
|
7303
7301
|
}
|
7304
|
-
|
7305
|
-
class Oe extends
|
7302
|
+
Es.registerClass(pr.className, pr);
|
7303
|
+
class Oe extends pr {
|
7306
7304
|
/**
|
7307
7305
|
* @param options
|
7308
7306
|
*/
|
@@ -7383,14 +7381,14 @@ class Oe extends mr {
|
|
7383
7381
|
n(a, void 0, void 0),
|
7384
7382
|
n(o, void 0, void 0)
|
7385
7383
|
];
|
7386
|
-
return Ch(
|
7384
|
+
return Ch(tr(l), e[0], e[1]);
|
7387
7385
|
}
|
7388
7386
|
toJSON() {
|
7389
7387
|
const e = super.toJSON(), s = Oe.getDefaultOptions();
|
7390
7388
|
return this.fixedNorthOrientation !== s.fixedNorthOrientation && (e.fixedNorthOrientation = this.fixedNorthOrientation), e;
|
7391
7389
|
}
|
7392
7390
|
}
|
7393
|
-
|
7391
|
+
Es.registerClass(Oe.className, Oe);
|
7394
7392
|
class Zi extends Gt {
|
7395
7393
|
constructor(e, s) {
|
7396
7394
|
super(s);
|
@@ -7490,7 +7488,7 @@ class ta extends Zi {
|
|
7490
7488
|
this.olLayer && this.map.removeOLLayer(this.olLayer), this.olLayer = null, this._splitDirectionRenderListeners && (re(this._splitDirectionRenderListeners), this._splitDirectionRenderListeners = null), super.destroy();
|
7491
7489
|
}
|
7492
7490
|
}
|
7493
|
-
const is = Symbol("FVlastUpdated"),
|
7491
|
+
const is = Symbol("FVlastUpdated"), qs = Symbol("GlobalHiderLastUpdated");
|
7494
7492
|
function V_(i, t) {
|
7495
7493
|
Object.keys(i.highlightedObjects).forEach((e) => {
|
7496
7494
|
const s = t.getFeatureById(e);
|
@@ -7504,7 +7502,7 @@ function $_(i, t) {
|
|
7504
7502
|
Object.keys(i.hiddenObjects).forEach((e) => {
|
7505
7503
|
const s = t.getFeatureById(e);
|
7506
7504
|
s && !i.hasFeature(e, s) && i.addFeature(e, s);
|
7507
|
-
}), t[
|
7505
|
+
}), t[qs] = Date.now();
|
7508
7506
|
}
|
7509
7507
|
function Po(i, t, e) {
|
7510
7508
|
const s = t.on("addfeature", (r) => {
|
@@ -7513,9 +7511,9 @@ function Po(i, t, e) {
|
|
7513
7511
|
const { feature: n } = r, a = n.getId();
|
7514
7512
|
i.highlightedObjects[a] && i.addHighlightFeature(a, n), i.hiddenObjects[a] && i.addHiddenFeature(a, n), e.hiddenObjects[a] && e.addFeature(a, n);
|
7515
7513
|
const o = Date.now();
|
7516
|
-
t[is] = o, t[
|
7514
|
+
t[is] = o, t[qs] = o;
|
7517
7515
|
});
|
7518
|
-
return (!t[is] || t[is] < i.lastUpdated) && V_(i, t), (!t[
|
7516
|
+
return (!t[is] || t[is] < i.lastUpdated) && V_(i, t), (!t[qs] || t[qs] < i.lastUpdated) && $_(e, t), [
|
7519
7517
|
i.changed.addEventListener(({ action: r, ids: n }) => {
|
7520
7518
|
r === ne.HIGHLIGHT ? (n.forEach((a) => {
|
7521
7519
|
const o = t.getFeatureById(a);
|
@@ -7529,7 +7527,7 @@ function Po(i, t, e) {
|
|
7529
7527
|
r === ne.HIDE && (n.forEach((a) => {
|
7530
7528
|
const o = t.getFeatureById(a);
|
7531
7529
|
o && e.addFeature(a, o);
|
7532
|
-
}), t[
|
7530
|
+
}), t[qs] = Date.now());
|
7533
7531
|
}),
|
7534
7532
|
() => {
|
7535
7533
|
re(s);
|
@@ -7608,7 +7606,7 @@ function U_(i, t, e, s) {
|
|
7608
7606
|
const r = t.map((o) => new ct({
|
7609
7607
|
geometry: o,
|
7610
7608
|
attributes: {
|
7611
|
-
color:
|
7609
|
+
color: ar.fromColor(e)
|
7612
7610
|
}
|
7613
7611
|
})), n = new ys({
|
7614
7612
|
flat: !1,
|
@@ -7623,14 +7621,14 @@ function U_(i, t, e, s) {
|
|
7623
7621
|
...i,
|
7624
7622
|
geometryInstances: r,
|
7625
7623
|
appearance: n,
|
7626
|
-
shadows:
|
7624
|
+
shadows: Dr.ENABLED,
|
7627
7625
|
classificationType: s
|
7628
7626
|
};
|
7629
7627
|
return new Rh(a);
|
7630
7628
|
}
|
7631
7629
|
function q_(i, t, e, s, r, n, a) {
|
7632
7630
|
const o = t.getClassificationType(s), l = {
|
7633
|
-
shadows:
|
7631
|
+
shadows: Dr.ENABLED,
|
7634
7632
|
allowPicking: e,
|
7635
7633
|
asynchronous: !s[it]
|
7636
7634
|
};
|
@@ -7659,7 +7657,7 @@ function W_(i, t, e, s, r, n) {
|
|
7659
7657
|
const a = si(n.getStroke().getColor(), [0, 0, 0, 1]), o = r.map((u) => new ct({
|
7660
7658
|
geometry: u,
|
7661
7659
|
attributes: {
|
7662
|
-
color:
|
7660
|
+
color: ar.fromColor(a)
|
7663
7661
|
}
|
7664
7662
|
})), l = new ys({
|
7665
7663
|
flat: !0,
|
@@ -7673,7 +7671,7 @@ function W_(i, t, e, s, r, n) {
|
|
7673
7671
|
}), c = {
|
7674
7672
|
geometryInstances: o,
|
7675
7673
|
appearance: l,
|
7676
|
-
shadows:
|
7674
|
+
shadows: Dr.ENABLED,
|
7677
7675
|
allowPicking: e,
|
7678
7676
|
asynchronous: !s[it]
|
7679
7677
|
};
|
@@ -7703,7 +7701,7 @@ function Ac(i, t, e, s, r, n, a) {
|
|
7703
7701
|
}), f = {
|
7704
7702
|
geometryInstances: l,
|
7705
7703
|
appearance: u,
|
7706
|
-
shadows:
|
7704
|
+
shadows: Dr.ENABLED,
|
7707
7705
|
allowPicking: e,
|
7708
7706
|
asynchronous: !s[it]
|
7709
7707
|
};
|
@@ -7755,7 +7753,7 @@ function Pl(i, t) {
|
|
7755
7753
|
t.splice(0);
|
7756
7754
|
}
|
7757
7755
|
function Y_(i, t, e) {
|
7758
|
-
return t ===
|
7756
|
+
return t === Le.RELATIVE_TO_GROUND ? e.getHeightAboveGround(i) : 0;
|
7759
7757
|
}
|
7760
7758
|
function Fc(i, t, e) {
|
7761
7759
|
const s = t.getExtrudedHeight(i);
|
@@ -7801,7 +7799,7 @@ function ia(i, t, e, s, r, n, a) {
|
|
7801
7799
|
const x = d.groundLevel - d.storeyHeightsBelowGround.reduce((T, N) => T + N, 0), M = x - d.skirt, C = d.storeyHeightsBelowGround.length ? !1 : d.perPositionHeight;
|
7802
7800
|
u && o.push(...n.createSolidGeometries(_, x, C, M)), f && l.push(...n.createOutlineGeometries(_, x, C, M));
|
7803
7801
|
}
|
7804
|
-
d.extruded || (d.heightReference ===
|
7802
|
+
d.extruded || (d.heightReference === Le.CLAMP_TO_GROUND && (g = !0), u && o.push(...n.createFillGeometries(_, d.groundLevel, d.perPositionHeight)), f && (d.heightReference === Le.CLAMP_TO_GROUND ? c.push(...n.createGroundLineGeometries(_, t)) : c.push(...n.createLineGeometries(_, t))));
|
7805
7803
|
});
|
7806
7804
|
const m = s.getAllowPicking(i), p = [];
|
7807
7805
|
if (c.length) {
|
@@ -7832,12 +7830,12 @@ function Io(i) {
|
|
7832
7830
|
}
|
7833
7831
|
return [];
|
7834
7832
|
}
|
7835
|
-
function
|
7833
|
+
function Ps(i, t) {
|
7836
7834
|
if (!t && i instanceof ju)
|
7837
7835
|
return Io(i);
|
7838
7836
|
const e = t;
|
7839
7837
|
let s = null;
|
7840
|
-
return i instanceof Nt ? s = [e] : i instanceof Ut ? s = e : i instanceof Dt ? s = e.reduce((r, n) => r.concat(n)) : i instanceof Oh ? s = e : i instanceof bh ? s = e.reduce((r, n) => r.concat(n)) : i instanceof
|
7838
|
+
return i instanceof Nt ? s = [e] : i instanceof Ut ? s = e : i instanceof Dt ? s = e.reduce((r, n) => r.concat(n)) : i instanceof Oh ? s = e : i instanceof bh ? s = e.reduce((r, n) => r.concat(n)) : i instanceof ir ? s = e.reduce((r, n) => r.concat(n)).reduce((r, n) => r.concat(n)) : i instanceof Ot ? s = e : i instanceof Tr && (s = i.getGeometries().map((r, n) => Ps(r, e == null ? void 0 : e[n])).reduce((r, n) => r.concat(n))), s;
|
7841
7839
|
}
|
7842
7840
|
function Rc(i, t) {
|
7843
7841
|
const e = on(G.mercatorToWgs84(i), t, Math.PI / 2), s = G.wgs84ToMercator(e), r = i[0] - s[0], n = i[1] - s[1], a = r * r, o = n * n, l = Math.sqrt(a + o);
|
@@ -7860,7 +7858,7 @@ function kc(i) {
|
|
7860
7858
|
t.forEach((e) => {
|
7861
7859
|
Ll(e);
|
7862
7860
|
}), i.setCoordinates(t);
|
7863
|
-
} else if (i instanceof
|
7861
|
+
} else if (i instanceof ir) {
|
7864
7862
|
const t = i.getCoordinates();
|
7865
7863
|
t.forEach((e) => {
|
7866
7864
|
e.forEach((s) => {
|
@@ -7878,7 +7876,7 @@ function Z_(i) {
|
|
7878
7876
|
}
|
7879
7877
|
return t /= 2, t;
|
7880
7878
|
}
|
7881
|
-
function
|
7879
|
+
function K_(i) {
|
7882
7880
|
return Z_(i) < 0 && i.reverse(), i;
|
7883
7881
|
}
|
7884
7882
|
function zc(i, t, e, s) {
|
@@ -7889,7 +7887,7 @@ function zc(i, t, e, s) {
|
|
7889
7887
|
};
|
7890
7888
|
return e || (r.height = t), [new Cd(r)];
|
7891
7889
|
}
|
7892
|
-
function
|
7890
|
+
function J_(i, t, e, s) {
|
7893
7891
|
return [
|
7894
7892
|
new xd({
|
7895
7893
|
...i,
|
@@ -7947,7 +7945,7 @@ function r0() {
|
|
7947
7945
|
getCoordinates: s0,
|
7948
7946
|
getGeometryOptions: i0,
|
7949
7947
|
createSolidGeometries: zc,
|
7950
|
-
createOutlineGeometries:
|
7948
|
+
createOutlineGeometries: J_,
|
7951
7949
|
createFillGeometries: Q_,
|
7952
7950
|
createGroundLineGeometries: e0,
|
7953
7951
|
createLineGeometries: t0
|
@@ -8050,10 +8048,10 @@ function d0(i, t, e, s, r, n) {
|
|
8050
8048
|
const a = u0(), o = e.filter((l) => Bc(l));
|
8051
8049
|
ia(i, t, o, s, r, a, n);
|
8052
8050
|
}
|
8053
|
-
var
|
8051
|
+
var Je;
|
8054
8052
|
(function(i) {
|
8055
8053
|
i.NONE = "none", i.BOTH = "both", i.START = "start", i.END = "end";
|
8056
|
-
})(
|
8054
|
+
})(Je = Je || (Je = {}));
|
8057
8055
|
function f0(i, t = 1.5) {
|
8058
8056
|
var n;
|
8059
8057
|
let e = 13, s = 13, r = [
|
@@ -8113,7 +8111,7 @@ class sa extends ee {
|
|
8113
8111
|
super(r);
|
8114
8112
|
h(this, "primitiveOptions");
|
8115
8113
|
h(this, "end");
|
8116
|
-
this.primitiveOptions = n, this.end = Qn(e.end,
|
8114
|
+
this.primitiveOptions = n, this.end = Qn(e.end, Je, Je.END), this.setRenderer(this._render.bind(this));
|
8117
8115
|
}
|
8118
8116
|
/**
|
8119
8117
|
* Same as getStroke().getWidth() / getStroke().setWidth()
|
@@ -8143,7 +8141,7 @@ class sa extends ee {
|
|
8143
8141
|
_render(e, s) {
|
8144
8142
|
if (s.geometry.getType() === "LineString" && e.length > 1 && this.width) {
|
8145
8143
|
const r = s.context;
|
8146
|
-
this.end !==
|
8144
|
+
this.end !== Je.NONE && ((this.end === Je.START || this.end === Je.BOTH) && this._drawArrow(r, e[0], Xa(e[1], e[0]), s.pixelRatio), (this.end === Je.END || this.end === Je.BOTH) && this._drawArrow(r, e.at(-1), Xa(e.at(-2), e.at(-1)), s.pixelRatio)), r.save(), r.lineJoin = "round", r.lineWidth = this.width, r.strokeStyle = at(this.color), r.beginPath(), r.moveTo(e[0][0], e[0][1]);
|
8147
8145
|
for (let n = 0; n < e.length; n++)
|
8148
8146
|
r.lineTo(e[n][0], e[n][1]);
|
8149
8147
|
r.stroke(), r.restore();
|
@@ -8224,7 +8222,7 @@ async function Nl(i, t, e, s, r) {
|
|
8224
8222
|
allowPicking: l,
|
8225
8223
|
...g
|
8226
8224
|
});
|
8227
|
-
(t[u][2] == null || m ===
|
8225
|
+
(t[u][2] == null || m === Le.CLAMP_TO_GROUND) && await qc(p, d, r);
|
8228
8226
|
const y = () => {
|
8229
8227
|
p.activeAnimations.addAll({
|
8230
8228
|
loop: Ed.REPEAT
|
@@ -8248,7 +8246,7 @@ function Sa(i, t, e) {
|
|
8248
8246
|
return Di(i, Mt.CYLINDER) ? s = e ? new Pd(i.geometryOptions) : new Gh(i.geometryOptions) : Di(i, Mt.ELLIPSOID) && (Array.isArray((r = i.geometryOptions) == null ? void 0 : r.radii) && (i.geometryOptions.radii = v.fromArray(i.geometryOptions.radii)), Array.isArray((n = i.geometryOptions) == null ? void 0 : n.innerRadii) && (i.geometryOptions.innerRadii = v.fromArray(i.geometryOptions.innerRadii)), s = e ? new Id(i.geometryOptions) : new kh(i.geometryOptions)), Di(i, Mt.SPHERE) && (s = e ? new Ld(i.geometryOptions) : new Td(i.geometryOptions)), Di(i, Mt.BOX) && (Array.isArray(i.geometryOptions.minimum) && (i.geometryOptions.minimum = v.fromArray(i.geometryOptions.minimum)), Array.isArray(i.geometryOptions.maximum) && (i.geometryOptions.maximum = v.fromArray(i.geometryOptions.maximum)), s = e ? new Nd(i.geometryOptions) : new zh(i.geometryOptions)), s ? new ct({
|
8249
8247
|
geometry: s,
|
8250
8248
|
attributes: {
|
8251
|
-
color:
|
8249
|
+
color: ar.fromColor(t)
|
8252
8250
|
}
|
8253
8251
|
}) : null;
|
8254
8252
|
}
|
@@ -8258,7 +8256,7 @@ async function io(i, t, e, s, r, n) {
|
|
8258
8256
|
return null;
|
8259
8257
|
const o = t.getImage();
|
8260
8258
|
let l, c;
|
8261
|
-
if (o instanceof
|
8259
|
+
if (o instanceof Nr ? (l = o.getFill(), c = o.getStroke()) : o && (l = t.getFill(), c = t.getStroke()), !l && !c)
|
8262
8260
|
return null;
|
8263
8261
|
let d;
|
8264
8262
|
l && (d = si(l.getColor(), [255, 255, 255, 0.4]));
|
@@ -8295,7 +8293,7 @@ async function io(i, t, e, s, r, n) {
|
|
8295
8293
|
allowPicking: m,
|
8296
8294
|
...a.primitiveOptions.additionalOptions
|
8297
8295
|
});
|
8298
|
-
return (e[w][2] == null || p ===
|
8296
|
+
return (e[w][2] == null || p === Le.CLAMP_TO_GROUND) && (await qc($, _, n, M), Ci.headingPitchRollToFixedFrame(_, g, void 0, void 0, C)), a.autoScale && (M ? m0($, C, f, M) : v.ONE.equals(f) || Uc($, f)), $;
|
8299
8297
|
}, W = [];
|
8300
8298
|
if (d)
|
8301
8299
|
W.push(k(d.alpha < 1 || !!N, [
|
@@ -8315,7 +8313,7 @@ async function io(i, t, e, s, r, n) {
|
|
8315
8313
|
};
|
8316
8314
|
}
|
8317
8315
|
function Dl(i, t, e) {
|
8318
|
-
let s = e ===
|
8316
|
+
let s = e === Le.NONE ? e_(t, i) : 0;
|
8319
8317
|
return s += 90, {
|
8320
8318
|
location: t,
|
8321
8319
|
pitch: s,
|
@@ -8324,12 +8322,12 @@ function Dl(i, t, e) {
|
|
8324
8322
|
}
|
8325
8323
|
async function Wc(i, t, e, s, r, n, a) {
|
8326
8324
|
var u;
|
8327
|
-
if (t.end ===
|
8325
|
+
if (t.end === Je.NONE || !((u = t.primitiveOptions) != null && u.geometryOptions))
|
8328
8326
|
return;
|
8329
8327
|
const o = [], l = s.getAltitudeMode(i);
|
8330
8328
|
if (e.forEach((f) => {
|
8331
8329
|
const g = n.getCoordinates([f]);
|
8332
|
-
(t.end ===
|
8330
|
+
(t.end === Je.START || t.end === Je.BOTH) && o.push(Dl(g[1], g[0], l)), (t.end === Je.END || t.end === Je.BOTH) && o.push(Dl(g.at(-2), g.at(-1), l));
|
8333
8331
|
}), o.length === 0)
|
8334
8332
|
return;
|
8335
8333
|
const c = t.getOlcsStyle(), d = s.getAllowPicking(i);
|
@@ -8366,7 +8364,7 @@ function Yc(i, t, e, s) {
|
|
8366
8364
|
function Zc(i, t, e) {
|
8367
8365
|
return [];
|
8368
8366
|
}
|
8369
|
-
function
|
8367
|
+
function Kc(i, t) {
|
8370
8368
|
const e = R(t.getStroke().getWidth(), 1);
|
8371
8369
|
return [
|
8372
8370
|
new co({
|
@@ -8384,7 +8382,7 @@ function Lo(i, t) {
|
|
8384
8382
|
})
|
8385
8383
|
];
|
8386
8384
|
}
|
8387
|
-
function
|
8385
|
+
function Jc(i, t, e, s) {
|
8388
8386
|
return { positions: i.getCoordinates().map((a) => {
|
8389
8387
|
const o = G.mercatorToWgs84(a);
|
8390
8388
|
return !e && s ? o[2] = s : o[2] != null && (o[2] += t), v.fromDegrees(o[0], o[1], o[2]);
|
@@ -8400,11 +8398,11 @@ let wa = null;
|
|
8400
8398
|
function p0() {
|
8401
8399
|
return wa || (wa = {
|
8402
8400
|
getCoordinates: Qc,
|
8403
|
-
getGeometryOptions:
|
8401
|
+
getGeometryOptions: Jc,
|
8404
8402
|
createSolidGeometries: Xc,
|
8405
8403
|
createOutlineGeometries: Yc,
|
8406
8404
|
createFillGeometries: Zc,
|
8407
|
-
createGroundLineGeometries:
|
8405
|
+
createGroundLineGeometries: Kc,
|
8408
8406
|
createLineGeometries: Lo
|
8409
8407
|
}), wa;
|
8410
8408
|
}
|
@@ -8444,7 +8442,7 @@ function _0(i, t, e, s) {
|
|
8444
8442
|
verticalOrigin: gt.BOTTOM,
|
8445
8443
|
id: i.getId()
|
8446
8444
|
};
|
8447
|
-
return o.eyeOffset = s.getEyeOffset(i), o.scaleByDistance = s.getScaleByDistance(i), e ===
|
8445
|
+
return o.eyeOffset = s.getEyeOffset(i), o.scaleByDistance = s.getScaleByDistance(i), e === Le.CLAMP_TO_GROUND && (o.disableDepthTestDistance = Number.POSITIVE_INFINITY), o;
|
8448
8446
|
}
|
8449
8447
|
return null;
|
8450
8448
|
}
|
@@ -8493,7 +8491,7 @@ function v0(i, t, e, s) {
|
|
8493
8491
|
default:
|
8494
8492
|
m = gt.BASELINE;
|
8495
8493
|
}
|
8496
|
-
return a.verticalOrigin = m, a.eyeOffset = s.getEyeOffset(i), a.scaleByDistance = s.getScaleByDistance(i), e ===
|
8494
|
+
return a.verticalOrigin = m, a.eyeOffset = s.getEyeOffset(i), a.scaleByDistance = s.getScaleByDistance(i), e === Le.CLAMP_TO_GROUND && (a.disableDepthTestDistance = Number.POSITIVE_INFINITY), a;
|
8497
8495
|
}
|
8498
8496
|
return null;
|
8499
8497
|
}
|
@@ -8536,7 +8534,7 @@ async function Fl(i, t, e, s, r, n) {
|
|
8536
8534
|
if (i.get("olcs_modelUrl") ? g = await Nl(i, f, u, s, r) : i.get("olcs_primitiveOptions") ? g = await io(i, t, f, u, s, r) : g = await Nl(i, f, u, s, r) ?? await io(i, t, f, u, s, r), l.extruded && t.getStroke()) {
|
8537
8535
|
const m = w0(f, l, u, t);
|
8538
8536
|
if (m.length) {
|
8539
|
-
c =
|
8537
|
+
c = Le.NONE;
|
8540
8538
|
const p = Ac(r, s, d, i, m, t, !1);
|
8541
8539
|
p && n.addPrimitives([p], i, d);
|
8542
8540
|
}
|
@@ -8724,12 +8722,12 @@ function P0(i, t) {
|
|
8724
8722
|
}
|
8725
8723
|
function I0(i, t) {
|
8726
8724
|
return {
|
8727
|
-
getCoordinates: t ===
|
8728
|
-
getGeometryOptions: t ===
|
8725
|
+
getCoordinates: t === Le.NONE ? P0.bind(null, i) : Qc,
|
8726
|
+
getGeometryOptions: t === Le.NONE ? E0.bind(null, i) : Jc,
|
8729
8727
|
createSolidGeometries: Xc,
|
8730
8728
|
createOutlineGeometries: Yc,
|
8731
8729
|
createFillGeometries: Zc,
|
8732
|
-
createGroundLineGeometries:
|
8730
|
+
createGroundLineGeometries: Kc,
|
8733
8731
|
createLineGeometries: Lo
|
8734
8732
|
};
|
8735
8733
|
}
|
@@ -8741,7 +8739,7 @@ async function L0(i, t, e, s, r, n) {
|
|
8741
8739
|
}
|
8742
8740
|
async function tu(i, t, e, s, r, n) {
|
8743
8741
|
var a;
|
8744
|
-
t instanceof Nt ? await Fl(i, e, [t], s, r, n) : t instanceof Dt ? Tl(i, e, [t], s, r, n) : t instanceof Ut ? e instanceof No && ((a = i[ei]) != null && a.coordinates) ? await L0(i, e, [t], s, r, n) : await Al(i, e, [t], s, r, n) : t instanceof Ot ? d0(i, e, [t], s, r, n) : t instanceof Oh ? await Fl(i, e, t.getPoints(), s, r, n) : t instanceof
|
8742
|
+
t instanceof Nt ? await Fl(i, e, [t], s, r, n) : t instanceof Dt ? Tl(i, e, [t], s, r, n) : t instanceof Ut ? e instanceof No && ((a = i[ei]) != null && a.coordinates) ? await L0(i, e, [t], s, r, n) : await Al(i, e, [t], s, r, n) : t instanceof Ot ? d0(i, e, [t], s, r, n) : t instanceof Oh ? await Fl(i, e, t.getPoints(), s, r, n) : t instanceof ir ? Tl(i, e, t.getPolygons(), s, r, n) : t instanceof bh ? await Al(i, e, t.getLineStrings(), s, r, n) : t instanceof Tr && await Promise.all(t.getGeometries().map(async (o) => {
|
8745
8743
|
await tu(i, o, e, s, r, n);
|
8746
8744
|
}));
|
8747
8745
|
}
|
@@ -9048,13 +9046,13 @@ function ci(i, t) {
|
|
9048
9046
|
}) : i;
|
9049
9047
|
}
|
9050
9048
|
const Qi = {};
|
9051
|
-
async function
|
9049
|
+
async function yr(i, t, e) {
|
9052
9050
|
if (!Qi[i])
|
9053
9051
|
return Qi[i] = await Xo.fromUrl(ci(i, e), t), Qi[i];
|
9054
9052
|
let s = Qi[i];
|
9055
9053
|
return (t.requestVertexNormals !== void 0 && s.requestVertexNormals !== t.requestVertexNormals || t.requestWaterMask !== void 0 && s.requestWaterMask !== t.requestWaterMask) && (Qi[i] = await Xo.fromUrl(ci(i, e), t), s = Qi[i]), s;
|
9056
9054
|
}
|
9057
|
-
function
|
9055
|
+
function Is(i, t, e, s) {
|
9058
9056
|
const r = e ? Ae(e.proj, oe.proj) : null, n = t.map((o) => {
|
9059
9057
|
const l = r ? r(o, o.slice(), o.length) : o;
|
9060
9058
|
return ie.fromDegrees(l[0], l[1]);
|
@@ -9069,7 +9067,7 @@ function k0(i, t, e) {
|
|
9069
9067
|
}
|
9070
9068
|
let Ma = new z(), Ca = new z();
|
9071
9069
|
function zl(i, t = !1) {
|
9072
|
-
const e = i.slice(), s =
|
9070
|
+
const e = i.slice(), s = tr(e);
|
9073
9071
|
let n = [
|
9074
9072
|
ho(s),
|
9075
9073
|
Ph(s),
|
@@ -9084,7 +9082,7 @@ function zl(i, t = !1) {
|
|
9084
9082
|
});
|
9085
9083
|
return t === _e.EAST ? n = [n[3], n[0], n[1], n[2]] : t === _e.SOUTH ? n = [n[2], n[3], n[0], n[1]] : t === _e.WEST && (n = [n[1], n[2], n[3], n[0]]), n;
|
9086
9084
|
}
|
9087
|
-
function
|
9085
|
+
function Gs(i, t) {
|
9088
9086
|
return Ma = z.fromElements(i[0], i[1], Ma), Ca = z.fromElements(t[0], t[1], Ca), z.angleBetween(Ma, Ca);
|
9089
9087
|
}
|
9090
9088
|
function Hl(i, t) {
|
@@ -9119,7 +9117,7 @@ function z0(i, t, e, s, r) {
|
|
9119
9117
|
], w = [
|
9120
9118
|
y.x - n[d][0],
|
9121
9119
|
y.y - n[d][1]
|
9122
|
-
], x =
|
9120
|
+
], x = Gs(_, w);
|
9123
9121
|
if (x == null || x / (Math.PI * 180) > 5)
|
9124
9122
|
continue;
|
9125
9123
|
const M = [
|
@@ -9128,10 +9126,10 @@ function z0(i, t, e, s, r) {
|
|
9128
9126
|
], C = [
|
9129
9127
|
n[p][0] - n[m][0],
|
9130
9128
|
n[p][1] - n[m][1]
|
9131
|
-
], T =
|
9129
|
+
], T = Gs(_, M);
|
9132
9130
|
if (T == null)
|
9133
9131
|
continue;
|
9134
|
-
const N =
|
9132
|
+
const N = Gs(_, C);
|
9135
9133
|
if (N == null)
|
9136
9134
|
continue;
|
9137
9135
|
const k = _t(n[m], n[p]);
|
@@ -9139,7 +9137,7 @@ function z0(i, t, e, s, r) {
|
|
9139
9137
|
continue;
|
9140
9138
|
const W = _t(n[m], [y.x, y.y]) / k;
|
9141
9139
|
let se = 0;
|
9142
|
-
W !== 0 && (se =
|
9140
|
+
W !== 0 && (se = Gs(C, [
|
9143
9141
|
y.x - n[m][0],
|
9144
9142
|
y.y - n[m][1]
|
9145
9143
|
]), se == null) || u.push({
|
@@ -9187,7 +9185,7 @@ function z0(i, t, e, s, r) {
|
|
9187
9185
|
x[0] - a[u[1].cornerPoint][0],
|
9188
9186
|
x[1] - a[u[1].cornerPoint][1]
|
9189
9187
|
];
|
9190
|
-
return !(
|
9188
|
+
return !(Gs(M, C) == null || (c = Hl([a[u[0].cornerPoint], p], [a[u[1].cornerPoint], x]), c.x == null || c.y == null));
|
9191
9189
|
}), c;
|
9192
9190
|
}
|
9193
9191
|
function Ow(i, t, e = {}) {
|
@@ -9204,7 +9202,7 @@ function Ow(i, t, e = {}) {
|
|
9204
9202
|
estimate: !1
|
9205
9203
|
});
|
9206
9204
|
}
|
9207
|
-
return !e.dontUseTerrain && i.meta.terrainProvider ?
|
9205
|
+
return !e.dontUseTerrain && i.meta.terrainProvider ? Is(i.meta.terrainProvider, [s], i.meta.projection).then(([n]) => n[2] ? {
|
9208
9206
|
coords: i.transformRealWorld2Image(s, n[2]),
|
9209
9207
|
height: s[2],
|
9210
9208
|
estimate: !1
|
@@ -9213,7 +9211,7 @@ function Ow(i, t, e = {}) {
|
|
9213
9211
|
function su(i) {
|
9214
9212
|
i.count += 1;
|
9215
9213
|
const { image: t, worldCoordinate: e, imageCoordinate: s, terrainErrorThreshold: r, terrainErrorCountThreshold: n, count: a, height: o } = i;
|
9216
|
-
return
|
9214
|
+
return Is(t.meta.terrainProvider, [e]).then(([l]) => {
|
9217
9215
|
if (l[2] != null) {
|
9218
9216
|
const c = Ri(t.transformImage2RealWorld(s, l[2]), t.meta.projection.proj, oe.proj);
|
9219
9217
|
return c[2] = l[2], Math.abs(o - l[2]) < r || a > n ? { coords: c, estimate: !1 } : (i.height = c[2], i.worldCoordinate = l, su(i));
|
@@ -9221,7 +9219,7 @@ function su(i) {
|
|
9221
9219
|
return console.log("The configured terrain on the oblique layer could not be queried, position might be inaccurate"), { coords: l, estimate: !0 };
|
9222
9220
|
}).catch(() => ({ coords: e, estimate: !0 }));
|
9223
9221
|
}
|
9224
|
-
async function
|
9222
|
+
async function _r(i, t, e = {}) {
|
9225
9223
|
const s = Ri(i.transformImage2RealWorld(t, i.averageHeight), i.meta.projection.proj, oe.proj), r = e.terrainErrorThreshold || 1, n = e.terrainErrorCountThreshold || 3;
|
9226
9224
|
let a = { coords: s, estimate: !0 };
|
9227
9225
|
return !e.dontUseTerrain && i.meta.terrainProvider && (a = await su({
|
@@ -9263,7 +9261,7 @@ function j0(i, t, e) {
|
|
9263
9261
|
return i.getView().getZoomForResolution(l);
|
9264
9262
|
}
|
9265
9263
|
async function V0(i, t, e) {
|
9266
|
-
const s = i instanceof Ot ? Eh(i) : i, r = s.getCoordinates(), n =
|
9264
|
+
const s = i instanceof Ot ? Eh(i) : i, r = s.getCoordinates(), n = Ps(s, r);
|
9267
9265
|
let a = Ae(U.proj, e.meta.projection.proj), o = [];
|
9268
9266
|
if (e.meta.terrainProvider) {
|
9269
9267
|
const l = n.map((c) => (G.mercatorToWgs84(c, !0), ie.fromDegrees(c[0], c[1])));
|
@@ -9276,7 +9274,7 @@ async function V0(i, t, e) {
|
|
9276
9274
|
}), t.setCoordinates(r), t;
|
9277
9275
|
}
|
9278
9276
|
function $0(i, t, e) {
|
9279
|
-
const s = i.getCoordinates(), n =
|
9277
|
+
const s = i.getCoordinates(), n = Ps(i, s).map((a) => _r(e, a).then((o) => {
|
9280
9278
|
a[0] = o.coords[0], a[1] = o.coords[1], a[2] = o.coords[2];
|
9281
9279
|
}));
|
9282
9280
|
return Promise.all(n).then(() => (t.setCoordinates(s), t));
|
@@ -9286,7 +9284,7 @@ function jl(i, t = !1) {
|
|
9286
9284
|
if ((e.get("_vcsGeomType") === "bbox" || e.get("_vcsGeomType") === "rectangle") && t)
|
9287
9285
|
return e;
|
9288
9286
|
const r = e instanceof Ot, n = Gc(e);
|
9289
|
-
return n[
|
9287
|
+
return n[Qs] = r, n;
|
9290
9288
|
}
|
9291
9289
|
function Vl(i, t) {
|
9292
9290
|
const e = i.getGeometry(), s = i.getGeometry().clone();
|
@@ -9320,7 +9318,7 @@ class B0 extends Zi {
|
|
9320
9318
|
class nu extends B0 {
|
9321
9319
|
constructor(e, s) {
|
9322
9320
|
super(e, s);
|
9323
|
-
h(this, "obliqueSource", new
|
9321
|
+
h(this, "obliqueSource", new sr({}));
|
9324
9322
|
h(this, "_featureListeners", {});
|
9325
9323
|
h(this, "_sourceListener", []);
|
9326
9324
|
/**
|
@@ -9407,9 +9405,9 @@ class nu extends B0 {
|
|
9407
9405
|
const r = s.getId(), n = {
|
9408
9406
|
originalFeatureGeometryChanged: e.on("change:geometry", () => {
|
9409
9407
|
const a = e.getGeometry();
|
9410
|
-
if (a[
|
9408
|
+
if (a[Qs]) {
|
9411
9409
|
re(n.originalGeometryChanged), n.originalGeometryChanged = e.getGeometry().on("change", () => {
|
9412
|
-
this._updatingMercator[r] || (delete a[
|
9410
|
+
this._updatingMercator[r] || (delete a[Qs], this._originalGeometryChanged(n, e, s));
|
9413
9411
|
});
|
9414
9412
|
return;
|
9415
9413
|
}
|
@@ -9444,7 +9442,7 @@ class nu extends B0 {
|
|
9444
9442
|
const n = this.fetchedFeaturesForImageName;
|
9445
9443
|
this._updatingMercator[r] = setTimeout(async () => {
|
9446
9444
|
const a = jl(e, !1);
|
9447
|
-
a[
|
9445
|
+
a[Qs] && e.setGeometry(a);
|
9448
9446
|
const o = jl(s, !0);
|
9449
9447
|
this._updatingMercator[r] = !0, await $0(o, a, this.map.collection.getImageByName(n)), this._updatingMercator[r] = null;
|
9450
9448
|
}, 200);
|
@@ -9600,7 +9598,7 @@ class Ao {
|
|
9600
9598
|
if (this._averageHeight === null) {
|
9601
9599
|
const t = (this.groundCoordinates[0][2] + this.groundCoordinates[1][2] + this.groundCoordinates[2][2] + this.groundCoordinates[3][2]) / 4;
|
9602
9600
|
if (t === 0 && this.meta.terrainProvider)
|
9603
|
-
return
|
9601
|
+
return Is(this.meta.terrainProvider, [this.centerPointOnGround.slice()], this.meta.projection).then((e) => {
|
9604
9602
|
e[0] && e[0][2] != null && (this._averageHeight = e[0][2]);
|
9605
9603
|
}).catch(() => {
|
9606
9604
|
this._averageHeight = t;
|
@@ -9890,7 +9888,7 @@ class Ul {
|
|
9890
9888
|
requestVertexNormals: this._terrainProviderOptions.requestVertexNormals,
|
9891
9889
|
requestWaterMask: this._terrainProviderOptions.requestWaterMask
|
9892
9890
|
};
|
9893
|
-
this._terrainProvider = await
|
9891
|
+
this._terrainProvider = await yr(this._terrainProviderOptions.url, s, this._terrainProviderOptions.headers);
|
9894
9892
|
}
|
9895
9893
|
this._parseMetaData(t), this._state = fe.READY;
|
9896
9894
|
}
|
@@ -10102,7 +10100,7 @@ class Z0 {
|
|
10102
10100
|
function ql(i, t) {
|
10103
10101
|
return i < 0 ? 0 : i > t ? t : i;
|
10104
10102
|
}
|
10105
|
-
class
|
10103
|
+
class K0 {
|
10106
10104
|
constructor(t) {
|
10107
10105
|
h(this, "_active", !1);
|
10108
10106
|
h(this, "_loadingImage", null);
|
@@ -10206,7 +10204,7 @@ class J0 {
|
|
10206
10204
|
}
|
10207
10205
|
async _changeImage(t, e) {
|
10208
10206
|
this._loadingImage = t;
|
10209
|
-
const { coords: s } = await
|
10207
|
+
const { coords: s } = await _r(this._currentImage, e);
|
10210
10208
|
this._loadingImage === t && await this.setImage(t, s);
|
10211
10209
|
}
|
10212
10210
|
/**
|
@@ -10256,7 +10254,7 @@ class J0 {
|
|
10256
10254
|
return;
|
10257
10255
|
if (this._loadingImage = a, !r[2] && a.meta.terrainProvider) {
|
10258
10256
|
const l = [r];
|
10259
|
-
await
|
10257
|
+
await Is(a.meta.terrainProvider, l, U, l);
|
10260
10258
|
}
|
10261
10259
|
if (this._loadingImage !== a)
|
10262
10260
|
return;
|
@@ -10269,7 +10267,7 @@ class J0 {
|
|
10269
10267
|
*/
|
10270
10268
|
async getView() {
|
10271
10269
|
if (this._currentView && this._currentImage) {
|
10272
|
-
const t = this._currentView.view.getCenter(), { coords: e } = await
|
10270
|
+
const t = this._currentView.view.getCenter(), { coords: e } = await _r(this._currentImage, t);
|
10273
10271
|
return {
|
10274
10272
|
center: e,
|
10275
10273
|
direction: this._currentImage.viewDirection,
|
@@ -10287,7 +10285,7 @@ class J0 {
|
|
10287
10285
|
}), this._viewCache.clear(), this._loadingImage = null, this._postRenderListener && (re(this._postRenderListener), this._postRenderListener = void 0), this.imageChanged.destroy(), this._collection = null, this._olMap = void 0;
|
10288
10286
|
}
|
10289
10287
|
}
|
10290
|
-
function
|
10288
|
+
function J0(i, t, e, s, r) {
|
10291
10289
|
ou(i, t, e || 0, s || i.length - 1, r || Q0);
|
10292
10290
|
}
|
10293
10291
|
function ou(i, t, e, s, r) {
|
@@ -10297,16 +10295,16 @@ function ou(i, t, e, s, r) {
|
|
10297
10295
|
ou(i, t, d, u, r);
|
10298
10296
|
}
|
10299
10297
|
var f = i[t], g = e, m = s;
|
10300
|
-
for (
|
10301
|
-
for (
|
10298
|
+
for (ks(i, e, t), r(i[s], f) > 0 && ks(i, e, s); g < m; ) {
|
10299
|
+
for (ks(i, g, m), g++, m--; r(i[g], f) < 0; )
|
10302
10300
|
g++;
|
10303
10301
|
for (; r(i[m], f) > 0; )
|
10304
10302
|
m--;
|
10305
10303
|
}
|
10306
|
-
r(i[e], f) === 0 ?
|
10304
|
+
r(i[e], f) === 0 ? ks(i, e, m) : (m++, ks(i, m, s)), m <= t && (e = m + 1), t <= m && (s = m - 1);
|
10307
10305
|
}
|
10308
10306
|
}
|
10309
|
-
function
|
10307
|
+
function ks(i, t, e) {
|
10310
10308
|
var s = i[t];
|
10311
10309
|
i[t] = i[e], i[e] = s;
|
10312
10310
|
}
|
@@ -10449,7 +10447,7 @@ class ro {
|
|
10449
10447
|
}
|
10450
10448
|
_insert(t, e, s) {
|
10451
10449
|
const r = s ? t : this.toBBox(t), n = [], a = this._chooseSubtree(r, this.data, e, n);
|
10452
|
-
for (a.children.push(t),
|
10450
|
+
for (a.children.push(t), Xs(a, r); e >= 0 && n[e].children.length > this._maxEntries; )
|
10453
10451
|
this._split(n, e), e--;
|
10454
10452
|
this._adjustParentBBoxes(r, n, e);
|
10455
10453
|
}
|
@@ -10466,7 +10464,7 @@ class ro {
|
|
10466
10464
|
_chooseSplitIndex(t, e, s) {
|
10467
10465
|
let r, n = 1 / 0, a = 1 / 0;
|
10468
10466
|
for (let o = e; o <= s - e; o++) {
|
10469
|
-
const l =
|
10467
|
+
const l = Ws(t, 0, o, this.toBBox), c = Ws(t, o, s, this.toBBox), d = rv(l, c), u = Oa(l) + Oa(c);
|
10470
10468
|
d < n ? (n = d, r = o, a = u < a ? u : a) : d === n && u < a && (a = u, r = o);
|
10471
10469
|
}
|
10472
10470
|
return r || s - e;
|
@@ -10479,21 +10477,21 @@ class ro {
|
|
10479
10477
|
// total margin of all possible split distributions where each node is at least m full
|
10480
10478
|
_allDistMargin(t, e, s, r) {
|
10481
10479
|
t.children.sort(r);
|
10482
|
-
const n = this.toBBox, a =
|
10480
|
+
const n = this.toBBox, a = Ws(t, 0, e, n), o = Ws(t, s - e, s, n);
|
10483
10481
|
let l = en(a) + en(o);
|
10484
10482
|
for (let c = e; c < s - e; c++) {
|
10485
10483
|
const d = t.children[c];
|
10486
|
-
|
10484
|
+
Xs(a, t.leaf ? n(d) : d), l += en(a);
|
10487
10485
|
}
|
10488
10486
|
for (let c = s - e - 1; c >= e; c--) {
|
10489
10487
|
const d = t.children[c];
|
10490
|
-
|
10488
|
+
Xs(o, t.leaf ? n(d) : d), l += en(o);
|
10491
10489
|
}
|
10492
10490
|
return l;
|
10493
10491
|
}
|
10494
10492
|
_adjustParentBBoxes(t, e, s) {
|
10495
10493
|
for (let r = s; r >= 0; r--)
|
10496
|
-
|
10494
|
+
Xs(e[r], t);
|
10497
10495
|
}
|
10498
10496
|
_condense(t) {
|
10499
10497
|
for (let e = t.length - 1, s; e >= 0; e--)
|
@@ -10509,17 +10507,17 @@ function ev(i, t, e) {
|
|
10509
10507
|
return -1;
|
10510
10508
|
}
|
10511
10509
|
function es(i, t) {
|
10512
|
-
|
10510
|
+
Ws(i, 0, i.children.length, t, i);
|
10513
10511
|
}
|
10514
|
-
function
|
10512
|
+
function Ws(i, t, e, s, r) {
|
10515
10513
|
r || (r = ss(null)), r.minX = 1 / 0, r.minY = 1 / 0, r.maxX = -1 / 0, r.maxY = -1 / 0;
|
10516
10514
|
for (let n = t; n < e; n++) {
|
10517
10515
|
const a = i.children[n];
|
10518
|
-
|
10516
|
+
Xs(r, i.leaf ? s(a) : a);
|
10519
10517
|
}
|
10520
10518
|
return r;
|
10521
10519
|
}
|
10522
|
-
function
|
10520
|
+
function Xs(i, t) {
|
10523
10521
|
return i.minX = Math.min(i.minX, t.minX), i.minY = Math.min(i.minY, t.minY), i.maxX = Math.max(i.maxX, t.maxX), i.maxY = Math.max(i.maxY, t.maxY), i;
|
10524
10522
|
}
|
10525
10523
|
function tv(i, t) {
|
@@ -10564,7 +10562,7 @@ function Wl(i, t, e, s, r) {
|
|
10564
10562
|
if (e = n.pop(), t = n.pop(), e - t <= s)
|
10565
10563
|
continue;
|
10566
10564
|
const a = t + Math.ceil((e - t) / s / 2) * s;
|
10567
|
-
|
10565
|
+
J0(i, a, t, e, r), n.push(t, a, a, e);
|
10568
10566
|
}
|
10569
10567
|
}
|
10570
10568
|
var Ro = { exports: {} }, lu = { exports: {} };
|
@@ -10651,7 +10649,7 @@ function Zl(i) {
|
|
10651
10649
|
return s.setId(t.name), s;
|
10652
10650
|
});
|
10653
10651
|
}
|
10654
|
-
function
|
10652
|
+
function Kl(i) {
|
10655
10653
|
const t = Lh();
|
10656
10654
|
return Object.entries(i).map(([e, s]) => {
|
10657
10655
|
const r = e.split("/").map((o) => Number.parseInt(o, 10)), n = t.getTileCoordExtent(r), a = new ae({
|
@@ -10750,16 +10748,16 @@ class Vi extends Gt {
|
|
10750
10748
|
return [...this._images.values()];
|
10751
10749
|
}
|
10752
10750
|
_createTileFeatureSource() {
|
10753
|
-
const e =
|
10751
|
+
const e = Kl(this.getTiles()), s = new sr();
|
10754
10752
|
return s.addFeatures(e), s;
|
10755
10753
|
}
|
10756
10754
|
_createImageFeatureSource() {
|
10757
|
-
const e = Zl([...this._images.values()]), s = new
|
10755
|
+
const e = Zl([...this._images.values()]), s = new sr();
|
10758
10756
|
return s.addFeatures(e), s;
|
10759
10757
|
}
|
10760
10758
|
async _loadDataSet(e) {
|
10761
10759
|
if (await e.load(), this._tileFeatureSource) {
|
10762
|
-
const s =
|
10760
|
+
const s = Kl(e.getTiles());
|
10763
10761
|
this._tileFeatureSource.addFeatures(s);
|
10764
10762
|
}
|
10765
10763
|
}
|
@@ -10906,7 +10904,7 @@ class Vi extends Gt {
|
|
10906
10904
|
if (r) {
|
10907
10905
|
const n = Ae(U.proj, r.meta.projection.proj), a = e.slice(0, 2);
|
10908
10906
|
n(a, a, void 0);
|
10909
|
-
const o =
|
10907
|
+
const o = tr(r.groundCoordinates);
|
10910
10908
|
return Aa(o, a);
|
10911
10909
|
}
|
10912
10910
|
return !1;
|
@@ -10922,9 +10920,9 @@ class Vi extends Gt {
|
|
10922
10920
|
async loadAdjacentImage(e, s, r = Math.PI / 4) {
|
10923
10921
|
const n = this._directionTrees.get(e.viewDirection);
|
10924
10922
|
if (n) {
|
10925
|
-
const a = Ae(e.meta.projection.proj, U.proj), o = e.groundCoordinates.map((f) => a(f.slice(0, 2), void 0, void 0)), l =
|
10923
|
+
const a = Ae(e.meta.projection.proj, U.proj), o = e.groundCoordinates.map((f) => a(f.slice(0, 2), void 0, void 0)), l = tr(o);
|
10926
10924
|
await this.loadDataForExtent(Dh(l, 200));
|
10927
|
-
const c =
|
10925
|
+
const c = rr(l), u = Yl(n, c[0], c[1], 20).find((f) => {
|
10928
10926
|
if (f.name !== e.name) {
|
10929
10927
|
let g = Math.atan2(f.minY - c[1], f.minX - c[0]);
|
10930
10928
|
g <= 0 && (g += Math.PI * 2);
|
@@ -10989,7 +10987,7 @@ const dv = {
|
|
10989
10987
|
[_e.SOUTH]: 180,
|
10990
10988
|
[_e.WEST]: 270,
|
10991
10989
|
[_e.NADIR]: 0
|
10992
|
-
},
|
10990
|
+
}, Jl = new uv();
|
10993
10991
|
function Ql(i) {
|
10994
10992
|
const { heading: t } = i;
|
10995
10993
|
let e = _e.NORTH;
|
@@ -10999,7 +10997,7 @@ function eh(i) {
|
|
10999
10997
|
const t = i.groundPosition ?? i.cameraPosition ?? [0, 0, 0];
|
11000
10998
|
return Ri(t, oe.proj, U.proj);
|
11001
10999
|
}
|
11002
|
-
class
|
11000
|
+
class Ne extends pr {
|
11003
11001
|
constructor(e) {
|
11004
11002
|
super(e);
|
11005
11003
|
h(this, "_loadingCollection");
|
@@ -11013,7 +11011,7 @@ class Te extends mr {
|
|
11013
11011
|
h(this, "_activeCollectionDestroyedListener");
|
11014
11012
|
h(this, "_obliqueProvider", null);
|
11015
11013
|
h(this, "initializedPromise", null);
|
11016
|
-
const s =
|
11014
|
+
const s = Ne.getDefaultOptions();
|
11017
11015
|
this._loadingCollection = null, this._mapChangeEvent = e.changeOnMoveEnd ? "moveend" : "postrender", this._switchThreshold = R(e.switchThreshold, s.switchThreshold), this._switchThreshold > 1 ? this._switchThreshold = 0.2 : this._switchThreshold < 0 && (this._switchThreshold = 0), this._switchEnabled = ue(e.switchOnEdge, s.switchOnEdge), this.collectionChanged = new P(), this._activeCollectionDestroyedListener = () => {
|
11018
11016
|
};
|
11019
11017
|
}
|
@@ -11057,9 +11055,9 @@ class Te extends mr {
|
|
11057
11055
|
}
|
11058
11056
|
async initialize() {
|
11059
11057
|
this.initializedPromise || (this.initializedPromise = super.initialize().then(async () => {
|
11060
|
-
this._obliqueProvider = new
|
11058
|
+
this._obliqueProvider = new K0(this.olMap), this.mapChangeEvent = this._mapChangeEvent, this.switchThreshold = this._switchThreshold, this.switchEnabled = this._switchEnabled;
|
11061
11059
|
let e = this._loadingCollection;
|
11062
|
-
e || (e =
|
11060
|
+
e || (e = Jl), e && await this._setCollection(e);
|
11063
11061
|
}).then(() => {
|
11064
11062
|
this.initialized = !0;
|
11065
11063
|
})), await this.initializedPromise;
|
@@ -11096,7 +11094,7 @@ class Te extends mr {
|
|
11096
11094
|
getExtentOfCurrentImage() {
|
11097
11095
|
const e = this.currentImage;
|
11098
11096
|
if (e) {
|
11099
|
-
const s =
|
11097
|
+
const s = tr(e.groundCoordinates);
|
11100
11098
|
return new xe({
|
11101
11099
|
coordinates: Uo(s, e.meta.projection.proj, U.proj),
|
11102
11100
|
projection: U.toJSON()
|
@@ -11128,7 +11126,7 @@ class Te extends mr {
|
|
11128
11126
|
async _setCollection(e, s) {
|
11129
11127
|
var n;
|
11130
11128
|
this._loadingCollection = e, this._activeCollectionDestroyedListener(), this._activeCollectionDestroyedListener = e.destroyed.addEventListener(() => {
|
11131
|
-
this._setCollection(
|
11129
|
+
this._setCollection(Jl);
|
11132
11130
|
}), await e.load();
|
11133
11131
|
const r = s || await this.getViewpoint();
|
11134
11132
|
this._loadingCollection === e && ((n = this._obliqueProvider) == null || n.setCollection(e), this.collectionChanged.raiseEvent(e), r && await this.gotoViewpoint(r));
|
@@ -11151,7 +11149,7 @@ class Te extends mr {
|
|
11151
11149
|
const s = this.olMap.getView().getCenter();
|
11152
11150
|
if (!s)
|
11153
11151
|
return null;
|
11154
|
-
const r = { dataProjection: oe }, { coords: n } = await
|
11152
|
+
const r = { dataProjection: oe }, { coords: n } = await _r(e, s, r);
|
11155
11153
|
return this._computeViewpointInternal(n);
|
11156
11154
|
}
|
11157
11155
|
getViewpointSync() {
|
@@ -11192,19 +11190,19 @@ class Te extends mr {
|
|
11192
11190
|
return Ch(c, e[0], e[1]);
|
11193
11191
|
}
|
11194
11192
|
toJSON() {
|
11195
|
-
const e = super.toJSON(), s =
|
11193
|
+
const e = super.toJSON(), s = Ne.getDefaultOptions();
|
11196
11194
|
return this.mapChangeEvent === "moveend" && (e.changeOnMoveEnd = !0), this.switchThreshold !== s.switchThreshold && (e.switchThreshold = this.switchThreshold), this.switchEnabled !== s.switchOnEdge && (e.switchOnEdge = this.switchEnabled), e;
|
11197
11195
|
}
|
11198
11196
|
destroy() {
|
11199
11197
|
this._obliqueProvider && this._obliqueProvider.destroy(), this.collectionChanged.destroy(), this._activeCollectionDestroyedListener(), super.destroy();
|
11200
11198
|
}
|
11201
11199
|
}
|
11202
|
-
|
11200
|
+
Es.registerClass(Ne.className, Ne);
|
11203
11201
|
var ms;
|
11204
11202
|
(function(i) {
|
11205
11203
|
i.HEIGHT = "height", i.DISTANCE = "distance";
|
11206
11204
|
})(ms = ms || (ms = {}));
|
11207
|
-
class
|
11205
|
+
class vr {
|
11208
11206
|
constructor(t) {
|
11209
11207
|
/**
|
11210
11208
|
* The mode to use. When using DISTANCE mode, be sure to have a terrainProvider set.
|
@@ -11229,7 +11227,7 @@ class _r {
|
|
11229
11227
|
*/
|
11230
11228
|
h(this, "_terrainHeight", null);
|
11231
11229
|
h(this, "_updatingTerrainHeight", !1);
|
11232
|
-
const e =
|
11230
|
+
const e = vr.getDefaultOptions();
|
11233
11231
|
this.mode = Qn(t.mode, ms, e.mode), this._terrainUrl = t.terrainUrl || e.terrainUrl, this.limit = R(t.limit, e.limit), this.level = t.level === null ? null : le(t.level, e.level), this.terrainRequestHeaders = t.terrainRequestHeaders;
|
11234
11232
|
}
|
11235
11233
|
static get className() {
|
@@ -11254,11 +11252,11 @@ class _r {
|
|
11254
11252
|
S(t, Q(String)), this._terrainUrl !== t && (this._terrainUrl = t);
|
11255
11253
|
}
|
11256
11254
|
async _limitWithLevel(t) {
|
11257
|
-
const e = await
|
11255
|
+
const e = await yr(this.terrainUrl, {}, this.terrainRequestHeaders);
|
11258
11256
|
return this.level && k0(e, this.level, t) ? kd(e, this.level, [t]) : this._limitMostDetailed(t);
|
11259
11257
|
}
|
11260
11258
|
async _limitMostDetailed(t) {
|
11261
|
-
const e = await
|
11259
|
+
const e = await yr(this.terrainUrl, {}, this.terrainRequestHeaders);
|
11262
11260
|
return Yn(e, [t]);
|
11263
11261
|
}
|
11264
11262
|
async _updateTerrainHeight(t) {
|
@@ -11285,7 +11283,7 @@ class _r {
|
|
11285
11283
|
return e;
|
11286
11284
|
}
|
11287
11285
|
toJSON() {
|
11288
|
-
const t = {}, e =
|
11286
|
+
const t = {}, e = vr.getDefaultOptions();
|
11289
11287
|
return this.terrainUrl && (t.terrainUrl = this.terrainUrl), this.limit !== e.limit && (t.limit = this.limit), this.mode !== e.mode && (t.mode = this.mode), this.level !== e.level && (t.level = this.level), nt(this.terrainRequestHeaders, e.terrainRequestHeaders) || (t.terrainRequestHeaders = this.terrainRequestHeaders), t;
|
11290
11288
|
}
|
11291
11289
|
}
|
@@ -11434,7 +11432,7 @@ class H extends Pi {
|
|
11434
11432
|
return this._cameraLimiter;
|
11435
11433
|
}
|
11436
11434
|
set cameraLimiter(e) {
|
11437
|
-
S(e, Q(
|
11435
|
+
S(e, Q(vr)), this._cameraLimiter !== e && (this._cameraLimiter = e, this._cameraLimiter && !this._preUpdateListener && this._cesiumWidget ? this._setupPreUpdateListener() : !this._cameraLimiter && this._preUpdateListener && (this._preUpdateListener(), this._preUpdateListener = null));
|
11438
11436
|
}
|
11439
11437
|
_setupPreUpdateListener() {
|
11440
11438
|
this._cesiumWidget && (this._preUpdateListener = this._cesiumWidget.scene.preUpdate.addEventListener(() => {
|
@@ -11477,37 +11475,37 @@ class H extends Pi {
|
|
11477
11475
|
{
|
11478
11476
|
type: fi.LEFT_DOWN,
|
11479
11477
|
pointerEvent: We.DOWN,
|
11480
|
-
pointer:
|
11478
|
+
pointer: Pe.LEFT
|
11481
11479
|
},
|
11482
11480
|
{
|
11483
11481
|
type: fi.LEFT_UP,
|
11484
11482
|
pointerEvent: We.UP,
|
11485
|
-
pointer:
|
11483
|
+
pointer: Pe.LEFT
|
11486
11484
|
},
|
11487
11485
|
{
|
11488
11486
|
type: fi.RIGHT_DOWN,
|
11489
11487
|
pointerEvent: We.DOWN,
|
11490
|
-
pointer:
|
11488
|
+
pointer: Pe.RIGHT
|
11491
11489
|
},
|
11492
11490
|
{
|
11493
11491
|
type: fi.RIGHT_UP,
|
11494
11492
|
pointerEvent: We.UP,
|
11495
|
-
pointer:
|
11493
|
+
pointer: Pe.RIGHT
|
11496
11494
|
},
|
11497
11495
|
{
|
11498
11496
|
type: fi.MIDDLE_DOWN,
|
11499
11497
|
pointerEvent: We.DOWN,
|
11500
|
-
pointer:
|
11498
|
+
pointer: Pe.MIDDLE
|
11501
11499
|
},
|
11502
11500
|
{
|
11503
11501
|
type: fi.MIDDLE_UP,
|
11504
11502
|
pointerEvent: We.UP,
|
11505
|
-
pointer:
|
11503
|
+
pointer: Pe.MIDDLE
|
11506
11504
|
},
|
11507
11505
|
{
|
11508
11506
|
type: fi.MOUSE_MOVE,
|
11509
11507
|
pointerEvent: We.MOVE,
|
11510
|
-
pointer:
|
11508
|
+
pointer: Pe.ALL
|
11511
11509
|
}
|
11512
11510
|
];
|
11513
11511
|
this._screenSpaceListeners = s.map(({ pointerEvent: r, pointer: n, type: a }) => e.map(({ csModifier: o, vcsModifier: l }) => {
|
@@ -11533,7 +11531,7 @@ class H extends Pi {
|
|
11533
11531
|
// @ts-ignore // error in Cesium, recheck on next cesium update
|
11534
11532
|
baseLayer: !1,
|
11535
11533
|
shadows: !1,
|
11536
|
-
terrainShadows:
|
11534
|
+
terrainShadows: Dr.ENABLED,
|
11537
11535
|
contextOptions: {
|
11538
11536
|
webgl: {
|
11539
11537
|
failIfMajorPerformanceCaveat: !1,
|
@@ -11542,7 +11540,7 @@ class H extends Pi {
|
|
11542
11540
|
}
|
11543
11541
|
}), this._cesiumWidget.scene.globe.tileCacheSize = this.tileCacheSize, this._cesiumWidget.scene.globe.baseColor = this.globeColor, this.dataSourceDisplay = new Zo({
|
11544
11542
|
scene: this._cesiumWidget.scene,
|
11545
|
-
dataSourceCollection: new
|
11543
|
+
dataSourceCollection: new Ko()
|
11546
11544
|
}), this._cesiumWidget.scene.frameState.creditDisplay.update = () => {
|
11547
11545
|
}, this._cesiumWidget.scene.frameState.creditDisplay.beginFrame = () => {
|
11548
11546
|
}, this._cesiumWidget.scene.frameState.creditDisplay.endFrame = () => {
|
@@ -11560,7 +11558,7 @@ class H extends Pi {
|
|
11560
11558
|
const n = s[r];
|
11561
11559
|
n.style.display = "none";
|
11562
11560
|
}
|
11563
|
-
this._cameraLimiterOptions && !this._cameraLimiter && (this._cameraLimiter = new
|
11561
|
+
this._cameraLimiterOptions && !this._cameraLimiter && (this._cameraLimiter = new vr(this._cameraLimiterOptions)), this._cameraLimiter && this._setupPreUpdateListener(), this.screenSpaceEventHandler = new $d(this._cesiumWidget.scene.canvas), this._setupInteractions(), this.initialized = !0, this.defaultTerrainProvider = this._cesiumWidget.scene.terrainProvider, this._terrainProvider = this.defaultTerrainProvider, this._listeners.push(this._cesiumWidget.scene.terrainProviderChanged.addEventListener(this._terrainProviderChanged.bind(this))), this._listeners.push(this._cesiumWidget.scene.postRender.addEventListener((r, n) => {
|
11564
11562
|
this.postRender.raiseEvent({
|
11565
11563
|
map: this,
|
11566
11564
|
originalEvent: { scene: r, time: n }
|
@@ -11584,7 +11582,7 @@ class H extends Pi {
|
|
11584
11582
|
if (!this._cesiumWidget)
|
11585
11583
|
return Promise.resolve(e);
|
11586
11584
|
const { terrainProvider: s } = this._cesiumWidget.scene;
|
11587
|
-
return s.availability ?
|
11585
|
+
return s.availability ? Is(s, e, U, e) : Promise.resolve(e);
|
11588
11586
|
}
|
11589
11587
|
getViewpoint() {
|
11590
11588
|
return Promise.resolve(this.getViewpointSync());
|
@@ -11767,7 +11765,7 @@ class H extends Pi {
|
|
11767
11765
|
return this._clusterDataSourceDisplay.dataSources;
|
11768
11766
|
if (!this._cesiumWidget)
|
11769
11767
|
throw new Error("Cannot get Datasource collection from uninitialized map");
|
11770
|
-
const e = new
|
11768
|
+
const e = new Ko(), s = (r, n, a) => {
|
11771
11769
|
const { entities: o } = a;
|
11772
11770
|
return [
|
11773
11771
|
new Ud(n, o),
|
@@ -11908,16 +11906,16 @@ class H extends Pi {
|
|
11908
11906
|
}), this._clusterDataSourceDisplay && this._clusterDataSourceDisplay.destroy(), this._cesiumWidget && (this._cesiumWidget.destroy(), this._cesiumWidget = null), this._initialShadowMap = null, this._defaultShadowMap = null, this.shadowMapChanged.destroy(), super.destroy();
|
11909
11907
|
}
|
11910
11908
|
}
|
11911
|
-
|
11909
|
+
Es.registerClass(H.className, H);
|
11912
11910
|
class st extends hi {
|
11913
11911
|
constructor(e) {
|
11914
11912
|
super(e);
|
11915
11913
|
h(this, "_supportedMaps", [
|
11916
11914
|
H.className,
|
11917
|
-
|
11915
|
+
Ne.className,
|
11918
11916
|
Oe.className
|
11919
11917
|
]);
|
11920
|
-
h(this, "source", new
|
11918
|
+
h(this, "source", new sr({}));
|
11921
11919
|
h(this, "projection");
|
11922
11920
|
h(this, "maxResolution");
|
11923
11921
|
h(this, "minResolution");
|
@@ -12007,7 +12005,7 @@ class st extends hi {
|
|
12007
12005
|
};
|
12008
12006
|
}
|
12009
12007
|
createImplementationsForMap(e) {
|
12010
|
-
return this.visibility ? e instanceof Oe ? [new Dc(e, this.getImplementationOptions())] : e instanceof H ? [new G0(e, this.getImplementationOptions())] : e instanceof
|
12008
|
+
return this.visibility ? e instanceof Oe ? [new Dc(e, this.getImplementationOptions())] : e instanceof H ? [new G0(e, this.getImplementationOptions())] : e instanceof Ne ? [new nu(e, this.getImplementationOptions())] : [] : [];
|
12011
12009
|
}
|
12012
12010
|
getStyleOrDefaultStyle(e, s) {
|
12013
12011
|
return super.getStyleOrDefaultStyle(e, s || ji.clone());
|
@@ -12120,7 +12118,7 @@ class st extends hi {
|
|
12120
12118
|
}
|
12121
12119
|
toJSON() {
|
12122
12120
|
const e = super.toJSON(), s = st.getDefaultOptions();
|
12123
|
-
this.projection.epsg !==
|
12121
|
+
this.projection.epsg !== Jy().epsg && (e.projection = this.projection.toJSON()), this.maxResolution !== s.maxResolution && (e.maxResolution = this.maxResolution), this.minResolution !== s.minResolution && (e.minResolution = this.minResolution), this.dontUseTerrainForOblique !== s.dontUseTerrainForOblique && (e.dontUseTerrainForOblique = this.dontUseTerrainForOblique), this.highlightStyle && (e.highlightStyle = this.highlightStyle.toJSON()), this.isDynamic !== s.isDynamic && (e.isDynamic = this.isDynamic);
|
12124
12122
|
const r = this.vectorProperties.getVcsMeta();
|
12125
12123
|
return Object.keys(r).length > 0 && (e.vectorProperties = r), e;
|
12126
12124
|
}
|
@@ -12128,7 +12126,7 @@ class st extends hi {
|
|
12128
12126
|
this.source && this.source.clear(!0), this._onStyleChangeRemover && this._onStyleChangeRemover(), this.vectorProperties.destroy(), super.destroy();
|
12129
12127
|
}
|
12130
12128
|
}
|
12131
|
-
|
12129
|
+
De.registerClass(st.className, st);
|
12132
12130
|
const Et = Symbol("vcsFeatureType");
|
12133
12131
|
class ti {
|
12134
12132
|
constructor(t = 1 / 0, e = 1 / 0, s = 1 / 0, r = -1 / 0, n = -1 / 0, a = -1 / 0) {
|
@@ -12347,7 +12345,7 @@ function _i(i, t = {}) {
|
|
12347
12345
|
return { features: [vv(e, n)] };
|
12348
12346
|
return { features: [] };
|
12349
12347
|
}
|
12350
|
-
function
|
12348
|
+
function Sr(i, t = {}, e = []) {
|
12351
12349
|
let s = i.getGeometry();
|
12352
12350
|
if (!s)
|
12353
12351
|
throw new Error("Cannot write geometry less feature to geojson");
|
@@ -12360,13 +12358,13 @@ function vr(i, t = {}, e = []) {
|
|
12360
12358
|
l.forEach((c) => {
|
12361
12359
|
to(c);
|
12362
12360
|
}), s = new Dt(l, s.getLayout());
|
12363
|
-
} else if (s instanceof
|
12361
|
+
} else if (s instanceof ir) {
|
12364
12362
|
const l = s.getCoordinates();
|
12365
12363
|
l.forEach((c) => {
|
12366
12364
|
c.forEach((d) => {
|
12367
12365
|
to(d);
|
12368
12366
|
});
|
12369
|
-
}), s = new
|
12367
|
+
}), s = new ir(l, s.getLayout());
|
12370
12368
|
}
|
12371
12369
|
const n = Go().writeGeometryObject(s, {
|
12372
12370
|
featureProjection: pv,
|
@@ -12387,7 +12385,7 @@ function Ew(i, t = {}) {
|
|
12387
12385
|
e.version = ni;
|
12388
12386
|
const r = {
|
12389
12387
|
type: "FeatureCollection",
|
12390
|
-
features: i.features.map((n) =>
|
12388
|
+
features: i.features.map((n) => Sr(n, t, e.embeddedIcons)),
|
12391
12389
|
vcsMeta: e
|
12392
12390
|
};
|
12393
12391
|
return t.asObject ? r : JSON.stringify(r, void 0, t.prettyPrint ? 2 : void 0);
|
@@ -12457,7 +12455,7 @@ class vi extends Gt {
|
|
12457
12455
|
*/
|
12458
12456
|
h(this, "_collectionChanged", new P());
|
12459
12457
|
h(this, "_collectionListeners", []);
|
12460
|
-
h(this, "_collection",
|
12458
|
+
h(this, "_collection", Jt(new Ei(), this._getDynamicModuleId.bind(this), this._serializeItem.bind(this), this._deserializeItem.bind(this)));
|
12461
12459
|
// eslint-disable-next-line class-methods-use-this
|
12462
12460
|
h(this, "_moduleRemovedListener", () => {
|
12463
12461
|
});
|
@@ -12549,7 +12547,7 @@ class vi extends Gt {
|
|
12549
12547
|
throw new Error("The collections key property does not match the categories key property");
|
12550
12548
|
this._collectionListeners.forEach((s) => {
|
12551
12549
|
s();
|
12552
|
-
}), this._collection &&
|
12550
|
+
}), this._collection && Kt(this._collection), this._layer && this._layer.removeAllFeatures(), this._collection = e[Ka] ? e : Jt(e, this._getDynamicModuleId.bind(this), this._serializeItem.bind(this), this._deserializeItem.bind(this)), [...this.collection].forEach((s) => {
|
12553
12551
|
this._itemAdded(s);
|
12554
12552
|
}), this._collectionListeners = [
|
12555
12553
|
this._collection.added.addEventListener(this._itemAdded.bind(this)),
|
@@ -12575,7 +12573,7 @@ class vi extends Gt {
|
|
12575
12573
|
const s = JSON.parse(JSON.stringify(e));
|
12576
12574
|
if (this._featureProperty && this._layer) {
|
12577
12575
|
const r = this._layer.getFeatureById(e[this._keyProperty]);
|
12578
|
-
r && (s[this._featureProperty] =
|
12576
|
+
r && (s[this._featureProperty] = Sr(r));
|
12579
12577
|
}
|
12580
12578
|
return s;
|
12581
12579
|
}
|
@@ -12593,7 +12591,7 @@ class vi extends Gt {
|
|
12593
12591
|
super.destroy(), this._app && this._layer && this._app.layers.remove(this._layer), this._layer && this._layer.destroy(), this._collectionListeners.forEach((e) => {
|
12594
12592
|
e();
|
12595
12593
|
}), this._collectionListeners.splice(0), this._moduleRemovedListener(), this._moduleRemovedListener = () => {
|
12596
|
-
},
|
12594
|
+
}, Kt(this._collection), this._collectionChanged.destroy(), this._app = null;
|
12597
12595
|
}
|
12598
12596
|
}
|
12599
12597
|
Mc.registerClass(vi.className, vi);
|
@@ -12881,7 +12879,7 @@ class vt extends Ye {
|
|
12881
12879
|
this.splitDirectionChanged.destroy(), super.destroy();
|
12882
12880
|
}
|
12883
12881
|
}
|
12884
|
-
|
12882
|
+
De.registerClass(vt.className, vt);
|
12885
12883
|
function fu(i, t) {
|
12886
12884
|
return i === "geographic" ? t === "1.3.0" ? "CRS:84" : "EPSG:4326" : "EPSG:3857";
|
12887
12885
|
}
|
@@ -13046,7 +13044,7 @@ class ce {
|
|
13046
13044
|
* @param [defaultModificationKey=ModificationKeyType.NONE] - A bitmask representing the default keys to listen to
|
13047
13045
|
* @param [defaultPointerKey=PointerKeyType.LEFT] - A bitmask representing the pointer key to listen to
|
13048
13046
|
*/
|
13049
|
-
constructor(t = E.NONE, e = j.NONE, s =
|
13047
|
+
constructor(t = E.NONE, e = j.NONE, s = Pe.LEFT) {
|
13050
13048
|
/**
|
13051
13049
|
* A unique identifier for this interaction
|
13052
13050
|
*/
|
@@ -13112,7 +13110,7 @@ class ce {
|
|
13112
13110
|
}
|
13113
13111
|
class zo extends ce {
|
13114
13112
|
constructor() {
|
13115
|
-
super(E.ALL, j.ALL,
|
13113
|
+
super(E.ALL, j.ALL, Pe.ALL);
|
13116
13114
|
h(this, "_scratchCartographic", new ie());
|
13117
13115
|
h(this, "_scratchCartesian", new v());
|
13118
13116
|
this.setActive();
|
@@ -13136,7 +13134,7 @@ class zo extends ce {
|
|
13136
13134
|
if (r) {
|
13137
13135
|
const n = e.type & (E.MOVE ^ E.DRAGEVENTS), a = e.position.slice(0, 2);
|
13138
13136
|
if (Number.isFinite(a[0]) && Number.isFinite(a[1]))
|
13139
|
-
return
|
13137
|
+
return _r(r, a, {
|
13140
13138
|
dontUseTerrain: !!n,
|
13141
13139
|
dataProjection: U
|
13142
13140
|
}).then((o) => (e.obliqueParameters = { pixel: a, estimate: o.estimate }, e.position = o.coords, e));
|
@@ -13144,9 +13142,9 @@ class zo extends ce {
|
|
13144
13142
|
return e.stopPropagation = !0, Promise.resolve(e);
|
13145
13143
|
}
|
13146
13144
|
}
|
13147
|
-
class
|
13145
|
+
class Ki extends ce {
|
13148
13146
|
constructor(e) {
|
13149
|
-
super(E.ALL, j.ALL,
|
13147
|
+
super(E.ALL, j.ALL, Pe.ALL);
|
13150
13148
|
/**
|
13151
13149
|
* The interactions to handle one after the other
|
13152
13150
|
*/
|
@@ -13201,7 +13199,7 @@ class Ji extends ce {
|
|
13201
13199
|
}
|
13202
13200
|
class Lv extends ce {
|
13203
13201
|
constructor() {
|
13204
|
-
super(E.ALL ^ E.MOVE, j.ALL,
|
13202
|
+
super(E.ALL ^ E.MOVE, j.ALL, Pe.ALL);
|
13205
13203
|
h(this, "_pickPosition", E.CLICK);
|
13206
13204
|
h(this, "_pickPositionMask", -1);
|
13207
13205
|
/**
|
@@ -13282,7 +13280,7 @@ class Lv extends ce {
|
|
13282
13280
|
}
|
13283
13281
|
class Tv extends ce {
|
13284
13282
|
constructor() {
|
13285
|
-
super(E.CLICK, j.ALL,
|
13283
|
+
super(E.CLICK, j.ALL, Pe.ALL), this.setActive();
|
13286
13284
|
}
|
13287
13285
|
// eslint-disable-next-line class-methods-use-this
|
13288
13286
|
async pipe(t) {
|
@@ -13323,7 +13321,7 @@ class Dv {
|
|
13323
13321
|
h(this, "exclusiveAdded");
|
13324
13322
|
h(this, "_boundKeyListener");
|
13325
13323
|
h(this, "_modifierChanged");
|
13326
|
-
this._positionInteraction = new zo(), this._featureInteraction = new Lv(), this._featureProviderInteraction = new Tv(), this._interactionChain = new
|
13324
|
+
this._positionInteraction = new zo(), this._featureInteraction = new Lv(), this._featureProviderInteraction = new Tv(), this._interactionChain = new Ki([
|
13327
13325
|
this._positionInteraction,
|
13328
13326
|
this._featureInteraction,
|
13329
13327
|
this._featureProviderInteraction
|
@@ -13600,11 +13598,11 @@ class Fi extends Zi {
|
|
13600
13598
|
(c.hideLocal.length > 0 || c.hideGlobal.length > 0 || c.highlight.length > 0) && (e[sn] = () => {
|
13601
13599
|
c.hideGlobal.forEach(([d, u]) => {
|
13602
13600
|
var f;
|
13603
|
-
(f = this.globalHider) != null && f.hasFeature(d, u) &&
|
13601
|
+
(f = this.globalHider) != null && f.hasFeature(d, u) && gr(u);
|
13604
13602
|
}), c.hideLocal.forEach(([d, u]) => {
|
13605
|
-
this.featureVisibility.hasHiddenFeature(d, u) &&
|
13603
|
+
this.featureVisibility.hasHiddenFeature(d, u) && gr(u);
|
13606
13604
|
}), c.highlight.forEach(([d, u]) => {
|
13607
|
-
this.featureVisibility.hasHighlightFeature(d, u) &&
|
13605
|
+
this.featureVisibility.hasHighlightFeature(d, u) && mr(u);
|
13608
13606
|
});
|
13609
13607
|
}), e[pi] = Date.now();
|
13610
13608
|
} else
|
@@ -13720,8 +13718,8 @@ class Fv extends Zi {
|
|
13720
13718
|
let f, g = 0;
|
13721
13719
|
const m = () => {
|
13722
13720
|
const y = r.getBoundingSphere(s, !0, o);
|
13723
|
-
if (y !==
|
13724
|
-
if (y ===
|
13721
|
+
if (y !== Jo.PENDING) {
|
13722
|
+
if (y === Jo.FAILED) {
|
13725
13723
|
g += 1, g > 3 && f();
|
13726
13724
|
return;
|
13727
13725
|
}
|
@@ -13743,7 +13741,7 @@ class Fv extends Zi {
|
|
13743
13741
|
this.map.initialized && !this.isDestroyed && this.map.removeDataSource(this.dataSource), this._collectionListener(), this.dataSource.entities.removeAll(), this.clock && this.map.unsetDataSourceDisplayClock(this.clock), super.destroy();
|
13744
13742
|
}
|
13745
13743
|
}
|
13746
|
-
class
|
13744
|
+
class Ls extends Zi {
|
13747
13745
|
constructor(e, s) {
|
13748
13746
|
super(e, s);
|
13749
13747
|
h(this, "cesiumLayer", null);
|
@@ -13786,7 +13784,7 @@ class Is extends Zi {
|
|
13786
13784
|
this.cesiumLayer && this.map.removeImageryLayer(this.cesiumLayer), this.cesiumLayer = null, super.destroy();
|
13787
13785
|
}
|
13788
13786
|
}
|
13789
|
-
class Rv extends
|
13787
|
+
class Rv extends Ls {
|
13790
13788
|
static get className() {
|
13791
13789
|
return "OpenStreetMapCesiumImpl";
|
13792
13790
|
}
|
@@ -13797,7 +13795,7 @@ class Rv extends Is {
|
|
13797
13795
|
}));
|
13798
13796
|
}
|
13799
13797
|
}
|
13800
|
-
class Gv extends
|
13798
|
+
class Gv extends Ls {
|
13801
13799
|
constructor(e, s) {
|
13802
13800
|
super(e, s);
|
13803
13801
|
h(this, "credit");
|
@@ -13812,7 +13810,7 @@ class Gv extends Is {
|
|
13812
13810
|
credit: this.credit
|
13813
13811
|
}, s = (a = this.extent) == null ? void 0 : a.getCoordinatesInProjection(oe);
|
13814
13812
|
s && (e.rectangle = yt.fromDegrees(s[0], s[1], s[2], s[3]));
|
13815
|
-
const r = await
|
13813
|
+
const r = await Kd.fromUrl(ci(this.url, this.headers), e), n = {
|
13816
13814
|
rectangle: e.rectangle,
|
13817
13815
|
alpha: this.opacity,
|
13818
13816
|
defaultAlpha: 1,
|
@@ -13833,7 +13831,7 @@ class kv extends Zi {
|
|
13833
13831
|
return "TerrainCesiumImpl";
|
13834
13832
|
}
|
13835
13833
|
async initialize() {
|
13836
|
-
return this.initialized || (this.terrainProvider = await
|
13834
|
+
return this.initialized || (this.terrainProvider = await yr(this.url, {
|
13837
13835
|
requestVertexNormals: this.requestVertexNormals,
|
13838
13836
|
requestWaterMask: this.requestWaterMask
|
13839
13837
|
}, this.headers), this.terrainProvider[Y] = this.name), super.initialize();
|
@@ -13848,7 +13846,7 @@ class kv extends Zi {
|
|
13848
13846
|
this.terrainProvider = void 0, super.destroy();
|
13849
13847
|
}
|
13850
13848
|
}
|
13851
|
-
class zv extends
|
13849
|
+
class zv extends Ls {
|
13852
13850
|
constructor(e, s) {
|
13853
13851
|
super(e, s);
|
13854
13852
|
h(this, "format");
|
@@ -13871,7 +13869,7 @@ class zv extends Is {
|
|
13871
13869
|
e.rectangle = yt.fromDegrees(n[0], n[1], n[2], n[3]);
|
13872
13870
|
}
|
13873
13871
|
this.tilingSchema === Ue.GEOGRAPHIC && (e.tilingScheme = new qh());
|
13874
|
-
const s = await
|
13872
|
+
const s = await Jd.fromUrl(ci(this.url, this.headers), e), r = {
|
13875
13873
|
alpha: this.opacity,
|
13876
13874
|
splitDirection: this.splitDirection
|
13877
13875
|
};
|
@@ -14187,8 +14185,8 @@ class St extends Gt {
|
|
14187
14185
|
super.destroy(), this.clearCache(), this.cache.clear(), this.isDestroyed = !0, this.tileLoadedEvent.destroy();
|
14188
14186
|
}
|
14189
14187
|
}
|
14190
|
-
|
14191
|
-
class Hv extends
|
14188
|
+
bs.registerClass(St.className, St);
|
14189
|
+
class Hv extends Ku {
|
14192
14190
|
/**
|
14193
14191
|
* @param {CanvasRenderingContext2D} context Context.
|
14194
14192
|
* @param {number} pixelRatio Pixel ratio.
|
@@ -14242,7 +14240,7 @@ class Hv extends Ju {
|
|
14242
14240
|
* @returns {number} end End.
|
14243
14241
|
*/
|
14244
14242
|
moveToLineTo_(t, e, s, r, n) {
|
14245
|
-
const a = this.context_, o =
|
14243
|
+
const a = this.context_, o = Ju(t, e, s, r, this.transform_, this.pixelCoordinates_);
|
14246
14244
|
a.moveTo(o[0], o[1]);
|
14247
14245
|
const { length: l } = o;
|
14248
14246
|
for (let c = 2; c < l; c += 2)
|
@@ -14360,7 +14358,7 @@ class $v {
|
|
14360
14358
|
return Vv(r, a, o, this._tileSize);
|
14361
14359
|
}
|
14362
14360
|
}
|
14363
|
-
class Bv extends
|
14361
|
+
class Bv extends Ls {
|
14364
14362
|
constructor(e, s) {
|
14365
14363
|
const r = {
|
14366
14364
|
...s,
|
@@ -14421,7 +14419,7 @@ class Bv extends Is {
|
|
14421
14419
|
this._reloadTiles();
|
14422
14420
|
}
|
14423
14421
|
}
|
14424
|
-
class Uv extends
|
14422
|
+
class Uv extends Ls {
|
14425
14423
|
constructor(e, s) {
|
14426
14424
|
super(e, s);
|
14427
14425
|
h(this, "parameters");
|
@@ -14456,7 +14454,7 @@ class Uv extends Is {
|
|
14456
14454
|
return Promise.resolve(new Xi(r, n));
|
14457
14455
|
}
|
14458
14456
|
}
|
14459
|
-
class qv extends
|
14457
|
+
class qv extends Ls {
|
14460
14458
|
constructor(e, s) {
|
14461
14459
|
super(e, s);
|
14462
14460
|
h(this, "layer");
|
@@ -14620,7 +14618,7 @@ class Bi extends hi {
|
|
14620
14618
|
super.destroy();
|
14621
14619
|
}
|
14622
14620
|
}
|
14623
|
-
|
14621
|
+
De.registerClass(Bi.className, Bi);
|
14624
14622
|
class zn extends Ye {
|
14625
14623
|
constructor() {
|
14626
14624
|
super(...arguments);
|
@@ -14711,7 +14709,7 @@ class zn extends Ye {
|
|
14711
14709
|
}), this._featureVisibilityListeners = [], this.featureVisibility.destroy(), super.destroy();
|
14712
14710
|
}
|
14713
14711
|
}
|
14714
|
-
|
14712
|
+
De.registerClass(zn.className, zn);
|
14715
14713
|
class Hn extends zn {
|
14716
14714
|
/**
|
14717
14715
|
* @param options
|
@@ -14777,11 +14775,11 @@ class Hn extends zn {
|
|
14777
14775
|
super.destroy(), this._dataSource && (this._dataSource._entityCluster.destroy(), this._dataSource._entityCluster = null, this._dataSource._entityCollection = null, this._dataSource._changed = null, this._dataSource._error = null, this._dataSource._loading = null), this._dataSource = null;
|
14778
14776
|
}
|
14779
14777
|
}
|
14780
|
-
|
14778
|
+
De.registerClass(Hn.className, Hn);
|
14781
14779
|
function Wv(i, t, e) {
|
14782
14780
|
const s = [];
|
14783
14781
|
return i.forEach((r) => {
|
14784
|
-
const n =
|
14782
|
+
const n = Sr(r, {
|
14785
14783
|
writeStyle: !0
|
14786
14784
|
});
|
14787
14785
|
s.push({
|
@@ -14793,7 +14791,7 @@ function Wv(i, t, e) {
|
|
14793
14791
|
}
|
14794
14792
|
});
|
14795
14793
|
}), t.forEach((r) => {
|
14796
|
-
const n =
|
14794
|
+
const n = Sr(r, {
|
14797
14795
|
writeStyle: !0
|
14798
14796
|
});
|
14799
14797
|
n._id = r.getId(), s.push({
|
@@ -14964,10 +14962,10 @@ class Xv extends Gt {
|
|
14964
14962
|
this.unTrack(), this._layer = void 0, this.changed.destroy(), super.destroy();
|
14965
14963
|
}
|
14966
14964
|
}
|
14967
|
-
const
|
14968
|
-
class
|
14965
|
+
const wr = Symbol("isTiledFeature");
|
14966
|
+
class Mr extends st {
|
14969
14967
|
constructor(e) {
|
14970
|
-
const s =
|
14968
|
+
const s = Mr.getDefaultOptions();
|
14971
14969
|
super({
|
14972
14970
|
projection: s.projection,
|
14973
14971
|
...e
|
@@ -14999,11 +14997,11 @@ class wr extends st {
|
|
14999
14997
|
h(this, "_setEditing", null);
|
15000
14998
|
h(this, "_twoDimLoaded", null);
|
15001
14999
|
h(this, "_twoDimStyleChanged", null);
|
15002
|
-
h(this, "_twoDimStaticSource", new
|
15000
|
+
h(this, "_twoDimStaticSource", new sr());
|
15003
15001
|
this._supportedMaps = [
|
15004
15002
|
H.className,
|
15005
15003
|
Oe.className,
|
15006
|
-
|
15004
|
+
Ne.className
|
15007
15005
|
], this.layerId = e.id, this.staticRepresentation = e.staticRepresentation || s.staticRepresentation || {}, this.hiddenStaticFeatureIds = new Set(e.hiddenStaticFeatureIds || s.hiddenStaticFeatureIds), this.changeTracker = new Xv(this);
|
15008
15006
|
const { vcsMeta: r } = s;
|
15009
15007
|
if (e.vcsMeta && Object.assign(r, e.vcsMeta), this.vcsMeta = r, this.setVcsMeta(this.vcsMeta), this.screenSpaceErrorMobile = this.vcsMeta.screenSpaceError, this.screenSpaceError = this.vcsMeta.screenSpaceError, this._removeVectorPropertiesChangeHandler = this.vectorProperties.propertyChanged.addEventListener(() => {
|
@@ -15066,7 +15064,7 @@ class wr extends st {
|
|
15066
15064
|
dynamicStyle: !0
|
15067
15065
|
}), n = this.style instanceof Be;
|
15068
15066
|
r.forEach((a) => {
|
15069
|
-
a[Y] = this.name, a[
|
15067
|
+
a[Y] = this.name, a[wr] = !0, n && a[ot] && a.setStyle(), this._setEditing && this._setEditing.featureType != null && (a[this._setEditing.symbol] = this._setEditing.featureType);
|
15070
15068
|
}), this._twoDimStaticSource.addFeatures(r);
|
15071
15069
|
})()), this._twoDimLoaded;
|
15072
15070
|
}
|
@@ -15087,7 +15085,7 @@ class wr extends st {
|
|
15087
15085
|
},
|
15088
15086
|
tilesetProperties: [
|
15089
15087
|
{
|
15090
|
-
key:
|
15088
|
+
key: wr,
|
15091
15089
|
value: !0
|
15092
15090
|
}
|
15093
15091
|
],
|
@@ -15097,7 +15095,7 @@ class wr extends st {
|
|
15097
15095
|
globalHider: this.globalHider,
|
15098
15096
|
splitDirection: we.NONE,
|
15099
15097
|
headers: this.headers
|
15100
|
-
})) : this.staticRepresentation && this.staticRepresentation.twoDim && (this._loadTwoDim(), e instanceof Oe ? s.push(new Dc(e, this._getTwoDimStaticImplOptions())) : e instanceof
|
15098
|
+
})) : this.staticRepresentation && this.staticRepresentation.twoDim && (this._loadTwoDim(), e instanceof Oe ? s.push(new Dc(e, this._getTwoDimStaticImplOptions())) : e instanceof Ne && s.push(new nu(e, this._getTwoDimStaticImplOptions()))), s;
|
15101
15099
|
}
|
15102
15100
|
reload() {
|
15103
15101
|
return this._twoDimLoaded = null, this._twoDimStaticSource.clear(), super.reload();
|
@@ -15146,10 +15144,10 @@ class wr extends st {
|
|
15146
15144
|
const n = this.getImplementations().find((a) => a instanceof Fi && a.cesium3DTileset);
|
15147
15145
|
if (n != null && n.cesium3DTileset) {
|
15148
15146
|
const a = mu(n.cesium3DTileset);
|
15149
|
-
|
15147
|
+
nr(s, a);
|
15150
15148
|
}
|
15151
15149
|
}
|
15152
|
-
this.staticRepresentation.twoDim && this._twoDimLoaded &&
|
15150
|
+
this.staticRepresentation.twoDim && this._twoDimLoaded && nr(s, this._twoDimStaticSource.getExtent());
|
15153
15151
|
const r = new xe({
|
15154
15152
|
projection: U.toJSON(),
|
15155
15153
|
coordinates: s
|
@@ -15200,7 +15198,7 @@ class wr extends st {
|
|
15200
15198
|
}
|
15201
15199
|
}
|
15202
15200
|
toJSON() {
|
15203
|
-
const e = super.toJSON(), s =
|
15201
|
+
const e = super.toJSON(), s = Mr.getDefaultOptions();
|
15204
15202
|
delete e.projection;
|
15205
15203
|
const r = this.vectorProperties.getVcsMeta({
|
15206
15204
|
...It.getDefaultOptions(),
|
@@ -15214,11 +15212,11 @@ class wr extends st {
|
|
15214
15212
|
}), this._featureVisibilitySyncListeners = [], this._staticFeatureVisibility.destroy(), this.changeTracker.destroy(), this._removeVectorPropertiesChangeHandler && this._removeVectorPropertiesChangeHandler(), super.destroy();
|
15215
15213
|
}
|
15216
15214
|
}
|
15217
|
-
|
15215
|
+
De.registerClass(Mr.className, Mr);
|
15218
15216
|
const Ia = Symbol("featureFromOptions");
|
15219
|
-
class
|
15217
|
+
class Cr extends st {
|
15220
15218
|
constructor(e) {
|
15221
|
-
const s =
|
15219
|
+
const s = Cr.getDefaultOptions();
|
15222
15220
|
super({
|
15223
15221
|
projection: s.projection,
|
15224
15222
|
...e
|
@@ -15276,12 +15274,12 @@ class Mr extends st {
|
|
15276
15274
|
}
|
15277
15275
|
}
|
15278
15276
|
toJSON() {
|
15279
|
-
const e = super.toJSON(), s =
|
15277
|
+
const e = super.toJSON(), s = Cr.getDefaultOptions(), r = new G(s.projection);
|
15280
15278
|
if (this.projection.equals(r) ? delete e.projection : e.projection = this.projection.toJSON(), Array.isArray(this._featuresToLoad))
|
15281
15279
|
e.features = this._featuresToLoad.slice();
|
15282
15280
|
else {
|
15283
15281
|
const n = this.getFeatures().filter((a) => a[Ia]);
|
15284
|
-
n.length > 0 && (e.features = n.map((a) =>
|
15282
|
+
n.length > 0 && (e.features = n.map((a) => Sr(a, { writeStyle: !0, writeId: !0 })));
|
15285
15283
|
}
|
15286
15284
|
return e;
|
15287
15285
|
}
|
@@ -15289,7 +15287,7 @@ class Mr extends st {
|
|
15289
15287
|
super.destroy(), this._featuresToLoad = [];
|
15290
15288
|
}
|
15291
15289
|
}
|
15292
|
-
|
15290
|
+
De.registerClass(Cr.className, Cr);
|
15293
15291
|
class Vr extends ta {
|
15294
15292
|
constructor(e, s) {
|
15295
15293
|
super(e, s);
|
@@ -15320,7 +15318,7 @@ class Yv extends Vr {
|
|
15320
15318
|
});
|
15321
15319
|
}
|
15322
15320
|
}
|
15323
|
-
class
|
15321
|
+
class xr extends Ye {
|
15324
15322
|
constructor(e) {
|
15325
15323
|
super(e);
|
15326
15324
|
h(this, "_splitDirection");
|
@@ -15334,7 +15332,7 @@ class Cr extends Ye {
|
|
15334
15332
|
*/
|
15335
15333
|
h(this, "maxLevel");
|
15336
15334
|
h(this, "_supportedMaps", [H.className, Oe.className]);
|
15337
|
-
const s =
|
15335
|
+
const s = xr.getDefaultOptions();
|
15338
15336
|
this._splitDirection = we.NONE, e.splitDirection && (this._splitDirection = e.splitDirection === "left" ? we.LEFT : we.RIGHT), this._opacity = Ln(e.opacity, s.opacity, 0, 1), this.maxLevel = le(e.maxLevel, s.maxLevel);
|
15339
15337
|
}
|
15340
15338
|
static get className() {
|
@@ -15386,14 +15384,14 @@ class Cr extends Ye {
|
|
15386
15384
|
] : [];
|
15387
15385
|
}
|
15388
15386
|
toJSON() {
|
15389
|
-
const e = super.toJSON(), s =
|
15387
|
+
const e = super.toJSON(), s = xr.getDefaultOptions();
|
15390
15388
|
return this._splitDirection !== we.NONE && (e.splitDirection = this._splitDirection === we.RIGHT ? "right" : "left"), this.opacity !== s.opacity && (e.opacity = this.opacity), this.maxLevel !== s.maxLevel && (e.maxLevel = this.maxLevel), this._splitDirection !== we.NONE && (e.splitDirection = this._splitDirection === we.RIGHT ? "right" : "left"), e;
|
15391
15389
|
}
|
15392
15390
|
destroy() {
|
15393
15391
|
this.splitDirectionChanged.destroy(), super.destroy();
|
15394
15392
|
}
|
15395
15393
|
}
|
15396
|
-
|
15394
|
+
De.registerClass(xr.className, xr);
|
15397
15395
|
class Zv extends Vr {
|
15398
15396
|
constructor(e, s) {
|
15399
15397
|
super(e, s);
|
@@ -15446,7 +15444,7 @@ class Iw extends ta {
|
|
15446
15444
|
updateTiles(t) {
|
15447
15445
|
}
|
15448
15446
|
}
|
15449
|
-
class
|
15447
|
+
class Kv extends Vr {
|
15450
15448
|
/**
|
15451
15449
|
* @param map
|
15452
15450
|
* @param options
|
@@ -15479,7 +15477,7 @@ class Jv extends Vr {
|
|
15479
15477
|
return this.extent && this.extent.isValid() && (s.extent = this.extent.getCoordinatesInProjection(U)), new Ms(s);
|
15480
15478
|
}
|
15481
15479
|
}
|
15482
|
-
class
|
15480
|
+
class Jv extends ta {
|
15483
15481
|
constructor(e, s) {
|
15484
15482
|
super(e, s);
|
15485
15483
|
h(this, "tileProvider");
|
@@ -15645,7 +15643,7 @@ class eS extends Vr {
|
|
15645
15643
|
}
|
15646
15644
|
}
|
15647
15645
|
const tS = new Be({});
|
15648
|
-
class
|
15646
|
+
class Or extends Bi {
|
15649
15647
|
constructor(e) {
|
15650
15648
|
super(e);
|
15651
15649
|
/**
|
@@ -15654,7 +15652,7 @@ class xr extends Bi {
|
|
15654
15652
|
h(this, "defaultPointSize");
|
15655
15653
|
h(this, "_pointSize");
|
15656
15654
|
h(this, "_supportedMaps", [H.className]);
|
15657
|
-
const s =
|
15655
|
+
const s = Or.getDefaultOptions();
|
15658
15656
|
this.defaultPointSize = e.pointSize != null ? e.pointSize : s.pointSize, this._pointSize = this.defaultPointSize;
|
15659
15657
|
}
|
15660
15658
|
static get className() {
|
@@ -15696,11 +15694,11 @@ class xr extends Bi {
|
|
15696
15694
|
e instanceof he ? this.getLogger().warning("trying to apply vector style to point cloud layer.") : super.setStyle(e, s);
|
15697
15695
|
}
|
15698
15696
|
toJSON() {
|
15699
|
-
const e = super.toJSON(), s =
|
15697
|
+
const e = super.toJSON(), s = Or.getDefaultOptions();
|
15700
15698
|
return this.defaultPointSize !== s.pointSize && (e.pointSize = this.defaultPointSize), e;
|
15701
15699
|
}
|
15702
15700
|
}
|
15703
|
-
|
15701
|
+
De.registerClass(Or.className, Or);
|
15704
15702
|
class jn extends vt {
|
15705
15703
|
constructor(e) {
|
15706
15704
|
super(e);
|
@@ -15745,14 +15743,14 @@ class jn extends vt {
|
|
15745
15743
|
return delete e.tilingSchema, this.credit && (e.credit = this.credit), e;
|
15746
15744
|
}
|
15747
15745
|
}
|
15748
|
-
|
15749
|
-
class
|
15746
|
+
De.registerClass(jn.className, jn);
|
15747
|
+
class br extends Ye {
|
15750
15748
|
constructor(e) {
|
15751
15749
|
super(e);
|
15752
15750
|
h(this, "_supportedMaps", [H.className]);
|
15753
15751
|
h(this, "requestVertexNormals");
|
15754
15752
|
h(this, "requestWaterMask");
|
15755
|
-
const s =
|
15753
|
+
const s = br.getDefaultOptions();
|
15756
15754
|
this.requestVertexNormals = ue(e.requestVertexNormals, s.requestVertexNormals), this.requestWaterMask = ue(e.requestWaterMask, s.requestWaterMask);
|
15757
15755
|
}
|
15758
15756
|
static get className() {
|
@@ -15780,18 +15778,18 @@ class Or extends Ye {
|
|
15780
15778
|
* @param coords - the height is added to the coordinates in place
|
15781
15779
|
*/
|
15782
15780
|
async getHeightForWGS84Coordinates(e) {
|
15783
|
-
const s = await
|
15781
|
+
const s = await yr(this.url, {
|
15784
15782
|
requestVertexNormals: this.requestVertexNormals,
|
15785
15783
|
requestWaterMask: this.requestWaterMask
|
15786
15784
|
}, this.headers);
|
15787
|
-
return
|
15785
|
+
return Is(s, e, void 0, e);
|
15788
15786
|
}
|
15789
15787
|
toJSON() {
|
15790
|
-
const e = super.toJSON(), s =
|
15788
|
+
const e = super.toJSON(), s = br.getDefaultOptions();
|
15791
15789
|
return this.requestVertexNormals !== s.requestVertexNormals && (e.requestVertexNormals = this.requestVertexNormals), this.requestWaterMask !== s.requestWaterMask && (e.requestWaterMask = this.requestWaterMask), e;
|
15792
15790
|
}
|
15793
15791
|
}
|
15794
|
-
|
15792
|
+
De.registerClass(br.className, br);
|
15795
15793
|
function iS(i, t) {
|
15796
15794
|
return new Promise((e) => {
|
15797
15795
|
var n;
|
@@ -15865,7 +15863,7 @@ class Vn extends St {
|
|
15865
15863
|
return this.url && (e.url = this.url), e;
|
15866
15864
|
}
|
15867
15865
|
}
|
15868
|
-
|
15866
|
+
bs.registerClass(Vn.className, Vn);
|
15869
15867
|
class $n extends St {
|
15870
15868
|
constructor(e) {
|
15871
15869
|
const s = $n.getDefaultOptions();
|
@@ -15895,7 +15893,7 @@ class $n extends St {
|
|
15895
15893
|
this.locale !== e && (super.locale = e, this.url.includes("{locale}") && this.clearCache());
|
15896
15894
|
}
|
15897
15895
|
async loader(e, s, r, n) {
|
15898
|
-
const a = this.tilingScheme.tileXYToRectangle(e, s, r), o = pu(this.url, e, s, r, a, this.locale), l = Ho(a), c =
|
15896
|
+
const a = this.tilingScheme.tileXYToRectangle(e, s, r), o = pu(this.url, e, s, r, a, this.locale), l = Ho(a), c = rr(l), d = Rt(this.url, n), u = await X0(o, d), f = this._MVTFormat.readFeatures(u), g = (l[2] - l[0]) / 4096, m = -((l[3] - l[1]) / 4096);
|
15899
15897
|
return f.forEach((p) => {
|
15900
15898
|
const y = this.idProperty ? p.get(this.idProperty) : null;
|
15901
15899
|
y != null && p.setId(String(y));
|
@@ -15909,7 +15907,7 @@ class $n extends St {
|
|
15909
15907
|
return this.url && (e.url = this.url), this.idProperty && (e.idProperty = this.idProperty), e;
|
15910
15908
|
}
|
15911
15909
|
}
|
15912
|
-
|
15910
|
+
bs.registerClass($n.className, $n);
|
15913
15911
|
class Bn extends St {
|
15914
15912
|
constructor(e) {
|
15915
15913
|
const s = Bn.getDefaultOptions();
|
@@ -15937,10 +15935,10 @@ class Bn extends St {
|
|
15937
15935
|
return delete e.baseLevels, this.url && (e.url = this.url), e;
|
15938
15936
|
}
|
15939
15937
|
}
|
15940
|
-
|
15941
|
-
class
|
15938
|
+
bs.registerClass(Bn.className, Bn);
|
15939
|
+
class Er extends vt {
|
15942
15940
|
constructor(e) {
|
15943
|
-
const s =
|
15941
|
+
const s = Er.getDefaultOptions();
|
15944
15942
|
super({ tilingSchema: s.tilingSchema, ...e });
|
15945
15943
|
h(this, "format");
|
15946
15944
|
h(this, "tileSize");
|
@@ -15965,20 +15963,20 @@ class br extends vt {
|
|
15965
15963
|
};
|
15966
15964
|
}
|
15967
15965
|
createImplementationsForMap(e) {
|
15968
|
-
return e instanceof Oe ? [new
|
15966
|
+
return e instanceof Oe ? [new Kv(e, this.getImplementationOptions())] : e instanceof H ? [new zv(e, this.getImplementationOptions())] : [];
|
15969
15967
|
}
|
15970
15968
|
toJSON() {
|
15971
15969
|
var r;
|
15972
|
-
const e = super.toJSON(), s =
|
15970
|
+
const e = super.toJSON(), s = Er.getDefaultOptions();
|
15973
15971
|
return this.tilingSchema !== s.tilingSchema ? e.tilingSchema = this.tilingSchema : delete e.tilingSchema, this.format !== s.format && (e.format = this.format), (this.tileSize[0] !== ((r = s == null ? void 0 : s.tileSize) == null ? void 0 : r[0]) || this.tileSize[1] !== s.tileSize[1]) && (e.tileSize = this.tileSize.slice()), e;
|
15974
15972
|
}
|
15975
15973
|
}
|
15976
|
-
|
15974
|
+
De.registerClass(Er.className, Er);
|
15977
15975
|
function nh(i, t, e) {
|
15978
15976
|
const s = e.getId();
|
15979
|
-
i.hiddenObjects[s] ? e[ut] = !0 : e[ut] && delete e[ut], i.highlightedObjects[s] ? e[
|
15977
|
+
i.hiddenObjects[s] ? e[ut] = !0 : e[ut] && delete e[ut], i.highlightedObjects[s] ? e[be] = i.highlightedObjects[s].style : e[be] && delete e[be], t != null && t.hiddenObjects[s] ? e[dt] = !0 : e[dt] && delete e[dt];
|
15980
15978
|
}
|
15981
|
-
class
|
15979
|
+
class Pr extends hi {
|
15982
15980
|
/**
|
15983
15981
|
* @param options
|
15984
15982
|
*/
|
@@ -16005,11 +16003,11 @@ class Er extends hi {
|
|
16005
16003
|
*/
|
16006
16004
|
h(this, "_styleZIndex", 0);
|
16007
16005
|
this._supportedMaps = [H.className, Oe.className];
|
16008
|
-
const s =
|
16006
|
+
const s = Pr.getDefaultOptions();
|
16009
16007
|
this.highlightStyle = void 0, e.highlightStyle && (this.highlightStyle = e.highlightStyle instanceof he ? e.highlightStyle : new he(e.highlightStyle)), this.vectorProperties = new It({
|
16010
16008
|
allowPicking: this.allowPicking,
|
16011
16009
|
...e.vectorProperties
|
16012
|
-
}), this.tileProvider = e.tileProvider instanceof St ? e.tileProvider : ii(
|
16010
|
+
}), this.tileProvider = e.tileProvider instanceof St ? e.tileProvider : ii(bs, 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);
|
16013
16011
|
}
|
16014
16012
|
static get className() {
|
16015
16013
|
return "VectorTileLayer";
|
@@ -16072,7 +16070,7 @@ class Er extends hi {
|
|
16072
16070
|
const c = this.tileProvider.rtreeCache.get(o).all().find((d) => d.value.getId() === n);
|
16073
16071
|
if (c) {
|
16074
16072
|
const d = c.value;
|
16075
|
-
r.add(o), e === ne.HIGHLIGHT ? d[
|
16073
|
+
r.add(o), e === ne.HIGHLIGHT ? d[be] = this.featureVisibility.highlightedObjects[n].style : e === ne.UNHIGHLIGHT ? delete d[be] : e === ne.HIDE ? d[ut] = !0 : e === ne.SHOW && delete d[ut];
|
16076
16074
|
}
|
16077
16075
|
});
|
16078
16076
|
}), this.updateTiles([...r]);
|
@@ -16105,7 +16103,7 @@ class Er extends hi {
|
|
16105
16103
|
*/
|
16106
16104
|
_featureStyle(e, s) {
|
16107
16105
|
let r;
|
16108
|
-
return e[ut] || e[dt] ? [] : (e[
|
16106
|
+
return e[ut] || e[dt] ? [] : (e[be] ? { style: r } = e[be] : this.style instanceof Be ? { style: r } = this.style : r = e.getStyle() || this.style.style, Fn(r, e, s));
|
16109
16107
|
}
|
16110
16108
|
getImplementationOptions() {
|
16111
16109
|
return {
|
@@ -16121,7 +16119,7 @@ class Er extends hi {
|
|
16121
16119
|
return e instanceof H ? [
|
16122
16120
|
new Bv(e, this.getImplementationOptions())
|
16123
16121
|
] : e instanceof Oe ? [
|
16124
|
-
new
|
16122
|
+
new Jv(e, this.getImplementationOptions())
|
16125
16123
|
] : [];
|
16126
16124
|
}
|
16127
16125
|
getStyleOrDefaultStyle(e, s) {
|
@@ -16143,13 +16141,13 @@ class Er extends hi {
|
|
16143
16141
|
}), super.destroy(), this._tileLoadEventListener(), this.featureProvider && this.featureProvider.destroy(), this.tileProvider && this.tileProvider.destroy(), this._vectorPropertiesChangedListener(), this.vectorProperties && this.vectorProperties.destroy();
|
16144
16142
|
}
|
16145
16143
|
toJSON() {
|
16146
|
-
const e = super.toJSON(), s =
|
16144
|
+
const e = super.toJSON(), s = Pr.getDefaultOptions();
|
16147
16145
|
this._maxLevel !== s.maxLevel && (e.maxLevel = this._maxLevel), this._minLevel !== s.minLevel && (e.minLevel = this._minLevel);
|
16148
16146
|
const r = this.vectorProperties.getVcsMeta();
|
16149
16147
|
return Object.keys(r).length > 0 && (e.vectorProperties = r), this.tileProvider && (e.tileProvider = this.tileProvider.toJSON()), e;
|
16150
16148
|
}
|
16151
16149
|
}
|
16152
|
-
|
16150
|
+
De.registerClass(Pr.className, Pr);
|
16153
16151
|
class ah extends st {
|
16154
16152
|
constructor(e) {
|
16155
16153
|
var r;
|
@@ -16224,8 +16222,8 @@ class ah extends st {
|
|
16224
16222
|
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;
|
16225
16223
|
}
|
16226
16224
|
}
|
16227
|
-
|
16228
|
-
class
|
16225
|
+
De.registerClass(ah.className, ah);
|
16226
|
+
class Ir extends vt {
|
16229
16227
|
/**
|
16230
16228
|
* @param options
|
16231
16229
|
*/
|
@@ -16237,7 +16235,7 @@ class Pr extends vt {
|
|
16237
16235
|
h(this, "highResolution");
|
16238
16236
|
h(this, "singleImage2d");
|
16239
16237
|
h(this, "_featureInfoOptions");
|
16240
|
-
const s =
|
16238
|
+
const s = Ir.getDefaultOptions();
|
16241
16239
|
if (this.version = e.version || s.version, this.parameters = {}, e.parameters) {
|
16242
16240
|
let r = {};
|
16243
16241
|
typeof e.parameters == "string" ? r = Object.fromEntries(new URLSearchParams(e.parameters)) : e.parameters instanceof Object && (r = e.parameters), Object.keys(r).forEach((n) => {
|
@@ -16315,7 +16313,7 @@ class Pr extends vt {
|
|
16315
16313
|
}
|
16316
16314
|
toJSON() {
|
16317
16315
|
var n, a, o;
|
16318
|
-
const e = super.toJSON(), s =
|
16316
|
+
const e = super.toJSON(), s = Ir.getDefaultOptions();
|
16319
16317
|
this.parameters.LAYERS && (e.layers = this.parameters.LAYERS), this.version !== s.version && (e.version = this.version);
|
16320
16318
|
const r = { ...this.parameters };
|
16321
16319
|
if (delete r.VERSION, delete r.LAYERS, r.TRANSPARENT === !1 && delete r.TRANSPARENT, Object.keys(r).length > 0 && (e.parameters = r), this.version !== s.version && (e.version = this.version), this.highResolution !== s.highResolution && (e.highResolution = this.highResolution), (this.tileSize[0] !== ((n = s == null ? void 0 : s.tileSize) == null ? void 0 : n[0]) || this.tileSize[1] !== s.tileSize[1]) && (e.tileSize = this.tileSize.slice()), this.featureProvider && this.featureProvider instanceof $i) {
|
@@ -16329,7 +16327,7 @@ class Pr extends vt {
|
|
16329
16327
|
return e;
|
16330
16328
|
}
|
16331
16329
|
}
|
16332
|
-
|
16330
|
+
De.registerClass(Ir.className, Ir);
|
16333
16331
|
function sS(i, t, e) {
|
16334
16332
|
if (i.length > 0) {
|
16335
16333
|
if (i.length === t + 1)
|
@@ -16338,9 +16336,9 @@ function sS(i, t, e) {
|
|
16338
16336
|
}
|
16339
16337
|
return new Array(t + 1).fill(void 0).map((s, r) => `${e}${r}`);
|
16340
16338
|
}
|
16341
|
-
class
|
16339
|
+
class Lr extends vt {
|
16342
16340
|
constructor(e) {
|
16343
|
-
const s =
|
16341
|
+
const s = Lr.getDefaultOptions();
|
16344
16342
|
super({ tilingSchema: s.tilingSchema, ...e });
|
16345
16343
|
h(this, "numberOfLevelZeroTilesX");
|
16346
16344
|
h(this, "numberOfLevelZeroTilesY");
|
@@ -16392,11 +16390,11 @@ class Ir extends vt {
|
|
16392
16390
|
}
|
16393
16391
|
toJSON() {
|
16394
16392
|
var r;
|
16395
|
-
const e = super.toJSON(), s =
|
16393
|
+
const e = super.toJSON(), s = Lr.getDefaultOptions();
|
16396
16394
|
return this.tilingSchema !== s.tilingSchema ? e.tilingSchema = this.tilingSchema : delete e.tilingSchema, this.numberOfLevelZeroTilesX !== s.numberOfLevelZeroTilesX && (e.numberOfLevelZeroTilesX = this.numberOfLevelZeroTilesX), this.numberOfLevelZeroTilesY !== s.numberOfLevelZeroTilesY && (e.numberOfLevelZeroTilesY = this.numberOfLevelZeroTilesY), this.layer !== s.layer && (e.layer = this.layer), this.wmtsStyle !== s.wmtsStyle && (e.wmtsStyle = this.wmtsStyle), this.format !== s.format && (e.format = this.format), this.tileMatrixPrefix !== s.tileMatrixPrefix && (e.tileMatrixPrefix = this.tileMatrixPrefix), this.tileMatrixSetID !== s.tileMatrixSetID && (e.tileMatrixSetID = this.tileMatrixSetID), Object.keys(this.openlayersOptions).length > 0 && (e.openlayersOptions = { ...this.openlayersOptions }), this.matrixIds.length > 0 && (e.matrixIds = this.matrixIds.slice()), (this.tileSize[0] !== ((r = s == null ? void 0 : s.tileSize) == null ? void 0 : r[0]) || this.tileSize[1] !== s.tileSize[1]) && (e.tileSize = this.tileSize.slice()), e;
|
16397
16395
|
}
|
16398
16396
|
}
|
16399
|
-
|
16397
|
+
De.registerClass(Lr.className, Lr);
|
16400
16398
|
function La() {
|
16401
16399
|
return Ce("ClippingObject");
|
16402
16400
|
}
|
@@ -16569,7 +16567,7 @@ function oh(i, t) {
|
|
16569
16567
|
const e = v.subtract(i, t, new v());
|
16570
16568
|
v.normalize(e, e);
|
16571
16569
|
const s = te.fromPointNormal(i, e);
|
16572
|
-
return
|
16570
|
+
return lr.fromPlane(s);
|
16573
16571
|
}
|
16574
16572
|
function rS(i) {
|
16575
16573
|
const t = [], e = i.map((s) => Ct(s));
|
@@ -16577,7 +16575,7 @@ function rS(i) {
|
|
16577
16575
|
const r = s + 1, n = new v();
|
16578
16576
|
v.cross(e[r], e[s], n), v.normalize(n, n);
|
16579
16577
|
const a = new te(n, 0);
|
16580
|
-
Number.isNaN(a.distance) || t.push(
|
16578
|
+
Number.isNaN(a.distance) || t.push(lr.fromPlane(a));
|
16581
16579
|
}
|
16582
16580
|
return t;
|
16583
16581
|
}
|
@@ -16596,7 +16594,7 @@ function nS(i) {
|
|
16596
16594
|
const a = v.add(n, s, new v()), o = new v();
|
16597
16595
|
v.cross(n, a, o), v.normalize(o, o);
|
16598
16596
|
const l = new te(o, 0);
|
16599
|
-
t.push(
|
16597
|
+
t.push(lr.fromPlane(l));
|
16600
16598
|
}
|
16601
16599
|
return r(e[0]), v.negate(s, s), r(e[1]), t;
|
16602
16600
|
}
|
@@ -16606,54 +16604,54 @@ function Nw(i, t = {}, e = void 0) {
|
|
16606
16604
|
if (n === "Point")
|
16607
16605
|
s.push(...lh(i, [r.getCoordinates()], t));
|
16608
16606
|
else {
|
16609
|
-
const a =
|
16607
|
+
const a = Ps(r);
|
16610
16608
|
if (a.length < 2 || a[0][0] === a[1][0] && a[0][1] === a[1][1])
|
16611
16609
|
return null;
|
16612
|
-
n === "Polygon" ? (to(a),
|
16610
|
+
n === "Polygon" ? (to(a), K_(a)) : n === "LineString" && a.length === 2 && t.createEndingPlanes && s.push(...nS(a)), t.createVerticalPlanes && s.push(...rS(a)), i.get("olcs_altitudeMode") === "absolute" && (t.createBottomPlane || t.createTopPlane) && s.push(...lh(i, a, t));
|
16613
16611
|
}
|
16614
16612
|
return e && s.forEach((a) => {
|
16615
16613
|
const o = te.transform(a, e);
|
16616
16614
|
a.normal = o.normal, a.distance = o.distance;
|
16617
16615
|
}), t.reverse && s.forEach((a) => {
|
16618
16616
|
v.negate(a.normal, a.normal), a.distance *= -1;
|
16619
|
-
}), new
|
16617
|
+
}), new or({
|
16620
16618
|
planes: s,
|
16621
16619
|
unionClippingRegions: t.reverse
|
16622
16620
|
});
|
16623
16621
|
}
|
16624
|
-
function
|
16625
|
-
S(i,
|
16622
|
+
function er(i, t, e, s) {
|
16623
|
+
S(i, or), S(t, or), t.length > 0 && t.removeAll();
|
16626
16624
|
for (let r = 0; r < i.length; r++) {
|
16627
16625
|
const n = i.get(r);
|
16628
16626
|
if (e && s) {
|
16629
16627
|
const a = te.getPointDistance(n, s), o = te.transform(n, e);
|
16630
|
-
o.distance = a, t.add(
|
16628
|
+
o.distance = a, t.add(lr.fromPlane(o));
|
16631
16629
|
} else
|
16632
|
-
t.add(
|
16630
|
+
t.add(lr.clone(n));
|
16633
16631
|
}
|
16634
16632
|
return t.modelMatrix = i.modelMatrix.clone(), t.unionClippingRegions = i.unionClippingRegions, t.edgeColor = i.edgeColor.clone(), t.edgeWidth = i.edgeWidth, t;
|
16635
16633
|
}
|
16636
16634
|
function aa(i) {
|
16637
|
-
i instanceof Wi ? i.model && (i.model.clippingPlanes ? i.model.clippingPlanes.getValue().removeAll() : i.model.clippingPlanes = new rf(new
|
16635
|
+
i instanceof Wi ? i.model && (i.model.clippingPlanes ? i.model.clippingPlanes.getValue().removeAll() : i.model.clippingPlanes = new rf(new or())) : i.clippingPlanes ? i.clippingPlanes.removeAll() : i.clippingPlanes = new or();
|
16638
16636
|
}
|
16639
16637
|
function aS(i, t, e) {
|
16640
16638
|
if (aa(i), e)
|
16641
|
-
|
16639
|
+
er(t, i.clippingPlanes);
|
16642
16640
|
else if (!t.modelMatrix.equals(F.IDENTITY))
|
16643
|
-
|
16641
|
+
er(t, i.clippingPlanes), i.clippingPlanes.modelMatrix = F.multiply(F.inverse(i.clippingPlanesOriginMatrix, i.clippingPlanes.modelMatrix), t.modelMatrix, i.clippingPlanes.modelMatrix);
|
16644
16642
|
else {
|
16645
16643
|
const s = F.getMatrix3(F.inverse(i.clippingPlanesOriginMatrix, new F()), new X()), r = F.fromRotationTranslation(s, new v());
|
16646
|
-
|
16644
|
+
er(t, i.clippingPlanes, r, i.boundingSphere.center);
|
16647
16645
|
}
|
16648
16646
|
}
|
16649
16647
|
function oS(i, t) {
|
16650
|
-
aa(i),
|
16648
|
+
aa(i), er(t, i.clippingPlanes);
|
16651
16649
|
}
|
16652
16650
|
function lS(i, t, e) {
|
16653
16651
|
if (i.model) {
|
16654
16652
|
aa(i);
|
16655
16653
|
const s = i.model.clippingPlanes.getValue();
|
16656
|
-
if (
|
16654
|
+
if (er(t, s), !e) {
|
16657
16655
|
const r = i.computeModelMatrix(jh.now());
|
16658
16656
|
F.inverseTransformation(r, s.modelMatrix), t.modelMatrix.equals(F.IDENTITY) || F.multiply(s.modelMatrix, t.modelMatrix, s.modelMatrix);
|
16659
16657
|
}
|
@@ -16864,7 +16862,7 @@ function yu(i) {
|
|
16864
16862
|
return ko(t), i.add(t), t.activate(), t;
|
16865
16863
|
}
|
16866
16864
|
function oa(i, t) {
|
16867
|
-
const e = new
|
16865
|
+
const e = new Ki(), s = new P(), r = i.addExclusiveInteraction(e, () => {
|
16868
16866
|
s.raiseEvent();
|
16869
16867
|
}, void 0, t), n = i.featureInteraction.active;
|
16870
16868
|
return i.featureInteraction.setActive(E.CLICKMOVE | E.DRAGEVENTS), {
|
@@ -16883,7 +16881,7 @@ function _u(i) {
|
|
16883
16881
|
const t = i.maps.eventHandler.featureInteraction.pickPosition;
|
16884
16882
|
return {
|
16885
16883
|
setForAltitudeMode(e) {
|
16886
|
-
e ===
|
16884
|
+
e === Le.NONE ? i.maps.eventHandler.featureInteraction.pickPosition = E.CLICKMOVE | E.DRAGEVENTS : i.maps.eventHandler.featureInteraction.pickPosition = E.NONE;
|
16887
16885
|
},
|
16888
16886
|
reset() {
|
16889
16887
|
i.maps.eventHandler.featureInteraction.pickPosition = t;
|
@@ -16908,7 +16906,7 @@ class cS extends ce {
|
|
16908
16906
|
this._geometry && this._geometry.setCoordinates(this._coordinates);
|
16909
16907
|
}
|
16910
16908
|
pipe(e) {
|
16911
|
-
return e.type & E.CLICKMOVE && this._geometry && (this._lastCoordinate.splice(0, e.positionOrPixel.length, ...e.positionOrPixel), this._setCoordinates()), e.type & E.CLICK && (this._geometry ? (this._lastCoordinate = [...this._lastCoordinate], this._coordinates.push(this._lastCoordinate)) : (this._geometry = new Ut([e.positionOrPixel], "XYZ"), e.map instanceof
|
16909
|
+
return e.type & E.CLICKMOVE && this._geometry && (this._lastCoordinate.splice(0, e.positionOrPixel.length, ...e.positionOrPixel), this._setCoordinates()), e.type & E.CLICK && (this._geometry ? (this._lastCoordinate = [...this._lastCoordinate], this._coordinates.push(this._lastCoordinate)) : (this._geometry = new Ut([e.positionOrPixel], "XYZ"), e.map instanceof Ne ? this._geometry[Xe] = !0 : this._geometry[li] = !0, this.created.raiseEvent(this._geometry), this._coordinates = [e.positionOrPixel.slice()], this._lastCoordinate = this._coordinates[0].slice(), this._coordinates.push(this._lastCoordinate))), e.type & E.DBLCLICK && this.finish(), Promise.resolve(e);
|
16912
16910
|
}
|
16913
16911
|
/**
|
16914
16912
|
* Finish the current creation. Calls finish and sets the interaction to be inactive
|
@@ -16937,7 +16935,7 @@ class uS extends ce {
|
|
16937
16935
|
this._geometry && this._geometry.setCoordinates(this._coordinates);
|
16938
16936
|
}
|
16939
16937
|
pipe(e) {
|
16940
|
-
return e.type & E.CLICKMOVE && this._geometry && (this._lastCoordinate.splice(0, e.positionOrPixel.length, ...e.positionOrPixel), this._setCoordinates()), e.type & E.CLICK && (this._geometry ? this.finish() : (this._geometry = new Ot(e.positionOrPixel, 20, "XYZ"), this._geometry[
|
16938
|
+
return e.type & E.CLICKMOVE && this._geometry && (this._lastCoordinate.splice(0, e.positionOrPixel.length, ...e.positionOrPixel), this._setCoordinates()), e.type & E.CLICK && (this._geometry ? this.finish() : (this._geometry = new Ot(e.positionOrPixel, 20, "XYZ"), this._geometry[Qs] = e.map instanceof Ne, e.map instanceof Ne ? this._geometry[Xe] = !0 : this._geometry[li] = !0, this.created.raiseEvent(this._geometry), this._coordinates = this._geometry.getCoordinates(), this._lastCoordinate = this._coordinates[1])), e.type & E.DBLCLICK && this.finish(), Promise.resolve(e);
|
16941
16939
|
}
|
16942
16940
|
/**
|
16943
16941
|
* Finish the current creation. Calls finish and sets the interaction to be inactive
|
@@ -16983,7 +16981,7 @@ class dS extends ce {
|
|
16983
16981
|
}
|
16984
16982
|
}
|
16985
16983
|
pipe(e) {
|
16986
|
-
return e.type & E.CLICKMOVE && this._geometry && (this._lastCoordinate.splice(0, e.positionOrPixel.length, ...e.positionOrPixel), this._setCoordinates()), e.type & E.CLICK && (this._geometry ? this.finish() : (this._geometry = new Dt([[e.positionOrPixel.slice()]], "XYZ"), this._geometry.set("_vcsGeomType", et.BBox), e.map instanceof
|
16984
|
+
return e.type & E.CLICKMOVE && this._geometry && (this._lastCoordinate.splice(0, e.positionOrPixel.length, ...e.positionOrPixel), this._setCoordinates()), e.type & E.CLICK && (this._geometry ? this.finish() : (this._geometry = new Dt([[e.positionOrPixel.slice()]], "XYZ"), this._geometry.set("_vcsGeomType", et.BBox), e.map instanceof Ne ? this._geometry[Xe] = !0 : this._geometry[li] = !0, this.created.raiseEvent(this._geometry), this._origin = e.positionOrPixel.slice(), this._lastCoordinate = this._origin.slice())), e.type & E.DBLCLICK && this.finish(), Promise.resolve(e);
|
16987
16985
|
}
|
16988
16986
|
/**
|
16989
16987
|
* Finish the current creation. Calls finish and sets the interaction to be inactive
|
@@ -17004,7 +17002,7 @@ class fS extends ce {
|
|
17004
17002
|
this.setActive();
|
17005
17003
|
}
|
17006
17004
|
pipe(e) {
|
17007
|
-
return this._geometry = new Nt(e.positionOrPixel, "XYZ"), e.map instanceof
|
17005
|
+
return this._geometry = new Nt(e.positionOrPixel, "XYZ"), e.map instanceof Ne ? this._geometry[Xe] = !0 : this._geometry[li] = !0, this.created.raiseEvent(this._geometry), this.finish(), Promise.resolve(e);
|
17008
17006
|
}
|
17009
17007
|
/**
|
17010
17008
|
* Finish the current creation. Calls finish and sets the interaction to be inactive
|
@@ -17040,7 +17038,7 @@ class gS extends ce {
|
|
17040
17038
|
this._geometry && this._geometry.setCoordinates([this._coordinates]);
|
17041
17039
|
}
|
17042
17040
|
pipe(e) {
|
17043
|
-
return e.type & E.CLICKMOVE && this._geometry && (this._lastCoordinate.splice(0, e.positionOrPixel.length, ...e.positionOrPixel), this._setCoordinates()), e.type & E.CLICK && (this._geometry ? this._validityPlaceHolder ? (this._lastCoordinate = [...this._lastCoordinate], this._coordinates.splice(2, 1, this._lastCoordinate), this._validityPlaceHolder = null) : (this._lastCoordinate = [...this._lastCoordinate], this._coordinates.push(this._lastCoordinate)) : (this._geometry = new Dt([[e.positionOrPixel.slice()]], "XYZ"), e.map instanceof
|
17041
|
+
return e.type & E.CLICKMOVE && this._geometry && (this._lastCoordinate.splice(0, e.positionOrPixel.length, ...e.positionOrPixel), this._setCoordinates()), e.type & E.CLICK && (this._geometry ? this._validityPlaceHolder ? (this._lastCoordinate = [...this._lastCoordinate], this._coordinates.splice(2, 1, this._lastCoordinate), this._validityPlaceHolder = null) : (this._lastCoordinate = [...this._lastCoordinate], this._coordinates.push(this._lastCoordinate)) : (this._geometry = new Dt([[e.positionOrPixel.slice()]], "XYZ"), e.map instanceof Ne ? this._geometry[Xe] = !0 : this._geometry[li] = !0, this.created.raiseEvent(this._geometry), this._coordinates = [e.positionOrPixel.slice()], this._lastCoordinate = [...e.positionOrPixel], this._validityPlaceHolder = e.positionOrPixel.slice(), this._coordinates.push(this._lastCoordinate), this._coordinates.push(this._validityPlaceHolder))), e.type & E.DBLCLICK && this.finish(), Promise.resolve(e);
|
17044
17042
|
}
|
17045
17043
|
/**
|
17046
17044
|
* Finish the current creation. Calls finish and sets the interaction to be inactive
|
@@ -17269,7 +17267,7 @@ function pS() {
|
|
17269
17267
|
return navigator.language ? navigator.language.substring(0, 2) : "en";
|
17270
17268
|
}
|
17271
17269
|
function yS(i, t) {
|
17272
|
-
const e =
|
17270
|
+
const e = Jt(new Tt("id"), i);
|
17273
17271
|
return e.added.addEventListener(({ id: s }) => {
|
17274
17272
|
t.hideObjects([s]);
|
17275
17273
|
}), e.replaced.addEventListener(({ new: s }) => {
|
@@ -17358,7 +17356,7 @@ const wu = {
|
|
17358
17356
|
title: Q(String)
|
17359
17357
|
};
|
17360
17358
|
function vS(i) {
|
17361
|
-
return
|
17359
|
+
return xs(i, wu) && i.coordinate.length === 3;
|
17362
17360
|
}
|
17363
17361
|
function Mu(i) {
|
17364
17362
|
S(i, wu);
|
@@ -17558,7 +17556,7 @@ class ws extends Gt {
|
|
17558
17556
|
return this._multiplier !== s.multiplier && (e.multiplier = this._multiplier), this._loop !== s.loop && (e.loop = this._loop), this._interpolation !== s.interpolation && (e.interpolation = this._interpolation), this.anchors.size > 0 && (e.anchors = [...this.anchors].map(SS)), e;
|
17559
17557
|
}
|
17560
17558
|
destroy() {
|
17561
|
-
this.anchorsChanged.destroy(),
|
17559
|
+
this.anchorsChanged.destroy(), Kt(this.anchors), this._anchorListeners.clear(), super.destroy();
|
17562
17560
|
}
|
17563
17561
|
}
|
17564
17562
|
function dh() {
|
@@ -17737,7 +17735,7 @@ class MS extends Tt {
|
|
17737
17735
|
this._player && (this._player.stop(), this._player.destroy(), this._player = void 0), this.playerChanged.destroy(), this._playerDestroyedListener(), super.destroy();
|
17738
17736
|
}
|
17739
17737
|
}
|
17740
|
-
function
|
17738
|
+
function zs() {
|
17741
17739
|
return Ce("init");
|
17742
17740
|
}
|
17743
17741
|
const Un = /* @__PURE__ */ new Map(), CS = "_defaultDynamicModule";
|
@@ -17781,7 +17779,7 @@ class Cu {
|
|
17781
17779
|
h(this, "_featureProviderClassRegistry");
|
17782
17780
|
this._id = (t == null ? void 0 : t._id) || $e(), this.name = t.name ?? this._id, this.description = t.description, this.properties = t.properties, this._defaultDynamicModule = new sh({ _id: CS }), this._dynamicModule = this._defaultDynamicModule;
|
17783
17781
|
const e = () => this._dynamicModule._id;
|
17784
|
-
this._dynamicModuleIdChanged = new P(), this._locale = pS(), this._localeChanged = new P(), this._mapClassRegistry = new Zt(
|
17782
|
+
this._dynamicModuleIdChanged = new P(), this._locale = pS(), this._localeChanged = new P(), this._mapClassRegistry = new Zt(Es), this._maps = Jt(new jo(), e, void 0, T_.bind(null, this), Pi), this._layerClassRegistry = new Zt(De), this._layers = Jt(this._maps.layerCollection, e, A_.bind(null, this), D_.bind(null, this), Ye, F_), this._layers.locale = this.locale, this._obliqueCollections = Jt(new Tt(), e, void 0, (s) => new Vi(s), Vi), this._viewpoints = Jt(new Tt(), e, void 0, N_, mt), this._styleClassRegistry = new Zt(Hr), this._styles = Jt(new Tt(), e, void 0, (s) => ii(this._styleClassRegistry, s), Wt), this._modules = new Ei("_id"), this._modules.add(this._dynamicModule), this._hiddenObjects = yS(e, this._layers.globalHider), this._flights = Jt(new MS(this), e, void 0, (s) => new ws(s)), this._categoryClassRegistry = new Zt(Mc), this._categories = new Cv(this), this._destroyed = new P(), this._moduleMutationPromise = Promise.resolve(), this._categoryItemClassRegistry = new Zt(new Li()), this._tileProviderClassRegistry = new Zt(bs), this._featureProviderClassRegistry = new Zt(Co), Un.set(this._id, this);
|
17785
17783
|
}
|
17786
17784
|
get id() {
|
17787
17785
|
return this._id;
|
@@ -17796,7 +17794,7 @@ class Cu {
|
|
17796
17794
|
*/
|
17797
17795
|
set locale(t) {
|
17798
17796
|
if (S(t, String), t.length !== 2) {
|
17799
|
-
|
17797
|
+
zs().warning('Provide a valid locale, for example "en", "de" with max. 2 letters');
|
17800
17798
|
return;
|
17801
17799
|
}
|
17802
17800
|
this._locale !== t && (this._locale = t, this.layers.locale = t, this._localeChanged.raiseEvent(t));
|
@@ -17872,7 +17870,7 @@ class Cu {
|
|
17872
17870
|
}
|
17873
17871
|
async _parseModule(t) {
|
17874
17872
|
const { config: e } = t;
|
17875
|
-
e.projection &&
|
17873
|
+
e.projection && Ky(e.projection), await this._styles.parseItems(e.styles, t._id), await this._layers.parseItems(e.layers, t._id), await this._obliqueCollections.parseItems(e.obliqueCollections, t._id), await this._viewpoints.parseItems(e.viewpoints, t._id), await this._maps.parseItems(e.maps, t._id), await this._hiddenObjects.parseItems(e.hiddenObjects, t._id), await this._flights.parseItems(e.flights, t._id), Array.isArray(e.categories) && await Promise.all(e.categories.map(async ({ name: s, items: r }) => {
|
17876
17874
|
await this._categories.parseCategoryItems(s, r, t._id);
|
17877
17875
|
}));
|
17878
17876
|
}
|
@@ -17880,11 +17878,11 @@ class Cu {
|
|
17880
17878
|
const { config: e } = t;
|
17881
17879
|
if ([...this._layers].filter((s) => s[Ze] === t._id).forEach((s) => {
|
17882
17880
|
s.activeOnStartup && s.activate().catch((r) => {
|
17883
|
-
|
17881
|
+
zs().error(`Failed to activate active on startup layer ${s.name}`), zs().error(String(r));
|
17884
17882
|
});
|
17885
17883
|
}), e.startingObliqueCollectionName) {
|
17886
17884
|
const s = this._obliqueCollections.getByKey(e.startingObliqueCollectionName);
|
17887
|
-
s && [...this._maps].filter((r) => r instanceof
|
17885
|
+
s && [...this._maps].filter((r) => r instanceof Ne).forEach((r) => {
|
17888
17886
|
r.setCollection(s);
|
17889
17887
|
});
|
17890
17888
|
}
|
@@ -17895,8 +17893,8 @@ class Cu {
|
|
17895
17893
|
}
|
17896
17894
|
addModule(t) {
|
17897
17895
|
return S(t, sh), this._moduleMutationPromise = this._moduleMutationPromise.then(async () => {
|
17898
|
-
if (this._modules.
|
17899
|
-
|
17896
|
+
if (this._modules.hasKey(t._id)) {
|
17897
|
+
zs().info(`module with id ${t._id} already loaded`);
|
17900
17898
|
return;
|
17901
17899
|
}
|
17902
17900
|
await this._parseModule(t), await this._setModuleState(t), this._modules.add(t);
|
@@ -17938,7 +17936,7 @@ class Cu {
|
|
17938
17936
|
return this._moduleMutationPromise = this._moduleMutationPromise.then(async () => {
|
17939
17937
|
const e = this._modules.getByKey(t);
|
17940
17938
|
if (!e) {
|
17941
|
-
|
17939
|
+
zs().info(`module with id ${t} has already been removed`);
|
17942
17940
|
return;
|
17943
17941
|
}
|
17944
17942
|
await this._removeModule(t), this._modules.remove(e);
|
@@ -17952,7 +17950,7 @@ class Cu {
|
|
17952
17950
|
get() {
|
17953
17951
|
throw new Error("VcsApp was destroyed");
|
17954
17952
|
}
|
17955
|
-
}), Un.delete(this._id),
|
17953
|
+
}), Un.delete(this._id), Kt(this._maps), Kt(this._layers), Kt(this._obliqueCollections), Kt(this._viewpoints), Kt(this._styles), Kt(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.destroyed.raiseEvent(), this.destroyed.destroy(), this.localeChanged.destroy(), this.dynamicModuleIdChanged.destroy();
|
17956
17954
|
}
|
17957
17955
|
}
|
17958
17956
|
function zw(i) {
|
@@ -17966,7 +17964,7 @@ function xu(i) {
|
|
17966
17964
|
const t = i.getType();
|
17967
17965
|
return t === "LineString" ? To(i) : t === "Polygon" ? jc(i) : t === "Point" ? eu(i) : t === "Circle" ? Bc(i) : !1;
|
17968
17966
|
}
|
17969
|
-
const $r = Symbol("Vertex"), Hw = Symbol("VertexIndex"),
|
17967
|
+
const $r = Symbol("Vertex"), Hw = Symbol("VertexIndex"), Te = Symbol("Handler"), oi = Symbol("MouseOver"), xS = `<svg xmlns="http://www.w3.org/2000/svg" width="19" height="19" viewBox="0 0 19 19">
|
17970
17968
|
<g id="pen">
|
17971
17969
|
<path d=" M 14.744 18.702 L 12.814 16.772 L 16.773 12.814 L 18.703 14.744 C 19.099 15.159 19.099 15.812 18.703 16.228 L 16.228 18.702 C 15.813 19.097 15.16 19.097 14.744 18.702 Z M 3.959 0.002 L 15.635 11.679 L 11.678 15.637 L 0 3.962 L 0 0.002 L 3.959 0.002 Z " fill="rgb(0,0,0)"/>
|
17972
17970
|
<path d=" M 0.75 0.846 L 3.641 0.846 L 14.532 11.768 L 11.641 14.659 L 0.75 3.581 L 0.75 0.846 Z " fill="rgb(255,255,255)"/>
|
@@ -18079,7 +18077,7 @@ function jw(i, t, e, s) {
|
|
18079
18077
|
var A;
|
18080
18078
|
N();
|
18081
18079
|
const { activeMap: B } = i.maps;
|
18082
|
-
g = B instanceof
|
18080
|
+
g = B instanceof Ne, g ? N = ((A = B.imageChanged) == null ? void 0 : A.addEventListener(T)) ?? (() => {
|
18083
18081
|
}) : N = () => {
|
18084
18082
|
};
|
18085
18083
|
}, W = i.maps.mapActivated.addEventListener(() => {
|
@@ -18123,9 +18121,9 @@ function Wn(i) {
|
|
18123
18121
|
return i === b.XY || i === b.XZ || i === b.YZ;
|
18124
18122
|
}
|
18125
18123
|
function pn(i) {
|
18126
|
-
if (i[
|
18124
|
+
if (i[Te]) {
|
18127
18125
|
const t = new At();
|
18128
|
-
t[
|
18126
|
+
t[Te] = i[Te], i.olFeature = t;
|
18129
18127
|
}
|
18130
18128
|
}
|
18131
18129
|
function yn(i) {
|
@@ -18184,7 +18182,7 @@ function Ta(i, t, e = !1) {
|
|
18184
18182
|
get() {
|
18185
18183
|
return a;
|
18186
18184
|
}
|
18187
|
-
}), e || (n[
|
18185
|
+
}), e || (n[Te] = i), pn(n), n;
|
18188
18186
|
}
|
18189
18187
|
function ES(i) {
|
18190
18188
|
i[0] > 180 ? i[0] -= 360 : i[0] < -180 && (i[0] += 360), i[1] > 90 ? (i[1] = 90 - (i[1] - 90), i[0] < 180 ? i[0] += 180 : i[1] -= 180) : i[1] < -90 && (i[1] = -90 + (i[1] + 90), i[0] < 180 ? i[0] += 180 : i[1] -= 180);
|
@@ -18307,7 +18305,7 @@ function rs(i, t, e, s = !1) {
|
|
18307
18305
|
LS(o, n, t, a, !s)
|
18308
18306
|
];
|
18309
18307
|
return s || l.forEach((c) => {
|
18310
|
-
c[
|
18308
|
+
c[Te] = i;
|
18311
18309
|
}), l;
|
18312
18310
|
}
|
18313
18311
|
function ns(i, t, e = !1) {
|
@@ -18341,7 +18339,7 @@ function ns(i, t, e = !1) {
|
|
18341
18339
|
...Vo(r),
|
18342
18340
|
modelMatrix: t
|
18343
18341
|
});
|
18344
|
-
return e || (n[
|
18342
|
+
return e || (n[Te] = i), n;
|
18345
18343
|
}
|
18346
18344
|
function TS(i) {
|
18347
18345
|
let t;
|
@@ -18538,7 +18536,7 @@ function FS(i, t, e) {
|
|
18538
18536
|
stroke: new He({ color: q.BLUE.toCssColorString(), width: 2 })
|
18539
18537
|
}))), n.forEach((u) => {
|
18540
18538
|
const f = u.getGeometry();
|
18541
|
-
f[Xe] = !0, u[ea] = !0, u[
|
18539
|
+
f[Xe] = !0, u[ea] = !0, u[Te] = u.get("axis");
|
18542
18540
|
});
|
18543
18541
|
const a = i.olMap.on("postrender", () => {
|
18544
18542
|
if (!(s[0] === 0 && s[1] === 0 && s[2] === 0)) {
|
@@ -18589,7 +18587,7 @@ function FS(i, t, e) {
|
|
18589
18587
|
function RS(i, t) {
|
18590
18588
|
const e = new ti();
|
18591
18589
|
let s = !1, r = !1;
|
18592
|
-
const n = i.vectorProperties.altitudeMode ===
|
18590
|
+
const n = i.vectorProperties.altitudeMode === Le.CLAMP_TO_GROUND;
|
18593
18591
|
return t.forEach((o) => {
|
18594
18592
|
const l = o.getGeometry();
|
18595
18593
|
if (e.extendWithGeometry(l), r || l.getFirstCoordinate()[2] || (r = !0), !s) {
|
@@ -18606,9 +18604,9 @@ function GS(i) {
|
|
18606
18604
|
const t = ps();
|
18607
18605
|
return i.forEach((e) => {
|
18608
18606
|
const s = e[xt] ?? e.getGeometry();
|
18609
|
-
|
18607
|
+
nr(t, s.getExtent());
|
18610
18608
|
}), {
|
18611
|
-
center: [...
|
18609
|
+
center: [...rr(t), 0],
|
18612
18610
|
someClamped: !1,
|
18613
18611
|
someNoTerrain: !1
|
18614
18612
|
};
|
@@ -18628,7 +18626,7 @@ function kS(i, t, e, s) {
|
|
18628
18626
|
} else
|
18629
18627
|
r.show = !1;
|
18630
18628
|
};
|
18631
|
-
return i instanceof H ? (r = NS(i, s), a = RS.bind(null, t), o = i) : i instanceof
|
18629
|
+
return i instanceof H ? (r = NS(i, s), a = RS.bind(null, t), o = i) : i instanceof pr && (r = FS(i, e, s), a = GS), {
|
18632
18630
|
get showing() {
|
18633
18631
|
return r.show;
|
18634
18632
|
},
|
@@ -18682,7 +18680,7 @@ class bu extends ce {
|
|
18682
18680
|
this.setActive();
|
18683
18681
|
}
|
18684
18682
|
pipe(e) {
|
18685
|
-
return this.reset(), e.feature && (e.feature[$r] || e.feature[
|
18683
|
+
return this.reset(), e.feature && (e.feature[$r] || e.feature[Te]) && (e.map.className === "CesiumMap" ? this._clear = HS(e.map) : this._clear = zS(e.map)), Promise.resolve(e);
|
18686
18684
|
}
|
18687
18685
|
reset() {
|
18688
18686
|
this._clear(), this._clear = () => {
|
@@ -18701,14 +18699,14 @@ const $o = [
|
|
18701
18699
|
"groundLevel",
|
18702
18700
|
"heightAboveGround"
|
18703
18701
|
];
|
18704
|
-
function
|
18702
|
+
function Ts(i) {
|
18705
18703
|
const t = {};
|
18706
18704
|
return $o.forEach((e) => {
|
18707
18705
|
const s = i.get(e);
|
18708
18706
|
s != null && (t[e] = s);
|
18709
18707
|
}), t;
|
18710
18708
|
}
|
18711
|
-
function
|
18709
|
+
function Ns(i, t) {
|
18712
18710
|
const e = new Nt(i);
|
18713
18711
|
e[Xe] = !0;
|
18714
18712
|
const s = new ae({
|
@@ -18717,7 +18715,7 @@ function Ts(i, t) {
|
|
18717
18715
|
});
|
18718
18716
|
return s[$r] = !0, s[ea] = !0, s[it] = !0, s;
|
18719
18717
|
}
|
18720
|
-
let ve = new z(), Ht = new z(), Na = new z(), Qe = new v(),
|
18718
|
+
let ve = new z(), Ht = new z(), Na = new z(), Qe = new v(), Ee = new v(), Da = new v();
|
18721
18719
|
function ph(i, t, e) {
|
18722
18720
|
ve = z.fromElements(t[0] - i[0], t[1] - i[1], ve), ve.equals(z.ZERO) && (ve = z.fromElements(1, 1, ve)), ve = z.normalize(ve, ve), Ht = z.fromElements(e[0] - i[0], e[1] - i[1], Ht);
|
18723
18721
|
const s = z.dot(ve, Ht);
|
@@ -18728,9 +18726,9 @@ function ph(i, t, e) {
|
|
18728
18726
|
];
|
18729
18727
|
}
|
18730
18728
|
function jS(i, t, e, s) {
|
18731
|
-
Qe = v.fromElements(t[0] - i[0], t[1] - i[1], t[2] - i[2], Qe),
|
18729
|
+
Qe = v.fromElements(t[0] - i[0], t[1] - i[1], t[2] - i[2], Qe), Ee = v.fromElements(e[0] - i[0], e[1] - i[1], e[2] - i[2], Ee), Da = v.fromElements(e[0] - t[0], e[1] - t[1], e[2] - e[2], Da);
|
18732
18730
|
const r = v.magnitude(Qe);
|
18733
|
-
return r < v.magnitude(
|
18731
|
+
return r < v.magnitude(Ee) || r < v.magnitude(Da) ? !1 : (Qe = v.normalize(Qe, Qe), Ee = v.normalize(Ee, Ee), Qe.equalsEpsilon(Ee, s || L.EPSILON5));
|
18734
18732
|
}
|
18735
18733
|
function VS(i, t, e, s) {
|
18736
18734
|
ve = z.fromElements(t[0] - i[0], t[1] - i[1], ve), Ht = z.fromElements(e[0] - i[0], e[1] - i[1], Ht), Na = z.fromElements(e[0] - t[0], e[1] - t[1], Na);
|
@@ -18738,10 +18736,10 @@ function VS(i, t, e, s) {
|
|
18738
18736
|
return r < z.magnitude(Ht) || r < z.magnitude(Na) ? !1 : (ve = z.normalize(ve, ve), Ht = z.normalize(Ht, Ht), ve.equalsEpsilon(Ht, s || L.EPSILON5));
|
18739
18737
|
}
|
18740
18738
|
function Eu(i, t) {
|
18741
|
-
return Qe = Ct(i, Qe),
|
18739
|
+
return Qe = Ct(i, Qe), Ee = t.globe.ellipsoid.geodeticSurfaceNormal(Qe, Ee), Ee = v.cross(t.camera.rightWC, Ee, Ee), Ee = v.normalize(Ee, Ee), te.fromPointNormal(Qe, Ee);
|
18742
18740
|
}
|
18743
18741
|
function Vw(i, t) {
|
18744
|
-
return Qe = Ct(i, Qe),
|
18742
|
+
return Qe = Ct(i, Qe), Ee = t.globe.ellipsoid.geodeticSurfaceNormal(Qe, Ee), te.fromPointNormal(Qe, Ee);
|
18745
18743
|
}
|
18746
18744
|
function jt(i, t, e) {
|
18747
18745
|
const s = t.getPickRay(e, new Vh()), r = hf.rayPlane(s, i);
|
@@ -18749,13 +18747,13 @@ function jt(i, t, e) {
|
|
18749
18747
|
}
|
18750
18748
|
async function $w(i, t) {
|
18751
18749
|
if (t instanceof H) {
|
18752
|
-
const e = i.getCoordinates(), s =
|
18750
|
+
const e = i.getCoordinates(), s = Ps(i, e);
|
18753
18751
|
await t.getHeightFromTerrain(s), i.setCoordinates(e);
|
18754
18752
|
}
|
18755
18753
|
}
|
18756
18754
|
async function $S(i, t) {
|
18757
18755
|
if (t instanceof H) {
|
18758
|
-
const e = i.getCoordinates(), s =
|
18756
|
+
const e = i.getCoordinates(), s = Ps(i, e);
|
18759
18757
|
await t.getHeightFromTerrain(s);
|
18760
18758
|
let r = 1 / 0;
|
18761
18759
|
s.forEach((n) => {
|
@@ -18766,7 +18764,7 @@ async function $S(i, t) {
|
|
18766
18764
|
}
|
18767
18765
|
}
|
18768
18766
|
async function BS(i, t, e) {
|
18769
|
-
const s = t.vectorProperties.altitudeMode ===
|
18767
|
+
const s = t.vectorProperties.altitudeMode === Le.CLAMP_TO_GROUND, r = i.get("olcs_altitudeMode");
|
18770
18768
|
if (r === "clampToGround" || !r && s) {
|
18771
18769
|
i.set("olcs_altitudeMode", "absolute", !0);
|
18772
18770
|
const n = i.getGeometry();
|
@@ -18792,8 +18790,8 @@ class US extends ce {
|
|
18792
18790
|
var s;
|
18793
18791
|
if (this._getTranslateEvent)
|
18794
18792
|
this.translated.raiseEvent(this._getTranslateEvent(e.positionOrPixel, e.windowPosition)), e.type === E.DRAGEND && (this._getTranslateEvent = null, this._transformationHandler.showAxis = b.NONE);
|
18795
|
-
else if (e.type === E.DRAGSTART && ((s = e == null ? void 0 : e.feature) != null && s[
|
18796
|
-
const r = e.feature[
|
18793
|
+
else if (e.type === E.DRAGSTART && ((s = e == null ? void 0 : e.feature) != null && s[Te])) {
|
18794
|
+
const r = e.feature[Te];
|
18797
18795
|
r !== b.NONE && (this._transformationHandler.showAxis = r, e.map instanceof H ? qn(r) ? this._getTranslateEvent = this._dragAlongAxis3D(r, e) : Wn(r) && (this._getTranslateEvent = this._dragAlongPlane3D(r, e)) : qn(r) ? this._getTranslateEvent = this._dragAlongAxis2D(r, e) : Wn(r) && (this._getTranslateEvent = this._dragAlongPlane2D(r, e)));
|
18798
18796
|
}
|
18799
18797
|
return Promise.resolve(e);
|
@@ -18883,8 +18881,8 @@ class WS extends ce {
|
|
18883
18881
|
var s;
|
18884
18882
|
if (this._getRotationEvent)
|
18885
18883
|
this.rotated.raiseEvent(this._getRotationEvent(e.positionOrPixel, e.windowPosition)), e.type === E.DRAGEND && (this._getRotationEvent = null);
|
18886
|
-
else if (e.type === E.DRAGSTART && ((s = e == null ? void 0 : e.feature) != null && s[
|
18887
|
-
const r = e.feature[
|
18884
|
+
else if (e.type === E.DRAGSTART && ((s = e == null ? void 0 : e.feature) != null && s[Te])) {
|
18885
|
+
const r = e.feature[Te];
|
18888
18886
|
r !== b.NONE && (e.map instanceof H ? this._getRotationEvent = this._dragAlongPlane3D(r, e) : this._getRotationEvent = this._dragAlongPlane2D(r, e));
|
18889
18887
|
}
|
18890
18888
|
return Promise.resolve(e);
|
@@ -18938,8 +18936,8 @@ class XS extends ce {
|
|
18938
18936
|
var s;
|
18939
18937
|
if (this._getScaleEvent)
|
18940
18938
|
this.scaled.raiseEvent(this._getScaleEvent(e.positionOrPixel, e.windowPosition)), e.type === E.DRAGEND && (this._getScaleEvent = null, this._transformationHandler.showAxis = b.NONE);
|
18941
|
-
else if (e.type === E.DRAGSTART && ((s = e == null ? void 0 : e.feature) != null && s[
|
18942
|
-
const r = e.feature[
|
18939
|
+
else if (e.type === E.DRAGSTART && ((s = e == null ? void 0 : e.feature) != null && s[Te])) {
|
18940
|
+
const r = e.feature[Te];
|
18943
18941
|
r !== b.NONE && (this._transformationHandler.showAxis = r, e.map instanceof H ? this._getScaleEvent = this._dragAlongPlane3D(r, e) : this._getScaleEvent = this._dragAlongPlane2D(r, e));
|
18944
18942
|
}
|
18945
18943
|
return Promise.resolve(e);
|
@@ -18974,8 +18972,8 @@ class YS extends ce {
|
|
18974
18972
|
var s;
|
18975
18973
|
if (this._getExtrudeEvent)
|
18976
18974
|
this.extruded.raiseEvent(this._getExtrudeEvent(e.positionOrPixel, e.windowPosition)), e.type === E.DRAGEND && (this._getExtrudeEvent = null, this._transformationHandler.showAxis = b.NONE);
|
18977
|
-
else if (e.type === E.DRAGSTART && ((s = e == null ? void 0 : e.feature) != null && s[
|
18978
|
-
const r = e.feature[
|
18975
|
+
else if (e.type === E.DRAGSTART && ((s = e == null ? void 0 : e.feature) != null && s[Te])) {
|
18976
|
+
const r = e.feature[Te];
|
18979
18977
|
if (r === b.Z) {
|
18980
18978
|
const n = e.map.getScene();
|
18981
18979
|
this._transformationHandler.showAxis = r;
|
@@ -19003,17 +19001,17 @@ class ZS extends ce {
|
|
19003
19001
|
this._featureSelection = e;
|
19004
19002
|
}
|
19005
19003
|
pipe(e) {
|
19006
|
-
if (e.feature && this._featureSelection.length > 0 && !e.feature[
|
19004
|
+
if (e.feature && this._featureSelection.length > 0 && !e.feature[Te] && e.map instanceof H) {
|
19007
19005
|
const n = e.map.getScene().drillPick(e.windowPosition, void 0, 10, 10).find((a) => {
|
19008
19006
|
var o, l;
|
19009
|
-
return (l = (o = a == null ? void 0 : a.primitive) == null ? void 0 : o.olFeature) == null ? void 0 : l[
|
19007
|
+
return (l = (o = a == null ? void 0 : a.primitive) == null ? void 0 : o.olFeature) == null ? void 0 : l[Te];
|
19010
19008
|
});
|
19011
19009
|
n && (e.feature = n.primitive.olFeature);
|
19012
19010
|
}
|
19013
19011
|
return Promise.resolve(e);
|
19014
19012
|
}
|
19015
19013
|
}
|
19016
|
-
class
|
19014
|
+
class KS extends ce {
|
19017
19015
|
constructor() {
|
19018
19016
|
super(E.MOVE, j.NONE);
|
19019
19017
|
h(this, "_currentHandler", null);
|
@@ -19022,7 +19020,7 @@ class JS extends ce {
|
|
19022
19020
|
}
|
19023
19021
|
pipe(e) {
|
19024
19022
|
var s;
|
19025
|
-
return e.feature && e.feature[
|
19023
|
+
return e.feature && e.feature[Te] ? this._currentHandler = e.feature : this._currentHandler = null, !this.cursorStyle && ((s = e.map) != null && s.target) && (this.cursorStyle = e.map.target.style), this._evaluate(), Promise.resolve(e);
|
19026
19024
|
}
|
19027
19025
|
setActive(e) {
|
19028
19026
|
super.setActive(e), this.reset();
|
@@ -19041,7 +19039,7 @@ class JS extends ce {
|
|
19041
19039
|
this.reset(), super.destroy();
|
19042
19040
|
}
|
19043
19041
|
}
|
19044
|
-
function
|
19042
|
+
function JS(i, t, e) {
|
19045
19043
|
const s = i.getId();
|
19046
19044
|
t.has(s) || t.set(s, i.get("olcs_allowPicking")), e !== j.CTRL && i.set("olcs_allowPicking", !1);
|
19047
19045
|
}
|
@@ -19058,7 +19056,7 @@ function Uw(i, t, e, s = ye.TRANSLATE) {
|
|
19058
19056
|
n.forEach((de) => {
|
19059
19057
|
de.set("olcs_allowPicking", Z);
|
19060
19058
|
});
|
19061
|
-
}), c = yu(i.layers), { interactionChain: d, removed: u, destroy: f } = oa(i.maps.eventHandler, e), g = new
|
19059
|
+
}), c = yu(i.layers), { interactionChain: d, removed: u, destroy: f } = oa(i.maps.eventHandler, e), g = new KS();
|
19062
19060
|
d.addInteraction(g), d.addInteraction(new ZS(n));
|
19063
19061
|
const m = new bu();
|
19064
19062
|
d.addInteraction(m);
|
@@ -19066,8 +19064,8 @@ function Uw(i, t, e, s = ye.TRANSLATE) {
|
|
19066
19064
|
}, _;
|
19067
19065
|
const w = ($, Z, de) => {
|
19068
19066
|
var Re;
|
19069
|
-
(Re = _ == null ? void 0 : _.translate) == null || Re.call(_, $, Z, de), n.forEach((
|
19070
|
-
(
|
19067
|
+
(Re = _ == null ? void 0 : _.translate) == null || Re.call(_, $, Z, de), n.forEach((Ds) => {
|
19068
|
+
(Ds[xt] ?? Ds.getGeometry()).applyTransform((Ur, qr) => {
|
19071
19069
|
const Nu = Ur.length;
|
19072
19070
|
for (let di = 0; di < Nu; di += 3)
|
19073
19071
|
qr[di] = Ur[di] + $, qr[di + 1] = Ur[di + 1] + Z, qr[di + 2] = Ur[di + 2] + de;
|
@@ -19079,8 +19077,8 @@ function Uw(i, t, e, s = ye.TRANSLATE) {
|
|
19079
19077
|
if (!Z) {
|
19080
19078
|
const de = ps();
|
19081
19079
|
n.forEach((Re) => {
|
19082
|
-
|
19083
|
-
}), za(de) || (Z =
|
19080
|
+
nr(de, Re.getGeometry().getExtent());
|
19081
|
+
}), za(de) || (Z = rr(de));
|
19084
19082
|
}
|
19085
19083
|
n.forEach((de) => {
|
19086
19084
|
(de[xt] ?? de.getGeometry()).rotate($, Z);
|
@@ -19089,9 +19087,9 @@ function Uw(i, t, e, s = ye.TRANSLATE) {
|
|
19089
19087
|
let de = _ == null ? void 0 : _.center;
|
19090
19088
|
if (!de) {
|
19091
19089
|
const Re = ps();
|
19092
|
-
n.forEach((
|
19093
|
-
|
19094
|
-
}), za(Re) || (de =
|
19090
|
+
n.forEach((Ds) => {
|
19091
|
+
nr(Re, Ds.getGeometry().getExtent());
|
19092
|
+
}), za(Re) || (de = rr(Re));
|
19095
19093
|
}
|
19096
19094
|
n.forEach((Re) => {
|
19097
19095
|
(Re[xt] ?? Re.getGeometry()).scale($, Z, de);
|
@@ -19131,7 +19129,7 @@ function Uw(i, t, e, s = ye.TRANSLATE) {
|
|
19131
19129
|
};
|
19132
19130
|
const W = ($) => {
|
19133
19131
|
var Z;
|
19134
|
-
k(), $ instanceof
|
19132
|
+
k(), $ instanceof Ne ? k = ((Z = $.imageChanged) == null ? void 0 : Z.addEventListener(() => {
|
19135
19133
|
C();
|
19136
19134
|
})) ?? (() => {
|
19137
19135
|
}) : k = () => {
|
@@ -19159,7 +19157,7 @@ function Uw(i, t, e, s = ye.TRANSLATE) {
|
|
19159
19157
|
translate: w,
|
19160
19158
|
scale: M,
|
19161
19159
|
setFeatures($) {
|
19162
|
-
n.forEach((Z) => vh(Z, a)), n.length = 0, n.push(...$), n.forEach((Z) =>
|
19160
|
+
n.forEach((Z) => vh(Z, a)), n.length = 0, n.push(...$), n.forEach((Z) => JS(Z, a, o)), A(), _ == null || _.setFeatures($);
|
19163
19161
|
},
|
19164
19162
|
get features() {
|
19165
19163
|
return n;
|
@@ -19216,7 +19214,7 @@ class Iu extends ce {
|
|
19216
19214
|
;
|
19217
19215
|
let c = l + 1;
|
19218
19216
|
this._isLinearRing && c === s.length && (c = 0), this.vertexInserted.raiseEvent({
|
19219
|
-
vertex:
|
19217
|
+
vertex: Ns(n, Ts(this._feature)),
|
19220
19218
|
index: c
|
19221
19219
|
});
|
19222
19220
|
}
|
@@ -19231,7 +19229,7 @@ function Sh(i, t, e) {
|
|
19231
19229
|
i[t] = e;
|
19232
19230
|
}
|
19233
19231
|
function QS(i, t) {
|
19234
|
-
const e = i[xt] ?? i.getGeometry(), s =
|
19232
|
+
const e = i[xt] ?? i.getGeometry(), s = Ts(i), r = e.getCoordinates().map((d) => Ns(d, s));
|
19235
19233
|
t.addFeatures(r);
|
19236
19234
|
const n = () => {
|
19237
19235
|
e.setCoordinates(r.map((d) => d.getGeometry().getCoordinates()));
|
@@ -19247,7 +19245,7 @@ function QS(i, t) {
|
|
19247
19245
|
const u = r.indexOf(d);
|
19248
19246
|
u > -1 && (r.splice(u, 1), n());
|
19249
19247
|
});
|
19250
|
-
const c = new
|
19248
|
+
const c = new Ki([
|
19251
19249
|
a,
|
19252
19250
|
o,
|
19253
19251
|
l
|
@@ -19260,7 +19258,7 @@ function QS(i, t) {
|
|
19260
19258
|
};
|
19261
19259
|
}
|
19262
19260
|
function ew(i, t) {
|
19263
|
-
const e = i[xt] ?? i.getGeometry(), s =
|
19261
|
+
const e = i[xt] ?? i.getGeometry(), s = Ts(i), r = e.getCoordinates().map((c) => Ns(c, s));
|
19264
19262
|
t.addFeatures(r);
|
19265
19263
|
const n = new Br();
|
19266
19264
|
let a = !1;
|
@@ -19278,7 +19276,7 @@ function ew(i, t) {
|
|
19278
19276
|
a || e.getCoordinates().forEach((c, d) => {
|
19279
19277
|
r[d].getGeometry().setCoordinates(c);
|
19280
19278
|
});
|
19281
|
-
}), l = new
|
19279
|
+
}), l = new Ki([n]);
|
19282
19280
|
return {
|
19283
19281
|
interactionChain: l,
|
19284
19282
|
destroy: () => {
|
@@ -19287,7 +19285,7 @@ function ew(i, t) {
|
|
19287
19285
|
};
|
19288
19286
|
}
|
19289
19287
|
function tw(i, t) {
|
19290
|
-
const e = i[xt] ?? i.getGeometry(), s =
|
19288
|
+
const e = i[xt] ?? i.getGeometry(), s = Ts(i), r = e.getCoordinates()[0].map((c) => Ns(c, s));
|
19291
19289
|
t.addFeatures(r);
|
19292
19290
|
let n = !1;
|
19293
19291
|
const a = new Br();
|
@@ -19307,7 +19305,7 @@ function tw(i, t) {
|
|
19307
19305
|
n || e.getCoordinates()[0].forEach((c, d) => {
|
19308
19306
|
r[d].getGeometry().setCoordinates(c);
|
19309
19307
|
});
|
19310
|
-
}), l = new
|
19308
|
+
}), l = new Ki([a]);
|
19311
19309
|
return {
|
19312
19310
|
interactionChain: l,
|
19313
19311
|
destroy: () => {
|
@@ -19316,7 +19314,7 @@ function tw(i, t) {
|
|
19316
19314
|
};
|
19317
19315
|
}
|
19318
19316
|
function iw(i, t) {
|
19319
|
-
const e = i[xt] ?? i.getGeometry(), s = e.getLinearRing(0), r =
|
19317
|
+
const e = i[xt] ?? i.getGeometry(), s = e.getLinearRing(0), r = Ts(i), n = s.getCoordinates().map((u) => Ns(u, r));
|
19320
19318
|
t.addFeatures(n);
|
19321
19319
|
const a = () => {
|
19322
19320
|
const u = n.map((f) => f.getGeometry().getCoordinates());
|
@@ -19335,7 +19333,7 @@ function iw(i, t) {
|
|
19335
19333
|
const f = n.indexOf(u);
|
19336
19334
|
f > -1 && (n.splice(f, 1), a());
|
19337
19335
|
});
|
19338
|
-
const d = new
|
19336
|
+
const d = new Ki([
|
19339
19337
|
o,
|
19340
19338
|
l,
|
19341
19339
|
c
|
@@ -19348,7 +19346,7 @@ function iw(i, t) {
|
|
19348
19346
|
};
|
19349
19347
|
}
|
19350
19348
|
function sw(i, t, e) {
|
19351
|
-
const s = i[xt] ?? i.getGeometry(), r =
|
19349
|
+
const s = i[xt] ?? i.getGeometry(), r = Ts(i), n = Ns(s.getCoordinates(), r), a = [i.getId()];
|
19352
19350
|
e.featureVisibility.hideObjects(a), n[it] = !0, t.addFeatures([n]);
|
19353
19351
|
const o = new Br();
|
19354
19352
|
let l = !1;
|
@@ -19357,7 +19355,7 @@ function sw(i, t, e) {
|
|
19357
19355
|
});
|
19358
19356
|
const c = s.on("change", () => {
|
19359
19357
|
l || n.getGeometry().setCoordinates(s.getCoordinates());
|
19360
|
-
}), d = new
|
19358
|
+
}), d = new Ki([o]);
|
19361
19359
|
return {
|
19362
19360
|
interactionChain: d,
|
19363
19361
|
destroy: () => {
|
@@ -19441,7 +19439,7 @@ class Lu extends ce {
|
|
19441
19439
|
async setSelected(e) {
|
19442
19440
|
this._selectedFeatures.clear();
|
19443
19441
|
const s = Array.isArray(e) ? e : [e];
|
19444
|
-
(await Promise.all(s.map((n) => n[
|
19442
|
+
(await Promise.all(s.map((n) => n[wr] ? this._layer.switchStaticFeatureToDynamic(n.getId()) : n))).forEach((n) => {
|
19445
19443
|
this._selectedFeatures.set(n.getId(), n);
|
19446
19444
|
}), this.featuresChanged.raiseEvent(this.selected);
|
19447
19445
|
}
|
@@ -19451,7 +19449,7 @@ class Lu extends ce {
|
|
19451
19449
|
this._selectedFeatures.delete(s);
|
19452
19450
|
else {
|
19453
19451
|
let r = e;
|
19454
|
-
e[
|
19452
|
+
e[wr] && (r = await this._layer.switchStaticFeatureToDynamic(s)), this._selectedFeatures.set(s, r);
|
19455
19453
|
}
|
19456
19454
|
this.featuresChanged.raiseEvent(this.selected);
|
19457
19455
|
}
|
@@ -19488,7 +19486,7 @@ class Tu extends ce {
|
|
19488
19486
|
*/
|
19489
19487
|
async setSelected(e) {
|
19490
19488
|
let s = Array.isArray(e) ? e[0] : e;
|
19491
|
-
e[
|
19489
|
+
e[wr] && (s = await this._layer.switchStaticFeatureToDynamic(s.getId())), this._selectedFeature = s, this.featureChanged.raiseEvent(this._selectedFeature);
|
19492
19490
|
}
|
19493
19491
|
/**
|
19494
19492
|
* Checks if a feature with a spicific id is selected.
|
@@ -19631,10 +19629,10 @@ function Ww(i, t, e, s = $t.MULTI, r = aw()) {
|
|
19631
19629
|
};
|
19632
19630
|
const M = (N) => {
|
19633
19631
|
var k;
|
19634
|
-
x(), N instanceof
|
19635
|
-
l.clear();
|
19632
|
+
x(), N instanceof Ne ? (l == null || l.clear(), x = ((k = N.imageChanged) == null ? void 0 : k.addEventListener(() => {
|
19633
|
+
l == null || l.clear();
|
19636
19634
|
})) ?? (() => {
|
19637
|
-
}), u = N) : (u && l.clear(), u = null, x = () => {
|
19635
|
+
}), u = N) : (u && (l == null || l.clear()), u = null, x = () => {
|
19638
19636
|
});
|
19639
19637
|
}, C = i.maps.mapActivated.addEventListener(M);
|
19640
19638
|
M(i.maps.activeMap);
|
@@ -19769,13 +19767,13 @@ async function Xw(i, t) {
|
|
19769
19767
|
export {
|
19770
19768
|
Ss as AbstractFeatureProvider,
|
19771
19769
|
ce as AbstractInteraction,
|
19772
|
-
|
19770
|
+
Bs as AltitudeModeCesium,
|
19773
19771
|
No as ArcStyle,
|
19774
|
-
|
19772
|
+
Je as ArrowEnd,
|
19775
19773
|
sa as ArrowStyle,
|
19776
19774
|
b as AxisAndPlanes,
|
19777
|
-
|
19778
|
-
|
19775
|
+
pr as BaseOLMap,
|
19776
|
+
vr as CameraLimiter,
|
19779
19777
|
ms as CameraLimiterMode,
|
19780
19778
|
vi as Category,
|
19781
19779
|
Cv as CategoryCollection,
|
@@ -19783,7 +19781,7 @@ export {
|
|
19783
19781
|
Fi as CesiumTilesetCesiumImpl,
|
19784
19782
|
Bi as CesiumTilesetLayer,
|
19785
19783
|
Li as ClassRegistry,
|
19786
|
-
|
19784
|
+
Us as ClassificationTypeCesium,
|
19787
19785
|
nn as ClippingObject,
|
19788
19786
|
hS as ClippingObjectManager,
|
19789
19787
|
Pw as ClusterContext,
|
@@ -19800,7 +19798,7 @@ export {
|
|
19800
19798
|
fe as DataState,
|
19801
19799
|
Be as DeclarativeStyleItem,
|
19802
19800
|
uv as DefaultObliqueCollection,
|
19803
|
-
|
19801
|
+
KS as EditFeaturesMouseOverInteraction,
|
19804
19802
|
OS as EditGeometryMouseOverInteraction,
|
19805
19803
|
ZS as EnsureHandlerSelectionInteraction,
|
19806
19804
|
Dv as EventHandler,
|
@@ -19812,18 +19810,18 @@ export {
|
|
19812
19810
|
Lv as FeatureAtPixelInteraction,
|
19813
19811
|
hi as FeatureLayer,
|
19814
19812
|
Tv as FeatureProviderInteraction,
|
19815
|
-
|
19813
|
+
Mr as FeatureStoreLayer,
|
19816
19814
|
Xv as FeatureStoreLayerChanges,
|
19817
19815
|
Eo as FeatureVisibility,
|
19818
19816
|
ne as FeatureVisibilityAction,
|
19819
19817
|
MS as FlightCollection,
|
19820
19818
|
ws as FlightInstance,
|
19821
|
-
|
19819
|
+
Cr as GeoJSONLayer,
|
19822
19820
|
et as GeometryType,
|
19823
19821
|
Qa as GlobalHider,
|
19824
19822
|
Ei as IndexedCollection,
|
19825
19823
|
Iu as InsertVertexInteraction,
|
19826
|
-
|
19824
|
+
Ki as InteractionChain,
|
19827
19825
|
Ye as Layer,
|
19828
19826
|
ai as LayerCollection,
|
19829
19827
|
Zi as LayerImplementation,
|
@@ -19839,24 +19837,24 @@ export {
|
|
19839
19837
|
Ul as ObliqueDataSet,
|
19840
19838
|
Ao as ObliqueImage,
|
19841
19839
|
gn as ObliqueImageMeta,
|
19842
|
-
|
19843
|
-
|
19840
|
+
Ne as ObliqueMap,
|
19841
|
+
K0 as ObliqueProvider,
|
19844
19842
|
Z0 as ObliqueView,
|
19845
19843
|
_e as ObliqueViewDirection,
|
19846
19844
|
Js as OlcsGeometryType,
|
19847
19845
|
Rv as OpenStreetMapCesiumImpl,
|
19848
|
-
|
19846
|
+
xr as OpenStreetMapLayer,
|
19849
19847
|
Yv as OpenStreetMapOpenlayersImpl,
|
19850
19848
|
Oe as OpenlayersMap,
|
19851
19849
|
Zt as OverrideClassRegistry,
|
19852
|
-
|
19853
|
-
|
19850
|
+
Ks as PatternType,
|
19851
|
+
Or as PointCloudLayer,
|
19854
19852
|
We as PointerEventType,
|
19855
|
-
|
19853
|
+
Pe as PointerKeyType,
|
19856
19854
|
Mt as PrimitiveOptionsType,
|
19857
19855
|
G as Projection,
|
19858
19856
|
vt as RasterLayer,
|
19859
|
-
|
19857
|
+
Ls as RasterLayerCesiumImpl,
|
19860
19858
|
Vr as RasterLayerOpenlayersImpl,
|
19861
19859
|
Pu as RemoveVertexInteraction,
|
19862
19860
|
WS as RotateInteraction,
|
@@ -19871,15 +19869,15 @@ export {
|
|
19871
19869
|
Zv as SingleImageOpenlayersImpl,
|
19872
19870
|
Bn as StaticGeoJSONTileProvider,
|
19873
19871
|
Wt as StyleItem,
|
19874
|
-
|
19872
|
+
Er as TMSLayer,
|
19875
19873
|
kv as TerrainCesiumImpl,
|
19876
|
-
|
19874
|
+
br as TerrainLayer,
|
19877
19875
|
Iw as TileDebugOpenlayersImpl,
|
19878
19876
|
St as TileProvider,
|
19879
19877
|
no as TileProviderFeatureProvider,
|
19880
19878
|
Ue as TilingScheme,
|
19881
19879
|
zv as TmsCesiumImpl,
|
19882
|
-
|
19880
|
+
Kv as TmsOpenlayersImpl,
|
19883
19881
|
ye as TransformationMode,
|
19884
19882
|
US as TranslateInteraction,
|
19885
19883
|
Br as TranslateVertexInteraction,
|
@@ -19899,18 +19897,18 @@ export {
|
|
19899
19897
|
Bv as VectorRasterTileCesiumImpl,
|
19900
19898
|
he as VectorStyleItem,
|
19901
19899
|
$v as VectorTileImageryProvider,
|
19902
|
-
|
19903
|
-
|
19900
|
+
Pr as VectorTileLayer,
|
19901
|
+
Jv as VectorTileOpenlayersImpl,
|
19904
19902
|
mt as Viewpoint,
|
19905
19903
|
ah as WFSLayer,
|
19906
19904
|
$i as WMSFeatureProvider,
|
19907
|
-
|
19908
|
-
|
19905
|
+
Ir as WMSLayer,
|
19906
|
+
Lr as WMTSLayer,
|
19909
19907
|
Uv as WmsCesiumImpl,
|
19910
19908
|
Qv as WmsOpenlayersImpl,
|
19911
19909
|
qv as WmtsCesiumImpl,
|
19912
19910
|
eS as WmtsOpenlayersImpl,
|
19913
|
-
|
19911
|
+
Qs as actuallyIsCircle,
|
19914
19912
|
Wc as addArrowsToContext,
|
19915
19913
|
us as addPrimitiveToContext,
|
19916
19914
|
ia as addPrimitivesToContext,
|
@@ -19942,7 +19940,7 @@ export {
|
|
19942
19940
|
Gc as convertGeometryToPolygon,
|
19943
19941
|
fw as coordinateAtDistance,
|
19944
19942
|
Cl as coordinateEqualsEpsilon,
|
19945
|
-
|
19943
|
+
er as copyClippingPlanesToCollection,
|
19946
19944
|
FS as create2DHandlers,
|
19947
19945
|
NS as create3DHandlers,
|
19948
19946
|
Eu as createCameraVerticalPlane,
|
@@ -19959,7 +19957,7 @@ export {
|
|
19959
19957
|
q_ as createPrimitive,
|
19960
19958
|
it as createSync,
|
19961
19959
|
kS as createTransformationHandler,
|
19962
|
-
|
19960
|
+
Ns as createVertex,
|
19963
19961
|
lt as cursorMap,
|
19964
19962
|
G_ as defaultDeclarativeStyle,
|
19965
19963
|
CS as defaultDynamicModuleId,
|
@@ -19969,7 +19967,7 @@ export {
|
|
19969
19967
|
D_ as deserializeLayer,
|
19970
19968
|
T_ as deserializeMap,
|
19971
19969
|
N_ as deserializeViewpoint,
|
19972
|
-
|
19970
|
+
Kt as destroyCollection,
|
19973
19971
|
pS as detectBrowserLocale,
|
19974
19972
|
ea as doNotTransform,
|
19975
19973
|
$w as drapeGeometryOnTerrain,
|
@@ -19977,7 +19975,7 @@ export {
|
|
19977
19975
|
Mw as emptyColor,
|
19978
19976
|
m_ as emptyStyle,
|
19979
19977
|
to as enforceEndingVertex,
|
19980
|
-
|
19978
|
+
K_ as enforceRightHand,
|
19981
19979
|
BS as ensureFeatureAbsolute,
|
19982
19980
|
Fw as exportFlightAsGeoJson,
|
19983
19981
|
Rw as exportFlightPathAsGeoJson,
|
@@ -19989,7 +19987,7 @@ export {
|
|
19989
19987
|
v_ as fromCesiumColor,
|
19990
19988
|
is as fvLastUpdated,
|
19991
19989
|
xu as geometryIsValid,
|
19992
|
-
|
19990
|
+
Rs as getAltitudeModeOptions,
|
19993
19991
|
_0 as getBillboardOptions,
|
19994
19992
|
Vv as getCanvasFromFeatures,
|
19995
19993
|
S0 as getCartesian3AndWGS84FromCoordinates,
|
@@ -19998,25 +19996,25 @@ export {
|
|
19998
19996
|
e_ as getCartesianPitch,
|
19999
19997
|
jt as getCartographicFromPlane,
|
20000
19998
|
si as getCesiumColor,
|
20001
|
-
|
19999
|
+
Kr as getClassificationTypeOptions,
|
20002
20000
|
Aw as getClippingOptions,
|
20003
20001
|
ph as getClosestPointOn2DLine,
|
20004
20002
|
ww as getCssStyleFromTextStyle,
|
20005
20003
|
pe as getDefaultCondition,
|
20006
20004
|
aw as getDefaultHighlightStyle,
|
20007
|
-
|
20005
|
+
Jy as getDefaultProjection,
|
20008
20006
|
Ec as getDefaultVectorStyleItemOptions,
|
20009
20007
|
xw as getDirectionName,
|
20010
20008
|
yv as getEPSGCodeFromGeojson,
|
20011
20009
|
mu as getExtentFromTileset,
|
20012
20010
|
Cc as getFillFromOptions,
|
20013
20011
|
Tn as getFillOptions,
|
20014
|
-
|
20012
|
+
Ps as getFlatCoordinatesFromGeometry,
|
20015
20013
|
Io as getFlatCoordinatesFromSimpleGeometry,
|
20016
20014
|
Su as getFlightPathCoordinatesFromInstance,
|
20017
20015
|
Iv as getFormat,
|
20018
20016
|
Y_ as getHeightAboveGround,
|
20019
|
-
|
20017
|
+
Is as getHeightFromTerrainProvider,
|
20020
20018
|
Fc as getHeightInfo,
|
20021
20019
|
g_ as getImageStyleFromOptions,
|
20022
20020
|
bc as getImageStyleOptions,
|
@@ -20027,7 +20025,7 @@ export {
|
|
20027
20025
|
vc as getMidPoint,
|
20028
20026
|
X_ as getMinHeightOrGroundLevel,
|
20029
20027
|
Nl as getModelOptions,
|
20030
|
-
|
20028
|
+
Jr as getNearFarValueOptions,
|
20031
20029
|
ii as getObjectFromClassRegistry,
|
20032
20030
|
jl as getPolygonizedGeometry,
|
20033
20031
|
io as getPrimitiveOptions,
|
@@ -20039,12 +20037,12 @@ export {
|
|
20039
20037
|
Il as getStoreyOptions,
|
20040
20038
|
at as getStringColor,
|
20041
20039
|
Oo as getStrokeFromOptions,
|
20042
|
-
|
20040
|
+
fr as getStrokeOptions,
|
20043
20041
|
vw as getStyleFromOptions,
|
20044
20042
|
Sw as getStyleOptions,
|
20045
20043
|
An as getStyleOrDefaultStyle,
|
20046
20044
|
Fn as getStylesArray,
|
20047
|
-
|
20045
|
+
yr as getTerrainProviderForUrl,
|
20048
20046
|
Oc as getTextFromOptions,
|
20049
20047
|
xc as getTextOptions,
|
20050
20048
|
na as getTileLoadFunction,
|
@@ -20056,28 +20054,28 @@ export {
|
|
20056
20054
|
gu as getWMSSource,
|
20057
20055
|
j0 as getZoom,
|
20058
20056
|
dt as globalHidden,
|
20059
|
-
|
20057
|
+
qs as globalHiderLastUpdated,
|
20060
20058
|
Tw as globeLoaded,
|
20061
20059
|
la as greyedOutColor,
|
20062
|
-
|
20060
|
+
Te as handlerSymbol,
|
20063
20061
|
bw as hasSameOrigin,
|
20064
20062
|
c_ as hexToOlColor,
|
20065
20063
|
ut as hidden,
|
20066
|
-
|
20064
|
+
be as highlighted,
|
20067
20065
|
$0 as imageGeometryToMercatorGeometry,
|
20068
20066
|
gw as initialBearingBetweenCoords,
|
20069
20067
|
qn as is1DAxis,
|
20070
20068
|
Wn as is2DAxis,
|
20071
20069
|
kn as isMobile,
|
20072
|
-
|
20070
|
+
Ka as isOverrideCollection,
|
20073
20071
|
xv as isProvidedFeature,
|
20074
20072
|
Yt as isSameOrigin,
|
20075
20073
|
k0 as isTerrainTileAvailable,
|
20076
|
-
|
20077
|
-
|
20074
|
+
wr as isTiledFeature,
|
20075
|
+
De as layerClassRegistry,
|
20078
20076
|
Al as lineStringToCesium,
|
20079
|
-
|
20080
|
-
|
20077
|
+
Jt as makeOverrideCollection,
|
20078
|
+
Es as mapClassRegistry,
|
20081
20079
|
ko as markVolatile,
|
20082
20080
|
j_ as maxZIndex,
|
20083
20081
|
V0 as mercatorGeometryToImageGeometry,
|
@@ -20103,7 +20101,7 @@ export {
|
|
20103
20101
|
q0 as parseImageMeta,
|
20104
20102
|
W0 as parseLegacyImageData,
|
20105
20103
|
pa as parseNearFarScalar,
|
20106
|
-
|
20104
|
+
Ji as parseStoreyHeights,
|
20107
20105
|
$S as placeGeometryOnTerrain,
|
20108
20106
|
VS as pointOnLine2D,
|
20109
20107
|
jS as pointOnLine3D,
|
@@ -20120,7 +20118,7 @@ export {
|
|
20120
20118
|
ra as requestUrl,
|
20121
20119
|
A_ as serializeLayer,
|
20122
20120
|
hh as setClippingPlanes,
|
20123
|
-
|
20121
|
+
Ky as setDefaultProjectionOptions,
|
20124
20122
|
Vl as setNewGeometry,
|
20125
20123
|
N0 as setReferenceForPicking,
|
20126
20124
|
Gl as setSplitDirectionOnPrimitives,
|
@@ -20135,11 +20133,11 @@ export {
|
|
20135
20133
|
Hr as styleClassRegistry,
|
20136
20134
|
w_ as synchronizeFeatureVisibility,
|
20137
20135
|
Po as synchronizeFeatureVisibilityWithSource,
|
20138
|
-
|
20136
|
+
bs as tileProviderClassRegistry,
|
20139
20137
|
Lw as tiledLayerLoaded,
|
20140
20138
|
jv as toContext,
|
20141
20139
|
z0 as transformCWIFC,
|
20142
|
-
|
20140
|
+
_r as transformFromImage,
|
20143
20141
|
Ow as transformToImage,
|
20144
20142
|
V_ as updateFeatureVisibility,
|
20145
20143
|
$_ as updateGlobalHider,
|
@@ -20160,6 +20158,6 @@ export {
|
|
20160
20158
|
In as wgs84ToMercatorTransformer,
|
20161
20159
|
fn as whiteColor,
|
20162
20160
|
Ew as writeGeoJSON,
|
20163
|
-
|
20161
|
+
Sr as writeGeoJSONFeature,
|
20164
20162
|
z_ as writeStyle
|
20165
20163
|
};
|