@vcmap/ui 5.1.6 → 5.1.8
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.950fcb.js → core.45041e.js} +417 -417
- package/dist/assets/core.js +1 -1
- package/dist/assets/index-3cd5a3f3.js +1 -0
- package/dist/assets/ol.js +1 -1
- package/dist/assets/{ui.a4ccf8.js → ui.74ba2a.js} +8 -8
- package/dist/assets/ui.js +1 -1
- package/dist/assets/vue.js +2 -2
- package/dist/assets/{vuetify.f23a17.js → vuetify.72ace9.js} +1 -1
- package/dist/assets/vuetify.js +2 -2
- package/dist/index.html +1 -1
- package/package.json +2 -2
- package/src/actions/actionHelper.js +1 -1
- package/dist/assets/index-c4a24e02.js +0 -1
- /package/dist/assets/{cesium.a8db01.js → cesium.035e3a.js} +0 -0
- /package/dist/assets/{ol.39cfab.js → ol.eb3bee.js} +0 -0
- /package/dist/assets/{ui.a4ccf8.css → ui.74ba2a.css} +0 -0
- /package/dist/assets/{vue.4e258b.js → vue.17a8fa.js} +0 -0
- /package/dist/assets/{vuetify.f23a17.css → vuetify.72ace9.css} +0 -0
@@ -1,8 +1,8 @@
|
|
1
1
|
var Au = Object.defineProperty;
|
2
2
|
var Fu = (i, t, e) => t in i ? Au(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
|
3
3
|
var h = (i, t, e) => (Fu(i, typeof t != "symbol" ? t + "" : t, e), e);
|
4
|
-
import { ol$proj$getTransform as Ae, ol$proj$get as Ru, ol$proj$equivalent as Gu, ol$proj$proj4$register as Uo, ol$geom$Circle as Ot, ol$geom$GeometryCollection as Tr, ol$style$Style as ee, ol$style$Fill as it, ol$style$Stroke as je, ol$style$Text as ho, ol$style$Icon as Si, ol$style$Circle as wi, ol$style$RegularShape as Nr, ol$has$DEVICE_PIXEL_RATIO as ku, ol$style$Image as Ch, ol$Feature as ae, ol$extent$containsCoordinate as Ra, ol$Map as zu, ol$interaction$defaults as Hu, ol$Observable$unByKey as re, ol$View as co, ol$easing$inAndOut as ju, ol$extent$containsXY as xh, ol$extent$boundingExtent as ir, ol$layer$Vector as Oh, ol$extent$getBottomLeft as uo, ol$geom$SimpleGeometry as Vu, ol$geom$Point as Nt, ol$geom$LineString as Ut, ol$geom$Polygon as Dt, ol$geom$MultiPoint as bh, ol$geom$MultiLineString as Eh, ol$geom$MultiPolygon as sr, ol$sphere$offset as
|
5
|
-
import { Math as N, Cartesian3 as _, Cartographic as ie, Cesium3DTileStyle as
|
4
|
+
import { ol$proj$getTransform as Ae, ol$proj$get as Ru, ol$proj$equivalent as Gu, ol$proj$proj4$register as Uo, ol$geom$Circle as Ot, ol$geom$GeometryCollection as Tr, ol$style$Style as ee, ol$style$Fill as it, ol$style$Stroke as je, ol$style$Text as ho, ol$style$Icon as Si, ol$style$Circle as wi, ol$style$RegularShape as Nr, ol$has$DEVICE_PIXEL_RATIO as ku, ol$style$Image as Ch, ol$Feature as ae, ol$extent$containsCoordinate as Ra, ol$Map as zu, ol$interaction$defaults as Hu, ol$Observable$unByKey as re, ol$View as co, ol$easing$inAndOut as ju, ol$extent$containsXY as xh, ol$extent$boundingExtent as ir, ol$layer$Vector as Oh, ol$extent$getBottomLeft as uo, ol$geom$SimpleGeometry as Vu, ol$geom$Point as Nt, ol$geom$LineString as Ut, ol$geom$Polygon as Dt, ol$geom$MultiPoint as bh, ol$geom$MultiLineString as Eh, ol$geom$MultiPolygon as sr, ol$sphere$offset as hn, ol$geom$Polygon$fromCircle as Ph, ol$geom$Polygon$circular as $u, ol$colorlike$asColorLike as Bu, Feature as At, ol$ImageState as Yr, ol$extent$getBottomRight as Ih, ol$extent$getTopRight as Lh, ol$extent$getTopLeft as Zn, ol$proj$transform as Fi, ol$source$Vector as rr, ol$tilegrid$createXYZ as Th, ol$TileState as Nh, ol$proj$Projection as Uu, ol$tilegrid$TileGrid as Dh, ol$source$TileImage as qu, ol$layer$Tile as Cs, ol$extent$buffer as Ah, ol$extent$getCenter as nr, ol$geom$Polygon$fromExtent as Wu, ol$proj$transformExtent as qo, ol$sphere$getDistance as Xu, ol$format$GeoJSON as Fh, ol$extent$getWidth as Ga, ol$source$TileWMS as Yu, ol$source$ImageWMS as Zu, ol$format$GML2 as ka, ol$format$WFS as za, ol$format$GML3 as Ha, ol$extent$createEmpty as ps, ol$structs$LRUCache as Ku, ol$extent$createOrUpdateFromCoordinate as Ju, ol$render$canvas$Immediate as Qu, ol$geom$flat$transform$transform2D as ed, ol$extent$intersects as td, ol$geom$SimpleGeometry$transformGeom2D as id, ol$transform$scale as sd, ol$transform$create as rd, ol$transform$compose as nd, ol$extent$extend as ar, ol$source$OSM as ad, ol$layer$Image as Rh, ol$source$ImageStatic as od, ol$source$TileDebug as ld, ol$source$XYZ as hd, ol$source$VectorTile as cd, ol$layer$VectorTile as ud, ol$tilegrid$WMTS as dd, ol$source$WMTS as fd, ol$format$MVT as gd, ol$coordinate$equals as md, ol$interaction$DragPan as pd, ol$extent$isEmpty as ja, ol$geom$LinearRing as yd } from "./ol.eb3bee.js";
|
5
|
+
import { Math as N, Cartesian3 as _, Cartographic as ie, Cesium3DTileStyle as Sn, Cesium3DTileColorBlendMode as cn, 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 wn, Primitive as pt, GeometryInstance as ct, FrustumGeometry as _d, ColorGeometryInstanceAttribute as or, PerInstanceColorAppearance as ys, FrustumOutlineGeometry as vd, destroyObject as Sd, EasingFunction as wd, ConditionsExpression as Md, Expression as Cd, HeightReference as Le, ClassificationType as ds, NearFarScalar as Zs, SplitDirection as Me, SceneTransforms as xd, MaterialAppearance as Mn, ShadowMode as Dr, ClassificationPrimitive as Gh, GroundPrimitive as Wo, PolylineMaterialAppearance as Va, GroundPolylinePrimitive as Xo, PolygonGeometry as Od, PolygonOutlineGeometry as bd, GroundPolylineGeometry as fo, PolylineGeometry as Ri, PolygonHierarchy as $a, CircleGeometry as Ed, CircleOutlineGeometry as Pd, HeadingPitchRoll as ki, Matrix4 as F, Transforms as Mi, Model as go, sampleTerrainMostDetailed as Kn, ModelAnimationLoop as Id, CylinderOutlineGeometry as Ld, CylinderGeometry as kh, EllipsoidOutlineGeometry as Td, EllipsoidGeometry as zh, SphereOutlineGeometry as Nd, SphereGeometry as Dd, BoxOutlineGeometry as Ad, BoxGeometry as Hh, WallGeometry as Fd, WallOutlineGeometry as Rd, LabelStyle as ua, HorizontalOrigin as da, CatmullRomSpline as jh, ArcType as Cn, PrimitiveCollection as Ci, BillboardCollection as Gd, LabelCollection as kd, Resource as zd, CesiumTerrainProvider as Yo, Cartesian4 as Zo, sampleTerrain as Hd, Ellipsoid as Ba, Clock as jd, DataSourceClock as Vd, JulianDate as Vh, KeyboardEventModifier as fa, ScreenSpaceEventType as fi, CesiumWidget as $d, DataSourceDisplay as Ko, DataSourceCollection as Jo, RequestScheduler as Bd, ScreenSpaceEventHandler as Ud, Ray as $h, Camera as Bh, ImageryLayer as Xi, CustomDataSource as Uh, BoundingSphere as qh, Intersect as qd, BillboardVisualizer as Wd, LabelVisualizer as Xd, PointVisualizer as Yd, WebMercatorTilingScheme as mo, GeographicTilingScheme as Wh, Rectangle as yt, Cesium3DTileset as xn, Composite3DTileContent as Zd, HeadingPitchRange as Kd, BoundingSphereState as Qo, OpenStreetMapImageryProvider as Jd, SingleTileImageryProvider as Qd, TileMapServiceImageryProvider as ef, Event as el, WebMapServiceImageryProvider as tf, WebMapTileServiceImageryProvider as sf, EntityCollection as rf, CzmlDataSource as nf, Plane as te, ClippingPlaneCollection as lr, ClippingPlane as hr, ConstantProperty as af, Globe as of, LinearSpline as lf, QuaternionSpline as hf, CoplanarPolygonGeometry as cf, IntersectionTests as uf } from "./cesium.035e3a.js";
|
6
6
|
const Yi = Symbol("isMatcher"), df = Symbol("Integer"), ff = Symbol("NonEmptyString"), po = /* @__PURE__ */ new Map();
|
7
7
|
[
|
8
8
|
[String, "string"],
|
@@ -80,7 +80,7 @@ function yf(i, t) {
|
|
80
80
|
const e = po.get(t);
|
81
81
|
return e ? typeof i === e ? !1 : `expected ${Ve(i)} to be a ${String(e)}` : null;
|
82
82
|
}
|
83
|
-
function
|
83
|
+
function Jn(i) {
|
84
84
|
if (i === null)
|
85
85
|
return "null";
|
86
86
|
const t = po.get(i);
|
@@ -98,7 +98,7 @@ function Kn(i) {
|
|
98
98
|
if (cr(i)) {
|
99
99
|
const n = {};
|
100
100
|
Object.keys(i).forEach((a) => {
|
101
|
-
n[a] =
|
101
|
+
n[a] = Jn(i[a]);
|
102
102
|
});
|
103
103
|
try {
|
104
104
|
s = `Object of ${JSON.stringify(n)}`;
|
@@ -129,7 +129,7 @@ function xs(i, t) {
|
|
129
129
|
if (r === Object)
|
130
130
|
return Ua(s, {}, e);
|
131
131
|
if (r instanceof Function)
|
132
|
-
return s instanceof r ? !1 : `Expected ${Ve(s, !0)} to be of Type ${
|
132
|
+
return s instanceof r ? !1 : `Expected ${Ve(s, !0)} to be of Type ${Jn(r)}`;
|
133
133
|
if (typeof r == "object") {
|
134
134
|
const o = Ua(s, r, e);
|
135
135
|
return o || !1;
|
@@ -166,7 +166,7 @@ function Xh(i) {
|
|
166
166
|
return t[Yi] = !0, t;
|
167
167
|
}
|
168
168
|
function $e(...i) {
|
169
|
-
const t = (e) => i.every((r) => xs(e, r)) ? `Expected ${Ve(e)} to be a ${i.map((r) =>
|
169
|
+
const t = (e) => i.every((r) => xs(e, r)) ? `Expected ${Ve(e)} to be a ${i.map((r) => Jn(r)).join(" or ")}` : !1;
|
170
170
|
return t[Yi] = !0, t;
|
171
171
|
}
|
172
172
|
function Sf(i) {
|
@@ -178,10 +178,10 @@ function Sf(i) {
|
|
178
178
|
return t[Yi] = !0, t;
|
179
179
|
}
|
180
180
|
function tl(i) {
|
181
|
-
const t = (e) => cr(e) ? Object.values(e).every((r) => Os(r, i)) ? !1 : `Not all values of ${Ve(e)} are of type ${
|
181
|
+
const t = (e) => cr(e) ? Object.values(e).every((r) => Os(r, i)) ? !1 : `Not all values of ${Ve(e)} are of type ${Jn(i)}` : `Expected ${Ve(e)} to be a plain Object`;
|
182
182
|
return t[Yi] = !0, t;
|
183
183
|
}
|
184
|
-
function
|
184
|
+
function On(i) {
|
185
185
|
S(i, Object);
|
186
186
|
const t = Object.values(i), e = (s) => t.includes(s) ? !1 : `expected ${Ve(s)} to be of enum: ${t.join(", ")}`;
|
187
187
|
return e[Yi] = !0, e;
|
@@ -189,7 +189,7 @@ function xn(i) {
|
|
189
189
|
function wf(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
|
192
|
+
var zi = 1, Hi = 2, fs = 3, Mf = 4, qa = 5, il = 6378137, Cf = 6356752314e-3, sl = 0.0066943799901413165, Ks = 484813681109536e-20, x = Math.PI / 2, xf = 0.16666666666666666, Of = 0.04722222222222222, bf = 0.022156084656084655, T = 1e-10, ke = 0.017453292519943295, Vt = 57.29577951308232, K = Math.PI / 4, ur = Math.PI * 2, we = 3.14159265359, ft = {};
|
193
193
|
ft.greenwich = 0;
|
194
194
|
ft.lisbon = -9.131906111111;
|
195
195
|
ft.paris = 2.337229166667;
|
@@ -321,7 +321,7 @@ function Wa(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 dr = 1, Yh = 2, Zh = 3,
|
324
|
+
var dr = 1, Yh = 2, Zh = 3, bn = 4, Kh = 5, yo = -1, Pf = /\s/, If = /[A-Za-z]/, Lf = /[A-Za-z84_]/, Qn = /[,\]]/, Jh = /[\d\.E\-\+]/;
|
325
325
|
function ui(i) {
|
326
326
|
if (typeof i != "string")
|
327
327
|
throw new Error("not a string");
|
@@ -329,7 +329,7 @@ function ui(i) {
|
|
329
329
|
}
|
330
330
|
ui.prototype.readCharicter = function() {
|
331
331
|
var i = this.text[this.place++];
|
332
|
-
if (this.state !==
|
332
|
+
if (this.state !== bn)
|
333
333
|
for (; Pf.test(i); ) {
|
334
334
|
if (this.place >= this.text.length)
|
335
335
|
return;
|
@@ -340,7 +340,7 @@ ui.prototype.readCharicter = function() {
|
|
340
340
|
return this.neutral(i);
|
341
341
|
case Yh:
|
342
342
|
return this.keyword(i);
|
343
|
-
case
|
343
|
+
case bn:
|
344
344
|
return this.quoted(i);
|
345
345
|
case Kh:
|
346
346
|
return this.afterquote(i);
|
@@ -352,10 +352,10 @@ ui.prototype.readCharicter = function() {
|
|
352
352
|
};
|
353
353
|
ui.prototype.afterquote = function(i) {
|
354
354
|
if (i === '"') {
|
355
|
-
this.word += '"', this.state =
|
355
|
+
this.word += '"', this.state = bn;
|
356
356
|
return;
|
357
357
|
}
|
358
|
-
if (
|
358
|
+
if (Qn.test(i)) {
|
359
359
|
this.word = this.word.trim(), this.afterItem(i);
|
360
360
|
return;
|
361
361
|
}
|
@@ -376,7 +376,7 @@ ui.prototype.number = function(i) {
|
|
376
376
|
this.word += i;
|
377
377
|
return;
|
378
378
|
}
|
379
|
-
if (
|
379
|
+
if (Qn.test(i)) {
|
380
380
|
this.word = parseFloat(this.word), this.afterItem(i);
|
381
381
|
return;
|
382
382
|
}
|
@@ -399,7 +399,7 @@ ui.prototype.keyword = function(i) {
|
|
399
399
|
t.push(this.word), this.level++, this.root === null ? this.root = t : this.currentObject.push(t), this.stack.push(this.currentObject), this.currentObject = t, this.state = dr;
|
400
400
|
return;
|
401
401
|
}
|
402
|
-
if (
|
402
|
+
if (Qn.test(i)) {
|
403
403
|
this.afterItem(i);
|
404
404
|
return;
|
405
405
|
}
|
@@ -411,14 +411,14 @@ ui.prototype.neutral = function(i) {
|
|
411
411
|
return;
|
412
412
|
}
|
413
413
|
if (i === '"') {
|
414
|
-
this.word = "", this.state =
|
414
|
+
this.word = "", this.state = bn;
|
415
415
|
return;
|
416
416
|
}
|
417
417
|
if (Jh.test(i)) {
|
418
418
|
this.word = i, this.state = Zh;
|
419
419
|
return;
|
420
420
|
}
|
421
|
-
if (
|
421
|
+
if (Qn.test(i)) {
|
422
422
|
this.afterItem(i);
|
423
423
|
return;
|
424
424
|
}
|
@@ -728,19 +728,19 @@ const Kf = {
|
|
728
728
|
inverse: ol,
|
729
729
|
names: Zf
|
730
730
|
};
|
731
|
-
var Jf = [Xf, Kf],
|
731
|
+
var Jf = [Xf, Kf], un = {}, En = [];
|
732
732
|
function ec(i, t) {
|
733
|
-
var e =
|
734
|
-
return i.names ? (
|
735
|
-
|
733
|
+
var e = En.length;
|
734
|
+
return i.names ? (En[e] = i, i.names.forEach(function(s) {
|
735
|
+
un[s.toLowerCase()] = e;
|
736
736
|
}), this) : (console.log(t), !0);
|
737
737
|
}
|
738
738
|
function Qf(i) {
|
739
739
|
if (!i)
|
740
740
|
return !1;
|
741
741
|
var t = i.toLowerCase();
|
742
|
-
if (typeof
|
743
|
-
return
|
742
|
+
if (typeof un[t] < "u" && En[un[t]])
|
743
|
+
return En[un[t]];
|
744
744
|
}
|
745
745
|
function eg() {
|
746
746
|
Jf.forEach(ec);
|
@@ -1082,7 +1082,7 @@ Fe.rnb72 = {
|
|
1082
1082
|
};
|
1083
1083
|
function ng(i, t, e, s, r, n, a) {
|
1084
1084
|
var o = {};
|
1085
|
-
return i === void 0 || i === "none" ? o.datum_type = qa : o.datum_type = Mf, 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 =
|
1085
|
+
return i === void 0 || i === "none" ? o.datum_type = qa : o.datum_type = Mf, 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] *= Ks, o.datum_params[4] *= Ks, o.datum_params[5] *= Ks, 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 tc = {};
|
1088
1088
|
function ag(i, t) {
|
@@ -1213,7 +1213,7 @@ function Bt(i, t) {
|
|
1213
1213
|
Bt.projections = tg;
|
1214
1214
|
Bt.projections.start();
|
1215
1215
|
function mg(i, t) {
|
1216
|
-
return i.datum_type !== t.datum_type || i.a !== t.a || Math.abs(i.es - t.es) > 5e-11 ? !1 : i.datum_type ===
|
1216
|
+
return i.datum_type !== t.datum_type || i.a !== t.a || Math.abs(i.es - t.es) > 5e-11 ? !1 : i.datum_type === zi ? i.datum_params[0] === t.datum_params[0] && i.datum_params[1] === t.datum_params[1] && i.datum_params[2] === t.datum_params[2] : i.datum_type === Hi ? i.datum_params[0] === t.datum_params[0] && i.datum_params[1] === t.datum_params[1] && i.datum_params[2] === t.datum_params[2] && i.datum_params[3] === t.datum_params[3] && i.datum_params[4] === t.datum_params[4] && i.datum_params[5] === t.datum_params[5] && i.datum_params[6] === t.datum_params[6] : !0;
|
1217
1217
|
}
|
1218
1218
|
function ic(i, t, e) {
|
1219
1219
|
var s = i.x, r = i.y, n = i.z ? i.z : 0, a, o, l, c;
|
@@ -1255,13 +1255,13 @@ function sc(i, t, e, s) {
|
|
1255
1255
|
};
|
1256
1256
|
}
|
1257
1257
|
function pg(i, t, e) {
|
1258
|
-
if (t ===
|
1258
|
+
if (t === zi)
|
1259
1259
|
return {
|
1260
1260
|
x: i.x + e[0],
|
1261
1261
|
y: i.y + e[1],
|
1262
1262
|
z: i.z + e[2]
|
1263
1263
|
};
|
1264
|
-
if (t ===
|
1264
|
+
if (t === Hi) {
|
1265
1265
|
var s = e[0], r = e[1], n = e[2], a = e[3], o = e[4], l = e[5], c = e[6];
|
1266
1266
|
return {
|
1267
1267
|
x: c * (i.x - l * i.y + o * i.z) + s,
|
@@ -1271,13 +1271,13 @@ function pg(i, t, e) {
|
|
1271
1271
|
}
|
1272
1272
|
}
|
1273
1273
|
function yg(i, t, e) {
|
1274
|
-
if (t ===
|
1274
|
+
if (t === zi)
|
1275
1275
|
return {
|
1276
1276
|
x: i.x - e[0],
|
1277
1277
|
y: i.y - e[1],
|
1278
1278
|
z: i.z - e[2]
|
1279
1279
|
};
|
1280
|
-
if (t ===
|
1280
|
+
if (t === Hi) {
|
1281
1281
|
var s = e[0], r = e[1], n = e[2], a = e[3], o = e[4], l = e[5], c = e[6], d = (i.x - s) / c, u = (i.y - r) / c, f = (i.z - n) / c;
|
1282
1282
|
return {
|
1283
1283
|
x: d + l * u - o * f,
|
@@ -1286,8 +1286,8 @@ function yg(i, t, e) {
|
|
1286
1286
|
};
|
1287
1287
|
}
|
1288
1288
|
}
|
1289
|
-
function
|
1290
|
-
return i ===
|
1289
|
+
function Zr(i) {
|
1290
|
+
return i === zi || i === Hi;
|
1291
1291
|
}
|
1292
1292
|
function _g(i, t, e) {
|
1293
1293
|
if (mg(i, t) || i.datum_type === qa || t.datum_type === qa)
|
@@ -1300,9 +1300,9 @@ function _g(i, t, e) {
|
|
1300
1300
|
s = il, r = sl;
|
1301
1301
|
}
|
1302
1302
|
var a = t.a, o = t.b, l = t.es;
|
1303
|
-
if (t.datum_type === fs && (a = il, o = Cf, l = sl), r === l && s === a && !
|
1303
|
+
if (t.datum_type === fs && (a = il, o = Cf, l = sl), r === l && s === a && !Zr(i.datum_type) && !Zr(t.datum_type))
|
1304
1304
|
return e;
|
1305
|
-
if (e = ic(e, r, s),
|
1305
|
+
if (e = ic(e, r, s), Zr(i.datum_type) && (e = pg(e, i.datum_type, i.datum_params)), Zr(t.datum_type) && (e = yg(e, t.datum_type, t.datum_params)), e = sc(e, l, a, o), t.datum_type === fs) {
|
1306
1306
|
var c = ll(t, !0, e);
|
1307
1307
|
if (c !== 0)
|
1308
1308
|
return;
|
@@ -1417,9 +1417,9 @@ function ul(i) {
|
|
1417
1417
|
throw new TypeError("coordinates must be finite numbers");
|
1418
1418
|
}
|
1419
1419
|
function wg(i, t) {
|
1420
|
-
return (i.datum.datum_type ===
|
1420
|
+
return (i.datum.datum_type === zi || i.datum.datum_type === Hi || i.datum.datum_type === fs) && t.datumCode !== "WGS84" || (t.datum.datum_type === zi || t.datum.datum_type === Hi || t.datum.datum_type === fs) && i.datumCode !== "WGS84";
|
1421
1421
|
}
|
1422
|
-
function
|
1422
|
+
function Pn(i, t, e, s) {
|
1423
1423
|
var r;
|
1424
1424
|
Array.isArray(e) ? e = rc(e) : e = {
|
1425
1425
|
x: e.x,
|
@@ -1428,7 +1428,7 @@ function En(i, t, e, s) {
|
|
1428
1428
|
m: e.m
|
1429
1429
|
};
|
1430
1430
|
var n = e.z !== void 0;
|
1431
|
-
if (Sg(e), i.datum && t.datum && wg(i, t) && (r = new Bt("WGS84"), e =
|
1431
|
+
if (Sg(e), i.datum && t.datum && wg(i, t) && (r = new Bt("WGS84"), e = Pn(i, r, e, s), i = r), s && i.axis !== "enu" && (e = cl(i, !1, e)), i.projName === "longlat")
|
1432
1432
|
e = {
|
1433
1433
|
x: e.x * ke,
|
1434
1434
|
y: e.y * ke,
|
@@ -1458,7 +1458,7 @@ function En(i, t, e, s) {
|
|
1458
1458
|
var dl = Bt("WGS84");
|
1459
1459
|
function ga(i, t, e, s) {
|
1460
1460
|
var r, n, a;
|
1461
|
-
return Array.isArray(e) ? (r =
|
1461
|
+
return Array.isArray(e) ? (r = Pn(i, t, e, s) || { x: NaN, y: NaN }, e.length > 2 ? typeof i.name < "u" && i.name === "geocent" || typeof t.name < "u" && t.name === "geocent" ? typeof r.z == "number" ? [r.x, r.y, r.z].concat(e.splice(3)) : [r.x, r.y, e[2]].concat(e.splice(3)) : [r.x, r.y].concat(e.splice(2)) : [r.x, r.y]) : (n = Pn(i, t, e, s), a = Object.keys(e), a.length === 2 || a.forEach(function(o) {
|
1462
1462
|
if (typeof i.name < "u" && i.name === "geocent" || typeof t.name < "u" && t.name === "geocent") {
|
1463
1463
|
if (o === "x" || o === "y" || o === "z")
|
1464
1464
|
return;
|
@@ -1725,27 +1725,27 @@ function uc(i) {
|
|
1725
1725
|
var e = i * i;
|
1726
1726
|
return t[2] = e * (Fg - i * (Rg + i * Gg)), e *= i, t[3] = e * (kg - i * zg), t[4] = e * i * Hg, t;
|
1727
1727
|
}
|
1728
|
-
function
|
1728
|
+
function ea(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 jg = 20;
|
1732
1732
|
function dc(i, t, e) {
|
1733
1733
|
for (var s = 1 / (1 - t), r = i, n = jg; n; --n) {
|
1734
1734
|
var a = Math.sin(r), o = 1 - t * a * a;
|
1735
|
-
if (o = (
|
1735
|
+
if (o = (ea(r, a, Math.cos(r), e) - i) * (o * Math.sqrt(o)) * s, r -= o, Math.abs(o) < T)
|
1736
1736
|
return r;
|
1737
1737
|
}
|
1738
1738
|
return r;
|
1739
1739
|
}
|
1740
1740
|
function Vg() {
|
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 = uc(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 = uc(this.es), this.ml0 = ea(this.lat0, Math.sin(this.lat0), Math.cos(this.lat0), this.en));
|
1742
1742
|
}
|
1743
1743
|
function $g(i) {
|
1744
1744
|
var t = i.x, e = i.y, s = D(t - this.long0), r, n, a, o = Math.sin(e), l = Math.cos(e);
|
1745
1745
|
if (this.es) {
|
1746
1746
|
var d = l * s, u = Math.pow(d, 2), f = this.ep2 * Math.pow(l, 2), g = Math.pow(f, 2), m = Math.abs(l) > T ? Math.tan(e) : 0, p = Math.pow(m, 2), y = Math.pow(p, 2);
|
1747
1747
|
r = 1 - this.es * Math.pow(o, 2), d = d / Math.sqrt(r);
|
1748
|
-
var v =
|
1748
|
+
var v = ea(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 * (v - 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);
|
@@ -1778,7 +1778,7 @@ function Bg(i) {
|
|
1778
1778
|
return i.x = r, i.y = s, i;
|
1779
1779
|
}
|
1780
1780
|
var Ug = ["Fast_Transverse_Mercator", "Fast Transverse Mercator"];
|
1781
|
-
const
|
1781
|
+
const dn = {
|
1782
1782
|
init: Vg,
|
1783
1783
|
forward: $g,
|
1784
1784
|
inverse: Bg,
|
@@ -1823,7 +1823,7 @@ function gc(i, t, e) {
|
|
1823
1823
|
function Zg() {
|
1824
1824
|
if (!this.approx && (isNaN(this.es) || this.es <= 0))
|
1825
1825
|
throw new Error('Incorrect elliptical usage. Try using the +approx option in the proj string, or PROJECTION["Fast_Transverse_Mercator"] in the WKT.');
|
1826
|
-
this.approx && (
|
1826
|
+
this.approx && (dn.init.apply(this), this.forward = dn.forward, this.inverse = dn.inverse), this.x0 = this.x0 !== void 0 ? this.x0 : 0, this.y0 = this.y0 !== void 0 ? this.y0 : 0, this.long0 = this.long0 !== void 0 ? this.long0 : 0, this.lat0 = this.lat0 !== void 0 ? this.lat0 : 0, this.cgb = [], this.cbg = [], this.utg = [], this.gtu = [];
|
1827
1827
|
var i = this.es / (1 + Math.sqrt(1 - this.es)), t = i / (2 - i), e = t;
|
1828
1828
|
this.cgb[0] = t * (2 + t * (-2 / 3 + t * (-2 + t * (116 / 45 + t * (26 / 45 + t * (-2854 / 675)))))), this.cbg[0] = t * (-2 + t * (2 / 3 + t * (4 / 3 + t * (-82 / 45 + t * (32 / 45 + t * (4642 / 4725)))))), e = e * t, this.cgb[1] = e * (7 / 3 + t * (-8 / 5 + t * (-227 / 45 + t * (2704 / 315 + t * (2323 / 945))))), this.cbg[1] = e * (5 / 3 + t * (-16 / 15 + t * (-13 / 9 + t * (904 / 315 + t * (-1522 / 945))))), e = e * t, this.cgb[2] = e * (56 / 15 + t * (-136 / 35 + t * (-1262 / 105 + t * (73814 / 2835)))), this.cbg[2] = e * (-26 / 15 + t * (34 / 21 + t * (8 / 5 + t * (-12686 / 2835)))), e = e * t, this.cgb[3] = e * (4279 / 630 + t * (-332 / 35 + t * (-399572 / 14175))), this.cbg[3] = e * (1237 / 630 + t * (-12 / 5 + t * (-24832 / 14175))), e = e * t, this.cgb[4] = e * (4174 / 315 + t * (-144838 / 6237)), this.cbg[4] = e * (-734 / 315 + t * (109598 / 31185)), e = e * t, this.cgb[5] = e * (601676 / 22275), this.cbg[5] = e * (444337 / 155925), e = Math.pow(t, 2), this.Qn = this.k0 / (1 + t) * (1 + e * (1 / 4 + e * (1 / 64 + e / 256))), this.utg[0] = t * (-0.5 + t * (2 / 3 + t * (-37 / 96 + t * (1 / 360 + t * (81 / 512 + t * (-96199 / 604800)))))), this.gtu[0] = t * (0.5 + t * (-2 / 3 + t * (5 / 16 + t * (41 / 180 + t * (-127 / 288 + t * (7891 / 37800)))))), this.utg[1] = e * (-1 / 48 + t * (-1 / 15 + t * (437 / 1440 + t * (-46 / 105 + t * (1118711 / 3870720))))), this.gtu[1] = e * (13 / 48 + t * (-3 / 5 + t * (557 / 1440 + t * (281 / 630 + t * (-1983433 / 1935360))))), e = e * t, this.utg[2] = e * (-17 / 480 + t * (37 / 840 + t * (209 / 4480 + t * (-5569 / 90720)))), this.gtu[2] = e * (61 / 240 + t * (-103 / 140 + t * (15061 / 26880 + t * (167603 / 181440)))), e = e * t, this.utg[3] = e * (-4397 / 161280 + t * (11 / 504 + t * (830251 / 7257600))), this.gtu[3] = e * (49561 / 161280 + t * (-179 / 168 + t * (6601661 / 7257600))), e = e * t, this.utg[4] = e * (-4583 / 161280 + t * (108847 / 3991680)), this.gtu[4] = e * (34729 / 80640 + t * (-3418889 / 1995840)), e = e * t, this.utg[5] = e * (-20648693 / 638668800), this.gtu[5] = e * (212378941 / 319334400);
|
1829
1829
|
var s = vo(this.cbg, this.lat0);
|
@@ -1853,7 +1853,7 @@ function Jg(i) {
|
|
1853
1853
|
return i.x = s, i.y = r, i;
|
1854
1854
|
}
|
1855
1855
|
var Qg = ["Extended_Transverse_Mercator", "Extended Transverse Mercator", "etmerc", "Transverse_Mercator", "Transverse Mercator", "tmerc"];
|
1856
|
-
const
|
1856
|
+
const fn = {
|
1857
1857
|
init: Zg,
|
1858
1858
|
forward: Kg,
|
1859
1859
|
inverse: Jg,
|
@@ -1873,7 +1873,7 @@ function im() {
|
|
1873
1873
|
var i = em(this.zone, this.long0);
|
1874
1874
|
if (i === void 0)
|
1875
1875
|
throw new Error("unknown utm zone");
|
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,
|
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, fn.init.apply(this), this.forward = fn.forward, this.inverse = fn.inverse;
|
1877
1877
|
}
|
1878
1878
|
var sm = ["Universal Transverse Mercator System", "utm"];
|
1879
1879
|
const rm = {
|
@@ -2126,7 +2126,7 @@ function vs(i, t, e) {
|
|
2126
2126
|
function bs(i) {
|
2127
2127
|
return Math.abs(i) < x ? i : i - Ar(i) * Math.PI;
|
2128
2128
|
}
|
2129
|
-
function
|
2129
|
+
function In(i, t, e, s, r) {
|
2130
2130
|
var n, a;
|
2131
2131
|
n = i / t;
|
2132
2132
|
for (var o = 0; o < 15; o++)
|
@@ -2154,7 +2154,7 @@ function Bm(i) {
|
|
2154
2154
|
var n = e + this.lat0;
|
2155
2155
|
s = Math.asin(Math.sin(n) * Math.cos(t)), r = Math.atan2(Math.tan(t), Math.cos(n));
|
2156
2156
|
} else {
|
2157
|
-
var a = this.ml0 / this.a + e, o =
|
2157
|
+
var a = this.ml0 / this.a + e, o = In(a, this.e0, this.e1, this.e2, this.e3);
|
2158
2158
|
if (Math.abs(Math.abs(o) - x) <= T)
|
2159
2159
|
return i.x = this.long0, i.y = x, e < 0 && (i.y *= -1), 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;
|
@@ -2524,7 +2524,7 @@ function Yp(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 * ea(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
|
}
|
@@ -2588,7 +2588,7 @@ function ay(i) {
|
|
2588
2588
|
if (e !== 0 && (n = Math.atan2(t * i.x, t * i.y)), this.sphere)
|
2589
2589
|
return r = D(this.long0 + n / this.ns), s = bs(this.g - e / this.a), i.x = r, i.y = s, i;
|
2590
2590
|
var a = this.g - e / this.a;
|
2591
|
-
return s =
|
2591
|
+
return s = In(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
|
}
|
2593
2593
|
var oy = ["Equidistant_Conic", "eqdc"];
|
2594
2594
|
const ly = {
|
@@ -2631,7 +2631,7 @@ function my(i) {
|
|
2631
2631
|
function py(i) {
|
2632
2632
|
i.x -= this.x0, i.y -= this.y0;
|
2633
2633
|
var t, e, s, r, n, a, o, l, c, d, u, f, g, m, p, y, v, w, C, O, M, P, L, G;
|
2634
|
-
return this.sphere ? (t = Math.sqrt(i.x * i.x + i.y * i.y), t > 2 * x * this.a ? void 0 : (e = t / this.a, s = Math.sin(e), r = Math.cos(e), n = this.long0, Math.abs(t) <= T ? a = this.lat0 : (a = Oi(r * this.sin_p12 + i.y * s * this.cos_p12 / t), o = Math.abs(this.lat0) - x, Math.abs(o) <= T ? this.lat0 >= 0 ? n = D(this.long0 + Math.atan2(i.x, -i.y)) : n = D(this.long0 - Math.atan2(-i.x, i.y)) : n = D(this.long0 + Math.atan2(i.x * s, t * this.cos_p12 * r - i.y * this.sin_p12 * s))), i.x = n, i.y = a, i)) : (l = Fr(this.es), c = Rr(this.es), d = Gr(this.es), u = kr(this.es), Math.abs(this.sin_p12 - 1) <= T ? (f = this.a * tt(l, c, d, u, x), t = Math.sqrt(i.x * i.x + i.y * i.y), g = f - t, a =
|
2634
|
+
return this.sphere ? (t = Math.sqrt(i.x * i.x + i.y * i.y), t > 2 * x * this.a ? void 0 : (e = t / this.a, s = Math.sin(e), r = Math.cos(e), n = this.long0, Math.abs(t) <= T ? a = this.lat0 : (a = Oi(r * this.sin_p12 + i.y * s * this.cos_p12 / t), o = Math.abs(this.lat0) - x, Math.abs(o) <= T ? this.lat0 >= 0 ? n = D(this.long0 + Math.atan2(i.x, -i.y)) : n = D(this.long0 - Math.atan2(-i.x, i.y)) : n = D(this.long0 + Math.atan2(i.x * s, t * this.cos_p12 * r - i.y * this.sin_p12 * s))), i.x = n, i.y = a, i)) : (l = Fr(this.es), c = Rr(this.es), d = Gr(this.es), u = kr(this.es), Math.abs(this.sin_p12 - 1) <= T ? (f = this.a * tt(l, c, d, u, x), t = Math.sqrt(i.x * i.x + i.y * i.y), g = f - t, a = In(g / this.a, l, c, d, u), n = D(this.long0 + Math.atan2(i.x, -1 * i.y)), i.x = n, i.y = a, i) : Math.abs(this.sin_p12 + 1) <= T ? (f = this.a * tt(l, c, d, u, x), t = Math.sqrt(i.x * i.x + i.y * i.y), g = t - f, a = In(g / this.a, l, c, d, u), n = D(this.long0 + Math.atan2(i.x, i.y)), i.x = n, i.y = a, i) : (t = Math.sqrt(i.x * i.x + i.y * i.y), y = Math.atan2(i.x, i.y), m = vs(this.a, this.e, this.sin_p12), v = Math.cos(y), w = this.e * this.cos_p12 * v, C = -w * w / (1 - this.es), O = 3 * this.es * (1 - C) * this.sin_p12 * this.cos_p12 * v / (1 - this.es), M = t / m, P = M - C * (1 + C) * Math.pow(M, 3) / 6 - O * (1 + 3 * C) * Math.pow(M, 4) / 24, L = 1 - C * P * P / 2 - M * P * P * P / 6, p = Math.asin(this.sin_p12 * Math.cos(P) + this.cos_p12 * Math.sin(P) * v), n = D(this.long0 + Math.asin(Math.sin(y) * Math.sin(P) / Math.cos(p))), G = Math.sin(p), a = Math.atan2((G - this.es * L * this.sin_p12) * Math.tan(p), G * (1 - this.es)), i.x = n, i.y = a, i));
|
2635
2635
|
}
|
2636
2636
|
var yy = ["Azimuthal_Equidistant", "aeqd"];
|
2637
2637
|
const _y = {
|
@@ -2682,7 +2682,7 @@ function Oy(i) {
|
|
2682
2682
|
n = x + e, s >= K && s <= x + K ? (l.value = J.AREA_0, r = -s + x) : s < K && s >= -K ? (l.value = J.AREA_1, r = -s) : s < -K && s >= -(x + K) ? (l.value = J.AREA_2, r = -s - x) : (l.value = J.AREA_3, r = s > 0 ? -s + we : -s - we);
|
2683
2683
|
else {
|
2684
2684
|
var c, d, u, f, g, m, p;
|
2685
|
-
this.face === me.RIGHT ? s = gs(s, +x) : this.face === me.BACK ? s = gs(s, +we) : this.face === me.LEFT && (s = gs(s, -x)), 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 === me.FRONT ? (n = Math.acos(c), r =
|
2685
|
+
this.face === me.RIGHT ? s = gs(s, +x) : this.face === me.BACK ? s = gs(s, +we) : this.face === me.LEFT && (s = gs(s, -x)), 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 === me.FRONT ? (n = Math.acos(c), r = Kr(n, u, d, l)) : this.face === me.RIGHT ? (n = Math.acos(d), r = Kr(n, u, -c, l)) : this.face === me.BACK ? (n = Math.acos(-c), r = Kr(n, u, -d, l)) : this.face === me.LEFT ? (n = Math.acos(-d), r = Kr(n, u, c, l)) : (n = r = 0, l.value = J.AREA_0);
|
2686
2686
|
}
|
2687
2687
|
return o = Math.atan(12 / we * (r + Math.acos(Math.sin(r) * Math.cos(K)) - x)), 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 += x : l.value === J.AREA_2 ? o += we : l.value === J.AREA_3 && (o += 1.5 * we), 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
|
}
|
@@ -2702,7 +2702,7 @@ function by(i) {
|
|
2702
2702
|
}
|
2703
2703
|
return t.lam += this.long0, i.x = t.lam, i.y = t.phi, i;
|
2704
2704
|
}
|
2705
|
-
function
|
2705
|
+
function Kr(i, t, e, s) {
|
2706
2706
|
var r;
|
2707
2707
|
return i < T ? (s.value = J.AREA_0, r = 0) : (r = Math.atan2(t, e), Math.abs(r) <= K ? s.value = J.AREA_0 : r > K && r <= x + K ? (s.value = J.AREA_1, r -= x) : r > x + K || r <= -(x + K) ? (s.value = J.AREA_2, r = r >= 0 ? r - we : r + we) : (s.value = J.AREA_3, r += x)), r;
|
2708
2708
|
}
|
@@ -2757,7 +2757,7 @@ var Ya = [
|
|
2757
2757
|
[0.9394, 840947e-8, -192841e-9, -42106e-10],
|
2758
2758
|
[0.9761, 616527e-8, -256e-6, -42106e-10],
|
2759
2759
|
[1, 328947e-8, -319159e-9, -42106e-10]
|
2760
|
-
], mc = 0.8487, pc = 1.3523, yc = Vt / 5, Iy = 1 / yc, hs = 18,
|
2760
|
+
], mc = 0.8487, pc = 1.3523, yc = Vt / 5, Iy = 1 / yc, hs = 18, Ln = function(i, t) {
|
2761
2761
|
return i[0] + t * (i[1] + t * (i[2] + t * i[3]));
|
2762
2762
|
}, Ly = function(i, t) {
|
2763
2763
|
return i[1] + t * (2 * i[2] + t * 3 * i[3]);
|
@@ -2777,8 +2777,8 @@ function Dy(i) {
|
|
2777
2777
|
var t = D(i.x - this.long0), e = Math.abs(i.y), s = Math.floor(e * yc);
|
2778
2778
|
s < 0 ? s = 0 : s >= hs && (s = hs - 1), e = Vt * (e - Iy * s);
|
2779
2779
|
var r = {
|
2780
|
-
x:
|
2781
|
-
y:
|
2780
|
+
x: Ln(Ya[s], e) * t,
|
2781
|
+
y: Ln($s[s], e)
|
2782
2782
|
};
|
2783
2783
|
return i.y < 0 && (r.y = -r.y), r.x = r.x * this.a * mc + this.x0, r.y = r.y * this.a * pc + this.y0, r;
|
2784
2784
|
}
|
@@ -2800,8 +2800,8 @@ function Ay(i) {
|
|
2800
2800
|
break;
|
2801
2801
|
var s = $s[e], r = 5 * (t.y - s[0]) / ($s[e + 1][0] - s[0]);
|
2802
2802
|
r = Ty(function(n) {
|
2803
|
-
return (
|
2804
|
-
}, r, T, 100), t.x /=
|
2803
|
+
return (Ln(s, n) - t.y) / Ly(s, n);
|
2804
|
+
}, r, T, 100), t.x /= Ln(Ya[e], r), t.y = (5 * e + r) * ke, i.y < 0 && (t.y = -t.y);
|
2805
2805
|
}
|
2806
2806
|
return t.x = D(t.x + this.long0), t;
|
2807
2807
|
}
|
@@ -2976,7 +2976,7 @@ const Ky = {
|
|
2976
2976
|
names: Zy
|
2977
2977
|
};
|
2978
2978
|
function Jy(i) {
|
2979
|
-
i.Proj.projections.add(
|
2979
|
+
i.Proj.projections.add(dn), i.Proj.projections.add(fn), i.Proj.projections.add(rm), i.Proj.projections.add(gm), i.Proj.projections.add(Sm), i.Proj.projections.add(Om), i.Proj.projections.add(Tm), i.Proj.projections.add(Rm), i.Proj.projections.add(jm), i.Proj.projections.add(qm), i.Proj.projections.add(hp), i.Proj.projections.add(mp), i.Proj.projections.add(Sp), i.Proj.projections.add(bp), i.Proj.projections.add(Tp), i.Proj.projections.add(Rp), i.Proj.projections.add(jp), i.Proj.projections.add(qp), i.Proj.projections.add(Jp), i.Proj.projections.add(sy), i.Proj.projections.add(ly), i.Proj.projections.add(fy), i.Proj.projections.add(_y), i.Proj.projections.add(Cy), i.Proj.projections.add(Py), i.Proj.projections.add(Ry), i.Proj.projections.add(jy), i.Proj.projections.add(qy), i.Proj.projections.add(Ky);
|
2980
2980
|
}
|
2981
2981
|
Ie.defaultDatum = "WGS84";
|
2982
2982
|
Ie.Proj = Bt;
|
@@ -2985,11 +2985,11 @@ Ie.Point = _s;
|
|
2985
2985
|
Ie.toPoint = rc;
|
2986
2986
|
Ie.defs = Ke;
|
2987
2987
|
Ie.nadgrid = ag;
|
2988
|
-
Ie.transform =
|
2988
|
+
Ie.transform = Pn;
|
2989
2989
|
Ie.mgrs = Mg;
|
2990
2990
|
Ie.version = "__VERSION__";
|
2991
2991
|
Jy(Ie);
|
2992
|
-
const
|
2992
|
+
const Tn = Ae("EPSG:4326", "EPSG:3857"), Mo = Ae("EPSG:3857", "EPSG:4326");
|
2993
2993
|
let Co = {
|
2994
2994
|
epsg: "EPSG:4326"
|
2995
2995
|
};
|
@@ -3101,7 +3101,7 @@ class k {
|
|
3101
3101
|
* @param inPlace - whether to transform in place
|
3102
3102
|
*/
|
3103
3103
|
static wgs84ToMercator(t, e) {
|
3104
|
-
return
|
3104
|
+
return Tn(t, e ? t : void 0, t.length);
|
3105
3105
|
}
|
3106
3106
|
/**
|
3107
3107
|
* validates projection options, combination of epsg code and proj4
|
@@ -3148,10 +3148,10 @@ function t_(i, t) {
|
|
3148
3148
|
const e = _.fromElements(i[0], i[1], i[2]), s = _.fromElements(t[0], t[1], t[2]);
|
3149
3149
|
return _.distance(e, s);
|
3150
3150
|
}
|
3151
|
-
function
|
3151
|
+
function gn(i, t) {
|
3152
3152
|
return (i % t + t) % t;
|
3153
3153
|
}
|
3154
|
-
function
|
3154
|
+
function Ti(i) {
|
3155
3155
|
return [
|
3156
3156
|
N.toDegrees(i.longitude),
|
3157
3157
|
N.toDegrees(i.latitude),
|
@@ -3163,7 +3163,7 @@ function Ct(i, t) {
|
|
3163
3163
|
return _.fromDegrees(e[0], e[1], e[2], void 0, t ?? new _());
|
3164
3164
|
}
|
3165
3165
|
function _w(i) {
|
3166
|
-
const t = ie.fromCartesian(i), e =
|
3166
|
+
const t = ie.fromCartesian(i), e = Ti(t);
|
3167
3167
|
return k.wgs84ToMercator(e);
|
3168
3168
|
}
|
3169
3169
|
function Sc(i, t) {
|
@@ -3255,14 +3255,14 @@ function R(i, t) {
|
|
3255
3255
|
}
|
3256
3256
|
return t;
|
3257
3257
|
}
|
3258
|
-
function
|
3258
|
+
function Nn(i, t, e, s) {
|
3259
3259
|
const r = R(i, t);
|
3260
3260
|
return r < e ? e : r > s ? s : r;
|
3261
3261
|
}
|
3262
3262
|
function de(i, t) {
|
3263
3263
|
return i == null ? t : typeof i == "boolean" ? i : i === 1 ? !0 : i === 0 ? !1 : typeof i == "string" && (i.toLowerCase() === "true" || i.toLowerCase() === "1") ? !0 : typeof i == "string" && (i.toLowerCase() === "false" || i.toLowerCase() === "0") ? !1 : t;
|
3264
3264
|
}
|
3265
|
-
function
|
3265
|
+
function ta(i, t, e) {
|
3266
3266
|
if (i != null) {
|
3267
3267
|
const s = Object.values(t).find((r) => r == i);
|
3268
3268
|
if (s != null)
|
@@ -3278,12 +3278,12 @@ function gi(i, t, e) {
|
|
3278
3278
|
}
|
3279
3279
|
return e;
|
3280
3280
|
}
|
3281
|
-
let
|
3281
|
+
let Jr;
|
3282
3282
|
const n_ = new Uint8Array(16);
|
3283
3283
|
function a_() {
|
3284
|
-
if (!
|
3284
|
+
if (!Jr && (Jr = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !Jr))
|
3285
3285
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
3286
|
-
return
|
3286
|
+
return Jr(n_);
|
3287
3287
|
}
|
3288
3288
|
const Ge = [];
|
3289
3289
|
for (let i = 0; i < 256; ++i)
|
@@ -3598,7 +3598,7 @@ class Zt {
|
|
3598
3598
|
function Bs() {
|
3599
3599
|
return ue("ClassRegistry");
|
3600
3600
|
}
|
3601
|
-
class
|
3601
|
+
class Ii {
|
3602
3602
|
constructor() {
|
3603
3603
|
h(this, "_classMap");
|
3604
3604
|
this._classMap = /* @__PURE__ */ new Map();
|
@@ -3639,9 +3639,9 @@ class Li {
|
|
3639
3639
|
return S(t, { type: String }), this.create(t.type, t, ...e);
|
3640
3640
|
}
|
3641
3641
|
}
|
3642
|
-
const De = new
|
3642
|
+
const De = new Ii(), Es = new Ii(), Oo = new Ii(), Ps = new Ii(), Hr = new Ii(), Cc = new Ii();
|
3643
3643
|
function ii(i, t, ...e) {
|
3644
|
-
if (!Os(i, $e(
|
3644
|
+
if (!Os(i, $e(Ii, Zt)))
|
3645
3645
|
return Bs().error(`ObjectCreation failed: no class registry provided for ${String(t.type)}`), null;
|
3646
3646
|
if (!(t != null && t.type))
|
3647
3647
|
return Bs().warning("ObjectCreation failed: could not find type in options"), null;
|
@@ -3663,7 +3663,7 @@ class Wt extends Gt {
|
|
3663
3663
|
/**
|
3664
3664
|
* The 3D representation of this style
|
3665
3665
|
*/
|
3666
|
-
h(this, "cesiumStyle", new
|
3666
|
+
h(this, "cesiumStyle", new Sn({ show: !0 }));
|
3667
3667
|
/**
|
3668
3668
|
* Fired on style updates
|
3669
3669
|
*/
|
@@ -3672,7 +3672,7 @@ class Wt extends Gt {
|
|
3672
3672
|
// eslint-disable-next-line class-methods-use-this
|
3673
3673
|
h(this, "_style", () => {
|
3674
3674
|
});
|
3675
|
-
this.colorBlendMode =
|
3675
|
+
this.colorBlendMode = ta(e.colorBlendMode, cn, cn.HIGHLIGHT);
|
3676
3676
|
}
|
3677
3677
|
static get className() {
|
3678
3678
|
return "StyleItem";
|
@@ -3695,7 +3695,7 @@ class Wt extends Gt {
|
|
3695
3695
|
}
|
3696
3696
|
toJSON() {
|
3697
3697
|
const e = super.toJSON();
|
3698
|
-
return this.colorBlendMode !==
|
3698
|
+
return this.colorBlendMode !== cn.HIGHLIGHT && (e.colorBlendMode = this.colorBlendMode), e;
|
3699
3699
|
}
|
3700
3700
|
/**
|
3701
3701
|
* Clones this style. Does not pass the name property.
|
@@ -3728,7 +3728,7 @@ class Wt extends Gt {
|
|
3728
3728
|
this.styleChanged.raiseEvent();
|
3729
3729
|
}
|
3730
3730
|
destroy() {
|
3731
|
-
this.cesiumStyle = new
|
3731
|
+
this.cesiumStyle = new Sn(), this.styleChanged.destroy(), super.destroy();
|
3732
3732
|
}
|
3733
3733
|
}
|
3734
3734
|
Hr.registerClass(Wt.className, Wt);
|
@@ -3899,7 +3899,7 @@ function ww(i, t, e, s) {
|
|
3899
3899
|
a[u] = o, a[u + 1] = l, a[u + 2] = c;
|
3900
3900
|
i.putImageData(n, r[0], r[1]);
|
3901
3901
|
}
|
3902
|
-
function
|
3902
|
+
function Dn(i) {
|
3903
3903
|
let t = i.getColor();
|
3904
3904
|
try {
|
3905
3905
|
t = He(t).slice();
|
@@ -3932,7 +3932,7 @@ function gr(i) {
|
|
3932
3932
|
function Oc(i) {
|
3933
3933
|
return {
|
3934
3934
|
font: i.getFont(),
|
3935
|
-
fill: i.getFill() ?
|
3935
|
+
fill: i.getFill() ? Dn(i.getFill()) : void 0,
|
3936
3936
|
stroke: i.getStroke() ? gr(i.getStroke()) : void 0,
|
3937
3937
|
textBaseline: i.getTextBaseline(),
|
3938
3938
|
offsetY: i.getOffsetY(),
|
@@ -3964,12 +3964,12 @@ function Ec(i) {
|
|
3964
3964
|
const t = {
|
3965
3965
|
scale: i.getScale()
|
3966
3966
|
};
|
3967
|
-
return i.getFill() && (t.fill =
|
3967
|
+
return i.getFill() && (t.fill = Dn(i.getFill())), i.getRadius() != null && (t.radius = i.getRadius()), i.getStroke() && (t.stroke = gr(i.getStroke())), t;
|
3968
3968
|
} else if (i instanceof Nr) {
|
3969
3969
|
const t = {
|
3970
3970
|
scale: i.getScale()
|
3971
3971
|
};
|
3972
|
-
return i.getFill() && (t.fill =
|
3972
|
+
return i.getFill() && (t.fill = Dn(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 = gr(i.getStroke())), t;
|
3973
3973
|
}
|
3974
3974
|
throw new Error("no Subclass of ImageStyle found");
|
3975
3975
|
}
|
@@ -4012,7 +4012,7 @@ function Mw(i) {
|
|
4012
4012
|
}
|
4013
4013
|
function Cw(i) {
|
4014
4014
|
return {
|
4015
|
-
fill: i.getFill() ?
|
4015
|
+
fill: i.getFill() ? Dn(i.getFill()) : void 0,
|
4016
4016
|
stroke: i.getStroke() ? gr(i.getStroke()) : void 0,
|
4017
4017
|
image: i.getImage() ? Ec(i.getImage()) : void 0,
|
4018
4018
|
text: i.getText() ? Oc(i.getText()) : void 0
|
@@ -4032,7 +4032,7 @@ function xw(i) {
|
|
4032
4032
|
}
|
4033
4033
|
return i.getFill() && (t.color = wl(He(i.getFill().getColor()))), t;
|
4034
4034
|
}
|
4035
|
-
const y_ = new ee({}), Ow = [0, 0, 0, 0],
|
4035
|
+
const y_ = new ee({}), Ow = [0, 0, 0, 0], mn = [255, 255, 255, 1], Ja = [0, 0, 0, 1];
|
4036
4036
|
function Pc() {
|
4037
4037
|
return {
|
4038
4038
|
image: {
|
@@ -4062,7 +4062,7 @@ function Pc() {
|
|
4062
4062
|
}
|
4063
4063
|
var Mh;
|
4064
4064
|
const __ = {
|
4065
|
-
olcs_color: ot(
|
4065
|
+
olcs_color: ot(mn),
|
4066
4066
|
olcs_scale: "1.0",
|
4067
4067
|
olcs_outlineWidth: "0.0",
|
4068
4068
|
olcs_outlineColor: ot(Ja),
|
@@ -4071,9 +4071,9 @@ const __ = {
|
|
4071
4071
|
olcs_font: `'${(Mh = Pc().text) == null ? void 0 : Mh.font}'`,
|
4072
4072
|
olcs_fontColor: ot(Ja),
|
4073
4073
|
olcs_fontOutlineWidth: "1.0",
|
4074
|
-
olcs_fontOutlineColor: ot(
|
4074
|
+
olcs_fontOutlineColor: ot(mn),
|
4075
4075
|
olcs_labelText: String(null),
|
4076
|
-
olcs_anchorLineColor: ot(
|
4076
|
+
olcs_anchorLineColor: ot(mn)
|
4077
4077
|
};
|
4078
4078
|
function ye(i, t) {
|
4079
4079
|
const e = `Boolean(\${${i}})===true`, s = t ? `color(\${${i}})` : `\${${i}}`;
|
@@ -4388,7 +4388,7 @@ class he extends Wt {
|
|
4388
4388
|
}, super.destroy();
|
4389
4389
|
}
|
4390
4390
|
}
|
4391
|
-
const
|
4391
|
+
const ji = new he(Pc());
|
4392
4392
|
Hr.registerClass(he.className, he);
|
4393
4393
|
function w_(i) {
|
4394
4394
|
var e;
|
@@ -4397,7 +4397,7 @@ function w_(i) {
|
|
4397
4397
|
fill: { color: t },
|
4398
4398
|
stroke: {
|
4399
4399
|
color: t,
|
4400
|
-
width: (e =
|
4400
|
+
width: (e = ji.stroke) == null ? void 0 : e.getWidth()
|
4401
4401
|
}
|
4402
4402
|
});
|
4403
4403
|
}
|
@@ -4412,7 +4412,7 @@ function Vr(i) {
|
|
4412
4412
|
function mr(i) {
|
4413
4413
|
(i instanceof Ui || i instanceof qi) && Vr(i) || i instanceof Wi ? i.show = !1 : i instanceof ae && i.changed();
|
4414
4414
|
}
|
4415
|
-
function
|
4415
|
+
function An(i) {
|
4416
4416
|
Reflect.has(i, ri) || ((i instanceof Ui || i instanceof qi) && Vr(i) ? i[ri] = i.color.clone() : i instanceof ae && (i[ri] = i.getStyle()));
|
4417
4417
|
}
|
4418
4418
|
function Lc(i) {
|
@@ -4428,7 +4428,7 @@ function pr(i) {
|
|
4428
4428
|
}
|
4429
4429
|
}
|
4430
4430
|
function Po(i) {
|
4431
|
-
delete i[ri],
|
4431
|
+
delete i[ri], An(i), i[ut] || i[dt] ? mr(i) : i[be] && pr(i);
|
4432
4432
|
}
|
4433
4433
|
function M_(i) {
|
4434
4434
|
delete i[be], Lc(i);
|
@@ -4451,7 +4451,7 @@ function C_(i, t) {
|
|
4451
4451
|
const r = Object.keys(i.hiddenObjects);
|
4452
4452
|
return r.length > 0 && e({ action: ne.HIDE, ids: r }), i.changed.addEventListener(e);
|
4453
4453
|
}
|
4454
|
-
class
|
4454
|
+
class ia {
|
4455
4455
|
constructor() {
|
4456
4456
|
h(this, "hiddenObjects", {});
|
4457
4457
|
h(this, "highlightedObjects", {});
|
@@ -4505,7 +4505,7 @@ class ta {
|
|
4505
4505
|
return this.highlightedObjects[t] && this.highlightedObjects[t].features.has(e);
|
4506
4506
|
}
|
4507
4507
|
addHighlightFeature(t, e) {
|
4508
|
-
this.highlightedObjects[t] && (
|
4508
|
+
this.highlightedObjects[t] && (An(e), this.highlightedObjects[t].features.add(e), e[be] = this.highlightedObjects[t].style, pr(e));
|
4509
4509
|
}
|
4510
4510
|
/**
|
4511
4511
|
* hides a number of objects
|
@@ -4545,7 +4545,7 @@ class ta {
|
|
4545
4545
|
return this.hiddenObjects[t] && this.hiddenObjects[t].has(e);
|
4546
4546
|
}
|
4547
4547
|
addHiddenFeature(t, e) {
|
4548
|
-
this.hiddenObjects[t] && (
|
4548
|
+
this.hiddenObjects[t] && (An(e), this.hiddenObjects[t].add(e), e[ut] = !0, mr(e));
|
4549
4549
|
}
|
4550
4550
|
/**
|
4551
4551
|
* Clears all caches and removes cesium events.
|
@@ -4612,7 +4612,7 @@ Wi.prototype.getProperty = function(t) {
|
|
4612
4612
|
Wi.prototype.getPropertyInherited = function(t) {
|
4613
4613
|
return this.getProperty(t);
|
4614
4614
|
};
|
4615
|
-
const b_ = new _(), E_ = new X(), P_ = new
|
4615
|
+
const b_ = new _(), E_ = new X(), P_ = new wn(), I_ = new q(), L_ = [1, 1e5];
|
4616
4616
|
class T_ {
|
4617
4617
|
constructor(t) {
|
4618
4618
|
h(this, "_outlinePrimitives", []);
|
@@ -4637,7 +4637,7 @@ class T_ {
|
|
4637
4637
|
g = _.negate(g, b_);
|
4638
4638
|
const m = E_;
|
4639
4639
|
X.setColumn(m, 0, g, m), X.setColumn(m, 1, f, m), X.setColumn(m, 2, u, m);
|
4640
|
-
const p =
|
4640
|
+
const p = wn.fromRotationMatrix(m, P_);
|
4641
4641
|
e.length = 1, s.length = 1, l.near = c[0], l.far = c[1], e[0] = new pt({
|
4642
4642
|
allowPicking: this.allowPicking,
|
4643
4643
|
geometryInstances: new ct({
|
@@ -5199,7 +5199,7 @@ class to {
|
|
5199
5199
|
});
|
5200
5200
|
}
|
5201
5201
|
addFeature(t, e) {
|
5202
|
-
this._hiddenObjectFeatures[t] || (this._hiddenObjectFeatures[t] = /* @__PURE__ */ new Set()),
|
5202
|
+
this._hiddenObjectFeatures[t] || (this._hiddenObjectFeatures[t] = /* @__PURE__ */ new Set()), An(e), this._hiddenObjectFeatures[t].add(e), e[dt] = !0, mr(e);
|
5203
5203
|
}
|
5204
5204
|
hasFeature(t, e) {
|
5205
5205
|
return this._hiddenObjectFeatures[t] ? this._hiddenObjectFeatures[t].has(e) : !1;
|
@@ -5537,9 +5537,9 @@ class Ye extends Gt {
|
|
5537
5537
|
}
|
5538
5538
|
}
|
5539
5539
|
De.registerClass(Ye.className, Ye);
|
5540
|
-
const li = Symbol("alreadyTransformedToMercator"), ze = Symbol("alreadyTransformedToImage"), xt = Symbol("obliqueGeometry"),
|
5540
|
+
const li = Symbol("alreadyTransformedToMercator"), ze = Symbol("alreadyTransformedToImage"), xt = Symbol("obliqueGeometry"), sa = Symbol("doNotTransform"), Fn = Symbol("OriginalFeature"), er = Symbol("ActuallyIsCircle"), st = Symbol("createSync"), Li = new q(), k_ = new ho({
|
5541
5541
|
font: "30px sans-serif",
|
5542
|
-
fill: new it({ color:
|
5542
|
+
fill: new it({ color: mn }),
|
5543
5543
|
textAlign: "left",
|
5544
5544
|
offsetY: -15
|
5545
5545
|
});
|
@@ -5557,7 +5557,7 @@ class Ue extends Wt {
|
|
5557
5557
|
h(this, "_styleOptions");
|
5558
5558
|
h(this, "_circleCache", /* @__PURE__ */ new Map());
|
5559
5559
|
const s = e.declarativeStyle || {};
|
5560
|
-
s.show = s.show != null ? s.show : !0, this.cesiumStyle = new
|
5560
|
+
s.show = s.show != null ? s.show : !0, this.cesiumStyle = new Sn(s), this._style = this._styleFunction.bind(this), s.strokeColor && bl(this.cesiumStyle, "strokeColor", s), s.strokeWidth && bl(this.cesiumStyle, "strokeWidth", s), this._styleOptions = s, this._circleCache = /* @__PURE__ */ new Map();
|
5561
5561
|
}
|
5562
5562
|
static get className() {
|
5563
5563
|
return "DeclarativeStyleItem";
|
@@ -5576,11 +5576,11 @@ class Ue extends Wt {
|
|
5576
5576
|
return delete s.name, new Ue(s);
|
5577
5577
|
}
|
5578
5578
|
assign(e) {
|
5579
|
-
return super.assign(e), this._styleOptions = e.cesiumStyle.style, this.cesiumStyle = new
|
5579
|
+
return super.assign(e), this._styleOptions = e.cesiumStyle.style, this.cesiumStyle = new Sn(this._styleOptions), this;
|
5580
5580
|
}
|
5581
5581
|
_styleFunction(e) {
|
5582
5582
|
var n;
|
5583
|
-
const s = e[
|
5583
|
+
const s = e[Fn] || e;
|
5584
5584
|
if (!this.cesiumStyle.show.evaluate(s))
|
5585
5585
|
return;
|
5586
5586
|
const r = (n = s.getGeometry()) == null ? void 0 : n.getType();
|
@@ -5601,13 +5601,13 @@ class Ue extends Wt {
|
|
5601
5601
|
this.getLogger().warning(`could not style geometry type: ${String(r)}`);
|
5602
5602
|
}
|
5603
5603
|
_stylePolygon(e) {
|
5604
|
-
const s = new ee({}), r = this.cesiumStyle.color ? this.cesiumStyle.color.evaluate(e,
|
5604
|
+
const s = new ee({}), r = this.cesiumStyle.color ? this.cesiumStyle.color.evaluate(e, Li) : q.WHITE;
|
5605
5605
|
return r && s.setFill(new it({
|
5606
5606
|
color: mi(r)
|
5607
5607
|
})), this._evaluateStroke(e, s), s;
|
5608
5608
|
}
|
5609
5609
|
_styleLineString(e) {
|
5610
|
-
const s = new ee({}), r = !!e.get("olcs_extrudedHeight"), n = this.cesiumStyle.color ? this.cesiumStyle.color.evaluate(e,
|
5610
|
+
const s = new ee({}), r = !!e.get("olcs_extrudedHeight"), n = this.cesiumStyle.color ? this.cesiumStyle.color.evaluate(e, Li) : q.WHITE;
|
5611
5611
|
if (n)
|
5612
5612
|
if (r)
|
5613
5613
|
s.setFill(new it({
|
@@ -5634,11 +5634,11 @@ class Ue extends Wt {
|
|
5634
5634
|
l && o.setFont(l);
|
5635
5635
|
}
|
5636
5636
|
if (this.cesiumStyle.labelColor) {
|
5637
|
-
const l = this.cesiumStyle.labelColor.evaluateColor(e,
|
5637
|
+
const l = this.cesiumStyle.labelColor.evaluateColor(e, Li);
|
5638
5638
|
l && o.getFill().setColor(mi(l));
|
5639
5639
|
}
|
5640
5640
|
if (this.cesiumStyle.labelOutlineColor) {
|
5641
|
-
const l = this.cesiumStyle.labelOutlineColor.evaluate(e,
|
5641
|
+
const l = this.cesiumStyle.labelOutlineColor.evaluate(e, Li);
|
5642
5642
|
if (l) {
|
5643
5643
|
const c = this.cesiumStyle.labelOutlineWidth ? this.cesiumStyle.labelOutlineWidth.evaluate(e) : 1;
|
5644
5644
|
o.setStroke(new je({
|
@@ -5657,12 +5657,12 @@ class Ue extends Wt {
|
|
5657
5657
|
Xt.contains(a) ? o.crossOrigin = "use-credentials" : Yt(a) || (o.crossOrigin = "anonymous"), s.setImage(new Si(o));
|
5658
5658
|
}
|
5659
5659
|
} else {
|
5660
|
-
const a = ((r = this.cesiumStyle.color) == null ? void 0 : r.evaluate(e,
|
5660
|
+
const a = ((r = this.cesiumStyle.color) == null ? void 0 : r.evaluate(e, Li)) ?? q.WHITE;
|
5661
5661
|
let o = 4;
|
5662
5662
|
this.cesiumStyle.pointSize && (o = (this.cesiumStyle.pointSize.evaluate(e) ?? 8) / 2);
|
5663
5663
|
const l = ((n = this.cesiumStyle.pointOutlineWidth) == null ? void 0 : n.evaluate(e)) ?? 0;
|
5664
5664
|
let c = q.BLACK;
|
5665
|
-
l && (this.cesiumStyle.pointOutlineColor && (c = this.cesiumStyle.pointOutlineColor.evaluateColor(e,
|
5665
|
+
l && (this.cesiumStyle.pointOutlineColor && (c = this.cesiumStyle.pointOutlineColor.evaluateColor(e, Li)), o += l / 2);
|
5666
5666
|
const d = `${o}${String(a)}${String(l)}${String(c)}`;
|
5667
5667
|
if (!this._circleCache.has(d)) {
|
5668
5668
|
const u = {
|
@@ -5686,7 +5686,7 @@ class Ue extends Wt {
|
|
5686
5686
|
}
|
5687
5687
|
_evaluateStroke(e, s) {
|
5688
5688
|
if (this.cesiumStyle.strokeColor) {
|
5689
|
-
const r = this.cesiumStyle.strokeColor.evaluateColor(e,
|
5689
|
+
const r = this.cesiumStyle.strokeColor.evaluateColor(e, Li);
|
5690
5690
|
if (r) {
|
5691
5691
|
const n = this.cesiumStyle.strokeWidth ? this.cesiumStyle.strokeWidth.evaluate(e) : 1;
|
5692
5692
|
s.setStroke(new je({
|
@@ -5829,7 +5829,7 @@ var Mt;
|
|
5829
5829
|
(function(i) {
|
5830
5830
|
i.CYLINDER = "cylinder", i.SPHERE = "sphere", i.ELLIPSOID = "ellipsoid", i.BOX = "box";
|
5831
5831
|
})(Mt = Mt || (Mt = {}));
|
5832
|
-
function
|
5832
|
+
function Ni(i, t) {
|
5833
5833
|
return i.type === t;
|
5834
5834
|
}
|
5835
5835
|
const ni = "2.1", Us = {
|
@@ -5873,15 +5873,15 @@ function Gs(i) {
|
|
5873
5873
|
return t;
|
5874
5874
|
throw new Error(`Unknown altitude mode ${i}`);
|
5875
5875
|
}
|
5876
|
-
function
|
5876
|
+
function Qr(i) {
|
5877
5877
|
for (const [t, e] of Object.entries(qs))
|
5878
5878
|
if (e === i)
|
5879
5879
|
return t;
|
5880
5880
|
}
|
5881
|
-
function
|
5881
|
+
function en(i) {
|
5882
5882
|
return i ? Zs.pack(i, []) : void 0;
|
5883
5883
|
}
|
5884
|
-
function
|
5884
|
+
function tn(i) {
|
5885
5885
|
return i ? _.pack(i, []) : void 0;
|
5886
5886
|
}
|
5887
5887
|
class It {
|
@@ -5956,7 +5956,7 @@ class It {
|
|
5956
5956
|
return this._altitudeMode;
|
5957
5957
|
}
|
5958
5958
|
set altitudeMode(t) {
|
5959
|
-
t !== this._altitudeMode && (S(t,
|
5959
|
+
t !== this._altitudeMode && (S(t, On(Le)), this._altitudeMode = t, this.propertyChanged.raiseEvent(["altitudeMode"]));
|
5960
5960
|
}
|
5961
5961
|
getAltitudeMode(t) {
|
5962
5962
|
return gi(t.get("olcs_altitudeMode"), Us, this._altitudeMode);
|
@@ -5975,7 +5975,7 @@ class It {
|
|
5975
5975
|
return this._classificationType;
|
5976
5976
|
}
|
5977
5977
|
set classificationType(t) {
|
5978
|
-
t !== this._classificationType && (S(t, Q(
|
5978
|
+
t !== this._classificationType && (S(t, Q(On(ds))), this._classificationType = t, this.propertyChanged.raiseEvent(["classificationType"]));
|
5979
5979
|
}
|
5980
5980
|
getClassificationType(t) {
|
5981
5981
|
return gi(t.get("olcs_classificationType"), qs, this.classificationType);
|
@@ -6320,9 +6320,9 @@ class It {
|
|
6320
6320
|
return {
|
6321
6321
|
altitudeMode: Gs(this.altitudeMode),
|
6322
6322
|
allowPicking: this.allowPicking,
|
6323
|
-
classificationType:
|
6324
|
-
scaleByDistance:
|
6325
|
-
eyeOffset:
|
6323
|
+
classificationType: Qr(this.classificationType),
|
6324
|
+
scaleByDistance: en(this.scaleByDistance),
|
6325
|
+
eyeOffset: tn(this.eyeOffset),
|
6326
6326
|
heightAboveGround: this.heightAboveGround,
|
6327
6327
|
skirt: this.skirt,
|
6328
6328
|
groundLevel: this.groundLevel,
|
@@ -6358,10 +6358,10 @@ class It {
|
|
6358
6358
|
const n = t.map((A) => this.getAllowPicking(A));
|
6359
6359
|
s(n) && (e.allowPicking = n[0]);
|
6360
6360
|
const a = t.map((A) => this.getClassificationType(A));
|
6361
|
-
s(a) && (e.classificationType =
|
6362
|
-
const o = t.map((A) =>
|
6361
|
+
s(a) && (e.classificationType = Qr(a[0]));
|
6362
|
+
const o = t.map((A) => en(this.getScaleByDistance(A)));
|
6363
6363
|
s(o) && (e.scaleByDistance = o[0]);
|
6364
|
-
const l = t.map((A) =>
|
6364
|
+
const l = t.map((A) => tn(this.getEyeOffset(A)));
|
6365
6365
|
s(l) && (e.eyeOffset = l[0]);
|
6366
6366
|
const c = t.map((A) => this.getHeightAboveGround(A));
|
6367
6367
|
s(c) && (e.heightAboveGround = c[0]);
|
@@ -6426,7 +6426,7 @@ class It {
|
|
6426
6426
|
// XXX ugly design, this does NOT return a VcsMeta (missing version) but is missued to get config objects too often to change
|
6427
6427
|
getVcsMeta(t) {
|
6428
6428
|
const e = t || It.getDefaultOptions(), s = {};
|
6429
|
-
return Gs(this.altitudeMode) !== e.altitudeMode && (s.altitudeMode = Gs(this.altitudeMode)), this.allowPicking !== e.allowPicking && (s.allowPicking = this.allowPicking),
|
6429
|
+
return Gs(this.altitudeMode) !== e.altitudeMode && (s.altitudeMode = Gs(this.altitudeMode)), this.allowPicking !== e.allowPicking && (s.allowPicking = this.allowPicking), Qr(this.classificationType) !== e.classificationType && (s.classificationType = Qr(this.classificationType)), at(en(this.scaleByDistance), e.scaleByDistance) || (s.scaleByDistance = en(this.scaleByDistance)), at(tn(this.eyeOffset), e.eyeOffset) || (s.eyeOffset = tn(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), at(this.storeyHeightsAboveGround, e.storeyHeightsAboveGround) || (s.storeyHeightsAboveGround = this.storeyHeightsAboveGround), at(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;
|
6430
6430
|
}
|
6431
6431
|
/**
|
6432
6432
|
* destroys the vectorProperties and removes all listeners
|
@@ -6450,7 +6450,7 @@ function Dc(i, t) {
|
|
6450
6450
|
function j_(i, t = { version: ni }) {
|
6451
6451
|
return i instanceof he ? t.style = Dc(i.toJSON(), t.embeddedIcons) : i instanceof Ue && (t.style = i.toJSON()), t;
|
6452
6452
|
}
|
6453
|
-
function
|
6453
|
+
function Rn(i, t) {
|
6454
6454
|
if (Os(i, $e(Wt, { type: String }))) {
|
6455
6455
|
if (i instanceof Wt)
|
6456
6456
|
return i;
|
@@ -6488,7 +6488,7 @@ class hi extends Ye {
|
|
6488
6488
|
*/
|
6489
6489
|
h(this, "featureVisibility");
|
6490
6490
|
const s = hi.getDefaultOptions();
|
6491
|
-
this._style = this.getStyleOrDefaultStyle(e.style), this._defaultStyle = this._style, this.balloonHeightOffset = le(e.balloonHeightOffset, s.balloonHeightOffset), e.splitDirection && (this._splitDirection = e.splitDirection === "left" ? Me.LEFT : Me.RIGHT), this.featureVisibility = e.featureVisibility || new
|
6491
|
+
this._style = this.getStyleOrDefaultStyle(e.style), this._defaultStyle = this._style, this.balloonHeightOffset = le(e.balloonHeightOffset, s.balloonHeightOffset), e.splitDirection && (this._splitDirection = e.splitDirection === "left" ? Me.LEFT : Me.RIGHT), this.featureVisibility = e.featureVisibility || new ia();
|
6492
6492
|
}
|
6493
6493
|
static get className() {
|
6494
6494
|
return "FeatureLayer";
|
@@ -6538,7 +6538,7 @@ class hi extends Ye {
|
|
6538
6538
|
}
|
6539
6539
|
// eslint-disable-next-line class-methods-use-this
|
6540
6540
|
getStyleOrDefaultStyle(e, s) {
|
6541
|
-
return
|
6541
|
+
return Rn(e, s);
|
6542
6542
|
}
|
6543
6543
|
/**
|
6544
6544
|
* Sets the style based on a styleName on a layer
|
@@ -7455,7 +7455,7 @@ class Zi extends Gt {
|
|
7455
7455
|
this._initialized = !1, this._state = pe.INACTIVE, this._map = void 0, super.destroy();
|
7456
7456
|
}
|
7457
7457
|
}
|
7458
|
-
class
|
7458
|
+
class ra extends Zi {
|
7459
7459
|
constructor(e, s) {
|
7460
7460
|
super(e, s);
|
7461
7461
|
h(this, "olLayer", null);
|
@@ -7543,7 +7543,7 @@ function Io(i, t, e) {
|
|
7543
7543
|
}
|
7544
7544
|
];
|
7545
7545
|
}
|
7546
|
-
class Ac extends
|
7546
|
+
class Ac extends ra {
|
7547
7547
|
constructor(e, s) {
|
7548
7548
|
super(e, s);
|
7549
7549
|
h(this, "source");
|
@@ -7609,7 +7609,7 @@ function q_(i, t, e) {
|
|
7609
7609
|
color: n
|
7610
7610
|
}), s.translucent = n.alpha !== 1;
|
7611
7611
|
}
|
7612
|
-
return new
|
7612
|
+
return new Mn(s);
|
7613
7613
|
}
|
7614
7614
|
function W_(i, t, e, s) {
|
7615
7615
|
const r = t.map((o) => new ct({
|
@@ -7793,7 +7793,7 @@ function Ll(i, t, e, s) {
|
|
7793
7793
|
}
|
7794
7794
|
return s ? (s.push(...o), s) : o;
|
7795
7795
|
}
|
7796
|
-
function
|
7796
|
+
function na(i, t, e, s, r, n, a) {
|
7797
7797
|
if (!e.length)
|
7798
7798
|
return;
|
7799
7799
|
const o = [], l = [], c = [], d = Rc(i, s, n.getCoordinates(e)), u = !!t.getFill(), f = !!t.getStroke();
|
@@ -7847,7 +7847,7 @@ function Is(i, t) {
|
|
7847
7847
|
return i instanceof Nt ? s = [e] : i instanceof Ut ? s = e : i instanceof Dt ? s = e.reduce((r, n) => r.concat(n)) : i instanceof bh ? s = e : i instanceof Eh ? s = e.reduce((r, n) => r.concat(n)) : i instanceof sr ? 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) => Is(r, e == null ? void 0 : e[n])).reduce((r, n) => r.concat(n))), s;
|
7848
7848
|
}
|
7849
7849
|
function Gc(i, t) {
|
7850
|
-
const e =
|
7850
|
+
const e = hn(k.mercatorToWgs84(i), t, Math.PI / 2), s = k.wgs84ToMercator(e), r = i[0] - s[0], n = i[1] - s[1], a = r * r, o = n * n, l = Math.sqrt(a + o);
|
7851
7851
|
return new Ot(i, l, "XYZ");
|
7852
7852
|
}
|
7853
7853
|
function kc(i) {
|
@@ -7926,7 +7926,7 @@ function i0(i, t) {
|
|
7926
7926
|
return jc(i, t).map((e) => new fo(e));
|
7927
7927
|
}
|
7928
7928
|
function s0(i, t) {
|
7929
|
-
return jc(i, t).map((e) => new
|
7929
|
+
return jc(i, t).map((e) => new Ri(e));
|
7930
7930
|
}
|
7931
7931
|
function r0(i, t, e, s) {
|
7932
7932
|
let r;
|
@@ -7976,7 +7976,7 @@ function Nl(i, t, e, s, r, n) {
|
|
7976
7976
|
if (!t.getFill() && !t.getStroke())
|
7977
7977
|
return;
|
7978
7978
|
const a = a0(), o = e.filter((l) => Vc(l));
|
7979
|
-
|
7979
|
+
na(i, t, o, s, r, a, n);
|
7980
7980
|
}
|
7981
7981
|
function $c(i, t, e, s) {
|
7982
7982
|
return [
|
@@ -8017,7 +8017,7 @@ function h0(i, t) {
|
|
8017
8017
|
}
|
8018
8018
|
function c0(i, t) {
|
8019
8019
|
const e = Bc(i, t);
|
8020
|
-
return [new
|
8020
|
+
return [new Ri(e)];
|
8021
8021
|
}
|
8022
8022
|
function u0(i, t, e, s) {
|
8023
8023
|
const r = i.getCenter(), n = r.slice();
|
@@ -8055,7 +8055,7 @@ function g0(i, t, e, s, r, n) {
|
|
8055
8055
|
if (!t.getFill() && !t.getStroke())
|
8056
8056
|
return;
|
8057
8057
|
const a = f0(), o = e.filter((l) => Uc(l));
|
8058
|
-
|
8058
|
+
na(i, t, o, s, r, a, n);
|
8059
8059
|
}
|
8060
8060
|
var Je;
|
8061
8061
|
(function(i) {
|
@@ -8068,13 +8068,13 @@ function m0(i, t = 1.5) {
|
|
8068
8068
|
[13, 13],
|
8069
8069
|
[6, 0]
|
8070
8070
|
];
|
8071
|
-
if (
|
8071
|
+
if (Ni(i, Mt.SPHERE)) {
|
8072
8072
|
const a = Math.floor((((n = i.geometryOptions) == null ? void 0 : n.radius) ?? 1) * t);
|
8073
8073
|
return `<svg height="${a * 2}" width="${a * 2}" xmlns="http://www.w3.org/2000/svg">
|
8074
8074
|
<circle cx="${a}" cy="${a}" r="${a}" style="fill:white;" />
|
8075
8075
|
</svg>`;
|
8076
8076
|
}
|
8077
|
-
if (
|
8077
|
+
if (Ni(i, Mt.BOX) && i.geometryOptions.minimum && i.geometryOptions.maximum) {
|
8078
8078
|
const a = Array.isArray(i.geometryOptions.minimum) ? i.geometryOptions.minimum : _.pack(i.geometryOptions.minimum, []), o = Array.isArray(i.geometryOptions.maximum) ? i.geometryOptions.maximum : _.pack(i.geometryOptions.maximum, []);
|
8079
8079
|
s = Math.floor((o[0] - a[0]) * t), e = Math.floor((o[1] - a[1]) * t), r = [
|
8080
8080
|
[0, 0],
|
@@ -8082,7 +8082,7 @@ function m0(i, t = 1.5) {
|
|
8082
8082
|
[s, e],
|
8083
8083
|
[0, e]
|
8084
8084
|
];
|
8085
|
-
} else if (
|
8085
|
+
} else if (Ni(i, Mt.CYLINDER) && i.geometryOptions.length) {
|
8086
8086
|
const a = Math.floor(i.geometryOptions.topRadius * t), o = Math.floor(i.geometryOptions.bottomRadius * t), l = Math.max(a, o);
|
8087
8087
|
e = Math.floor(i.geometryOptions.length * t), s = l * 2, r = [
|
8088
8088
|
[s / 2 - o, e],
|
@@ -8104,7 +8104,7 @@ function p0() {
|
|
8104
8104
|
offset: [0, 0, -4.3]
|
8105
8105
|
};
|
8106
8106
|
}
|
8107
|
-
class
|
8107
|
+
class aa extends ee {
|
8108
8108
|
constructor(e = {}) {
|
8109
8109
|
const s = e.color ?? "#000000", r = {
|
8110
8110
|
stroke: new je({
|
@@ -8120,7 +8120,7 @@ class na extends ee {
|
|
8120
8120
|
super(r);
|
8121
8121
|
h(this, "primitiveOptions");
|
8122
8122
|
h(this, "end");
|
8123
|
-
this.primitiveOptions = n, this.end =
|
8123
|
+
this.primitiveOptions = n, this.end = ta(e.end, Je, Je.END), this.setRenderer(this._render.bind(this));
|
8124
8124
|
}
|
8125
8125
|
/**
|
8126
8126
|
* Same as getStroke().getWidth() / getStroke().setWidth()
|
@@ -8176,7 +8176,7 @@ class na extends ee {
|
|
8176
8176
|
};
|
8177
8177
|
}
|
8178
8178
|
clone() {
|
8179
|
-
return new
|
8179
|
+
return new aa(this._getCloneOptions());
|
8180
8180
|
}
|
8181
8181
|
}
|
8182
8182
|
function y0(i, t, e, s) {
|
@@ -8207,7 +8207,7 @@ function qc(i, t) {
|
|
8207
8207
|
});
|
8208
8208
|
}
|
8209
8209
|
async function Wc(i, t, e, s) {
|
8210
|
-
await
|
8210
|
+
await Kn(e.globe.terrainProvider, [
|
8211
8211
|
ie.fromCartesian(t)
|
8212
8212
|
]).then(([r]) => {
|
8213
8213
|
if (!i.isDestroyed()) {
|
@@ -8221,7 +8221,7 @@ async function Dl(i, t, e, s, r, n) {
|
|
8221
8221
|
const a = s.getModel(i);
|
8222
8222
|
if (!a)
|
8223
8223
|
return null;
|
8224
|
-
const o = _.fromArray(a.scale), l =
|
8224
|
+
const o = _.fromArray(a.scale), l = ki.fromDegrees(a.heading, a.pitch, a.roll), c = s.getAllowPicking(i), d = n == null ? void 0 : n.getFill();
|
8225
8225
|
let u;
|
8226
8226
|
if (d instanceof jr) {
|
8227
8227
|
const g = d.getColor();
|
@@ -8258,7 +8258,7 @@ async function Dl(i, t, e, s, r, n) {
|
|
8258
8258
|
function Ma(i, t, e) {
|
8259
8259
|
var r, n;
|
8260
8260
|
let s;
|
8261
|
-
return
|
8261
|
+
return Ni(i, Mt.CYLINDER) ? s = e ? new Ld(i.geometryOptions) : new kh(i.geometryOptions) : Ni(i, Mt.ELLIPSOID) && (Array.isArray((r = i.geometryOptions) == null ? void 0 : r.radii) && (i.geometryOptions.radii = _.fromArray(i.geometryOptions.radii)), Array.isArray((n = i.geometryOptions) == null ? void 0 : n.innerRadii) && (i.geometryOptions.innerRadii = _.fromArray(i.geometryOptions.innerRadii)), s = e ? new Td(i.geometryOptions) : new zh(i.geometryOptions)), Ni(i, Mt.SPHERE) && (s = e ? new Nd(i.geometryOptions) : new Dd(i.geometryOptions)), Ni(i, Mt.BOX) && (Array.isArray(i.geometryOptions.minimum) && (i.geometryOptions.minimum = _.fromArray(i.geometryOptions.minimum)), Array.isArray(i.geometryOptions.maximum) && (i.geometryOptions.maximum = _.fromArray(i.geometryOptions.maximum)), s = e ? new Ad(i.geometryOptions) : new Hh(i.geometryOptions)), s ? new ct({
|
8262
8262
|
geometry: s,
|
8263
8263
|
attributes: {
|
8264
8264
|
color: or.fromColor(t)
|
@@ -8277,7 +8277,7 @@ async function ro(i, t, e, s, r, n) {
|
|
8277
8277
|
l && (d = si(l.getColor(), [255, 255, 255, 0.4]));
|
8278
8278
|
let u;
|
8279
8279
|
c && (u = si(c.getColor(), [255, 255, 255, 0.4]));
|
8280
|
-
const f = _.fromArray(a.scale), g =
|
8280
|
+
const f = _.fromArray(a.scale), g = ki.fromDegrees(a.heading, a.pitch, a.roll), m = r.getAllowPicking(i), p = r.getAltitudeMode(i);
|
8281
8281
|
return {
|
8282
8282
|
primitives: (await Promise.all(s.map(async (v, w) => {
|
8283
8283
|
var se;
|
@@ -8288,7 +8288,7 @@ async function ro(i, t, e, s, r, n) {
|
|
8288
8288
|
let L;
|
8289
8289
|
if (a.primitiveOptions.depthFailColor) {
|
8290
8290
|
const B = si(a.primitiveOptions.depthFailColor, [255, 255, 255, 0.4]);
|
8291
|
-
L = new
|
8291
|
+
L = new Mn({
|
8292
8292
|
translucent: B.alpha < 1,
|
8293
8293
|
material: Ft.fromType("Color", {
|
8294
8294
|
color: B
|
@@ -8391,7 +8391,7 @@ function Jc(i, t) {
|
|
8391
8391
|
function To(i, t) {
|
8392
8392
|
const e = R(t.getStroke().getWidth(), 1);
|
8393
8393
|
return [
|
8394
|
-
new
|
8394
|
+
new Ri({
|
8395
8395
|
...i,
|
8396
8396
|
width: e
|
8397
8397
|
})
|
@@ -8431,7 +8431,7 @@ async function Fl(i, t, e, s, r, n) {
|
|
8431
8431
|
if (!t.getFill() && !t.getStroke())
|
8432
8432
|
return;
|
8433
8433
|
const a = _0(), o = e.filter((l) => No(l));
|
8434
|
-
|
8434
|
+
na(i, t, o, s, r, a, n), t instanceof aa && await Xc(i, t, o, s, r, a, n);
|
8435
8435
|
}
|
8436
8436
|
function v0(i) {
|
8437
8437
|
return i.map((t) => t.getCoordinates());
|
@@ -8441,9 +8441,9 @@ function S0(i, t, e, s) {
|
|
8441
8441
|
if (r) {
|
8442
8442
|
const n = new q(1, 1, 1, r.getOpacity());
|
8443
8443
|
let a = null;
|
8444
|
-
r instanceof Si && (r.load(), r.getImageState() ===
|
8444
|
+
r instanceof Si && (r.load(), r.getImageState() === Yr.LOADING && (a = new Promise((l, c) => {
|
8445
8445
|
const d = () => {
|
8446
|
-
r.getImageState() ===
|
8446
|
+
r.getImageState() === Yr.LOADED || r.getImageState() === Yr.EMPTY ? (l(r.getImage(1)), r.unlistenImageChange(d)) : r.getImageState() === Yr.ERROR && (c(), r.unlistenImageChange(d));
|
8447
8447
|
};
|
8448
8448
|
r.listenImageChange(d);
|
8449
8449
|
}))), a || (a = r.getImage(1));
|
@@ -8599,7 +8599,7 @@ function E0(i, t, e, s, r, n) {
|
|
8599
8599
|
const u = new Array(r), f = n / s;
|
8600
8600
|
c += f, d -= f * 2;
|
8601
8601
|
for (let g = 0; g <= r; ++g) {
|
8602
|
-
const m = c +
|
8602
|
+
const m = c + gn(g, r + 1) * d / r;
|
8603
8603
|
u[g] = [
|
8604
8604
|
e[0] + s * Math.cos(m),
|
8605
8605
|
e[1] + s * Math.sin(m),
|
@@ -8669,7 +8669,7 @@ function no(i, t, e, s) {
|
|
8669
8669
|
destroy: a
|
8670
8670
|
};
|
8671
8671
|
}
|
8672
|
-
class Do extends
|
8672
|
+
class Do extends aa {
|
8673
8673
|
/**
|
8674
8674
|
* @param [options=]
|
8675
8675
|
*/
|
@@ -8730,7 +8730,7 @@ function I0(i, t, e, s, r) {
|
|
8730
8730
|
return { positions: i.map((a) => {
|
8731
8731
|
const o = k.mercatorToWgs84(a);
|
8732
8732
|
return !s && r ? o[2] = r : o[2] != null && (o[2] += e), _.fromDegrees(o[0], o[1], o[2]);
|
8733
|
-
}), arcType:
|
8733
|
+
}), arcType: Cn.NONE };
|
8734
8734
|
}
|
8735
8735
|
function L0(i, t) {
|
8736
8736
|
return i;
|
@@ -8750,7 +8750,7 @@ async function N0(i, t, e, s, r, n) {
|
|
8750
8750
|
if (!t.getFill() && !t.getStroke())
|
8751
8751
|
return;
|
8752
8752
|
const a = s.getAltitudeMode(i), o = T0(i[ei].coordinates, a), l = e.filter((c) => No(c));
|
8753
|
-
|
8753
|
+
na(i, t, l, s, r, o, n), await Xc(i, t, l, s, r, o, n);
|
8754
8754
|
}
|
8755
8755
|
async function iu(i, t, e, s, r, n) {
|
8756
8756
|
var a;
|
@@ -8758,14 +8758,14 @@ async function iu(i, t, e, s, r, n) {
|
|
8758
8758
|
await iu(i, o, e, s, r, n);
|
8759
8759
|
}));
|
8760
8760
|
}
|
8761
|
-
function
|
8761
|
+
function Gn(i, t, e = 1) {
|
8762
8762
|
const s = [];
|
8763
|
-
return typeof i == "function" ? s.push(...
|
8764
|
-
s.push(...
|
8763
|
+
return typeof i == "function" ? s.push(...Gn(i(t, e), t, e)) : Array.isArray(i) ? i.forEach((r) => {
|
8764
|
+
s.push(...Gn(r, t, e));
|
8765
8765
|
}) : i instanceof ee && s.push(i), s;
|
8766
8766
|
}
|
8767
8767
|
async function D0(i, t, e, s, r) {
|
8768
|
-
const n =
|
8768
|
+
const n = Gn(i.getStyle() || t, i, 0);
|
8769
8769
|
await Promise.all(n.map(async (a) => {
|
8770
8770
|
const o = a.getGeometryFunction()(i);
|
8771
8771
|
o && await iu(i, o, a, e, r, s);
|
@@ -8774,13 +8774,13 @@ async function D0(i, t, e, s, r) {
|
|
8774
8774
|
function A0(i, t) {
|
8775
8775
|
t.olFeature = i;
|
8776
8776
|
}
|
8777
|
-
function
|
8777
|
+
function Di(i, t) {
|
8778
8778
|
t && t.forEach((e) => {
|
8779
8779
|
i.remove(e);
|
8780
8780
|
});
|
8781
8781
|
}
|
8782
8782
|
function cs(i, t, e) {
|
8783
|
-
return
|
8783
|
+
return Di(e, t.get(i)), t.delete(i);
|
8784
8784
|
}
|
8785
8785
|
function us(i, t, e, s, r, n) {
|
8786
8786
|
if (i.length) {
|
@@ -8908,7 +8908,7 @@ class k0 {
|
|
8908
8908
|
* @param cache
|
8909
8909
|
*/
|
8910
8910
|
clearFeatureCache(t) {
|
8911
|
-
|
8911
|
+
Di(this.primitives, t.primitives), Di(this.scaledPrimitives, t.scaledPrimitives), Di(this.billboards, t.billboards), Di(this.labels, t.labels);
|
8912
8912
|
}
|
8913
8913
|
/**
|
8914
8914
|
* Updates splitDirection on primitives. Currently only Model primitives support splitting.
|
@@ -9072,7 +9072,7 @@ function Ls(i, t, e, s) {
|
|
9072
9072
|
const l = r ? r(o, o.slice(), o.length) : o;
|
9073
9073
|
return ie.fromDegrees(l[0], l[1]);
|
9074
9074
|
}), a = s || t.map((o) => o.slice());
|
9075
|
-
return
|
9075
|
+
return Kn(i, n).then((o) => (o.forEach((l, c) => {
|
9076
9076
|
a[c][2] = l.height || 0;
|
9077
9077
|
}), a));
|
9078
9078
|
}
|
@@ -9087,7 +9087,7 @@ function Hl(i, t = !1) {
|
|
9087
9087
|
uo(s),
|
9088
9088
|
Ih(s),
|
9089
9089
|
Lh(s),
|
9090
|
-
|
9090
|
+
Zn(s)
|
9091
9091
|
].map((a) => {
|
9092
9092
|
let o = 0, l = 1 / 0;
|
9093
9093
|
return e.forEach((c, d) => {
|
@@ -9205,7 +9205,7 @@ function j0(i, t, e, s, r) {
|
|
9205
9205
|
}
|
9206
9206
|
function Pw(i, t, e = {}) {
|
9207
9207
|
let s;
|
9208
|
-
e.dataProjection && e.dataProjection === i.meta.projection ? s = t : s = e.dataProjection ?
|
9208
|
+
e.dataProjection && e.dataProjection === i.meta.projection ? s = t : s = e.dataProjection ? Fi(t, e.dataProjection.proj, i.meta.projection.proj) : Fi(t, U.proj, i.meta.projection.proj);
|
9209
9209
|
function r() {
|
9210
9210
|
return { coords: i.transformRealWorld2Image(s), height: i.averageHeight, estimate: !0 };
|
9211
9211
|
}
|
@@ -9228,14 +9228,14 @@ function ru(i) {
|
|
9228
9228
|
const { image: t, worldCoordinate: e, imageCoordinate: s, terrainErrorThreshold: r, terrainErrorCountThreshold: n, count: a, height: o } = i;
|
9229
9229
|
return Ls(t.meta.terrainProvider, [e]).then(([l]) => {
|
9230
9230
|
if (l[2] != null) {
|
9231
|
-
const c =
|
9231
|
+
const c = Fi(t.transformImage2RealWorld(s, l[2]), t.meta.projection.proj, oe.proj);
|
9232
9232
|
return c[2] = l[2], Math.abs(o - l[2]) < r || a > n ? { coords: c, estimate: !1 } : (i.height = c[2], i.worldCoordinate = l, ru(i));
|
9233
9233
|
}
|
9234
9234
|
return console.log("The configured terrain on the oblique layer could not be queried, position might be inaccurate"), { coords: l, estimate: !0 };
|
9235
9235
|
}).catch(() => ({ coords: e, estimate: !0 }));
|
9236
9236
|
}
|
9237
9237
|
async function vr(i, t, e = {}) {
|
9238
|
-
const s =
|
9238
|
+
const s = Fi(i.transformImage2RealWorld(t, i.averageHeight), i.meta.projection.proj, oe.proj), r = e.terrainErrorThreshold || 1, n = e.terrainErrorCountThreshold || 3;
|
9239
9239
|
let a = { coords: s, estimate: !0 };
|
9240
9240
|
return !e.dontUseTerrain && i.meta.terrainProvider && (a = await ru({
|
9241
9241
|
worldCoordinate: s,
|
@@ -9245,7 +9245,7 @@ async function vr(i, t, e = {}) {
|
|
9245
9245
|
height: i.averageHeight,
|
9246
9246
|
terrainErrorThreshold: r,
|
9247
9247
|
terrainErrorCountThreshold: n
|
9248
|
-
})), a.coords = e.dataProjection ?
|
9248
|
+
})), a.coords = e.dataProjection ? Fi(a.coords, oe.proj, e.dataProjection.proj) : Fi(a.coords, oe.proj, U.proj), a;
|
9249
9249
|
}
|
9250
9250
|
function Iw(i) {
|
9251
9251
|
return ue("hasSameOrigin").deprecate("hasSameOrigin", "isSameOrigin"), Yt(i);
|
@@ -9280,7 +9280,7 @@ async function B0(i, t, e) {
|
|
9280
9280
|
let a = Ae(U.proj, e.meta.projection.proj), o = [];
|
9281
9281
|
if (e.meta.terrainProvider) {
|
9282
9282
|
const l = n.map((c) => (k.mercatorToWgs84(c, !0), ie.fromDegrees(c[0], c[1])));
|
9283
|
-
a = Ae(oe.proj, e.meta.projection.proj), o = await
|
9283
|
+
a = Ae(oe.proj, e.meta.projection.proj), o = await Kn(e.meta.terrainProvider, l);
|
9284
9284
|
}
|
9285
9285
|
return n.forEach((l, c) => {
|
9286
9286
|
a(l, l, 3);
|
@@ -9404,12 +9404,12 @@ class au extends q0 {
|
|
9404
9404
|
async addFeature(e) {
|
9405
9405
|
if (this.active || (this.fetchedFeaturesForImageName = null), this.active && this.currentExtent) {
|
9406
9406
|
const s = e.getId(), r = e.getGeometry();
|
9407
|
-
if (e[
|
9407
|
+
if (e[sa])
|
9408
9408
|
return r && !this.obliqueSource.getFeatureById(s) && this.obliqueSource.addFeature(e), Promise.resolve();
|
9409
9409
|
if (this.obliqueSource.getFeatureById(s) || this._updatingOblique[s])
|
9410
9410
|
return Promise.resolve();
|
9411
9411
|
const n = new ae({});
|
9412
|
-
n.setId(s), n[
|
9412
|
+
n.setId(s), n[Fn] = e, $l(e, n), n.setStyle(e.getStyle()), this._setFeatureListeners(e, n), await this._convertToOblique(e, n), this.source.hasFeature(e) && this.obliqueSource.addFeature(n);
|
9413
9413
|
}
|
9414
9414
|
return Promise.resolve();
|
9415
9415
|
}
|
@@ -9470,7 +9470,7 @@ class au extends q0 {
|
|
9470
9470
|
Object.values(this._featureListeners).forEach((e) => {
|
9471
9471
|
re(Object.values(e));
|
9472
9472
|
}), this._featureListeners = {}, this._updatingOblique = {}, this._updatingMercator = {}, this.obliqueSource.getFeatures().forEach((e) => {
|
9473
|
-
const s = e[
|
9473
|
+
const s = e[Fn];
|
9474
9474
|
if (s) {
|
9475
9475
|
delete s[xt];
|
9476
9476
|
const r = s.getGeometry();
|
@@ -9624,7 +9624,7 @@ class Fo {
|
|
9624
9624
|
}
|
9625
9625
|
}
|
9626
9626
|
uw = Ao;
|
9627
|
-
class
|
9627
|
+
class pn {
|
9628
9628
|
constructor(t) {
|
9629
9629
|
/**
|
9630
9630
|
* The name of the camera associated with these meta data
|
@@ -9722,17 +9722,17 @@ function X0(i, t, e, s, r) {
|
|
9722
9722
|
headers: r
|
9723
9723
|
};
|
9724
9724
|
return i.generalImageInfo.cameraParameter && (Array.isArray(i.generalImageInfo.cameraParameter) ? i.generalImageInfo.cameraParameter.forEach((u) => {
|
9725
|
-
c.push(new
|
9725
|
+
c.push(new pn({
|
9726
9726
|
...d,
|
9727
9727
|
...u
|
9728
9728
|
}));
|
9729
9729
|
}) : typeof i.generalImageInfo.cameraParameter == "object" && Object.entries(i.generalImageInfo.cameraParameter).forEach(([u, f]) => {
|
9730
|
-
c.push(new
|
9730
|
+
c.push(new pn({
|
9731
9731
|
name: u,
|
9732
9732
|
...d,
|
9733
9733
|
...f
|
9734
9734
|
}));
|
9735
|
-
})), c.length === 0 && c.push(new
|
9735
|
+
})), c.length === 0 && c.push(new pn({
|
9736
9736
|
name: "default",
|
9737
9737
|
...d
|
9738
9738
|
})), c;
|
@@ -9802,20 +9802,20 @@ function Y0(i, t) {
|
|
9802
9802
|
return new Fo(p);
|
9803
9803
|
});
|
9804
9804
|
}
|
9805
|
-
async function
|
9805
|
+
async function $r(i, t) {
|
9806
9806
|
const e = await fetch(i, t);
|
9807
9807
|
if (!e.ok)
|
9808
9808
|
throw new Error(`Failed fetching url ${i} with status: ${e.status}`);
|
9809
9809
|
return e;
|
9810
9810
|
}
|
9811
|
-
async function
|
9812
|
-
return (await
|
9811
|
+
async function Vi(i, t) {
|
9812
|
+
return (await $r(i, t)).json();
|
9813
9813
|
}
|
9814
9814
|
async function Z0(i, t) {
|
9815
|
-
return (await
|
9815
|
+
return (await $r(i, t)).arrayBuffer();
|
9816
9816
|
}
|
9817
9817
|
async function Ro(i, t) {
|
9818
|
-
const s = await (await
|
9818
|
+
const s = await (await $r(i, t)).blob();
|
9819
9819
|
return URL.createObjectURL(s);
|
9820
9820
|
}
|
9821
9821
|
function Rt(i, t) {
|
@@ -9826,7 +9826,7 @@ var ge;
|
|
9826
9826
|
(function(i) {
|
9827
9827
|
i[i.PENDING = 1] = "PENDING", i[i.LOADING = 2] = "LOADING", i[i.READY = 3] = "READY";
|
9828
9828
|
})(ge = ge || (ge = {}));
|
9829
|
-
function
|
9829
|
+
function yn(i) {
|
9830
9830
|
return i.some((t) => t === ge.PENDING) ? ge.PENDING : i.some((t) => t === ge.LOADING) ? ge.LOADING : ge.READY;
|
9831
9831
|
}
|
9832
9832
|
class ql {
|
@@ -9874,7 +9874,7 @@ class ql {
|
|
9874
9874
|
if (!this._loadingPromise) {
|
9875
9875
|
this._state = ge.LOADING;
|
9876
9876
|
const t = Rt(this.url, this._headers);
|
9877
|
-
this._loadingPromise =
|
9877
|
+
this._loadingPromise = Vi(this.url, t).then((e) => this._initialize(e)).catch((e) => Promise.reject(e));
|
9878
9878
|
}
|
9879
9879
|
return this._loadingPromise;
|
9880
9880
|
}
|
@@ -9958,7 +9958,7 @@ class ql {
|
|
9958
9958
|
if (this._state !== ge.READY || this._tiles.size === 0)
|
9959
9959
|
return this._state;
|
9960
9960
|
const s = this._getTileCoordinatesForExtent(t).map((r) => this._tiles.get(r)).filter((r) => r);
|
9961
|
-
return
|
9961
|
+
return yn(s);
|
9962
9962
|
}
|
9963
9963
|
_loadTile(t) {
|
9964
9964
|
if (this._loadingPromises.has(t))
|
@@ -9966,7 +9966,7 @@ class ql {
|
|
9966
9966
|
if (this._tiles.get(t) !== ge.PENDING)
|
9967
9967
|
return Promise.resolve();
|
9968
9968
|
this._tiles.set(t, ge.LOADING);
|
9969
|
-
const e = Rt(this.url, this._headers), s =
|
9969
|
+
const e = Rt(this.url, this._headers), s = Vi(`${this.baseUrl}/${t}.json`, e).then((r) => {
|
9970
9970
|
const n = Ul(r, this._imageMetas);
|
9971
9971
|
n.length > 0 && (this._images = this._images.concat(n), this.imagesLoaded.raiseEvent({
|
9972
9972
|
images: n,
|
@@ -10336,13 +10336,13 @@ class ao {
|
|
10336
10336
|
search(t) {
|
10337
10337
|
let e = this.data;
|
10338
10338
|
const s = [];
|
10339
|
-
if (!
|
10339
|
+
if (!rn(t, e))
|
10340
10340
|
return s;
|
10341
10341
|
const r = this.toBBox, n = [];
|
10342
10342
|
for (; e; ) {
|
10343
10343
|
for (let a = 0; a < e.children.length; a++) {
|
10344
10344
|
const o = e.children[a], l = e.leaf ? r(o) : o;
|
10345
|
-
|
10345
|
+
rn(t, l) && (e.leaf ? s.push(o) : Pa(t, l) ? this._all(o, s) : n.push(o));
|
10346
10346
|
}
|
10347
10347
|
e = n.pop();
|
10348
10348
|
}
|
@@ -10350,13 +10350,13 @@ class ao {
|
|
10350
10350
|
}
|
10351
10351
|
collides(t) {
|
10352
10352
|
let e = this.data;
|
10353
|
-
if (!
|
10353
|
+
if (!rn(t, e))
|
10354
10354
|
return !1;
|
10355
10355
|
const s = [];
|
10356
10356
|
for (; e; ) {
|
10357
10357
|
for (let r = 0; r < e.children.length; r++) {
|
10358
10358
|
const n = e.children[r], a = e.leaf ? this.toBBox(n) : n;
|
10359
|
-
if (
|
10359
|
+
if (rn(t, a)) {
|
10360
10360
|
if (e.leaf || Pa(t, a))
|
10361
10361
|
return !0;
|
10362
10362
|
s.push(n);
|
@@ -10493,14 +10493,14 @@ class ao {
|
|
10493
10493
|
_allDistMargin(t, e, s, r) {
|
10494
10494
|
t.children.sort(r);
|
10495
10495
|
const n = this.toBBox, a = Xs(t, 0, e, n), o = Xs(t, s - e, s, n);
|
10496
|
-
let l =
|
10496
|
+
let l = sn(a) + sn(o);
|
10497
10497
|
for (let c = e; c < s - e; c++) {
|
10498
10498
|
const d = t.children[c];
|
10499
|
-
Ys(a, t.leaf ? n(d) : d), l +=
|
10499
|
+
Ys(a, t.leaf ? n(d) : d), l += sn(a);
|
10500
10500
|
}
|
10501
10501
|
for (let c = s - e - 1; c >= e; c--) {
|
10502
10502
|
const d = t.children[c];
|
10503
|
-
Ys(o, t.leaf ? n(d) : d), l +=
|
10503
|
+
Ys(o, t.leaf ? n(d) : d), l += sn(o);
|
10504
10504
|
}
|
10505
10505
|
return l;
|
10506
10506
|
}
|
@@ -10544,7 +10544,7 @@ function rv(i, t) {
|
|
10544
10544
|
function Ea(i) {
|
10545
10545
|
return (i.maxX - i.minX) * (i.maxY - i.minY);
|
10546
10546
|
}
|
10547
|
-
function
|
10547
|
+
function sn(i) {
|
10548
10548
|
return i.maxX - i.minX + (i.maxY - i.minY);
|
10549
10549
|
}
|
10550
10550
|
function nv(i, t) {
|
@@ -10557,7 +10557,7 @@ function av(i, t) {
|
|
10557
10557
|
function Pa(i, t) {
|
10558
10558
|
return i.minX <= t.minX && i.minY <= t.minY && t.maxX <= i.maxX && t.maxY <= i.maxY;
|
10559
10559
|
}
|
10560
|
-
function
|
10560
|
+
function rn(i, t) {
|
10561
10561
|
return t.minX <= i.maxX && t.minY <= i.maxY && t.maxX >= i.minX && t.maxY >= i.minY;
|
10562
10562
|
}
|
10563
10563
|
function ss(i) {
|
@@ -10830,7 +10830,7 @@ class $i extends Gt {
|
|
10830
10830
|
const e = {};
|
10831
10831
|
return this._dataSets.forEach((s) => {
|
10832
10832
|
Object.entries(s.getTiles()).forEach(([r, n]) => {
|
10833
|
-
e[r] ? e[r] =
|
10833
|
+
e[r] ? e[r] = yn([n, e[r]]) : e[r] = n;
|
10834
10834
|
});
|
10835
10835
|
}), e;
|
10836
10836
|
}
|
@@ -10852,7 +10852,7 @@ class $i extends Gt {
|
|
10852
10852
|
*/
|
10853
10853
|
getDataStateForCoordinate(e) {
|
10854
10854
|
const s = this._dataSets.map((r) => r.getDataStateForCoordinate(e));
|
10855
|
-
return
|
10855
|
+
return yn(s);
|
10856
10856
|
}
|
10857
10857
|
/**
|
10858
10858
|
* Returns the state of the data for a given location an all underlying data sources
|
@@ -10860,7 +10860,7 @@ class $i extends Gt {
|
|
10860
10860
|
*/
|
10861
10861
|
getDataStateForExtent(e) {
|
10862
10862
|
const s = this._dataSets.map((r) => r.getDataStateForExtent(e));
|
10863
|
-
return
|
10863
|
+
return yn(s);
|
10864
10864
|
}
|
10865
10865
|
/**
|
10866
10866
|
* Loads data for a given mercator Coordinate
|
@@ -10966,7 +10966,7 @@ class $i extends Gt {
|
|
10966
10966
|
return this.viewOptions.maxZoom !== s.maxZoom && (e.maxZoom = this.viewOptions.maxZoom), this.viewOptions.minZoom !== s.minZoom && (e.minZoom = this.viewOptions.minZoom), this.viewOptions.scaleFactor !== s.scaleFactor && (e.scaleFactor = this.viewOptions.scaleFactor), this.viewOptions.hideLevels !== s.hideLevels && (e.hideLevels = this.viewOptions.hideLevels), this.datasourceId !== s.datasourceId && (e.datasourceId = this.datasourceId), this.dataSets.length > 0 && (e.dataSets = this.dataSets.map((r) => r.toJSON())), e;
|
10967
10967
|
}
|
10968
10968
|
}
|
10969
|
-
const dv = new
|
10969
|
+
const dv = new pn({
|
10970
10970
|
name: "defaultObliqueMeta",
|
10971
10971
|
size: [512, 512],
|
10972
10972
|
tileSize: [512, 512],
|
@@ -11010,7 +11010,7 @@ function eh(i) {
|
|
11010
11010
|
}
|
11011
11011
|
function th(i) {
|
11012
11012
|
const t = i.groundPosition ?? i.cameraPosition ?? [0, 0, 0];
|
11013
|
-
return
|
11013
|
+
return Fi(t, oe.proj, U.proj);
|
11014
11014
|
}
|
11015
11015
|
class Ne extends yr {
|
11016
11016
|
constructor(e) {
|
@@ -11243,7 +11243,7 @@ class Sr {
|
|
11243
11243
|
h(this, "_terrainHeight", null);
|
11244
11244
|
h(this, "_updatingTerrainHeight", !1);
|
11245
11245
|
const e = Sr.getDefaultOptions();
|
11246
|
-
this.mode =
|
11246
|
+
this.mode = ta(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;
|
11247
11247
|
}
|
11248
11248
|
static get className() {
|
11249
11249
|
return "CameraLimiter";
|
@@ -11272,7 +11272,7 @@ class Sr {
|
|
11272
11272
|
}
|
11273
11273
|
async _limitMostDetailed(t) {
|
11274
11274
|
const e = await _r(this.terrainUrl, {}, this.terrainRequestHeaders);
|
11275
|
-
return
|
11275
|
+
return Kn(e, [t]);
|
11276
11276
|
}
|
11277
11277
|
async _updateTerrainHeight(t) {
|
11278
11278
|
if (!this._updatingTerrainHeight && !t.equalsEpsilon(this.lastCheckedPosition, N.EPSILON5)) {
|
@@ -11302,7 +11302,7 @@ class Sr {
|
|
11302
11302
|
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), at(this.terrainRequestHeaders, e.terrainRequestHeaders) || (t.terrainRequestHeaders = this.terrainRequestHeaders), t;
|
11303
11303
|
}
|
11304
11304
|
}
|
11305
|
-
function
|
11305
|
+
function kn(i, t, e) {
|
11306
11306
|
const s = e.indexOfKey(t[Y]);
|
11307
11307
|
if (s > -1 && !i.contains(t)) {
|
11308
11308
|
const r = i.length;
|
@@ -11341,10 +11341,10 @@ async function uu(i, t, e) {
|
|
11341
11341
|
}
|
11342
11342
|
function mv(i, t, e) {
|
11343
11343
|
const { destroyPrimitives: s } = i;
|
11344
|
-
i.destroyPrimitives = !1, i.remove(t),
|
11344
|
+
i.destroyPrimitives = !1, i.remove(t), kn(i, t, e), i.destroyPrimitives = s;
|
11345
11345
|
}
|
11346
11346
|
function pv(i, t, e) {
|
11347
|
-
i.remove(t, !1),
|
11347
|
+
i.remove(t, !1), kn(i, t, e);
|
11348
11348
|
}
|
11349
11349
|
function yv(i, t, e) {
|
11350
11350
|
uu(i, t, e);
|
@@ -11811,7 +11811,7 @@ class H extends Ei {
|
|
11811
11811
|
addPrimitiveCollection(e) {
|
11812
11812
|
if (!this._cesiumWidget)
|
11813
11813
|
throw new Error("Cannot add primitive to uninitialized map");
|
11814
|
-
this.validateVisualization(e) && (this.addVisualization(e),
|
11814
|
+
this.validateVisualization(e) && (this.addVisualization(e), kn(this._cesiumWidget.scene.primitives, e, this.layerCollection));
|
11815
11815
|
}
|
11816
11816
|
/**
|
11817
11817
|
* Internal API to unregister the visualization for a layers implementation
|
@@ -11828,7 +11828,7 @@ class H extends Ei {
|
|
11828
11828
|
addImageryLayer(e) {
|
11829
11829
|
if (!this._cesiumWidget)
|
11830
11830
|
throw new Error("Cannot add primitive to uninitialized map");
|
11831
|
-
this.validateVisualization(e) && (this.addVisualization(e),
|
11831
|
+
this.validateVisualization(e) && (this.addVisualization(e), kn(this._cesiumWidget.scene.imageryLayers, e, this.layerCollection));
|
11832
11832
|
}
|
11833
11833
|
/**
|
11834
11834
|
* Internal API used to unregister visualizations from layer implementations
|
@@ -12023,7 +12023,7 @@ class rt extends hi {
|
|
12023
12023
|
return this.visibility ? e instanceof Oe ? [new Ac(e, this.getImplementationOptions())] : e instanceof H ? [new z0(e, this.getImplementationOptions())] : e instanceof Ne ? [new au(e, this.getImplementationOptions())] : [] : [];
|
12024
12024
|
}
|
12025
12025
|
getStyleOrDefaultStyle(e, s) {
|
12026
|
-
return super.getStyleOrDefaultStyle(e, s ||
|
12026
|
+
return super.getStyleOrDefaultStyle(e, s || ji.clone());
|
12027
12027
|
}
|
12028
12028
|
setStyle(e, s) {
|
12029
12029
|
super.setStyle(e, s), this._trackStyleChanges();
|
@@ -12343,12 +12343,12 @@ function _i(i, t = {}) {
|
|
12343
12343
|
readLegacyStyleOptions: t.readLegacyStyleOptions,
|
12344
12344
|
defaultStyle: t.defaultStyle
|
12345
12345
|
};
|
12346
|
-
if (t.dynamicStyle && !n.defaultStyle && (n.defaultStyle =
|
12346
|
+
if (t.dynamicStyle && !n.defaultStyle && (n.defaultStyle = ji), e.type === "FeatureCollection") {
|
12347
12347
|
e.vcsMeta = e.vcsMeta || {
|
12348
12348
|
embeddedIcons: e.vcsEmbeddedIcons
|
12349
12349
|
};
|
12350
12350
|
let a;
|
12351
|
-
return e.vcsMeta.embeddedIcons && (n.embeddedIcons = e.vcsMeta.embeddedIcons), e.vcsMeta.style && t.dynamicStyle && (e.vcsMeta.style.type === Ue.className ? a = new Ue(e.vcsMeta.style) : (e.vcsMeta.style = du(e.vcsMeta.style, n), n.defaultStyle = (n.defaultStyle ??
|
12351
|
+
return e.vcsMeta.embeddedIcons && (n.embeddedIcons = e.vcsMeta.embeddedIcons), e.vcsMeta.style && t.dynamicStyle && (e.vcsMeta.style.type === Ue.className ? a = new Ue(e.vcsMeta.style) : (e.vcsMeta.style = du(e.vcsMeta.style, n), n.defaultStyle = (n.defaultStyle ?? ji).clone().assign(new he(e.vcsMeta.style)), a = n.defaultStyle)), {
|
12352
12352
|
features: e.features.map((o) => sh(o, n)).filter((o) => o),
|
12353
12353
|
style: e.vcsMeta.style ? a : void 0,
|
12354
12354
|
vcsMeta: e.vcsMeta ? e.vcsMeta : void 0
|
@@ -12439,7 +12439,7 @@ class rh {
|
|
12439
12439
|
* @param app
|
12440
12440
|
*/
|
12441
12441
|
setConfigFromApp(t) {
|
12442
|
-
this._config = t.serializeModule(this._uuid);
|
12442
|
+
this._config = { ...this.config, ...t.serializeModule(this._uuid) };
|
12443
12443
|
}
|
12444
12444
|
toJSON() {
|
12445
12445
|
var e;
|
@@ -12448,8 +12448,8 @@ class rh {
|
|
12448
12448
|
}
|
12449
12449
|
}
|
12450
12450
|
function xv(i, t) {
|
12451
|
-
if (t.style && i.setStyle(
|
12452
|
-
const e =
|
12451
|
+
if (t.style && i.setStyle(Rn(t.style, i.defaultStyle)), t.highlightStyle) {
|
12452
|
+
const e = Rn(t.highlightStyle, i.highlightStyle);
|
12453
12453
|
i.setHighlightStyle(e);
|
12454
12454
|
}
|
12455
12455
|
t.vectorProperties && i.vectorProperties.setValues(t.vectorProperties), t.zIndex != null && (i.zIndex = t.zIndex);
|
@@ -12702,7 +12702,7 @@ class Ss extends Gt {
|
|
12702
12702
|
*/
|
12703
12703
|
h(this, "mapTypes");
|
12704
12704
|
const r = Ss.getDefaultOptions();
|
12705
|
-
this.layerName = e, this.style = s.style ?
|
12705
|
+
this.layerName = e, this.style = s.style ? Rn(s.style, ji.clone()) : void 0, this.showGeometry = de(s.showGeometry, r.showGeometry), this.vectorProperties = s.vectorProperties instanceof It ? s.vectorProperties : new It({
|
12706
12706
|
...r.vectorProperties,
|
12707
12707
|
...s.vectorProperties
|
12708
12708
|
}), this.mapTypes = Array.isArray(s.mapTypes) ? s.mapTypes : r.mapTypes;
|
@@ -12802,7 +12802,7 @@ function Ev(i, t, e, s = 0) {
|
|
12802
12802
|
uo(r),
|
12803
12803
|
Ih(r),
|
12804
12804
|
Lh(r),
|
12805
|
-
|
12805
|
+
Zn(r)
|
12806
12806
|
].map((l) => ie.fromDegrees(l[0], l[1]));
|
12807
12807
|
let o = s;
|
12808
12808
|
for (; o < e; ) {
|
@@ -12836,9 +12836,9 @@ class vt extends Ye {
|
|
12836
12836
|
*/
|
12837
12837
|
h(this, "splitDirectionChanged", new I());
|
12838
12838
|
const s = vt.getDefaultOptions();
|
12839
|
-
this.extent = e.extent ? new xe(e.extent) : new xe(), this.tilingSchema =
|
12839
|
+
this.extent = e.extent ? new xe(e.extent) : new xe(), this.tilingSchema = ta(e.tilingSchema, qe, s.tilingSchema), this.maxLevel = le(e.maxLevel, s.maxLevel), this._minLevel = le(e.minLevel, s.minLevel);
|
12840
12840
|
const r = fu(e);
|
12841
|
-
this.minLevel = Ev(this.extent, r, this.maxLevel, this._minLevel), this._opacity =
|
12841
|
+
this.minLevel = Ev(this.extent, r, this.maxLevel, this._minLevel), this._opacity = Nn(e.opacity, s.opacity, 0, 1), e.splitDirection && (this._splitDirection = e.splitDirection === "left" ? Me.LEFT : Me.RIGHT);
|
12842
12842
|
}
|
12843
12843
|
static get className() {
|
12844
12844
|
return "RasterLayer";
|
@@ -12871,7 +12871,7 @@ class vt extends Ye {
|
|
12871
12871
|
return this._opacity;
|
12872
12872
|
}
|
12873
12873
|
set opacity(e) {
|
12874
|
-
const s =
|
12874
|
+
const s = Nn(e, this._opacity, 0, 1);
|
12875
12875
|
this._opacity !== s && (this._opacity = s, this.getImplementations().forEach((r) => {
|
12876
12876
|
r.updateOpacity(s);
|
12877
12877
|
}));
|
@@ -12906,7 +12906,7 @@ function mu(i) {
|
|
12906
12906
|
for (let c = 0; c < n; ++c)
|
12907
12907
|
a.push(r / 2 ** c);
|
12908
12908
|
const o = {
|
12909
|
-
origin:
|
12909
|
+
origin: Zn(e),
|
12910
12910
|
resolutions: a,
|
12911
12911
|
tileSize: i.tileSize,
|
12912
12912
|
minZoom: i.minLevel
|
@@ -13038,7 +13038,7 @@ class Bi extends Ss {
|
|
13038
13038
|
const c = Rt(l, r);
|
13039
13039
|
let d;
|
13040
13040
|
try {
|
13041
|
-
d = await
|
13041
|
+
d = await (await $r(l, c)).text();
|
13042
13042
|
} catch {
|
13043
13043
|
return this.getLogger().error(`Failed fetching WMS FeatureInfo ${l}`), [];
|
13044
13044
|
}
|
@@ -13265,7 +13265,7 @@ class Nv extends ce {
|
|
13265
13265
|
}
|
13266
13266
|
_obliqueHandler(e) {
|
13267
13267
|
let s = null, r = null;
|
13268
|
-
return e.map.olMap.forEachFeatureAtPixel([e.windowPosition.x, e.windowPosition.y], (n, a) => (n && (s = n[
|
13268
|
+
return e.map.olMap.forEachFeatureAtPixel([e.windowPosition.x, e.windowPosition.y], (n, a) => (n && (s = n[Fn] || n), r = a, !0), { hitTolerance: this.hitTolerance }), s && r && (e.feature = s, e.feature.get("features") && (e.feature[Y] = r[Y]), e.exactPosition = !0), Promise.resolve(e);
|
13269
13269
|
}
|
13270
13270
|
_cesiumHandler(e) {
|
13271
13271
|
const s = e.map, r = s.getScene();
|
@@ -13473,7 +13473,7 @@ class Fv {
|
|
13473
13473
|
this.removeExclusive(), this.exclusiveAdded.destroy(), this.exclusiveRemoved.destroy(), this._interactionChain.destroy(), this._positionInteraction.destroy(), this._featureInteraction.destroy(), this._eventQueue = [], window.removeEventListener("keydown", this._boundKeyListener), window.removeEventListener("keyup", this._boundKeyListener);
|
13474
13474
|
}
|
13475
13475
|
}
|
13476
|
-
const pi = Symbol("cesiumTilesetLastUpdated"),
|
13476
|
+
const pi = Symbol("cesiumTilesetLastUpdated"), nn = Symbol("updateFeatureOverride");
|
13477
13477
|
function pu(i) {
|
13478
13478
|
if (!i)
|
13479
13479
|
return ps();
|
@@ -13495,7 +13495,7 @@ function pu(i) {
|
|
13495
13495
|
]);
|
13496
13496
|
return Gc(n, s).getExtent();
|
13497
13497
|
}
|
13498
|
-
class
|
13498
|
+
class Ai extends Zi {
|
13499
13499
|
constructor(e, s) {
|
13500
13500
|
super(e, s);
|
13501
13501
|
h(this, "cesium3DTileset");
|
@@ -13522,7 +13522,7 @@ class Fi extends Zi {
|
|
13522
13522
|
}
|
13523
13523
|
async initialize() {
|
13524
13524
|
if (!this._initializedPromise) {
|
13525
|
-
this._initializedPromise =
|
13525
|
+
this._initializedPromise = xn.fromUrl(ci(this.url, this.headers), {
|
13526
13526
|
...this.tilesetOptions,
|
13527
13527
|
show: !1
|
13528
13528
|
// show is handled by activate
|
@@ -13531,7 +13531,7 @@ class Fi extends Zi {
|
|
13531
13531
|
this.cesium3DTileset = await this._initializedPromise;
|
13532
13532
|
} catch (e) {
|
13533
13533
|
if (this.url && !/\.json$/.test(this.url))
|
13534
|
-
this.url = `${this.url.replace(/\/$/, "")}/tileset.json`, this._initializedPromise =
|
13534
|
+
this.url = `${this.url.replace(/\/$/, "")}/tileset.json`, this._initializedPromise = xn.fromUrl(ci(this.url, this.headers), {
|
13535
13535
|
...this.tilesetOptions,
|
13536
13536
|
show: !1
|
13537
13537
|
// show is handled by activate
|
@@ -13546,7 +13546,7 @@ class Fi extends Zi {
|
|
13546
13546
|
this.tilesetProperties && this.tilesetProperties.forEach(({ key: e, value: s }) => {
|
13547
13547
|
this.cesium3DTileset[e] = s;
|
13548
13548
|
}), this.cesium3DTileset[Y] = this.name, this.cesium3DTileset.tileVisible.addEventListener(this.applyStyle.bind(this)), this.cesium3DTileset.tileUnload.addEventListener((e) => {
|
13549
|
-
delete e[pi], delete e.content[pi], delete e.content[
|
13549
|
+
delete e[pi], delete e.content[pi], delete e.content[nn];
|
13550
13550
|
}), this._originalOrigin = _.clone(this.cesium3DTileset.boundingSphere.center), this.modelMatrix ? this.cesium3DTileset.modelMatrix = this.modelMatrix : this.offset && this._calculateOffset(), this.map.addPrimitiveCollection(this.cesium3DTileset), await super.initialize(), this.splitDirection && (this.cesium3DTileset.splitDirection = this.splitDirection), this.updateStyle(this.style);
|
13551
13551
|
}
|
13552
13552
|
await this._initializedPromise;
|
@@ -13581,7 +13581,7 @@ class Fi extends Zi {
|
|
13581
13581
|
this.style = e, this.initialized && this.cesium3DTileset && (this.cesium3DTileset.style = this.style.cesiumStyle, this._onStyleChangeRemover && this._onStyleChangeRemover(), this._onStyleChangeRemover = this.style.styleChanged.addEventListener(() => {
|
13582
13582
|
var r;
|
13583
13583
|
(r = this.cesium3DTileset) == null || r.makeStyleDirty(), this._styleLastUpdated = Date.now();
|
13584
|
-
}), this._styleLastUpdated = Date.now(), this.cesium3DTileset.colorBlendMode !== this.style.colorBlendMode && (this.style.colorBlendMode !==
|
13584
|
+
}), this._styleLastUpdated = Date.now(), this.cesium3DTileset.colorBlendMode !== this.style.colorBlendMode && (this.style.colorBlendMode !== cn.HIGHLIGHT ? this.cesium3DTileset.extras && // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access,no-underscore-dangle
|
13585
13585
|
this.cesium3DTileset.extras._3DTILESDIFFUSE && (this.cesium3DTileset.colorBlendMode = this.style.colorBlendMode) : this.cesium3DTileset.colorBlendMode = this.style.colorBlendMode));
|
13586
13586
|
}
|
13587
13587
|
updateSplitDirection(e) {
|
@@ -13598,7 +13598,7 @@ class Fi extends Zi {
|
|
13598
13598
|
styleContent(e) {
|
13599
13599
|
var s, r, n, a, o;
|
13600
13600
|
if (!e[pi] || e[pi] < this.featureVisibility.lastUpdated || e[pi] < (((s = this.globalHider) == null ? void 0 : s.lastUpdated) ?? 0) || e[pi] < this._styleLastUpdated) {
|
13601
|
-
delete e[
|
13601
|
+
delete e[nn];
|
13602
13602
|
const l = e.featuresLength, c = {
|
13603
13603
|
hideLocal: [],
|
13604
13604
|
hideGlobal: [],
|
@@ -13613,7 +13613,7 @@ class Fi extends Zi {
|
|
13613
13613
|
this.featureVisibility.highlightedObjects[f] && !this.featureVisibility.hasHighlightFeature(f, u) && (this.featureVisibility.addHighlightFeature(f, u), c.highlight.push([f, u]), g = !1), this.featureVisibility.hiddenObjects[f] && !this.featureVisibility.hasHiddenFeature(f, u) && (this.featureVisibility.addHiddenFeature(f, u), c.hideLocal.push([f, u])), (r = this.globalHider) != null && r.hiddenObjects[f] && !((n = this.globalHider) != null && n.hasFeature(f, u)) && ((a = this.globalHider) == null || a.addFeature(f, u), c.hideGlobal.push([f, u])), g && this._styleLastUpdated > (e[pi] ?? 0) && u[ri] && Po(u);
|
13614
13614
|
}
|
13615
13615
|
}
|
13616
|
-
(c.hideLocal.length > 0 || c.hideGlobal.length > 0 || c.highlight.length > 0) && (e[
|
13616
|
+
(c.hideLocal.length > 0 || c.hideGlobal.length > 0 || c.highlight.length > 0) && (e[nn] = () => {
|
13617
13617
|
c.hideGlobal.forEach(([d, u]) => {
|
13618
13618
|
var f;
|
13619
13619
|
(f = this.globalHider) != null && f.hasFeature(d, u) && mr(u);
|
@@ -13624,7 +13624,7 @@ class Fi extends Zi {
|
|
13624
13624
|
});
|
13625
13625
|
}), e[pi] = Date.now();
|
13626
13626
|
} else
|
13627
|
-
(o = e[
|
13627
|
+
(o = e[nn]) == null || o.call(e);
|
13628
13628
|
}
|
13629
13629
|
destroy() {
|
13630
13630
|
if (this.cesium3DTileset) {
|
@@ -13679,7 +13679,7 @@ class Tw {
|
|
13679
13679
|
return e.billboards = this.featureToBillboardMap.get(t), this.featureToBillboardMap.delete(t), e.labels = this.featureToLabelMap.get(t), this.featureToLabelMap.delete(t), e;
|
13680
13680
|
}
|
13681
13681
|
clearFeatureCache(t) {
|
13682
|
-
|
13682
|
+
Di(this.entities, t.billboards), Di(this.entities, t.labels);
|
13683
13683
|
}
|
13684
13684
|
// eslint-disable-next-line class-methods-use-this,no-unused-vars
|
13685
13685
|
updateSplitDirection(t) {
|
@@ -13894,9 +13894,9 @@ class jv extends Ts {
|
|
13894
13894
|
return new Xi(s, r);
|
13895
13895
|
}
|
13896
13896
|
}
|
13897
|
-
const
|
13898
|
-
for (let i = 0; i <
|
13899
|
-
|
13897
|
+
const zn = new Array(25);
|
13898
|
+
for (let i = 0; i < zn.length; i++)
|
13899
|
+
zn[i] = 200375083427892e-7 * 2 / 256 / 2 ** (i + 1);
|
13900
13900
|
function jo(i) {
|
13901
13901
|
const t = yt.southwest(i), e = yt.northeast(i), s = [
|
13902
13902
|
N.toDegrees(t.longitude),
|
@@ -13904,7 +13904,7 @@ function jo(i) {
|
|
13904
13904
|
], r = [
|
13905
13905
|
N.toDegrees(e.longitude),
|
13906
13906
|
N.toDegrees(e.latitude)
|
13907
|
-
], n =
|
13907
|
+
], n = Tn(s), a = Tn(r);
|
13908
13908
|
return [...n, ...a];
|
13909
13909
|
}
|
13910
13910
|
class St extends Gt {
|
@@ -14044,7 +14044,7 @@ class St extends Gt {
|
|
14044
14044
|
getBaseLevelForResolution(e, s) {
|
14045
14045
|
const r = e / Math.cos(s);
|
14046
14046
|
let n = 0;
|
14047
|
-
for (let o = 0; o <
|
14047
|
+
for (let o = 0; o < zn.length && (n = o, !(r >= zn[o])); o++)
|
14048
14048
|
;
|
14049
14049
|
const a = this.getBaseLevel(n);
|
14050
14050
|
return a === void 0 ? this.baseLevels[this.baseLevels.length - 1] : a;
|
@@ -14291,7 +14291,7 @@ function $v(i, t, e, s) {
|
|
14291
14291
|
function Bv(i, t, e, s) {
|
14292
14292
|
const r = document.createElement("canvas");
|
14293
14293
|
r.width = s[0], r.height = s[0];
|
14294
|
-
const n =
|
14294
|
+
const n = Tn([
|
14295
14295
|
N.toDegrees(e.longitude),
|
14296
14296
|
N.toDegrees(e.latitude)
|
14297
14297
|
]), a = $v(t, n, r.getContext("2d"), s);
|
@@ -14512,11 +14512,11 @@ class Xv extends Ts {
|
|
14512
14512
|
return Promise.resolve(new Xi(a, o));
|
14513
14513
|
}
|
14514
14514
|
}
|
14515
|
-
function
|
14515
|
+
function Hn() {
|
14516
14516
|
const i = navigator.userAgent || navigator.vendor || window.opera;
|
14517
14517
|
return /(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(i) || /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(i.substring(0, 4));
|
14518
14518
|
}
|
14519
|
-
class
|
14519
|
+
class Pi extends hi {
|
14520
14520
|
constructor(e) {
|
14521
14521
|
super(e);
|
14522
14522
|
h(this, "highlightStyle");
|
@@ -14528,11 +14528,11 @@ class Ii extends hi {
|
|
14528
14528
|
h(this, "_supportedMaps", [H.className]);
|
14529
14529
|
h(this, "_customShader");
|
14530
14530
|
this._supportedMaps = [H.className];
|
14531
|
-
const s =
|
14531
|
+
const s = Pi.getDefaultOptions();
|
14532
14532
|
this.highlightStyle = null, e.highlightStyle && (this.highlightStyle = e.highlightStyle instanceof he ? e.highlightStyle : new he(e.highlightStyle)), this.screenSpaceError = le(e.screenSpaceError, s.screenSpaceError), this.screenSpaceErrorMobile = le(e.screenSpaceErrorMobile, s.screenSpaceErrorMobile);
|
14533
14533
|
const r = e.tilesetOptions || s.tilesetOptions;
|
14534
14534
|
this.tilesetOptions = {
|
14535
|
-
maximumScreenSpaceError:
|
14535
|
+
maximumScreenSpaceError: Hn() ? this.screenSpaceErrorMobile : this.screenSpaceError,
|
14536
14536
|
...r
|
14537
14537
|
}, this._modelMatrix = void 0, this._offset = e.offset || s.offset;
|
14538
14538
|
}
|
@@ -14593,7 +14593,7 @@ class Ii extends hi {
|
|
14593
14593
|
}
|
14594
14594
|
createImplementationsForMap(e) {
|
14595
14595
|
return e instanceof H ? [
|
14596
|
-
new
|
14596
|
+
new Ai(e, this.getImplementationOptions())
|
14597
14597
|
] : [];
|
14598
14598
|
}
|
14599
14599
|
/**
|
@@ -14624,9 +14624,9 @@ class Ii extends hi {
|
|
14624
14624
|
});
|
14625
14625
|
}
|
14626
14626
|
toJSON() {
|
14627
|
-
const e = super.toJSON(), s =
|
14627
|
+
const e = super.toJSON(), s = Pi.getDefaultOptions();
|
14628
14628
|
this.highlightStyle && (e.highlightStyle = this.highlightStyle.toJSON()), this.screenSpaceError !== s.screenSpaceError && (e.screenSpaceError = this.screenSpaceError), this.screenSpaceErrorMobile !== s.screenSpaceErrorMobile && (e.screenSpaceErrorMobile = this.screenSpaceErrorMobile);
|
14629
|
-
const r = { ...this.tilesetOptions }, n =
|
14629
|
+
const r = { ...this.tilesetOptions }, n = Hn() ? this.screenSpaceErrorMobile : this.screenSpaceError;
|
14630
14630
|
return r.maximumScreenSpaceError === n && delete r.maximumScreenSpaceError, Object.keys(r).length > 0 && (e.tilesetOptions = r), Array.isArray(this.offset) && (e.offset = this.offset.slice()), e;
|
14631
14631
|
}
|
14632
14632
|
/**
|
@@ -14636,8 +14636,8 @@ class Ii extends hi {
|
|
14636
14636
|
super.destroy();
|
14637
14637
|
}
|
14638
14638
|
}
|
14639
|
-
De.registerClass(
|
14640
|
-
class
|
14639
|
+
De.registerClass(Pi.className, Pi);
|
14640
|
+
class jn extends Ye {
|
14641
14641
|
constructor() {
|
14642
14642
|
super(...arguments);
|
14643
14643
|
/**
|
@@ -14648,7 +14648,7 @@ class Hn extends Ye {
|
|
14648
14648
|
/**
|
14649
14649
|
* The feature visibility of this layer. NOTE: Entities cannot be highlighted at this moment.
|
14650
14650
|
*/
|
14651
|
-
h(this, "featureVisibility", new
|
14651
|
+
h(this, "featureVisibility", new ia());
|
14652
14652
|
h(this, "_supportedMaps", [H.className]);
|
14653
14653
|
h(this, "_featureVisibilityListeners", []);
|
14654
14654
|
}
|
@@ -14727,8 +14727,8 @@ class Hn extends Ye {
|
|
14727
14727
|
}), this._featureVisibilityListeners = [], this.featureVisibility.destroy(), super.destroy();
|
14728
14728
|
}
|
14729
14729
|
}
|
14730
|
-
De.registerClass(
|
14731
|
-
class
|
14730
|
+
De.registerClass(jn.className, jn);
|
14731
|
+
class Vn extends jn {
|
14732
14732
|
/**
|
14733
14733
|
* @param options
|
14734
14734
|
*/
|
@@ -14750,7 +14750,7 @@ class jn extends Hn {
|
|
14750
14750
|
}));
|
14751
14751
|
h(this, "_initializedPromise");
|
14752
14752
|
this.entities = this.dataSource.entities;
|
14753
|
-
const s =
|
14753
|
+
const s = Vn.getDefaultOptions();
|
14754
14754
|
this.sourceUri = e.sourceUri || s.sourceUri;
|
14755
14755
|
}
|
14756
14756
|
static get className() {
|
@@ -14758,7 +14758,7 @@ class jn extends Hn {
|
|
14758
14758
|
}
|
14759
14759
|
static getDefaultOptions() {
|
14760
14760
|
return {
|
14761
|
-
...
|
14761
|
+
...jn.getDefaultOptions(),
|
14762
14762
|
sourceUri: void 0
|
14763
14763
|
};
|
14764
14764
|
}
|
@@ -14793,7 +14793,7 @@ class jn extends Hn {
|
|
14793
14793
|
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;
|
14794
14794
|
}
|
14795
14795
|
}
|
14796
|
-
De.registerClass(
|
14796
|
+
De.registerClass(Vn.className, Vn);
|
14797
14797
|
function Yv(i, t, e) {
|
14798
14798
|
const s = [];
|
14799
14799
|
return i.forEach((r) => {
|
@@ -14980,7 +14980,7 @@ class Zv extends Gt {
|
|
14980
14980
|
this.unTrack(), this._layer = void 0, this.changed.destroy(), super.destroy();
|
14981
14981
|
}
|
14982
14982
|
}
|
14983
|
-
class Kv extends
|
14983
|
+
class Kv extends ia {
|
14984
14984
|
constructor(e) {
|
14985
14985
|
super();
|
14986
14986
|
h(this, "_changeTracker");
|
@@ -15035,7 +15035,7 @@ class ws extends rt {
|
|
15035
15035
|
h(this, "injectedFetchDynamicFeatureFunc", () => {
|
15036
15036
|
throw new Error("Missing get dynamic feature");
|
15037
15037
|
});
|
15038
|
-
h(this, "_staticFeatureVisibility", new
|
15038
|
+
h(this, "_staticFeatureVisibility", new ia());
|
15039
15039
|
h(this, "_setEditing", null);
|
15040
15040
|
h(this, "_twoDimLoaded", null);
|
15041
15041
|
h(this, "_twoDimStyleChanged", null);
|
@@ -15100,7 +15100,7 @@ class ws extends rt {
|
|
15100
15100
|
return Promise.resolve();
|
15101
15101
|
const { twoDim: e } = this.staticRepresentation;
|
15102
15102
|
return this._twoDimLoaded || (this._twoDimLoaded = (async () => {
|
15103
|
-
const s = await
|
15103
|
+
const s = await Vi(e, {
|
15104
15104
|
headers: this.headers
|
15105
15105
|
}), { features: r } = _i(s, {
|
15106
15106
|
targetProjection: U,
|
@@ -15120,10 +15120,10 @@ class ws extends rt {
|
|
15120
15120
|
}
|
15121
15121
|
createImplementationsForMap(e) {
|
15122
15122
|
const s = super.createImplementationsForMap(e);
|
15123
|
-
return e instanceof H && this.staticRepresentation && this.staticRepresentation.threeDim ? s.push(new
|
15123
|
+
return e instanceof H && this.staticRepresentation && this.staticRepresentation.threeDim ? s.push(new Ai(e, {
|
15124
15124
|
url: this.staticRepresentation.threeDim,
|
15125
15125
|
tilesetOptions: {
|
15126
|
-
maximumScreenSpaceError:
|
15126
|
+
maximumScreenSpaceError: Hn() ? this.screenSpaceErrorMobile : this.screenSpaceError,
|
15127
15127
|
url: this.staticRepresentation.threeDim
|
15128
15128
|
},
|
15129
15129
|
tilesetProperties: [
|
@@ -15170,7 +15170,7 @@ class ws extends rt {
|
|
15170
15170
|
}
|
15171
15171
|
setEditing(e, s) {
|
15172
15172
|
this.getImplementations().forEach((r) => {
|
15173
|
-
r instanceof
|
15173
|
+
r instanceof Ai && (r.initialized ? (s != null ? r.cesium3DTileset[e] = s : delete r.cesium3DTileset[e], this._setEditing = null) : this._setEditing = { symbol: e, featureType: s });
|
15174
15174
|
}), this.staticRepresentation.twoDim && (this._twoDimLoaded ? this._twoDimLoaded.then(() => {
|
15175
15175
|
this._twoDimStaticSource.getFeatures().forEach((r) => {
|
15176
15176
|
s != null ? r[e] = s : delete r[e];
|
@@ -15184,7 +15184,7 @@ class ws extends rt {
|
|
15184
15184
|
return this.extent;
|
15185
15185
|
const e = super.getZoomToExtent(), s = e ? e.getCoordinatesInProjection(U) : ps();
|
15186
15186
|
if (this.staticRepresentation.threeDim) {
|
15187
|
-
const n = this.getImplementations().find((a) => a instanceof
|
15187
|
+
const n = this.getImplementations().find((a) => a instanceof Ai && a.cesium3DTileset);
|
15188
15188
|
if (n != null && n.cesium3DTileset) {
|
15189
15189
|
const a = pu(n.cesium3DTileset);
|
15190
15190
|
ar(s, a);
|
@@ -15201,8 +15201,8 @@ class ws extends rt {
|
|
15201
15201
|
* set the maximum screen space error of this layer
|
15202
15202
|
*/
|
15203
15203
|
setMaximumScreenSpaceError(e) {
|
15204
|
-
|
15205
|
-
s instanceof
|
15204
|
+
Hn() ? this.screenSpaceErrorMobile = e : this.screenSpaceError = e, this.getImplementations().forEach((s) => {
|
15205
|
+
s instanceof Ai && s.cesium3DTileset && (s.cesium3DTileset.maximumScreenSpaceError = e);
|
15206
15206
|
});
|
15207
15207
|
}
|
15208
15208
|
/**
|
@@ -15214,7 +15214,7 @@ class ws extends rt {
|
|
15214
15214
|
return this.hiddenStaticFeatureIds.has(e) ? Promise.resolve(this.getFeatureById(e)) : this.injectedFetchDynamicFeatureFunc ? this.injectedFetchDynamicFeatureFunc(e).then((s) => {
|
15215
15215
|
const { features: r } = _i(s, {
|
15216
15216
|
targetProjection: U,
|
15217
|
-
defaultStyle: this.defaultStyle instanceof he ? this.defaultStyle :
|
15217
|
+
defaultStyle: this.defaultStyle instanceof he ? this.defaultStyle : ji
|
15218
15218
|
});
|
15219
15219
|
return this._staticFeatureVisibility.hideObjects([e]), this.hiddenStaticFeatureIds.add(e), this.addFeatures(r), r[0];
|
15220
15220
|
}).catch((s) => {
|
@@ -15301,7 +15301,7 @@ class Cr extends rt {
|
|
15301
15301
|
e[Ta] = !0;
|
15302
15302
|
}), this._featuresToLoad = void 0), this.url) {
|
15303
15303
|
const e = Rt(this.url, this.headers);
|
15304
|
-
this._dataFetchedPromise =
|
15304
|
+
this._dataFetchedPromise = Vi(this.url, e).then((s) => this._parseGeojsonData(s)).catch((s) => (this.getLogger().warning(`Could not send request for loading layer content (${String(s)})`), Promise.reject(s)));
|
15305
15305
|
} else
|
15306
15306
|
this._dataFetchedPromise = Promise.resolve();
|
15307
15307
|
return this._dataFetchedPromise;
|
@@ -15331,7 +15331,7 @@ class Cr extends rt {
|
|
15331
15331
|
}
|
15332
15332
|
}
|
15333
15333
|
De.registerClass(Cr.className, Cr);
|
15334
|
-
class
|
15334
|
+
class Br extends ra {
|
15335
15335
|
constructor(e, s) {
|
15336
15336
|
super(e, s);
|
15337
15337
|
h(this, "minLevel");
|
@@ -15348,7 +15348,7 @@ class $r extends sa {
|
|
15348
15348
|
this.opacity = e, this.initialized && this.olLayer.setOpacity(this.opacity);
|
15349
15349
|
}
|
15350
15350
|
}
|
15351
|
-
class Jv extends
|
15351
|
+
class Jv extends Br {
|
15352
15352
|
static get className() {
|
15353
15353
|
return "OpenStreetMapOpenlayersImpl";
|
15354
15354
|
}
|
@@ -15376,7 +15376,7 @@ class xr extends Ye {
|
|
15376
15376
|
h(this, "maxLevel");
|
15377
15377
|
h(this, "_supportedMaps", [H.className, Oe.className]);
|
15378
15378
|
const s = xr.getDefaultOptions();
|
15379
|
-
this._splitDirection = Me.NONE, e.splitDirection && (this._splitDirection = e.splitDirection === "left" ? Me.LEFT : Me.RIGHT), this._opacity =
|
15379
|
+
this._splitDirection = Me.NONE, e.splitDirection && (this._splitDirection = e.splitDirection === "left" ? Me.LEFT : Me.RIGHT), this._opacity = Nn(e.opacity, s.opacity, 0, 1), this.maxLevel = le(e.maxLevel, s.maxLevel);
|
15380
15380
|
}
|
15381
15381
|
static get className() {
|
15382
15382
|
return "OpenStreetMapLayer";
|
@@ -15404,7 +15404,7 @@ class xr extends Ye {
|
|
15404
15404
|
return this._opacity;
|
15405
15405
|
}
|
15406
15406
|
set opacity(e) {
|
15407
|
-
const s =
|
15407
|
+
const s = Nn(e, this._opacity, 0, 1);
|
15408
15408
|
this._opacity !== s && (this._opacity = s, this.getImplementations().forEach((r) => {
|
15409
15409
|
r.updateOpacity(s);
|
15410
15410
|
}));
|
@@ -15435,7 +15435,7 @@ class xr extends Ye {
|
|
15435
15435
|
}
|
15436
15436
|
}
|
15437
15437
|
De.registerClass(xr.className, xr);
|
15438
|
-
class Qv extends
|
15438
|
+
class Qv extends Br {
|
15439
15439
|
constructor(e, s) {
|
15440
15440
|
super(e, s);
|
15441
15441
|
h(this, "credit");
|
@@ -15470,7 +15470,7 @@ class Qv extends $r {
|
|
15470
15470
|
});
|
15471
15471
|
}
|
15472
15472
|
}
|
15473
|
-
class Nw extends
|
15473
|
+
class Nw extends ra {
|
15474
15474
|
static get className() {
|
15475
15475
|
return "TileDebugOpenlayersImpl";
|
15476
15476
|
}
|
@@ -15487,7 +15487,7 @@ class Nw extends sa {
|
|
15487
15487
|
updateTiles(t) {
|
15488
15488
|
}
|
15489
15489
|
}
|
15490
|
-
class eS extends
|
15490
|
+
class eS extends Br {
|
15491
15491
|
/**
|
15492
15492
|
* @param map
|
15493
15493
|
* @param options
|
@@ -15520,7 +15520,7 @@ class eS extends $r {
|
|
15520
15520
|
return this.extent && this.extent.isValid() && (s.extent = this.extent.getCoordinatesInProjection(U)), new Cs(s);
|
15521
15521
|
}
|
15522
15522
|
}
|
15523
|
-
class tS extends
|
15523
|
+
class tS extends ra {
|
15524
15524
|
constructor(e, s) {
|
15525
15525
|
super(e, s);
|
15526
15526
|
h(this, "tileProvider");
|
@@ -15594,7 +15594,7 @@ class tS extends sa {
|
|
15594
15594
|
this.source && (this.source.clear(), this.source = null), this.tileProvider = null, super.destroy();
|
15595
15595
|
}
|
15596
15596
|
}
|
15597
|
-
class iS extends
|
15597
|
+
class iS extends Br {
|
15598
15598
|
constructor(e, s) {
|
15599
15599
|
super(e, s);
|
15600
15600
|
h(this, "parameters");
|
@@ -15635,7 +15635,7 @@ class iS extends $r {
|
|
15635
15635
|
});
|
15636
15636
|
}
|
15637
15637
|
}
|
15638
|
-
class sS extends
|
15638
|
+
class sS extends Br {
|
15639
15639
|
constructor(e, s) {
|
15640
15640
|
super(e, s);
|
15641
15641
|
h(this, "layer");
|
@@ -15657,7 +15657,7 @@ class sS extends $r {
|
|
15657
15657
|
let r = Ga(s) / this.tileSize[0];
|
15658
15658
|
this.numberOfLevelZeroTilesX > 1 && (r /= this.numberOfLevelZeroTilesX), this.tilingSchema === qe.GEOGRAPHIC && (r = Ga(s) / (this.tileSize[0] * 2));
|
15659
15659
|
const n = this.maxLevel + 1, a = new Array(n).fill(void 0).map((f, g) => r / 2 ** g), o = this.extent.getCoordinatesInProjection(e), l = {
|
15660
|
-
origin:
|
15660
|
+
origin: Zn(s),
|
15661
15661
|
extent: o,
|
15662
15662
|
resolutions: a,
|
15663
15663
|
matrixIds: this.matrixIds,
|
@@ -15686,7 +15686,7 @@ class sS extends $r {
|
|
15686
15686
|
}
|
15687
15687
|
}
|
15688
15688
|
const rS = new Ue({});
|
15689
|
-
class Or extends
|
15689
|
+
class Or extends Pi {
|
15690
15690
|
constructor(e) {
|
15691
15691
|
super(e);
|
15692
15692
|
/**
|
@@ -15703,7 +15703,7 @@ class Or extends Ii {
|
|
15703
15703
|
}
|
15704
15704
|
static getDefaultOptions() {
|
15705
15705
|
return {
|
15706
|
-
...
|
15706
|
+
...Pi.getDefaultOptions(),
|
15707
15707
|
pointSize: void 0
|
15708
15708
|
};
|
15709
15709
|
}
|
@@ -15721,7 +15721,7 @@ class Or extends Ii {
|
|
15721
15721
|
}
|
15722
15722
|
createImplementationsForMap(e) {
|
15723
15723
|
return e instanceof H ? [
|
15724
|
-
new
|
15724
|
+
new Ai(e, this.getImplementationOptions())
|
15725
15725
|
] : [];
|
15726
15726
|
}
|
15727
15727
|
/**
|
@@ -15742,11 +15742,11 @@ class Or extends Ii {
|
|
15742
15742
|
}
|
15743
15743
|
}
|
15744
15744
|
De.registerClass(Or.className, Or);
|
15745
|
-
class
|
15745
|
+
class $n extends vt {
|
15746
15746
|
constructor(e) {
|
15747
15747
|
super(e);
|
15748
15748
|
h(this, "credit");
|
15749
|
-
const s =
|
15749
|
+
const s = $n.getDefaultOptions();
|
15750
15750
|
this.credit = e.credit || s.credit, this.extent.isValid() || (this.getLogger().warning(`layer ${this.name} was constructed with an invalid extent, defaulting to global extent`), this.extent = new xe({
|
15751
15751
|
projection: oe.toJSON(),
|
15752
15752
|
coordinates: [-180, -90, 180, 90]
|
@@ -15786,7 +15786,7 @@ class Vn extends vt {
|
|
15786
15786
|
return delete e.tilingSchema, this.credit && (e.credit = this.credit), e;
|
15787
15787
|
}
|
15788
15788
|
}
|
15789
|
-
De.registerClass(
|
15789
|
+
De.registerClass($n.className, $n);
|
15790
15790
|
class br extends Ye {
|
15791
15791
|
constructor(e) {
|
15792
15792
|
super(e);
|
@@ -15847,7 +15847,7 @@ function nS(i, t) {
|
|
15847
15847
|
});
|
15848
15848
|
}
|
15849
15849
|
async function Dw(i, t) {
|
15850
|
-
const e = i.getImplementations().filter((s) => s instanceof
|
15850
|
+
const e = i.getImplementations().filter((s) => s instanceof Ai);
|
15851
15851
|
!i.active || e.every((s) => {
|
15852
15852
|
var r;
|
15853
15853
|
return (r = s.cesium3DTileset) == null ? void 0 : r.tilesLoaded;
|
@@ -15872,9 +15872,9 @@ function yu(i, t, e, s, r, n = "en") {
|
|
15872
15872
|
}
|
15873
15873
|
return a = a.replace(/\{x\}/, String(t)).replace(/\{y\}/, String(e)).replace(/\{z\}/, String(s)).replace(/\{locale\}/, n), a;
|
15874
15874
|
}
|
15875
|
-
class
|
15875
|
+
class Bn extends St {
|
15876
15876
|
constructor(e) {
|
15877
|
-
const s =
|
15877
|
+
const s = Bn.getDefaultOptions();
|
15878
15878
|
super(e);
|
15879
15879
|
h(this, "url");
|
15880
15880
|
this.url = e.url || s.url;
|
@@ -15898,7 +15898,7 @@ class $n extends St {
|
|
15898
15898
|
this.locale !== e && (super.locale = e, this.url.includes("{locale}") && this.clearCache());
|
15899
15899
|
}
|
15900
15900
|
async loader(e, s, r, n) {
|
15901
|
-
const a = this.tilingScheme.tileXYToRectangle(e, s, r), o = yu(this.url, e, s, r, a, this.locale), l = Rt(this.url, n), c = await
|
15901
|
+
const a = this.tilingScheme.tileXYToRectangle(e, s, r), o = yu(this.url, e, s, r, a, this.locale), l = Rt(this.url, n), c = await Vi(o, l), { features: d } = _i(c, { dynamicStyle: !0 });
|
15902
15902
|
return d;
|
15903
15903
|
}
|
15904
15904
|
toJSON() {
|
@@ -15906,10 +15906,10 @@ class $n extends St {
|
|
15906
15906
|
return this.url && (e.url = this.url), e;
|
15907
15907
|
}
|
15908
15908
|
}
|
15909
|
-
Es.registerClass(
|
15910
|
-
class
|
15909
|
+
Es.registerClass(Bn.className, Bn);
|
15910
|
+
class Un extends St {
|
15911
15911
|
constructor(e) {
|
15912
|
-
const s =
|
15912
|
+
const s = Un.getDefaultOptions();
|
15913
15913
|
super(e);
|
15914
15914
|
h(this, "url");
|
15915
15915
|
h(this, "idProperty");
|
@@ -15950,10 +15950,10 @@ class Bn extends St {
|
|
15950
15950
|
return this.url && (e.url = this.url), this.idProperty && (e.idProperty = this.idProperty), e;
|
15951
15951
|
}
|
15952
15952
|
}
|
15953
|
-
Es.registerClass(
|
15954
|
-
class
|
15953
|
+
Es.registerClass(Un.className, Un);
|
15954
|
+
class qn extends St {
|
15955
15955
|
constructor(e) {
|
15956
|
-
const s =
|
15956
|
+
const s = qn.getDefaultOptions();
|
15957
15957
|
super({ ...e, baseLevels: s.baseLevels });
|
15958
15958
|
h(this, "url");
|
15959
15959
|
this.url = e.url || s.url;
|
@@ -15970,7 +15970,7 @@ class Un extends St {
|
|
15970
15970
|
}
|
15971
15971
|
// eslint-disable-next-line no-unused-vars
|
15972
15972
|
async loader(e, s, r, n) {
|
15973
|
-
const a = Rt(this.url, n), o = await
|
15973
|
+
const a = Rt(this.url, n), o = await Vi(this.url, a), { features: l } = _i(o, { dynamicStyle: !0 });
|
15974
15974
|
return l;
|
15975
15975
|
}
|
15976
15976
|
toJSON() {
|
@@ -15978,7 +15978,7 @@ class Un extends St {
|
|
15978
15978
|
return delete e.baseLevels, this.url && (e.url = this.url), e;
|
15979
15979
|
}
|
15980
15980
|
}
|
15981
|
-
Es.registerClass(
|
15981
|
+
Es.registerClass(qn.className, qn);
|
15982
15982
|
class Er extends vt {
|
15983
15983
|
constructor(e) {
|
15984
15984
|
const s = Er.getDefaultOptions();
|
@@ -16146,7 +16146,7 @@ class Pr extends hi {
|
|
16146
16146
|
*/
|
16147
16147
|
_featureStyle(e, s) {
|
16148
16148
|
let r;
|
16149
|
-
return e[ut] || e[dt] ? [] : (e[be] ? { style: r } = e[be] : this.style instanceof Ue ? { style: r } = this.style : r = e.getStyle() || this.style.style,
|
16149
|
+
return e[ut] || e[dt] ? [] : (e[be] ? { style: r } = e[be] : this.style instanceof Ue ? { style: r } = this.style : r = e.getStyle() || this.style.style, Gn(r, e, s));
|
16150
16150
|
}
|
16151
16151
|
getImplementationOptions() {
|
16152
16152
|
return {
|
@@ -16166,7 +16166,7 @@ class Pr extends hi {
|
|
16166
16166
|
] : [];
|
16167
16167
|
}
|
16168
16168
|
getStyleOrDefaultStyle(e, s) {
|
16169
|
-
return super.getStyleOrDefaultStyle(e, s ||
|
16169
|
+
return super.getStyleOrDefaultStyle(e, s || ji.clone());
|
16170
16170
|
}
|
16171
16171
|
async activate() {
|
16172
16172
|
await super.activate(), this._setupFeatureVisibilityHandlers(), this.tileProvider.trackFeaturesToTiles && this.tileProvider.forEachFeature((e) => {
|
@@ -16252,7 +16252,7 @@ class oh extends rt {
|
|
16252
16252
|
return r.method = "POST", r.body = s, r.headers = {
|
16253
16253
|
...r.headers,
|
16254
16254
|
"Content-Type": "application/text+xml"
|
16255
|
-
}, this._dataFetchedPromise =
|
16255
|
+
}, this._dataFetchedPromise = $r(this.url, r).then((n) => n.text()).then((n) => this._parseWFSData(n)).catch((n) => (this.getLogger().info(`Could not send request for loading layer content (${String(n)})`), Promise.reject(n))), this._dataFetchedPromise;
|
16256
16256
|
}
|
16257
16257
|
return this.getLogger().warning("Could not load WFSLayer layer, no url is set"), Promise.reject(new Error("missing url in WFSLayer layer"));
|
16258
16258
|
}
|
@@ -16442,8 +16442,8 @@ De.registerClass(Lr.className, Lr);
|
|
16442
16442
|
function Na() {
|
16443
16443
|
return ue("ClippingObject");
|
16444
16444
|
}
|
16445
|
-
const
|
16446
|
-
class
|
16445
|
+
const an = Symbol("ClippingObjectGlobe");
|
16446
|
+
class on {
|
16447
16447
|
constructor(t = {}) {
|
16448
16448
|
h(this, "id", Be());
|
16449
16449
|
/**
|
@@ -16516,7 +16516,7 @@ class an {
|
|
16516
16516
|
if (e instanceof H) {
|
16517
16517
|
if (this.layerNames.includes(t.name))
|
16518
16518
|
if (t.active) {
|
16519
|
-
const s = e.getVisualizationsForLayer(t), r = s ? [...s].filter((n) => n instanceof
|
16519
|
+
const s = e.getVisualizationsForLayer(t), r = s ? [...s].filter((n) => n instanceof xn) : [];
|
16520
16520
|
if (r.length > 0)
|
16521
16521
|
r.forEach((n) => {
|
16522
16522
|
this.layerNames.includes(t.name) && t.active && (this.targets.set(t.name, n), this.targetsUpdated.raiseEvent());
|
@@ -16550,13 +16550,13 @@ class an {
|
|
16550
16550
|
}), s && this.targetsUpdated.raiseEvent();
|
16551
16551
|
}
|
16552
16552
|
} else
|
16553
|
-
this.layerNames.includes(t.name) && (t instanceof ws || t instanceof
|
16553
|
+
this.layerNames.includes(t.name) && (t instanceof ws || t instanceof Pi) && (t.active ? this._cachedLayers.add(t) : this._cachedLayers.has(t) && this._cachedLayers.delete(t));
|
16554
16554
|
}
|
16555
16555
|
handleMapChanged(t) {
|
16556
16556
|
if (t instanceof H) {
|
16557
16557
|
const { globe: e } = t.getScene();
|
16558
16558
|
let s = !1;
|
16559
|
-
this._terrain && !this.targets.has(
|
16559
|
+
this._terrain && !this.targets.has(an) ? (this.targets.set(an, e), s = !0) : !this._terrain && this.targets.has(an) && (this.targets.delete(an), s = !0), s && this.targetsUpdated.raiseEvent(), this._cachedLayers.size > 0 && (this._cachedLayers.forEach((r) => {
|
16560
16560
|
this.handleLayerChanged(r);
|
16561
16561
|
}), this._cachedLayers.clear());
|
16562
16562
|
}
|
@@ -16702,13 +16702,13 @@ function uS(i, t, e) {
|
|
16702
16702
|
}
|
16703
16703
|
}
|
16704
16704
|
function ch(i, t, e) {
|
16705
|
-
i instanceof
|
16705
|
+
i instanceof xn ? hS(i, t, e) : i instanceof of ? cS(i, t) : uS(i, t, e);
|
16706
16706
|
}
|
16707
16707
|
function Rw(i, t, e = !1, s = 25) {
|
16708
16708
|
S(i, [Number]), S(e, Boolean), S(s, Number);
|
16709
16709
|
let r;
|
16710
16710
|
if (e) {
|
16711
|
-
const a =
|
16711
|
+
const a = hn(i, -s, t.heading), o = hn(i, s, t.heading);
|
16712
16712
|
r = new Ut([
|
16713
16713
|
[a[0], a[1], i[2]],
|
16714
16714
|
[o[0], o[1], i[2]]
|
@@ -16717,7 +16717,7 @@ function Rw(i, t, e = !1, s = 25) {
|
|
16717
16717
|
r = new Dt([[]], "XYZ");
|
16718
16718
|
let a = 2 * Math.PI - Math.PI / 4;
|
16719
16719
|
const o = [...new Array(4)].map(() => {
|
16720
|
-
const l =
|
16720
|
+
const l = hn(i, s, a);
|
16721
16721
|
return a -= Math.PI / 2, [l[0], l[1], i[2]];
|
16722
16722
|
});
|
16723
16723
|
r.setCoordinates([o]);
|
@@ -16786,7 +16786,7 @@ class dS {
|
|
16786
16786
|
* to test.
|
16787
16787
|
*/
|
16788
16788
|
addClippingObject(t) {
|
16789
|
-
if (S(t,
|
16789
|
+
if (S(t, on), this.hasClippingObject(t))
|
16790
16790
|
throw new Error("ClippingObject already managed, remove it first");
|
16791
16791
|
this._activeMap instanceof H && t.handleMapChanged(this._activeMap), t.setLayerCollection(this._layerCollection), this._defaultClippingObjects.add(t), this._listenersMap.set(t, [
|
16792
16792
|
t.targetsUpdated.addEventListener(this._update.bind(this)),
|
@@ -16797,7 +16797,7 @@ class dS {
|
|
16797
16797
|
* Remove a default [ClippingObject] instance from the manager.
|
16798
16798
|
*/
|
16799
16799
|
removeClippingObject(t) {
|
16800
|
-
S(t,
|
16800
|
+
S(t, on), this._defaultClippingObjects.has(t) && (this._defaultClippingObjects.delete(t), this._listenersMap.get(t).forEach((e) => {
|
16801
16801
|
e();
|
16802
16802
|
}), this._listenersMap.delete(t), this._update());
|
16803
16803
|
}
|
@@ -16805,7 +16805,7 @@ class dS {
|
|
16805
16805
|
* Test if a is part of managers context
|
16806
16806
|
*/
|
16807
16807
|
hasClippingObject(t) {
|
16808
|
-
return S(t,
|
16808
|
+
return S(t, on), this._defaultClippingObjects.has(t) || !!(this._exclusiveClippingObjects && this._exclusiveClippingObjects.includes(t));
|
16809
16809
|
}
|
16810
16810
|
/**
|
16811
16811
|
* Sets an Array of [ClippingObjects] to be added to the managers context. Exclusive objects
|
@@ -16816,7 +16816,7 @@ class dS {
|
|
16816
16816
|
* @throws ClippingObjects is already managed
|
16817
16817
|
*/
|
16818
16818
|
setExclusiveClippingObjects(t, e) {
|
16819
|
-
if (S(t, [
|
16819
|
+
if (S(t, [on]), S(e, Function), t.find((s) => this._defaultClippingObjects.has(s)))
|
16820
16820
|
throw new Error("Some ClippingObjects are already managed, remove them first");
|
16821
16821
|
this._clearExclusiveClippingObjects(), this._exclusiveRemovedCb = e, this._exclusiveClippingObjects = t, this._exclusiveClippingObjects.forEach((s) => {
|
16822
16822
|
this._activeMap instanceof H && s.handleMapChanged(this._activeMap), s.setLayerCollection(this._layerCollection), this._listenersMap.set(s, [
|
@@ -16869,10 +16869,10 @@ class dS {
|
|
16869
16869
|
}), this._layerChangedListener(), this._listenersMap.clear(), this._targetsMap.clear(), this._defaultClippingObjects.clear(), this._exclusiveClippingObjects = null;
|
16870
16870
|
}
|
16871
16871
|
}
|
16872
|
-
var
|
16872
|
+
var Gi;
|
16873
16873
|
(function(i) {
|
16874
16874
|
i.CREATE = "create", i.EDIT_GEOMETRY = "editGeometry", i.EDIT_FEATURES = "editFeatures", i.SELECT = "selectFeatures";
|
16875
|
-
})(
|
16875
|
+
})(Gi = Gi || (Gi = {}));
|
16876
16876
|
function _u(i) {
|
16877
16877
|
const t = new rt({
|
16878
16878
|
projection: U.toJSON(),
|
@@ -17334,13 +17334,13 @@ function kw(i) {
|
|
17334
17334
|
function Su(i) {
|
17335
17335
|
const { loop: t, anchors: e } = i, s = [...e], r = t ? e.size + 1 : e.size, n = new Array(r), a = new Array(r), o = new Array(r);
|
17336
17336
|
if (s.forEach((d, u) => {
|
17337
|
-
if (n[u] = _.fromDegrees(d.coordinate[0], d.coordinate[1], d.coordinate[2]), a[u] =
|
17337
|
+
if (n[u] = _.fromDegrees(d.coordinate[0], d.coordinate[1], d.coordinate[2]), a[u] = wn.fromHeadingPitchRoll(ki.fromDegrees(d.heading, d.pitch, d.roll)), u > 0) {
|
17338
17338
|
let f = s[u - 1].duration;
|
17339
17339
|
f || (f = _.distance(n[u - 1], n[u]) / 300 || 1), o[u] = o[u - 1] + f;
|
17340
17340
|
} else
|
17341
17341
|
o[u] = 0;
|
17342
17342
|
}), t) {
|
17343
|
-
n[r - 1] = _.fromDegrees(s[0].coordinate[0], s[0].coordinate[1], s[0].coordinate[2]), a[r - 1] =
|
17343
|
+
n[r - 1] = _.fromDegrees(s[0].coordinate[0], s[0].coordinate[1], s[0].coordinate[2]), a[r - 1] = wn.fromHeadingPitchRoll(ki.fromDegrees(s[0].heading, s[0].pitch, s[0].roll));
|
17344
17344
|
let d = s[r - 2].duration;
|
17345
17345
|
d || (d = _.distance(n[r - 2], n[r - 1]) / 300 || 1), o[r - 1] = o[r - 2] + d;
|
17346
17346
|
}
|
@@ -17560,7 +17560,7 @@ class Ms extends Gt {
|
|
17560
17560
|
}
|
17561
17561
|
initialize() {
|
17562
17562
|
if (!this._readyPromise) {
|
17563
|
-
this._url ? this._readyPromise =
|
17563
|
+
this._url ? this._readyPromise = Vi(this._url).then((e) => {
|
17564
17564
|
const s = wS(e);
|
17565
17565
|
(s.anchors ?? []).map(dh).filter((r) => !!r).forEach((r) => this.anchors.add(r)), this._multiplier = s.multiplier ?? this._multiplier, this._loop = s.loop ?? this._loop, this._interpolation = s.interpolation ?? this._interpolation;
|
17566
17566
|
}) : this._readyPromise = Promise.resolve();
|
@@ -17648,7 +17648,7 @@ async function xS(i, t) {
|
|
17648
17648
|
if (o && l)
|
17649
17649
|
return {
|
17650
17650
|
destination: o.evaluate(M),
|
17651
|
-
orientation:
|
17651
|
+
orientation: ki.fromQuaternion(l.evaluate(M))
|
17652
17652
|
};
|
17653
17653
|
ue("FlightPlayer").error("cannot evaluate spline");
|
17654
17654
|
}, y = (M) => {
|
@@ -17791,7 +17791,7 @@ class OS extends Tt {
|
|
17791
17791
|
function Hs() {
|
17792
17792
|
return ue("init");
|
17793
17793
|
}
|
17794
|
-
const
|
17794
|
+
const Wn = /* @__PURE__ */ new Map(), bS = "_defaultDynamicModule";
|
17795
17795
|
class xu {
|
17796
17796
|
/**
|
17797
17797
|
* @param options
|
@@ -17832,7 +17832,7 @@ class xu {
|
|
17832
17832
|
h(this, "_featureProviderClassRegistry");
|
17833
17833
|
this._id = (t == null ? void 0 : t._id) || Be(), this.name = t.name ?? this._id, this.description = t.description, this.properties = t.properties, this._defaultDynamicModule = new rh({ _id: bS }), this._dynamicModule = this._defaultDynamicModule;
|
17834
17834
|
const e = () => this._dynamicModule._id;
|
17835
|
-
this._dynamicModuleIdChanged = new I(), this._locale = vS(), this._localeChanged = new I(), this._mapClassRegistry = new Zt(Ps), this._maps = Jt(new Vo(), e, void 0, D_.bind(null, this), Ei), this._layerClassRegistry = new Zt(De), this._layers = Jt(this._maps.layerCollection, e, R_.bind(null, this), F_.bind(null, this), Ye, G_), this._layers.locale = this.locale, this._obliqueCollections = Jt(new Tt(), e, void 0, (s) => new $i(s), $i), this._viewpoints = Jt(new Tt(), e, void 0, A_, mt), this._styleClassRegistry = new Zt(Hr), this._styles = Jt(new Tt(), e, void 0, (s) => ii(this._styleClassRegistry, s), Wt), this._modules = new bi("_id"), this._modules.add(this._dynamicModule), this._hiddenObjects = SS(e, this._layers.globalHider), this._flights = Jt(new OS(this), e, void 0, (s) => new Ms(s)), this._categoryClassRegistry = new Zt(Cc), this._categories = new Ov(this), this._destroyed = new I(), this._moduleMutationPromise = Promise.resolve(), this._categoryItemClassRegistry = new Zt(new
|
17835
|
+
this._dynamicModuleIdChanged = new I(), this._locale = vS(), this._localeChanged = new I(), this._mapClassRegistry = new Zt(Ps), this._maps = Jt(new Vo(), e, void 0, D_.bind(null, this), Ei), this._layerClassRegistry = new Zt(De), this._layers = Jt(this._maps.layerCollection, e, R_.bind(null, this), F_.bind(null, this), Ye, G_), this._layers.locale = this.locale, this._obliqueCollections = Jt(new Tt(), e, void 0, (s) => new $i(s), $i), this._viewpoints = Jt(new Tt(), e, void 0, A_, mt), this._styleClassRegistry = new Zt(Hr), this._styles = Jt(new Tt(), e, void 0, (s) => ii(this._styleClassRegistry, s), Wt), this._modules = new bi("_id"), this._modules.add(this._dynamicModule), this._hiddenObjects = SS(e, this._layers.globalHider), this._flights = Jt(new OS(this), e, void 0, (s) => new Ms(s)), this._categoryClassRegistry = new Zt(Cc), this._categories = new Ov(this), this._destroyed = new I(), this._moduleMutationPromise = Promise.resolve(), this._categoryItemClassRegistry = new Zt(new Ii()), this._tileProviderClassRegistry = new Zt(Es), this._featureProviderClassRegistry = new Zt(Oo), Wn.set(this._id, this);
|
17836
17836
|
}
|
17837
17837
|
get id() {
|
17838
17838
|
return this._id;
|
@@ -18003,21 +18003,21 @@ class xu {
|
|
18003
18003
|
get() {
|
18004
18004
|
throw new Error("VcsApp was destroyed");
|
18005
18005
|
}
|
18006
|
-
}),
|
18006
|
+
}), Wn.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();
|
18007
18007
|
}
|
18008
18008
|
}
|
18009
18009
|
function Vw(i) {
|
18010
|
-
return
|
18010
|
+
return Wn.get(i);
|
18011
18011
|
}
|
18012
18012
|
window.vcs = window.vcs || {};
|
18013
|
-
window.vcs.apps =
|
18013
|
+
window.vcs.apps = Wn;
|
18014
18014
|
function Ou(i) {
|
18015
18015
|
if (!i)
|
18016
18016
|
return !1;
|
18017
18017
|
const t = i.getType();
|
18018
18018
|
return t === "LineString" ? No(i) : t === "Polygon" ? Vc(i) : t === "Point" ? tu(i) : t === "Circle" ? Uc(i) : !1;
|
18019
18019
|
}
|
18020
|
-
const
|
18020
|
+
const Ur = Symbol("Vertex"), $w = Symbol("VertexIndex"), Te = Symbol("Handler"), oi = Symbol("MouseOver"), ES = `<svg xmlns="http://www.w3.org/2000/svg" width="19" height="19" viewBox="0 0 19 19">
|
18021
18021
|
<g id="pen">
|
18022
18022
|
<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)"/>
|
18023
18023
|
<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)"/>
|
@@ -18047,7 +18047,7 @@ class PS extends ce {
|
|
18047
18047
|
}
|
18048
18048
|
pipe(e) {
|
18049
18049
|
var s;
|
18050
|
-
return e.feature && e.feature[
|
18050
|
+
return e.feature && e.feature[Ur] ? this._currentVertex = e.feature : this._currentVertex = null, !this.cursorStyle && ((s = e.map) != null && s.target) && (this.cursorStyle = e.map.target.style), this._evaluate(e.key), Promise.resolve(e);
|
18051
18051
|
}
|
18052
18052
|
modifierChanged(e) {
|
18053
18053
|
this._evaluate(e);
|
@@ -18086,7 +18086,7 @@ function IS(i) {
|
|
18086
18086
|
return t;
|
18087
18087
|
}
|
18088
18088
|
function Bw(i, t, e, s) {
|
18089
|
-
S(i, xu), S(t, rt), S(e,
|
18089
|
+
S(i, xu), S(t, rt), S(e, On(et));
|
18090
18090
|
const { interactionChain: r, removed: n, destroy: a } = ha(i.maps.eventHandler), o = new I(), l = new I(), c = new I();
|
18091
18091
|
let d = !1, u = null, f = null, g = !1, m = s;
|
18092
18092
|
const p = vu(i), y = () => {
|
@@ -18141,7 +18141,7 @@ function Bw(i, t, e, s) {
|
|
18141
18141
|
d = !0, i.maps.target && (i.maps.target.style.cursor = ht.auto), W(), L(), u && u.finish(), O(), a(), w(), v(), p.reset(), c.raiseEvent(), c.destroy(), o.destroy();
|
18142
18142
|
};
|
18143
18143
|
return n.addEventListener(se), {
|
18144
|
-
type:
|
18144
|
+
type: Gi.CREATE,
|
18145
18145
|
geometryType: e,
|
18146
18146
|
get featureAltitudeMode() {
|
18147
18147
|
return m;
|
@@ -18167,19 +18167,19 @@ var _e;
|
|
18167
18167
|
i.TRANSLATE = "translate", i.ROTATE = "rotate", i.SCALE = "scale", i.EXTRUDE = "extrude";
|
18168
18168
|
})(_e = _e || (_e = {}));
|
18169
18169
|
const ca = q.GRAY.withAlpha(0.5);
|
18170
|
-
function
|
18170
|
+
function Xn(i) {
|
18171
18171
|
return i === b.X || i === b.Y || i === b.Z;
|
18172
18172
|
}
|
18173
|
-
function
|
18173
|
+
function Yn(i) {
|
18174
18174
|
return i === b.XY || i === b.XZ || i === b.YZ;
|
18175
18175
|
}
|
18176
|
-
function
|
18176
|
+
function _n(i) {
|
18177
18177
|
if (i[Te]) {
|
18178
18178
|
const t = new At();
|
18179
18179
|
t[Te] = i[Te], i.olFeature = t;
|
18180
18180
|
}
|
18181
18181
|
}
|
18182
|
-
function
|
18182
|
+
function vn(i) {
|
18183
18183
|
return {
|
18184
18184
|
appearance: new Va({
|
18185
18185
|
material: Ft.fromType("Color", {
|
@@ -18195,13 +18195,13 @@ function _n(i) {
|
|
18195
18195
|
}
|
18196
18196
|
function $o(i) {
|
18197
18197
|
return {
|
18198
|
-
appearance: new
|
18198
|
+
appearance: new Mn({
|
18199
18199
|
flat: !0,
|
18200
18200
|
material: Ft.fromType("Color", {
|
18201
18201
|
color: i
|
18202
18202
|
})
|
18203
18203
|
}),
|
18204
|
-
depthFailAppearance: new
|
18204
|
+
depthFailAppearance: new Mn({
|
18205
18205
|
flat: !0,
|
18206
18206
|
material: Ft.fromType("Color", {
|
18207
18207
|
color: q.divideByScalar(i, 1.5, new q()).withAlpha(0.2)
|
@@ -18235,7 +18235,7 @@ function Da(i, t, e = !1) {
|
|
18235
18235
|
get() {
|
18236
18236
|
return a;
|
18237
18237
|
}
|
18238
|
-
}), e || (n[Te] = i),
|
18238
|
+
}), e || (n[Te] = i), _n(n), n;
|
18239
18239
|
}
|
18240
18240
|
function LS(i) {
|
18241
18241
|
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);
|
@@ -18252,31 +18252,31 @@ function TS(i, t) {
|
|
18252
18252
|
asynchronous: !1,
|
18253
18253
|
geometryInstances: [
|
18254
18254
|
new ct({
|
18255
|
-
geometry: new
|
18255
|
+
geometry: new Ri({
|
18256
18256
|
positions: _.fromDegreesArrayHeights(gh(s, b.X).flat()),
|
18257
18257
|
width: 1,
|
18258
|
-
arcType:
|
18258
|
+
arcType: Cn.RHUMB
|
18259
18259
|
})
|
18260
18260
|
})
|
18261
18261
|
],
|
18262
|
-
...
|
18262
|
+
...vn(q.RED.withAlpha(0.5))
|
18263
18263
|
})), (i === b.Y || i === b.XY || i === b.YZ) && e.push(new pt({
|
18264
18264
|
asynchronous: !1,
|
18265
18265
|
geometryInstances: [
|
18266
18266
|
new ct({
|
18267
|
-
geometry: new
|
18267
|
+
geometry: new Ri({
|
18268
18268
|
positions: _.fromDegreesArrayHeights(gh(s, b.Y).flat()),
|
18269
18269
|
width: 1,
|
18270
|
-
arcType:
|
18270
|
+
arcType: Cn.RHUMB
|
18271
18271
|
})
|
18272
18272
|
})
|
18273
18273
|
],
|
18274
|
-
...
|
18274
|
+
...vn(q.GREEN.withAlpha(0.5))
|
18275
18275
|
})), (i === b.Z || i === b.XZ || i === b.YZ) && e.push(new pt({
|
18276
18276
|
asynchronous: !1,
|
18277
18277
|
geometryInstances: [
|
18278
18278
|
new ct({
|
18279
|
-
geometry: new
|
18279
|
+
geometry: new Ri({
|
18280
18280
|
positions: _.fromDegreesArrayHeights([
|
18281
18281
|
s[0],
|
18282
18282
|
s[1],
|
@@ -18292,7 +18292,7 @@ function TS(i, t) {
|
|
18292
18292
|
})
|
18293
18293
|
})
|
18294
18294
|
],
|
18295
|
-
...
|
18295
|
+
...vn(q.BLUE.withAlpha(0.5))
|
18296
18296
|
}));
|
18297
18297
|
const r = new Ci();
|
18298
18298
|
return e.forEach((n) => {
|
@@ -18342,17 +18342,17 @@ function rs(i, t, e, s = !1) {
|
|
18342
18342
|
asynchronous: !1,
|
18343
18343
|
geometryInstances: [
|
18344
18344
|
new ct({
|
18345
|
-
geometry: new
|
18345
|
+
geometry: new Ri({
|
18346
18346
|
positions: [
|
18347
18347
|
new _(N.EPSILON8, N.EPSILON8, 0),
|
18348
18348
|
r
|
18349
18349
|
],
|
18350
18350
|
width: 5,
|
18351
|
-
arcType:
|
18351
|
+
arcType: Cn.NONE
|
18352
18352
|
})
|
18353
18353
|
})
|
18354
18354
|
],
|
18355
|
-
...
|
18355
|
+
...vn(n),
|
18356
18356
|
modelMatrix: t
|
18357
18357
|
}),
|
18358
18358
|
DS(o, n, t, a, !s)
|
@@ -18397,9 +18397,9 @@ function ns(i, t, e = !1) {
|
|
18397
18397
|
function AS(i) {
|
18398
18398
|
let t;
|
18399
18399
|
return (e, s, r) => {
|
18400
|
-
t && (i.remove(t), t = void 0), e !== b.NONE && (t = new Ci(),
|
18400
|
+
t && (i.remove(t), t = void 0), e !== b.NONE && (t = new Ci(), Xn(e) ? rs(e, s, r, !0).forEach((n) => {
|
18401
18401
|
t.add(n);
|
18402
|
-
}) :
|
18402
|
+
}) : Yn(e) && t.add(ns(e, s, !0)), i.add(t));
|
18403
18403
|
};
|
18404
18404
|
}
|
18405
18405
|
function FS(i, t) {
|
@@ -18411,11 +18411,11 @@ function FS(i, t) {
|
|
18411
18411
|
ns(b.XY, s)
|
18412
18412
|
];
|
18413
18413
|
t === _e.TRANSLATE && (r.push(...rs(b.Z, s, t), ns(b.XZ, s), ns(b.YZ, s)), g.push(...r)), g.forEach((m) => {
|
18414
|
-
|
18414
|
+
_n(m), e.add(m);
|
18415
18415
|
});
|
18416
18416
|
} else
|
18417
18417
|
t === _e.ROTATE ? (e.add(Da(b.X, s, !0)), e.add(Da(b.Y, s, !0)), e.add(Da(b.Z, s))) : t === _e.EXTRUDE && rs(b.Z, s, t).forEach((g) => {
|
18418
|
-
|
18418
|
+
_n(g), e.add(g);
|
18419
18419
|
});
|
18420
18420
|
const n = i.getScene();
|
18421
18421
|
let a = [0, 0, 0], o = 1;
|
@@ -18453,11 +18453,11 @@ function FS(i, t) {
|
|
18453
18453
|
g !== f && (f = g, r.forEach((m) => {
|
18454
18454
|
e.remove(m);
|
18455
18455
|
}), r.splice(0), t === _e.TRANSLATE && r.push(...rs(b.Z, s, t, g), ns(b.XZ, s, g), ns(b.YZ, s, g)), r.forEach((m) => {
|
18456
|
-
|
18456
|
+
_n(m), e.add(m);
|
18457
18457
|
}));
|
18458
18458
|
},
|
18459
18459
|
setCenter(g) {
|
18460
|
-
a = g.slice(), Mi.headingPitchRollToFixedFrame(Ct(a), new
|
18460
|
+
a = g.slice(), Mi.headingPitchRollToFixedFrame(Ct(a), new ki(0, 0, 0), void 0, void 0, s), F.multiplyByUniformScale(s, o, s);
|
18461
18461
|
for (let m = 0; m < e.length; m++)
|
18462
18462
|
e.get(m).modelMatrix = s;
|
18463
18463
|
},
|
@@ -18507,7 +18507,7 @@ function RS(i, t) {
|
|
18507
18507
|
}
|
18508
18508
|
a.forEach((o) => {
|
18509
18509
|
const l = o.getGeometry();
|
18510
|
-
l[ze] = !0, o[
|
18510
|
+
l[ze] = !0, o[sa] = !0;
|
18511
18511
|
}), e = i.addFeatures(a);
|
18512
18512
|
}
|
18513
18513
|
};
|
@@ -18563,7 +18563,7 @@ function GS(i) {
|
|
18563
18563
|
return (s, r, n, a) => {
|
18564
18564
|
if (t && (i.removeFeaturesById(t), t = void 0), s !== b.NONE) {
|
18565
18565
|
let o = [];
|
18566
|
-
|
18566
|
+
Xn(s) ? o = lo(s, r, e) : Yn(s) && (o = [bu(e)]), o.forEach((l) => {
|
18567
18567
|
l.getGeometry().applyTransform((c, d) => {
|
18568
18568
|
const u = c.length;
|
18569
18569
|
for (let f = 0; f < u; f += 3)
|
@@ -18589,7 +18589,7 @@ function kS(i, t, e) {
|
|
18589
18589
|
stroke: new je({ color: q.BLUE.toCssColorString(), width: 2 })
|
18590
18590
|
}))), n.forEach((u) => {
|
18591
18591
|
const f = u.getGeometry();
|
18592
|
-
f[ze] = !0, u[
|
18592
|
+
f[ze] = !0, u[sa] = !0, u[Te] = u.get("axis");
|
18593
18593
|
});
|
18594
18594
|
const a = i.olMap.on("postrender", () => {
|
18595
18595
|
if (!(s[0] === 0 && s[1] === 0 && s[2] === 0)) {
|
@@ -18733,7 +18733,7 @@ class Eu extends ce {
|
|
18733
18733
|
this.setActive();
|
18734
18734
|
}
|
18735
18735
|
pipe(e) {
|
18736
|
-
return this.reset(), e.feature && (e.feature[
|
18736
|
+
return this.reset(), e.feature && (e.feature[Ur] || e.feature[Te]) && (e.map.className === "CesiumMap" ? this._clear = $S(e.map) : this._clear = VS(e.map)), Promise.resolve(e);
|
18737
18737
|
}
|
18738
18738
|
reset() {
|
18739
18739
|
this._clear(), this._clear = () => {
|
@@ -18766,7 +18766,7 @@ function Ds(i, t) {
|
|
18766
18766
|
geometry: e,
|
18767
18767
|
...t
|
18768
18768
|
});
|
18769
|
-
return s[
|
18769
|
+
return s[Ur] = !0, s[sa] = !0, s[st] = !0, s;
|
18770
18770
|
}
|
18771
18771
|
let Se = new z(), Ht = new z(), Aa = new z(), Qe = new _(), Ee = new _(), Fa = new _();
|
18772
18772
|
function yh(i, t, e) {
|
@@ -18845,7 +18845,7 @@ class XS extends ce {
|
|
18845
18845
|
this.translated.raiseEvent(this._getTranslateEvent(e.positionOrPixel, e.windowPosition)), e.type === E.DRAGEND && (this._getTranslateEvent = null, this._transformationHandler.showAxis = b.NONE);
|
18846
18846
|
else if (e.type === E.DRAGSTART && ((s = e == null ? void 0 : e.feature) != null && s[Te])) {
|
18847
18847
|
const r = e.feature[Te];
|
18848
|
-
r !== b.NONE && (this._transformationHandler.showAxis = r, e.map instanceof H ?
|
18848
|
+
r !== b.NONE && (this._transformationHandler.showAxis = r, e.map instanceof H ? Xn(r) ? this._getTranslateEvent = this._dragAlongAxis3D(r, e) : Yn(r) && (this._getTranslateEvent = this._dragAlongPlane3D(r, e)) : Xn(r) ? this._getTranslateEvent = this._dragAlongAxis2D(r, e) : Yn(r) && (this._getTranslateEvent = this._dragAlongPlane2D(r, e)));
|
18849
18849
|
}
|
18850
18850
|
return Promise.resolve(e);
|
18851
18851
|
}
|
@@ -18855,10 +18855,10 @@ class XS extends ce {
|
|
18855
18855
|
const n = Ct(this._transformationHandler.center);
|
18856
18856
|
let a = te.clone(te.ORIGIN_XY_PLANE);
|
18857
18857
|
a = te.transform(a, Mi.eastNorthUpToFixedFrame(n), a);
|
18858
|
-
let o = jt(a, r.camera, s.windowPosition), l = k.wgs84ToMercator(
|
18858
|
+
let o = jt(a, r.camera, s.windowPosition), l = k.wgs84ToMercator(Ti(o));
|
18859
18859
|
return (c, d) => {
|
18860
18860
|
o = jt(a, r.camera, d);
|
18861
|
-
const u = k.wgs84ToMercator(
|
18861
|
+
const u = k.wgs84ToMercator(Ti(o)), f = e === b.X ? [u[0] - l[0], 0, 0] : [0, u[1] - l[1], 0];
|
18862
18862
|
return l = u, f;
|
18863
18863
|
};
|
18864
18864
|
} else {
|
@@ -18874,10 +18874,10 @@ class XS extends ce {
|
|
18874
18874
|
const r = s.map.getScene(), n = Ct(this._transformationHandler.center);
|
18875
18875
|
let a;
|
18876
18876
|
e === b.YZ ? a = te.clone(te.ORIGIN_YZ_PLANE) : e === b.XZ ? a = te.clone(te.ORIGIN_ZX_PLANE) : a = te.clone(te.ORIGIN_XY_PLANE), a = te.transform(a, Mi.eastNorthUpToFixedFrame(n), a);
|
18877
|
-
let o = jt(a, r.camera, s.windowPosition), l = k.wgs84ToMercator(
|
18877
|
+
let o = jt(a, r.camera, s.windowPosition), l = k.wgs84ToMercator(Ti(o));
|
18878
18878
|
return (c, d) => {
|
18879
18879
|
o = jt(a, r.camera, d);
|
18880
|
-
const u = k.wgs84ToMercator(
|
18880
|
+
const u = k.wgs84ToMercator(Ti(o)), f = [
|
18881
18881
|
u[0] - l[0],
|
18882
18882
|
u[1] - l[1],
|
18883
18883
|
u[2] - l[2]
|
@@ -18944,7 +18944,7 @@ class ZS extends ce {
|
|
18944
18944
|
const r = s.map.getScene(), n = Ct(this._transformationHandler.center);
|
18945
18945
|
let a;
|
18946
18946
|
return e === b.X ? a = te.clone(te.ORIGIN_YZ_PLANE) : e === b.Y ? a = te.clone(te.ORIGIN_ZX_PLANE) : a = te.clone(te.ORIGIN_XY_PLANE), a = te.transform(a, Mi.eastNorthUpToFixedFrame(n), a), _h((o, l) => {
|
18947
|
-
const c = jt(a, r.camera, l), d = k.wgs84ToMercator(
|
18947
|
+
const c = jt(a, r.camera, l), d = k.wgs84ToMercator(Ti(c)), u = this._transformationHandler.center;
|
18948
18948
|
return d[0] = u[0] - d[0], d[1] = u[1] - d[1], d[2] = u[2] - d[2], e === b.Z ? z.fromArray(d) : e === b.X ? new z(d[1], d[2]) : new z(d[0], d[2]);
|
18949
18949
|
}, s, e);
|
18950
18950
|
}
|
@@ -19000,7 +19000,7 @@ class KS extends ce {
|
|
19000
19000
|
let a = te.clone(te.ORIGIN_XY_PLANE);
|
19001
19001
|
return a = te.transform(a, Mi.eastNorthUpToFixedFrame(n), a), vh((o, l) => {
|
19002
19002
|
const c = jt(a, r.camera, l);
|
19003
|
-
return k.wgs84ToMercator(
|
19003
|
+
return k.wgs84ToMercator(Ti(c));
|
19004
19004
|
}, s, this._transformationHandler, e);
|
19005
19005
|
}
|
19006
19006
|
_dragAlongPlane2D(e, s) {
|
@@ -19118,11 +19118,11 @@ function Xw(i, t, e, s = _e.TRANSLATE) {
|
|
19118
19118
|
const w = ($, Z, fe) => {
|
19119
19119
|
var Re;
|
19120
19120
|
(Re = v == null ? void 0 : v.translate) == null || Re.call(v, $, Z, fe), n.forEach((As) => {
|
19121
|
-
(As[xt] ?? As.getGeometry()).applyTransform((
|
19122
|
-
const Du =
|
19121
|
+
(As[xt] ?? As.getGeometry()).applyTransform((Wr, Xr) => {
|
19122
|
+
const Du = Wr.length;
|
19123
19123
|
for (let di = 0; di < Du; di += 3)
|
19124
|
-
|
19125
|
-
return
|
19124
|
+
Xr[di] = Wr[di] + $, Xr[di + 1] = Wr[di + 1] + Z, Xr[di + 2] = Wr[di + 2] + fe;
|
19125
|
+
return Xr;
|
19126
19126
|
});
|
19127
19127
|
});
|
19128
19128
|
}, C = ($) => {
|
@@ -19198,7 +19198,7 @@ function Xw(i, t, e, s = _e.TRANSLATE) {
|
|
19198
19198
|
y(), f(), G(), se(), l(), re(B), n.forEach(($) => Sh($, a)), a.clear(), i.layers.remove(c), P.destroy(), r.raiseEvent(), r.destroy();
|
19199
19199
|
};
|
19200
19200
|
return u.addEventListener(kt), {
|
19201
|
-
type:
|
19201
|
+
type: Gi.EDIT_FEATURES,
|
19202
19202
|
stopped: r,
|
19203
19203
|
stop: kt,
|
19204
19204
|
get mode() {
|
@@ -19217,7 +19217,7 @@ function Xw(i, t, e, s = _e.TRANSLATE) {
|
|
19217
19217
|
}
|
19218
19218
|
};
|
19219
19219
|
}
|
19220
|
-
class
|
19220
|
+
class qr extends ce {
|
19221
19221
|
constructor(e) {
|
19222
19222
|
super(E.DRAGEVENTS);
|
19223
19223
|
h(this, "vertexChanged", new I());
|
@@ -19226,7 +19226,7 @@ class Ur extends ce {
|
|
19226
19226
|
this._feature = e, this.setActive();
|
19227
19227
|
}
|
19228
19228
|
pipe(e) {
|
19229
|
-
return this._vertex ? (this._vertex.getGeometry().setCoordinates(e.positionOrPixel), this.vertexChanged.raiseEvent(this._vertex), e.type & E.DRAGEND && (this._vertex.unset("olcs_allowPicking"), this._feature.unset("olcs_allowPicking"), this._vertex.setStyle(void 0), this._vertex = null), e.stopPropagation = !0) : e.type & E.DRAGSTART && e.feature && e.feature[
|
19229
|
+
return this._vertex ? (this._vertex.getGeometry().setCoordinates(e.positionOrPixel), this.vertexChanged.raiseEvent(this._vertex), e.type & E.DRAGEND && (this._vertex.unset("olcs_allowPicking"), this._feature.unset("olcs_allowPicking"), this._vertex.setStyle(void 0), this._vertex = null), e.stopPropagation = !0) : e.type & E.DRAGSTART && e.feature && e.feature[Ur] && (this._vertex = e.feature, this._vertex.set("olcs_allowPicking", !1), this._feature.set("olcs_allowPicking", !1), this._vertex.setStyle(y_), e.stopPropagation = !0), Promise.resolve(e);
|
19230
19230
|
}
|
19231
19231
|
destroy() {
|
19232
19232
|
this.vertexChanged.destroy(), super.destroy();
|
@@ -19239,7 +19239,7 @@ class Iu extends ce {
|
|
19239
19239
|
this.setActive();
|
19240
19240
|
}
|
19241
19241
|
pipe(e) {
|
19242
|
-
return e.feature && e.feature[
|
19242
|
+
return e.feature && e.feature[Ur] && this.vertexRemoved.raiseEvent(e.feature), Promise.resolve(e);
|
19243
19243
|
}
|
19244
19244
|
destroy() {
|
19245
19245
|
this.vertexRemoved.destroy(), super.destroy();
|
@@ -19287,7 +19287,7 @@ function iw(i, t) {
|
|
19287
19287
|
t.addFeatures(r);
|
19288
19288
|
const n = () => {
|
19289
19289
|
e.setCoordinates(r.map((d) => d.getGeometry().getCoordinates()));
|
19290
|
-
}, a = new
|
19290
|
+
}, a = new qr(i);
|
19291
19291
|
a.vertexChanged.addEventListener(n);
|
19292
19292
|
const o = new Lu(i, e);
|
19293
19293
|
o.vertexInserted.addEventListener(({ vertex: d, index: u }) => {
|
@@ -19314,7 +19314,7 @@ function iw(i, t) {
|
|
19314
19314
|
function sw(i, t) {
|
19315
19315
|
const e = i[xt] ?? i.getGeometry(), s = Ns(i), r = e.getCoordinates().map((c) => Ds(c, s));
|
19316
19316
|
t.addFeatures(r);
|
19317
|
-
const n = new
|
19317
|
+
const n = new qr(i);
|
19318
19318
|
let a = !1;
|
19319
19319
|
n.vertexChanged.addEventListener((c) => {
|
19320
19320
|
if (a = !0, r.indexOf(c) === 1) {
|
@@ -19342,9 +19342,9 @@ function rw(i, t) {
|
|
19342
19342
|
const e = i[xt] ?? i.getGeometry(), s = Ns(i), r = e.getCoordinates()[0].map((c) => Ds(c, s));
|
19343
19343
|
t.addFeatures(r);
|
19344
19344
|
let n = !1;
|
19345
|
-
const a = new
|
19345
|
+
const a = new qr(i);
|
19346
19346
|
a.vertexChanged.addEventListener((c) => {
|
19347
|
-
const d = r.indexOf(c), u =
|
19347
|
+
const d = r.indexOf(c), u = gn(d + 2, 4), f = gn(d + 1, 4), g = gn(d - 1, 4), m = r[u].getGeometry().getCoordinates(), p = c.getGeometry().getCoordinates();
|
19348
19348
|
let y = !1;
|
19349
19349
|
m[0] === p[0] && (p[0] += 1e-8, y = !0), m[1] === p[1] && (p[1] += 1e-8, y = !0), y && c.getGeometry().setCoordinates(p);
|
19350
19350
|
const v = (w) => {
|
@@ -19375,7 +19375,7 @@ function nw(i, t) {
|
|
19375
19375
|
s.setCoordinates(u), e.setCoordinates([
|
19376
19376
|
n.map((f) => f.getGeometry().getCoordinates())
|
19377
19377
|
]);
|
19378
|
-
}, o = new
|
19378
|
+
}, o = new qr(i);
|
19379
19379
|
o.vertexChanged.addEventListener(a);
|
19380
19380
|
const l = new Lu(i, s);
|
19381
19381
|
l.vertexInserted.addEventListener(({ vertex: u, index: f }) => {
|
@@ -19402,7 +19402,7 @@ function nw(i, t) {
|
|
19402
19402
|
function aw(i, t, e) {
|
19403
19403
|
const s = i[xt] ?? i.getGeometry(), r = Ns(i), n = Ds(s.getCoordinates(), r), a = [i.getId()];
|
19404
19404
|
e.featureVisibility.hideObjects(a), n[st] = !0, t.addFeatures([n]);
|
19405
|
-
const o = new
|
19405
|
+
const o = new qr(i);
|
19406
19406
|
let l = !1;
|
19407
19407
|
o.vertexChanged.addEventListener(() => {
|
19408
19408
|
l = !0, s.setCoordinates(n.getGeometry().getCoordinates()), l = !1;
|
@@ -19456,7 +19456,7 @@ function Yw(i, t, e) {
|
|
19456
19456
|
i.layers.remove(a), y && re(y), C(), o.reset(), l.reset(), p(), n(), m(), f.reset(), c.raiseEvent(), c.destroy();
|
19457
19457
|
};
|
19458
19458
|
return r.addEventListener(O), {
|
19459
|
-
type:
|
19459
|
+
type: Gi.EDIT_GEOMETRY,
|
19460
19460
|
stopped: c,
|
19461
19461
|
stop: O,
|
19462
19462
|
setFeature(M) {
|
@@ -19694,7 +19694,7 @@ function Zw(i, t, e, s = $t.MULTI, r = hw()) {
|
|
19694
19694
|
v(), m(), p.destroy(), M(), C(), u && (u.switchEnabled = !0), n.raiseEvent(), n.destroy(), a.destroy(), o.destroy();
|
19695
19695
|
};
|
19696
19696
|
return g.addEventListener(P), {
|
19697
|
-
type:
|
19697
|
+
type: Gi.SELECT,
|
19698
19698
|
stopped: n,
|
19699
19699
|
stop: P,
|
19700
19700
|
setCurrentFeatures(L) {
|
@@ -19710,7 +19710,7 @@ function Zw(i, t, e, s = $t.MULTI, r = hw()) {
|
|
19710
19710
|
return d;
|
19711
19711
|
},
|
19712
19712
|
setMode(L) {
|
19713
|
-
S(L,
|
19713
|
+
S(L, On($t)), w(L), a.raiseEvent(d);
|
19714
19714
|
},
|
19715
19715
|
modeChanged: a,
|
19716
19716
|
featuresChanged: o,
|
@@ -19719,10 +19719,10 @@ function Zw(i, t, e, s = $t.MULTI, r = hw()) {
|
|
19719
19719
|
}
|
19720
19720
|
};
|
19721
19721
|
}
|
19722
|
-
const
|
19722
|
+
const ln = Symbol("flightVisualization");
|
19723
19723
|
async function Kw(i, t) {
|
19724
|
-
if (S(i, Ms), i[
|
19725
|
-
return i[
|
19724
|
+
if (S(i, Ms), i[ln])
|
19725
|
+
return i[ln];
|
19726
19726
|
await i.initialize();
|
19727
19727
|
let e = ps();
|
19728
19728
|
const s = new Ci();
|
@@ -19756,7 +19756,7 @@ async function Kw(i, t) {
|
|
19756
19756
|
const p = new Bh(n);
|
19757
19757
|
p.frustum.far = 200, p.frustum.near = 10, p.setView({
|
19758
19758
|
destination: _.fromDegrees(m.coordinate[0], m.coordinate[1], m.coordinate[2]),
|
19759
|
-
orientation:
|
19759
|
+
orientation: ki.fromDegrees(m.heading, m.pitch, m.roll)
|
19760
19760
|
}), s.add(new T_({ camera: p, allowPicking: !1 }));
|
19761
19761
|
}
|
19762
19762
|
f.push(new ae({
|
@@ -19784,7 +19784,7 @@ async function Kw(i, t) {
|
|
19784
19784
|
], c = new I(), d = () => {
|
19785
19785
|
r.deactivate(), t.layers.remove(r), r.destroy(), n && n.primitives.contains(s) && n.primitives.remove(s), l.forEach((f) => {
|
19786
19786
|
f();
|
19787
|
-
}), c.raiseEvent(), c.destroy(), delete i[
|
19787
|
+
}), c.raiseEvent(), c.destroy(), delete i[ln];
|
19788
19788
|
};
|
19789
19789
|
l.push(t.flights.removed.addEventListener((f) => {
|
19790
19790
|
f === i && d();
|
@@ -19816,7 +19816,7 @@ async function Kw(i, t) {
|
|
19816
19816
|
f && await ((g = t.maps.activeMap) == null ? void 0 : g.gotoViewpoint(f));
|
19817
19817
|
}
|
19818
19818
|
};
|
19819
|
-
return i[
|
19819
|
+
return i[ln] = u, u;
|
19820
19820
|
}
|
19821
19821
|
export {
|
19822
19822
|
Ss as AbstractFeatureProvider,
|
@@ -19824,7 +19824,7 @@ export {
|
|
19824
19824
|
Us as AltitudeModeCesium,
|
19825
19825
|
Do as ArcStyle,
|
19826
19826
|
Je as ArrowEnd,
|
19827
|
-
|
19827
|
+
aa as ArrowStyle,
|
19828
19828
|
b as AxisAndPlanes,
|
19829
19829
|
yr as BaseOLMap,
|
19830
19830
|
Sr as CameraLimiter,
|
@@ -19832,11 +19832,11 @@ export {
|
|
19832
19832
|
vi as Category,
|
19833
19833
|
Ov as CategoryCollection,
|
19834
19834
|
H as CesiumMap,
|
19835
|
-
|
19836
|
-
|
19837
|
-
|
19835
|
+
Ai as CesiumTilesetCesiumImpl,
|
19836
|
+
Pi as CesiumTilesetLayer,
|
19837
|
+
Ii as ClassRegistry,
|
19838
19838
|
qs as ClassificationTypeCesium,
|
19839
|
-
|
19839
|
+
on as ClippingObject,
|
19840
19840
|
dS as ClippingObjectManager,
|
19841
19841
|
Tw as ClusterContext,
|
19842
19842
|
Tt as Collection,
|
@@ -19846,9 +19846,9 @@ export {
|
|
19846
19846
|
fS as CreateLineStringInteraction,
|
19847
19847
|
pS as CreatePointInteraction,
|
19848
19848
|
yS as CreatePolygonInteraction,
|
19849
|
-
|
19849
|
+
Vn as CzmlLayer,
|
19850
19850
|
Gv as DataSourceCesiumImpl,
|
19851
|
-
|
19851
|
+
jn as DataSourceLayer,
|
19852
19852
|
ge as DataState,
|
19853
19853
|
Ue as DeclarativeStyleItem,
|
19854
19854
|
fv as DefaultObliqueCollection,
|
@@ -19866,7 +19866,7 @@ export {
|
|
19866
19866
|
Dv as FeatureProviderInteraction,
|
19867
19867
|
ws as FeatureStoreLayer,
|
19868
19868
|
Zv as FeatureStoreLayerChanges,
|
19869
|
-
|
19869
|
+
ia as FeatureVisibility,
|
19870
19870
|
ne as FeatureVisibilityAction,
|
19871
19871
|
OS as FlightCollection,
|
19872
19872
|
Ms as FlightInstance,
|
@@ -19880,9 +19880,9 @@ export {
|
|
19880
19880
|
ai as LayerCollection,
|
19881
19881
|
Zi as LayerImplementation,
|
19882
19882
|
q0 as LayerObliqueImpl,
|
19883
|
-
|
19883
|
+
ra as LayerOpenlayersImpl,
|
19884
19884
|
pe as LayerState,
|
19885
|
-
|
19885
|
+
Un as MVTTileProvider,
|
19886
19886
|
Vo as MapCollection,
|
19887
19887
|
Eu as MapInteractionController,
|
19888
19888
|
bt as MapState,
|
@@ -19891,7 +19891,7 @@ export {
|
|
19891
19891
|
$i as ObliqueCollection,
|
19892
19892
|
ql as ObliqueDataSet,
|
19893
19893
|
Fo as ObliqueImage,
|
19894
|
-
|
19894
|
+
pn as ObliqueImageMeta,
|
19895
19895
|
Ne as ObliqueMap,
|
19896
19896
|
Q0 as ObliqueProvider,
|
19897
19897
|
J0 as ObliqueView,
|
@@ -19910,7 +19910,7 @@ export {
|
|
19910
19910
|
k as Projection,
|
19911
19911
|
vt as RasterLayer,
|
19912
19912
|
Ts as RasterLayerCesiumImpl,
|
19913
|
-
|
19913
|
+
Br as RasterLayerOpenlayersImpl,
|
19914
19914
|
Iu as RemoveVertexInteraction,
|
19915
19915
|
ZS as RotateInteraction,
|
19916
19916
|
KS as ScaleInteraction,
|
@@ -19918,11 +19918,11 @@ export {
|
|
19918
19918
|
Tu as SelectMultiFeatureInteraction,
|
19919
19919
|
Nu as SelectSingleFeatureInteraction,
|
19920
19920
|
$t as SelectionMode,
|
19921
|
-
|
19921
|
+
Gi as SessionType,
|
19922
19922
|
zv as SingleImageCesiumImpl,
|
19923
|
-
|
19923
|
+
$n as SingleImageLayer,
|
19924
19924
|
Qv as SingleImageOpenlayersImpl,
|
19925
|
-
|
19925
|
+
qn as StaticGeoJSONTileProvider,
|
19926
19926
|
Wt as StyleItem,
|
19927
19927
|
Er as TMSLayer,
|
19928
19928
|
Hv as TerrainCesiumImpl,
|
@@ -19935,8 +19935,8 @@ export {
|
|
19935
19935
|
eS as TmsOpenlayersImpl,
|
19936
19936
|
_e as TransformationMode,
|
19937
19937
|
XS as TranslateInteraction,
|
19938
|
-
|
19939
|
-
|
19938
|
+
qr as TranslateVertexInteraction,
|
19939
|
+
Bn as URLTemplateTileProvider,
|
19940
19940
|
xu as VcsApp,
|
19941
19941
|
T_ as VcsCameraPrimitive,
|
19942
19942
|
I as VcsEvent,
|
@@ -19966,7 +19966,7 @@ export {
|
|
19966
19966
|
er as actuallyIsCircle,
|
19967
19967
|
Xc as addArrowsToContext,
|
19968
19968
|
us as addPrimitiveToContext,
|
19969
|
-
|
19969
|
+
na as addPrimitivesToContext,
|
19970
19970
|
ze as alreadyTransformedToImage,
|
19971
19971
|
li as alreadyTransformedToMercator,
|
19972
19972
|
dh as anchorFromGeojsonFeature,
|
@@ -19980,7 +19980,7 @@ export {
|
|
19980
19980
|
_t as cartesian2DDistance,
|
19981
19981
|
t_ as cartesian3DDistance,
|
19982
19982
|
_w as cartesianToMercator,
|
19983
|
-
|
19983
|
+
Ti as cartographicToWgs84,
|
19984
19984
|
Cc as categoryClassRegistry,
|
19985
19985
|
mi as cesiumColorToColor,
|
19986
19986
|
pi as cesiumTilesetLastUpdated,
|
@@ -20018,13 +20018,13 @@ export {
|
|
20018
20018
|
bS as defaultDynamicModuleId,
|
20019
20019
|
bw as defaultExtrudedHeightCondition,
|
20020
20020
|
rS as defaultPointCloudStyle,
|
20021
|
-
|
20021
|
+
ji as defaultVectorStyle,
|
20022
20022
|
F_ as deserializeLayer,
|
20023
20023
|
D_ as deserializeMap,
|
20024
20024
|
A_ as deserializeViewpoint,
|
20025
20025
|
Kt as destroyCollection,
|
20026
20026
|
vS as detectBrowserLocale,
|
20027
|
-
|
20027
|
+
sa as doNotTransform,
|
20028
20028
|
qw as drapeGeometryOnTerrain,
|
20029
20029
|
Dc as embedIconsInStyle,
|
20030
20030
|
Ow as emptyColor,
|
@@ -20046,12 +20046,12 @@ export {
|
|
20046
20046
|
S0 as getBillboardOptions,
|
20047
20047
|
Bv as getCanvasFromFeatures,
|
20048
20048
|
M0 as getCartesian3AndWGS84FromCoordinates,
|
20049
|
-
|
20049
|
+
tn as getCartesian3Options,
|
20050
20050
|
Za as getCartesianBearing,
|
20051
20051
|
i_ as getCartesianPitch,
|
20052
20052
|
jt as getCartographicFromPlane,
|
20053
20053
|
si as getCesiumColor,
|
20054
|
-
|
20054
|
+
Qr as getClassificationTypeOptions,
|
20055
20055
|
Gw as getClippingOptions,
|
20056
20056
|
yh as getClosestPointOn2DLine,
|
20057
20057
|
xw as getCssStyleFromTextStyle,
|
@@ -20063,7 +20063,7 @@ export {
|
|
20063
20063
|
vv as getEPSGCodeFromGeojson,
|
20064
20064
|
pu as getExtentFromTileset,
|
20065
20065
|
xc as getFillFromOptions,
|
20066
|
-
|
20066
|
+
Dn as getFillOptions,
|
20067
20067
|
Is as getFlatCoordinatesFromGeometry,
|
20068
20068
|
Lo as getFlatCoordinatesFromSimpleGeometry,
|
20069
20069
|
wu as getFlightPathCoordinatesFromInstance,
|
@@ -20080,14 +20080,14 @@ export {
|
|
20080
20080
|
Sc as getMidPoint,
|
20081
20081
|
Z_ as getMinHeightOrGroundLevel,
|
20082
20082
|
Dl as getModelOptions,
|
20083
|
-
|
20083
|
+
en as getNearFarValueOptions,
|
20084
20084
|
ii as getObjectFromClassRegistry,
|
20085
20085
|
Vl as getPolygonizedGeometry,
|
20086
20086
|
ro as getPrimitiveOptions,
|
20087
20087
|
nu as getResolutionOptions,
|
20088
20088
|
Ic as getShapeFromOptions,
|
20089
20089
|
Su as getSplineAndTimesForInstance,
|
20090
|
-
|
20090
|
+
yn as getStateFromStatesArray,
|
20091
20091
|
Pl as getStoreyHeights,
|
20092
20092
|
Ll as getStoreyOptions,
|
20093
20093
|
ot as getStringColor,
|
@@ -20095,8 +20095,8 @@ export {
|
|
20095
20095
|
gr as getStrokeOptions,
|
20096
20096
|
Mw as getStyleFromOptions,
|
20097
20097
|
Cw as getStyleOptions,
|
20098
|
-
|
20099
|
-
|
20098
|
+
Rn as getStyleOrDefaultStyle,
|
20099
|
+
Gn as getStylesArray,
|
20100
20100
|
_r as getTerrainProviderForUrl,
|
20101
20101
|
bc as getTextFromOptions,
|
20102
20102
|
Oc as getTextOptions,
|
@@ -20119,9 +20119,9 @@ export {
|
|
20119
20119
|
be as highlighted,
|
20120
20120
|
U0 as imageGeometryToMercatorGeometry,
|
20121
20121
|
yw as initialBearingBetweenCoords,
|
20122
|
-
|
20123
|
-
|
20124
|
-
|
20122
|
+
Xn as is1DAxis,
|
20123
|
+
Yn as is2DAxis,
|
20124
|
+
Hn as isMobile,
|
20125
20125
|
Qa as isOverrideCollection,
|
20126
20126
|
bv as isProvidedFeature,
|
20127
20127
|
Yt as isSameOrigin,
|
@@ -20135,17 +20135,17 @@ export {
|
|
20135
20135
|
$_ as maxZIndex,
|
20136
20136
|
B0 as mercatorGeometryToImageGeometry,
|
20137
20137
|
U as mercatorProjection,
|
20138
|
-
|
20138
|
+
zn as mercatorResolutionsToLevel,
|
20139
20139
|
Ct as mercatorToCartesian,
|
20140
20140
|
Mo as mercatorToWgs84Transformer,
|
20141
20141
|
Ze as moduleIdSymbol,
|
20142
|
-
|
20142
|
+
gn as modulo,
|
20143
20143
|
oi as mouseOverSymbol,
|
20144
20144
|
xt as obliqueGeometry,
|
20145
20145
|
su as obliqueViewDirectionNames,
|
20146
20146
|
f_ as olColorToCesiumColor,
|
20147
20147
|
wl as olColorToHex,
|
20148
|
-
|
20148
|
+
Fn as originalFeatureSymbol,
|
20149
20149
|
ri as originalStyle,
|
20150
20150
|
va as parseCartesian3,
|
20151
20151
|
He as parseColor,
|
@@ -20164,13 +20164,13 @@ export {
|
|
20164
20164
|
Nl as polygonToCesium,
|
20165
20165
|
Nc as propertyEqualsEpsilon,
|
20166
20166
|
jo as rectangleToExtent,
|
20167
|
-
|
20167
|
+
Di as removeArrayFromCollection,
|
20168
20168
|
Tl as removeEndingVertex,
|
20169
20169
|
zc as removeEndingVertexFromGeometry,
|
20170
20170
|
cs as removeFeatureFromMap,
|
20171
20171
|
Z0 as requestArrayBuffer,
|
20172
|
-
|
20173
|
-
|
20172
|
+
Vi as requestJson,
|
20173
|
+
$r as requestUrl,
|
20174
20174
|
R_ as serializeLayer,
|
20175
20175
|
ch as setClippingPlanes,
|
20176
20176
|
Qy as setDefaultProjectionOptions,
|
@@ -20207,11 +20207,11 @@ export {
|
|
20207
20207
|
ni as vcsMetaVersion,
|
20208
20208
|
lt as vectorStyleSymbol,
|
20209
20209
|
$w as vertexIndex,
|
20210
|
-
|
20210
|
+
Ur as vertexSymbol,
|
20211
20211
|
Cv as volatileModuleId,
|
20212
20212
|
oe as wgs84Projection,
|
20213
|
-
|
20214
|
-
|
20213
|
+
Tn as wgs84ToMercatorTransformer,
|
20214
|
+
mn as whiteColor,
|
20215
20215
|
Lw as writeGeoJSON,
|
20216
20216
|
wr as writeGeoJSONFeature,
|
20217
20217
|
j_ as writeStyle
|