zywlgis 0.5.62 → 0.5.63
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/package.json +1 -1
- package/release/ZYWLGIS.es.js +130 -176
package/package.json
CHANGED
package/release/ZYWLGIS.es.js
CHANGED
|
@@ -148122,7 +148122,7 @@ function hAA(...n) {
|
|
|
148122
148122
|
return new cAA(...n);
|
|
148123
148123
|
}
|
|
148124
148124
|
hAA.localizePositions = cAA.localizePositions;
|
|
148125
|
-
const U6A = "0.5.
|
|
148125
|
+
const U6A = "0.5.63", S6A = {
|
|
148126
148126
|
version: U6A
|
|
148127
148127
|
}, Cz = {
|
|
148128
148128
|
POINTERMOVE: "pointermove",
|
|
@@ -155315,7 +155315,7 @@ class mE {
|
|
|
155315
155315
|
A,
|
|
155316
155316
|
this.customHTMLInstances_,
|
|
155317
155317
|
t
|
|
155318
|
-
), m.HighlightHTML(A, this.centerHTMLInstance_),
|
|
155318
|
+
), m.HighlightHTML(A, this.centerHTMLInstance_), !!this.isHighlight_) {
|
|
155319
155319
|
if (!this.isJudgmentVisual_ || this.isJudgmentVisual_ && !window.cameraCullingVolume)
|
|
155320
155320
|
this.createHighlightPrimitive(A);
|
|
155321
155321
|
else if (this.geometryInstance_) {
|
|
@@ -164505,122 +164505,122 @@ class BFA {
|
|
|
164505
164505
|
*/
|
|
164506
164506
|
createPrimitive = (A, e) => {
|
|
164507
164507
|
const t = this.data_.ID + "-&-ZYWL-&-CustomGraphicEditingCircle", i = this.data_.ID + "-&-ZYWL-&-CustomGraphicEditingCircleOutline", r = e?.altitude ?? 100, s = this.data_?.symbol?.lineWidth ?? 8;
|
|
164508
|
-
let o = Cesium.Color.fromAlpha(
|
|
164508
|
+
let o = this.data_?.symbol?.polygonAlpha ?? 0.3, a = Cesium.Color.fromAlpha(
|
|
164509
164509
|
Cesium.Color.fromCssColorString(
|
|
164510
164510
|
this.data_?.symbol?.polygonColor ?? "#f00"
|
|
164511
164511
|
),
|
|
164512
|
-
|
|
164512
|
+
o
|
|
164513
164513
|
);
|
|
164514
|
-
const
|
|
164514
|
+
const D = m.getCircleOutlinePositions(
|
|
164515
164515
|
this.center_,
|
|
164516
164516
|
this.radius_,
|
|
164517
164517
|
r
|
|
164518
|
-
),
|
|
164519
|
-
this.polylineAppearance ? (this.polylineAppearance.material.uniforms.image =
|
|
164520
|
-
image:
|
|
164521
|
-
dashLength:
|
|
164518
|
+
), P = this.data_?.symbol?.appearance ?? m.getCustomNoFlyZoneIcon(), l = this.data_?.symbol?.appearanceDash ?? 10;
|
|
164519
|
+
this.polylineAppearance ? (this.polylineAppearance.material.uniforms.image = P, this.polylineAppearance.material.uniforms.dashLength = l) : this.polylineAppearance = m.getCustomAppearance("customImage", {
|
|
164520
|
+
image: P,
|
|
164521
|
+
dashLength: l
|
|
164522
164522
|
});
|
|
164523
|
-
const
|
|
164524
|
-
if (this.polylineHighlightAppearance ? (this.polylineHighlightAppearance.material.uniforms.image =
|
|
164523
|
+
const c = this.data_?.symbol?.highlightAppearance ?? m.getCustomNoFlyZoneIcon(!0), h = this.data_?.symbol?.highlightAppearanceDash ? this.data_?.symbol?.highlightAppearanceDash : l || 10;
|
|
164524
|
+
if (this.polylineHighlightAppearance ? (this.polylineHighlightAppearance.material.uniforms.image = c, this.polylineHighlightAppearance.material.uniforms.dashLength = h) : this.polylineHighlightAppearance = m.getCustomAppearance(
|
|
164525
164525
|
"customImage",
|
|
164526
164526
|
{
|
|
164527
|
-
image:
|
|
164528
|
-
dashLength:
|
|
164527
|
+
image: c,
|
|
164528
|
+
dashLength: h
|
|
164529
164529
|
}
|
|
164530
|
-
),
|
|
164530
|
+
), D.length)
|
|
164531
164531
|
if (!this.isEditable_ && (!this.isJudgmentVisual_ || this.isJudgmentVisual_ && !window.cameraCullingVolume)) {
|
|
164532
|
-
this.clearGeometry(),
|
|
164533
|
-
const
|
|
164534
|
-
var
|
|
164535
|
-
if (this.isClampToGround_ || this.isClampTo3DTILE_ ?
|
|
164536
|
-
polygonHierarchy: new Cesium.PolygonHierarchy(
|
|
164537
|
-
perPositionHeight: !
|
|
164532
|
+
this.clearGeometry(), a = Cesium.ColorGeometryInstanceAttribute.fromColor(a);
|
|
164533
|
+
const f = new Cesium.ShowGeometryInstanceAttribute(this.visible_), v = m.getGeometryInstances(this.options_);
|
|
164534
|
+
var g;
|
|
164535
|
+
if (this.isClampToGround_ || this.isClampTo3DTILE_ ? g = new Cesium.PolygonGeometry({
|
|
164536
|
+
polygonHierarchy: new Cesium.PolygonHierarchy(D),
|
|
164537
|
+
perPositionHeight: !0
|
|
164538
164538
|
// 启用高度插值
|
|
164539
|
-
}) :
|
|
164540
|
-
polygonHierarchy: new Cesium.PolygonHierarchy(
|
|
164539
|
+
}) : g = new Cesium.PolygonGeometry({
|
|
164540
|
+
polygonHierarchy: new Cesium.PolygonHierarchy(D),
|
|
164541
164541
|
perPositionHeight: !0
|
|
164542
164542
|
// 启用高度插值
|
|
164543
164543
|
}), !this.displayGeometryInstance_)
|
|
164544
164544
|
this.displayGeometryInstance_ = new Cesium.GeometryInstance({
|
|
164545
164545
|
id: t,
|
|
164546
|
-
geometry:
|
|
164546
|
+
geometry: g,
|
|
164547
164547
|
attributes: {
|
|
164548
|
-
color:
|
|
164549
|
-
show:
|
|
164548
|
+
color: a,
|
|
164549
|
+
show: f
|
|
164550
164550
|
}
|
|
164551
|
-
}),
|
|
164551
|
+
}), v.push(this.displayGeometryInstance_);
|
|
164552
164552
|
else {
|
|
164553
|
-
this.displayGeometryInstance_.geometry =
|
|
164554
|
-
const
|
|
164555
|
-
|
|
164553
|
+
this.displayGeometryInstance_.geometry = g, this.displayGeometryInstance_.attributes.color = a, this.displayGeometryInstance_.attributes.show = f;
|
|
164554
|
+
const p = v.findIndex((I) => I.id === this.displayGeometryInstance_.id);
|
|
164555
|
+
p !== -1 && (v[p] = this.displayGeometryInstance_);
|
|
164556
164556
|
}
|
|
164557
|
-
const
|
|
164557
|
+
const E = m.getGeometryInstances(
|
|
164558
164558
|
this.outlineOptions_
|
|
164559
164559
|
);
|
|
164560
|
-
var
|
|
164561
|
-
if (this.isClampToGround_ ?
|
|
164562
|
-
positions:
|
|
164560
|
+
var u;
|
|
164561
|
+
if (this.isClampToGround_ ? u = new Cesium.GroundPolylineGeometry({
|
|
164562
|
+
positions: D,
|
|
164563
164563
|
width: s
|
|
164564
|
-
}) :
|
|
164565
|
-
positions:
|
|
164564
|
+
}) : u = new Cesium.PolylineGeometry({
|
|
164565
|
+
positions: D,
|
|
164566
164566
|
width: s
|
|
164567
164567
|
}), !this.displayGeometryOutlineInstance_)
|
|
164568
164568
|
this.displayGeometryOutlineInstance_ = new Cesium.GeometryInstance({
|
|
164569
164569
|
id: i,
|
|
164570
|
-
geometry:
|
|
164570
|
+
geometry: u,
|
|
164571
164571
|
attributes: {
|
|
164572
|
-
show:
|
|
164572
|
+
show: f
|
|
164573
164573
|
}
|
|
164574
|
-
}),
|
|
164574
|
+
}), E.push(this.displayGeometryOutlineInstance_);
|
|
164575
164575
|
else {
|
|
164576
|
-
this.displayGeometryOutlineInstance_.geometry =
|
|
164577
|
-
const
|
|
164578
|
-
|
|
164576
|
+
this.displayGeometryOutlineInstance_.geometry = u, this.displayGeometryOutlineInstance_.attributes.show = f;
|
|
164577
|
+
const p = E.findIndex((I) => I.id === this.displayGeometryOutlineInstance_.id);
|
|
164578
|
+
p !== -1 && (E[p] = this.displayGeometryOutlineInstance_);
|
|
164579
164579
|
}
|
|
164580
|
-
this.refreshPrimitive(
|
|
164580
|
+
this.refreshPrimitive(v, E);
|
|
164581
164581
|
} else {
|
|
164582
164582
|
this.clearDisplayGeometry();
|
|
164583
|
-
const
|
|
164583
|
+
const f = A.scene.primitives, v = new Cesium.MaterialAppearance({
|
|
164584
164584
|
material: new Cesium.Material({
|
|
164585
164585
|
fabric: {
|
|
164586
164586
|
type: "Color",
|
|
164587
164587
|
uniforms: {
|
|
164588
|
-
color:
|
|
164588
|
+
color: a
|
|
164589
164589
|
}
|
|
164590
164590
|
}
|
|
164591
164591
|
})
|
|
164592
164592
|
});
|
|
164593
|
-
var
|
|
164594
|
-
const
|
|
164593
|
+
var Q, w;
|
|
164594
|
+
const E = new Cesium.GeometryInstance({
|
|
164595
164595
|
id: t,
|
|
164596
164596
|
geometry: new Cesium.PolygonGeometry({
|
|
164597
|
-
polygonHierarchy: new Cesium.PolygonHierarchy(
|
|
164597
|
+
polygonHierarchy: new Cesium.PolygonHierarchy(D),
|
|
164598
164598
|
perPositionHeight: !0
|
|
164599
164599
|
})
|
|
164600
164600
|
});
|
|
164601
|
-
if (this.isClampToGround_ || this.isClampTo3DTILE_ ?
|
|
164602
|
-
geometryInstances:
|
|
164603
|
-
appearance:
|
|
164601
|
+
if (this.isClampToGround_ || this.isClampTo3DTILE_ ? Q = new Cesium.GroundPrimitive({
|
|
164602
|
+
geometryInstances: E,
|
|
164603
|
+
appearance: v,
|
|
164604
164604
|
show: this.visible_,
|
|
164605
164605
|
asynchronous: !1,
|
|
164606
164606
|
releaseGeometryInstances: !1,
|
|
164607
164607
|
classificationType: this.isClampTo3DTILE_ ? Cesium.ClassificationType.BOTH : Cesium.ClassificationType.TERRAIN
|
|
164608
|
-
}) :
|
|
164609
|
-
geometryInstances:
|
|
164610
|
-
appearance:
|
|
164608
|
+
}) : Q = new Cesium.Primitive({
|
|
164609
|
+
geometryInstances: E,
|
|
164610
|
+
appearance: v,
|
|
164611
164611
|
show: this.visible_,
|
|
164612
164612
|
asynchronous: !1,
|
|
164613
164613
|
releaseGeometryInstances: !1
|
|
164614
164614
|
}), this.isClampToGround_ || this.isClampTo3DTILE_) {
|
|
164615
|
-
const
|
|
164615
|
+
const p = new Cesium.GeometryInstance({
|
|
164616
164616
|
id: i,
|
|
164617
164617
|
geometry: new Cesium.GroundPolylineGeometry({
|
|
164618
|
-
positions:
|
|
164618
|
+
positions: D,
|
|
164619
164619
|
width: s
|
|
164620
164620
|
})
|
|
164621
164621
|
});
|
|
164622
|
-
|
|
164623
|
-
geometryInstances:
|
|
164622
|
+
w = new Cesium.GroundPolylinePrimitive({
|
|
164623
|
+
geometryInstances: p,
|
|
164624
164624
|
appearance: this.polylineAppearance,
|
|
164625
164625
|
show: this.visible_,
|
|
164626
164626
|
asynchronous: !1,
|
|
@@ -164628,23 +164628,23 @@ class BFA {
|
|
|
164628
164628
|
classificationType: this.isClampTo3DTILE_ ? Cesium.ClassificationType.BOTH : Cesium.ClassificationType.TERRAIN
|
|
164629
164629
|
});
|
|
164630
164630
|
} else {
|
|
164631
|
-
const
|
|
164631
|
+
const p = new Cesium.GeometryInstance({
|
|
164632
164632
|
id: i,
|
|
164633
164633
|
geometry: new Cesium.PolylineGeometry({
|
|
164634
|
-
positions:
|
|
164634
|
+
positions: D,
|
|
164635
164635
|
width: s
|
|
164636
164636
|
})
|
|
164637
164637
|
});
|
|
164638
|
-
|
|
164639
|
-
geometryInstances:
|
|
164638
|
+
w = new Cesium.Primitive({
|
|
164639
|
+
geometryInstances: p,
|
|
164640
164640
|
appearance: this.polylineAppearance,
|
|
164641
164641
|
show: this.visible_,
|
|
164642
164642
|
asynchronous: !1,
|
|
164643
164643
|
releaseGeometryInstances: !1
|
|
164644
164644
|
});
|
|
164645
164645
|
}
|
|
164646
|
-
this.geometryInstance_ &&
|
|
164647
|
-
|
|
164646
|
+
this.geometryInstance_ && f.remove(this.geometryInstance_), Q && (this.geometryInstance_ = f.add(Q)), this.geometryOutlineInstance_ && f.remove(this.geometryOutlineInstance_), w && (this.geometryOutlineInstance_ = f.add(
|
|
164647
|
+
w
|
|
164648
164648
|
));
|
|
164649
164649
|
}
|
|
164650
164650
|
};
|
|
@@ -164900,34 +164900,11 @@ class BFA {
|
|
|
164900
164900
|
* @param {number} highlightIndex - 高亮索引(顶点或边的索引)
|
|
164901
164901
|
*/
|
|
164902
164902
|
primitivesHighlighted = (A, e, t) => {
|
|
164903
|
-
|
|
164903
|
+
this.isStartDraw_ || this.isEditable_ || (m.HighlightHTMLs(
|
|
164904
164904
|
A,
|
|
164905
164905
|
this.customHTMLInstances_,
|
|
164906
164906
|
t
|
|
164907
|
-
), m.HighlightHTML(A, this.centerHTMLInstance_),
|
|
164908
|
-
if (!this.isJudgmentVisual_)
|
|
164909
|
-
this.createHighlightPrimitive(A);
|
|
164910
|
-
else {
|
|
164911
|
-
if (this.geometryInstance_) {
|
|
164912
|
-
let i;
|
|
164913
|
-
A ? i = 0.4 : i = 0.3, this.geometryInstance_.appearance = new Cesium.MaterialAppearance({
|
|
164914
|
-
material: new Cesium.Material({
|
|
164915
|
-
fabric: {
|
|
164916
|
-
type: "Color",
|
|
164917
|
-
uniforms: {
|
|
164918
|
-
color: Cesium.Color.fromAlpha(
|
|
164919
|
-
Cesium.Color.fromCssColorString(
|
|
164920
|
-
this.data_?.symbol?.polygonColor ?? "#f00"
|
|
164921
|
-
),
|
|
164922
|
-
i
|
|
164923
|
-
)
|
|
164924
|
-
}
|
|
164925
|
-
}
|
|
164926
|
-
})
|
|
164927
|
-
});
|
|
164928
|
-
}
|
|
164929
|
-
this.geometryOutlineInstance_ && (A && this.geometryOutlineInstance_.appearance !== this.polylineHighlightAppearance && (this.geometryOutlineInstance_.appearance = this.polylineHighlightAppearance), !A && this.geometryOutlineInstance_.appearance !== this.polylineAppearance && (this.geometryOutlineInstance_.appearance = this.polylineAppearance));
|
|
164930
|
-
}
|
|
164907
|
+
), m.HighlightHTML(A, this.centerHTMLInstance_), this.isHighlight_ && (this.isJudgmentVisual_ ? this.geometryOutlineInstance_ && (A && this.geometryOutlineInstance_.appearance !== this.polylineHighlightAppearance && (this.geometryOutlineInstance_.appearance = this.polylineHighlightAppearance), !A && this.geometryOutlineInstance_.appearance !== this.polylineAppearance && (this.geometryOutlineInstance_.appearance = this.polylineAppearance)) : this.createHighlightPrimitive(A)));
|
|
164931
164908
|
};
|
|
164932
164909
|
/**
|
|
164933
164910
|
* 清除所有绘制的元素(释放资源)
|
|
@@ -165029,7 +165006,7 @@ class BFA {
|
|
|
165029
165006
|
refreshPrimitive = (A, e) => {
|
|
165030
165007
|
const t = this.containerID_.split("-cesium")[0], i = [], r = [];
|
|
165031
165008
|
for (const s of window.CustomNoFlyZoneTypes.get(
|
|
165032
|
-
`${t}-&-
|
|
165009
|
+
`${t}-&-circle`
|
|
165033
165010
|
).values())
|
|
165034
165011
|
s?.isClampToGround || s?.isClampTo3DTILE ? i.push(s) : r.push(s);
|
|
165035
165012
|
window.CustomNoFlyZoneTypes && e.length === A.length && (e.length === i.length || e.length === r.length) && (A.length === i.length || A.length === r.length) && this.updatePrimitive(A, e);
|
|
@@ -165410,124 +165387,124 @@ class pFA {
|
|
|
165410
165387
|
*/
|
|
165411
165388
|
createPrimitive = (A, e) => {
|
|
165412
165389
|
const t = this.data_.ID + "-&-ZYWL-&-CustomGraphicEditingPolygon", i = this.data_.ID + "-&-ZYWL-&-CustomGraphicEditingPolygonOutline", r = this.data_?.symbol?.lineWidth ?? 8;
|
|
165413
|
-
let s = Cesium.Color.fromAlpha(
|
|
165390
|
+
let s = this.data_?.symbol?.polygonAlpha ?? 0.3, o = Cesium.Color.fromAlpha(
|
|
165414
165391
|
Cesium.Color.fromCssColorString(
|
|
165415
165392
|
this.data_?.symbol?.polygonColor ?? "#f00"
|
|
165416
165393
|
),
|
|
165417
|
-
|
|
165394
|
+
s
|
|
165418
165395
|
);
|
|
165419
|
-
const
|
|
165420
|
-
|
|
165421
|
-
const
|
|
165422
|
-
this.polylineAppearance ? (this.polylineAppearance.material.uniforms.image =
|
|
165423
|
-
image:
|
|
165424
|
-
dashLength:
|
|
165396
|
+
const a = e.map((f) => f);
|
|
165397
|
+
a.push(a[0]);
|
|
165398
|
+
const D = this.data_?.symbol?.appearance ?? m.getCustomNoFlyZoneIcon(), P = this.data_?.symbol?.appearanceDash ?? 10;
|
|
165399
|
+
this.polylineAppearance ? (this.polylineAppearance.material.uniforms.image = D, this.polylineAppearance.material.uniforms.dashLength = P) : this.polylineAppearance = m.getCustomAppearance("customImage", {
|
|
165400
|
+
image: D,
|
|
165401
|
+
dashLength: P
|
|
165425
165402
|
});
|
|
165426
|
-
const
|
|
165427
|
-
this.polylineHighlightAppearance ? (this.polylineHighlightAppearance.material.uniforms.image =
|
|
165403
|
+
const l = this.data_?.symbol?.highlightAppearance ?? m.getCustomNoFlyZoneIcon(!0), c = this.data_?.symbol?.highlightAppearanceDash ? this.data_?.symbol?.highlightAppearanceDash : P || 10;
|
|
165404
|
+
this.polylineHighlightAppearance ? (this.polylineHighlightAppearance.material.uniforms.image = l, this.polylineHighlightAppearance.material.uniforms.dashLength = c) : this.polylineHighlightAppearance = m.getCustomAppearance(
|
|
165428
165405
|
"customImage",
|
|
165429
165406
|
{
|
|
165430
|
-
image:
|
|
165431
|
-
dashLength:
|
|
165407
|
+
image: l,
|
|
165408
|
+
dashLength: c
|
|
165432
165409
|
}
|
|
165433
165410
|
);
|
|
165434
|
-
const
|
|
165411
|
+
const h = A.scene.primitives;
|
|
165435
165412
|
if (!this.isEditable_ && (!this.isJudgmentVisual_ || this.isJudgmentVisual_ && !window.cameraCullingVolume)) {
|
|
165436
|
-
this.clearGeometry(),
|
|
165437
|
-
const
|
|
165438
|
-
var
|
|
165439
|
-
if (this.isClampToGround_ || this.isClampTo3DTILE_ ?
|
|
165413
|
+
this.clearGeometry(), o = Cesium.ColorGeometryInstanceAttribute.fromColor(o);
|
|
165414
|
+
const f = new Cesium.ShowGeometryInstanceAttribute(this.visible_), v = m.getGeometryInstances(this.options_);
|
|
165415
|
+
var g;
|
|
165416
|
+
if (this.isClampToGround_ || this.isClampTo3DTILE_ ? g = new Cesium.PolygonGeometry({
|
|
165440
165417
|
polygonHierarchy: new Cesium.PolygonHierarchy(e),
|
|
165441
165418
|
perPositionHeight: !1
|
|
165442
165419
|
// 启用高度插值
|
|
165443
|
-
}) :
|
|
165420
|
+
}) : g = new Cesium.PolygonGeometry({
|
|
165444
165421
|
polygonHierarchy: new Cesium.PolygonHierarchy(e),
|
|
165445
165422
|
perPositionHeight: !0
|
|
165446
165423
|
// 启用高度插值
|
|
165447
165424
|
}), !this.displayGeometryInstance_)
|
|
165448
165425
|
this.displayGeometryInstance_ = new Cesium.GeometryInstance({
|
|
165449
165426
|
id: t,
|
|
165450
|
-
geometry:
|
|
165427
|
+
geometry: g,
|
|
165451
165428
|
attributes: {
|
|
165452
|
-
color:
|
|
165453
|
-
show:
|
|
165429
|
+
color: o,
|
|
165430
|
+
show: f
|
|
165454
165431
|
}
|
|
165455
|
-
}),
|
|
165432
|
+
}), v.push(this.displayGeometryInstance_);
|
|
165456
165433
|
else {
|
|
165457
|
-
this.displayGeometryInstance_.geometry =
|
|
165458
|
-
const
|
|
165459
|
-
|
|
165434
|
+
this.displayGeometryInstance_.geometry = g, this.displayGeometryInstance_.attributes.color = o, this.displayGeometryInstance_.attributes.show = f;
|
|
165435
|
+
const p = v.findIndex((I) => I.id === this.displayGeometryInstance_.id);
|
|
165436
|
+
p !== -1 && (v[p] = this.displayGeometryInstance_);
|
|
165460
165437
|
}
|
|
165461
|
-
const
|
|
165438
|
+
const E = m.getGeometryInstances(
|
|
165462
165439
|
this.outlineOptions_
|
|
165463
165440
|
);
|
|
165464
|
-
var
|
|
165465
|
-
if (this.isClampToGround_ || this.isClampTo3DTILE_ ?
|
|
165466
|
-
positions:
|
|
165441
|
+
var u;
|
|
165442
|
+
if (this.isClampToGround_ || this.isClampTo3DTILE_ ? u = new Cesium.GroundPolylineGeometry({
|
|
165443
|
+
positions: a,
|
|
165467
165444
|
width: r
|
|
165468
|
-
}) :
|
|
165469
|
-
positions:
|
|
165445
|
+
}) : u = new Cesium.PolylineGeometry({
|
|
165446
|
+
positions: a,
|
|
165470
165447
|
width: r
|
|
165471
165448
|
}), !this.displayGeometryOutlineInstance_)
|
|
165472
165449
|
this.displayGeometryOutlineInstance_ = new Cesium.GeometryInstance({
|
|
165473
165450
|
id: i,
|
|
165474
|
-
geometry:
|
|
165451
|
+
geometry: u,
|
|
165475
165452
|
attributes: {
|
|
165476
|
-
show:
|
|
165453
|
+
show: f
|
|
165477
165454
|
}
|
|
165478
|
-
}),
|
|
165455
|
+
}), E.push(this.displayGeometryOutlineInstance_);
|
|
165479
165456
|
else {
|
|
165480
|
-
this.displayGeometryOutlineInstance_.geometry =
|
|
165481
|
-
const
|
|
165482
|
-
|
|
165457
|
+
this.displayGeometryOutlineInstance_.geometry = u, this.displayGeometryOutlineInstance_.attributes.show = f;
|
|
165458
|
+
const p = E.findIndex((I) => I.id === this.displayGeometryOutlineInstance_.id);
|
|
165459
|
+
p !== -1 && (E[p] = this.displayGeometryOutlineInstance_);
|
|
165483
165460
|
}
|
|
165484
|
-
this.refreshPrimitive(
|
|
165461
|
+
this.refreshPrimitive(v, E);
|
|
165485
165462
|
} else {
|
|
165486
165463
|
this.clearDisplayGeometry();
|
|
165487
|
-
var
|
|
165464
|
+
var Q, w;
|
|
165488
165465
|
if (e.length > 2) {
|
|
165489
|
-
const
|
|
165466
|
+
const f = new Cesium.MaterialAppearance({
|
|
165490
165467
|
flat: !0,
|
|
165491
165468
|
material: new Cesium.Material({
|
|
165492
165469
|
fabric: {
|
|
165493
165470
|
type: "Color",
|
|
165494
165471
|
uniforms: {
|
|
165495
|
-
color:
|
|
165472
|
+
color: o
|
|
165496
165473
|
}
|
|
165497
165474
|
}
|
|
165498
165475
|
})
|
|
165499
|
-
}),
|
|
165476
|
+
}), v = new Cesium.GeometryInstance({
|
|
165500
165477
|
id: t,
|
|
165501
165478
|
geometry: new Cesium.PolygonGeometry({
|
|
165502
165479
|
polygonHierarchy: new Cesium.PolygonHierarchy(e),
|
|
165503
165480
|
perPositionHeight: !0
|
|
165504
165481
|
})
|
|
165505
165482
|
});
|
|
165506
|
-
this.isClampToGround_ || this.isClampTo3DTILE_ ?
|
|
165507
|
-
geometryInstances:
|
|
165508
|
-
appearance:
|
|
165483
|
+
this.isClampToGround_ || this.isClampTo3DTILE_ ? Q = new Cesium.GroundPrimitive({
|
|
165484
|
+
geometryInstances: v,
|
|
165485
|
+
appearance: f,
|
|
165509
165486
|
show: this.visible_,
|
|
165510
165487
|
asynchronous: !1,
|
|
165511
165488
|
releaseGeometryInstances: !1,
|
|
165512
165489
|
classificationType: this.isClampTo3DTILE_ ? Cesium.ClassificationType.BOTH : Cesium.ClassificationType.TERRAIN
|
|
165513
|
-
}) :
|
|
165514
|
-
geometryInstances:
|
|
165515
|
-
appearance:
|
|
165490
|
+
}) : Q = new Cesium.Primitive({
|
|
165491
|
+
geometryInstances: v,
|
|
165492
|
+
appearance: f,
|
|
165516
165493
|
show: this.visible_,
|
|
165517
165494
|
asynchronous: !1,
|
|
165518
165495
|
releaseGeometryInstances: !1
|
|
165519
165496
|
});
|
|
165520
165497
|
}
|
|
165521
165498
|
if (this.isClampToGround_ || this.isClampTo3DTILE_) {
|
|
165522
|
-
const
|
|
165499
|
+
const f = new Cesium.GeometryInstance({
|
|
165523
165500
|
id: i,
|
|
165524
165501
|
geometry: new Cesium.GroundPolylineGeometry({
|
|
165525
|
-
positions:
|
|
165502
|
+
positions: a,
|
|
165526
165503
|
width: r
|
|
165527
165504
|
})
|
|
165528
165505
|
});
|
|
165529
|
-
|
|
165530
|
-
geometryInstances:
|
|
165506
|
+
w = new Cesium.GroundPolylinePrimitive({
|
|
165507
|
+
geometryInstances: f,
|
|
165531
165508
|
appearance: this.polylineAppearance,
|
|
165532
165509
|
show: this.visible_,
|
|
165533
165510
|
asynchronous: !1,
|
|
@@ -165535,22 +165512,22 @@ class pFA {
|
|
|
165535
165512
|
classificationType: this.isClampTo3DTILE_ ? Cesium.ClassificationType.BOTH : Cesium.ClassificationType.TERRAIN
|
|
165536
165513
|
});
|
|
165537
165514
|
} else {
|
|
165538
|
-
const
|
|
165515
|
+
const f = new Cesium.GeometryInstance({
|
|
165539
165516
|
id: i,
|
|
165540
165517
|
geometry: new Cesium.PolylineGeometry({
|
|
165541
|
-
positions:
|
|
165518
|
+
positions: a,
|
|
165542
165519
|
width: r
|
|
165543
165520
|
})
|
|
165544
165521
|
});
|
|
165545
|
-
|
|
165546
|
-
geometryInstances:
|
|
165522
|
+
w = new Cesium.Primitive({
|
|
165523
|
+
geometryInstances: f,
|
|
165547
165524
|
appearance: this.polylineAppearance,
|
|
165548
165525
|
show: this.visible_,
|
|
165549
165526
|
asynchronous: !1,
|
|
165550
165527
|
releaseGeometryInstances: !1
|
|
165551
165528
|
});
|
|
165552
165529
|
}
|
|
165553
|
-
this.geometryInstance_ &&
|
|
165530
|
+
this.geometryInstance_ && h.remove(this.geometryInstance_), Q && (this.geometryInstance_ = h.add(Q)), this.geometryOutlineInstance_ && h.remove(this.geometryOutlineInstance_), w && (this.geometryOutlineInstance_ = h.add(w));
|
|
165554
165531
|
}
|
|
165555
165532
|
};
|
|
165556
165533
|
/**
|
|
@@ -165788,34 +165765,11 @@ class pFA {
|
|
|
165788
165765
|
* @param {number} highlightIndex - 高亮索引(顶点或边的索引)
|
|
165789
165766
|
*/
|
|
165790
165767
|
primitivesHighlighted = (A, e, t) => {
|
|
165791
|
-
|
|
165768
|
+
this.isStartDraw_ || this.isEditable_ || (m.HighlightHTMLs(
|
|
165792
165769
|
A,
|
|
165793
165770
|
this.customHTMLInstances_,
|
|
165794
165771
|
t
|
|
165795
|
-
), m.HighlightHTML(A, this.centerHTMLInstance_),
|
|
165796
|
-
if (!this.isJudgmentVisual_ || this.isJudgmentVisual_ && !window.cameraCullingVolume)
|
|
165797
|
-
this.createHighlightPrimitive(A);
|
|
165798
|
-
else {
|
|
165799
|
-
if (this.geometryInstance_) {
|
|
165800
|
-
let i;
|
|
165801
|
-
A ? i = 0.4 : i = 0.3, this.geometryInstance_.appearance = new Cesium.MaterialAppearance({
|
|
165802
|
-
material: new Cesium.Material({
|
|
165803
|
-
fabric: {
|
|
165804
|
-
type: "Color",
|
|
165805
|
-
uniforms: {
|
|
165806
|
-
color: Cesium.Color.fromAlpha(
|
|
165807
|
-
Cesium.Color.fromCssColorString(
|
|
165808
|
-
this.data_?.symbol?.polygonColor ?? "#fff"
|
|
165809
|
-
),
|
|
165810
|
-
i
|
|
165811
|
-
)
|
|
165812
|
-
}
|
|
165813
|
-
}
|
|
165814
|
-
})
|
|
165815
|
-
});
|
|
165816
|
-
}
|
|
165817
|
-
this.geometryOutlineInstance_ && (A && this.geometryOutlineInstance_.appearance !== this.polylineHighlightAppearance && (this.geometryOutlineInstance_.appearance = this.polylineHighlightAppearance), !A && this.geometryOutlineInstance_.appearance !== this.polylineAppearance && (this.geometryOutlineInstance_.appearance = this.polylineAppearance));
|
|
165818
|
-
}
|
|
165772
|
+
), m.HighlightHTML(A, this.centerHTMLInstance_), this.isHighlight_ && (!this.isJudgmentVisual_ || this.isJudgmentVisual_ && !window.cameraCullingVolume ? this.createHighlightPrimitive(A) : this.geometryOutlineInstance_ && (A && this.geometryOutlineInstance_.appearance !== this.polylineHighlightAppearance && (this.geometryOutlineInstance_.appearance = this.polylineHighlightAppearance), !A && this.geometryOutlineInstance_.appearance !== this.polylineAppearance && (this.geometryOutlineInstance_.appearance = this.polylineAppearance))));
|
|
165819
165773
|
};
|
|
165820
165774
|
/**
|
|
165821
165775
|
* 清除所有绘制的元素(释放资源)
|
|
@@ -182988,9 +182942,7 @@ const ieA = (n, A) => {
|
|
|
182988
182942
|
window.ZoomHeights.set(o, a);
|
|
182989
182943
|
}
|
|
182990
182944
|
return m.getPointPrimitiveCollection(this.cesiumID), m.getLabelCollection(this.cesiumID), m.getBillboardCollection(this.cesiumID), window.CesiumSceneMode === Cesium.SceneMode.SCENE2D || window.CesiumSceneMode === Cesium.SceneMode.COLUMBUS_VIEW || r === -90 ? s.scene.camera.switchToOrthographicFrustum() : s.scene.camera.switchToPerspectiveFrustum(), s.scene.backgroundColor = Cesium.Color.fromCssColorString("#232323"), s.scene.globe.baseColor = Cesium.Color.fromCssColorString("#2A3034"), s.cesiumWidget.creditContainer.style.display = "none", s.scene.screenSpaceCameraController.enableCollisionDetection = !0, s.scene.globe.tileLoadProgressEvent.addEventListener((o) => {
|
|
182991
|
-
this.createTileLoadProgressIcon(), this.tileLoadProgress < o ? (this.tileLoadProgress = o, this.drawCircle(o)) : (this.tileLoadProgress = 100 - o, this.drawCircle(this.tileLoadProgress))
|
|
182992
|
-
containerID: this.containerID
|
|
182993
|
-
}));
|
|
182945
|
+
this.createTileLoadProgressIcon(), this.tileLoadProgress < o ? (this.tileLoadProgress = o, this.drawCircle(o)) : (this.tileLoadProgress = 100 - o, this.drawCircle(this.tileLoadProgress));
|
|
182994
182946
|
}), this.setCesiumState(e, s, A, t, i), m.setMapEnginePosition(
|
|
182995
182947
|
this.MapEngine_Temp,
|
|
182996
182948
|
this.loadZoom(),
|
|
@@ -183041,7 +182993,7 @@ const ieA = (n, A) => {
|
|
|
183041
182993
|
if (A.scene.sun.show = !1, A.scene.moon.show = !1, A.scene.skyBox.show = !1, A.scene.logarithmicDepthBuffer = !1, e)
|
|
183042
182994
|
A.scene.skyAtmosphere.show = !1, A.scene.backgroundColor = Cesium.Color.TRANSPARENT, A.scene.globe.translucency.enabled = !0, A.scene.globe.translucency.backFaceAlpha = 0, A.scene.globe.translucency.frontFaceAlpha = 0;
|
|
183043
182995
|
else {
|
|
183044
|
-
this.addMapSlider(A, n), A.imageryLayers.removeAll(), A.scene.postProcessStages.fxaa.enabled = !0, window.devicePixelRatio = 1, A.resolutionScale = window.devicePixelRatio, A.targetFrameRate = 120, A.trackedEntity = void 0, A.scene.globe.maximumScreenSpaceError = 1, t > 25 && (t = 25);
|
|
182996
|
+
this.addMapSlider(A, n), A.imageryLayers.removeAll(), A.scene.postProcessStages.fxaa.enabled = !0, window.devicePixelRatio = 1, A.resolutionScale = window.devicePixelRatio, A.targetFrameRate = 120, A.trackedEntity = void 0, A.scene.screenSpaceCameraController.zoomFactor = 5, A.scene.screenSpaceCameraController.inertiaSpin = 0, A.scene.screenSpaceCameraController.inertiaTranslate = 0, A.scene.screenSpaceCameraController.inertiaZoom = 0, A.scene.globe.maximumScreenSpaceError = 1, t > 25 && (t = 25);
|
|
183045
182997
|
let r = window.ZoomHeights.get(t);
|
|
183046
182998
|
r && (r < 5 && (r = 5), A.scene.screenSpaceCameraController.minimumZoomDistance = r);
|
|
183047
182999
|
let s = 10241789645430042e-8;
|
|
@@ -183681,7 +183633,9 @@ const ieA = (n, A) => {
|
|
|
183681
183633
|
l.hasOwnProperty("judgmentVisual") && l?.isJudgmentVisual_ && window.cameraCullingVolume && l.judgmentVisual();
|
|
183682
183634
|
},
|
|
183683
183635
|
cesiumScenePostRender(n) {
|
|
183684
|
-
this.stats && this.stats.update()
|
|
183636
|
+
this.stats && this.stats.update(), this.InitializationCompleted || (this.InitializationCompleted = !0, this.mapLoadingStatus = !0, this.MapInitCompletedHandler({
|
|
183637
|
+
containerID: this.containerID
|
|
183638
|
+
}));
|
|
183685
183639
|
},
|
|
183686
183640
|
// 更新全局编辑对象
|
|
183687
183641
|
setEditElement() {
|