卫星科普互动展示系统
This commit is contained in:
@@ -2465,24 +2465,30 @@ const onDataSourceReady = ({ viewer, cesiumObject }) => {
|
||||
viewer.scene.primitives._primitives.forEach((element, index) => {
|
||||
if (element.constructor.name == "CustomPolyline") {
|
||||
viewer.scene.primitives._primitives.splice(index, 2);
|
||||
mypolylines = element;
|
||||
}
|
||||
if (element.constructor.name == "PolylineCollection") {
|
||||
// 4K适配版本后将造成列表第一颗卫星模型不显示的bug,故注释掉
|
||||
// viewer.scene.primitives._primitives.splice(index, 1);
|
||||
mypolylines = element;
|
||||
}
|
||||
// 打包后进行系统切换以及先进行视图切换后进行系统切换时对象名称可能会发生改变,具体名称需要在重装或更新打包依赖库后重新获取
|
||||
// 2025/12/30 打包后直接进行系统切换时对象名称发生改变 CustomPolyline --> jn
|
||||
// 2025/12/30 打包后先进行视图切换(3D -> 2D)后进行系统切换时对象名称发生改变 jn --> gt
|
||||
// 2025/12/30 打包后先进行视图切换(3D -> 哥伦布图)后进行系统切换时对象名称发生改变 jn --> gt
|
||||
// 2025/12/30 打包后先进行视图切换(3D -> 2D)后进行系统切换时对象名称发生改变 CustomPolyline --> jn
|
||||
// 2025/12/30 打包后先进行视图切换(3D -> 哥伦布图)后进行系统切换时对象名称发生改变 CustomPolyline --> le
|
||||
// console.log(element.constructor.name);
|
||||
if (element.constructor.name == "jn" || element.constructor.name == "gt") {
|
||||
if (element.constructor.name == "jn" || element.constructor.name == "le") {
|
||||
viewer.scene.primitives._primitives.splice(index, 2);
|
||||
mypolylines = element;
|
||||
}
|
||||
// 2025/12/30 打包后直接进行系统切换时对象名称未发生改变 PolylineCollection --> PolylineCollection
|
||||
// 2025/12/30 打包后先进行视图切换(3D -> 2D)后进行系统切换时对象名称未发生改变 PolylineCollection --> PolylineCollection
|
||||
// 2025/12/30 打包后先进行视图切换(3D -> 哥伦布图)后进行系统切换时对象名称未发生改变 PolylineCollection --> PolylineCollection
|
||||
if (element.constructor.name == "PolylineCollection") {
|
||||
// 打包后进行系统切换以及先进行视图切换后进行系统切换时对象名称可能会发生改变,具体名称需要在重装或更新打包依赖库后重新获取
|
||||
// 2025/12/30 打包后直接进行系统切换时对象名称未发生改变 PolylineCollection --> fn
|
||||
// 2025/12/30 打包后先进行视图切换(3D -> 2D)后进行系统切换时对象名称未发生改变 PolylineCollection --> S
|
||||
// 2025/12/30 打包后先进行视图切换(3D -> 哥伦布图)后进行系统切换时对象名称未发生改变 PolylineCollection --> S
|
||||
if (element.constructor.name == "fn" || element.constructor.name == "S") {
|
||||
// 4K适配版本后将造成列表第一颗卫星模型不显示的bug,故注释掉
|
||||
// viewer.scene.primitives._primitives.splice(index, 1);
|
||||
mypolylines = element;
|
||||
}
|
||||
});
|
||||
viewer.scene.primitives.show = false;
|
||||
|
||||
Reference in New Issue
Block a user