判断viewer是否存在

This commit is contained in:
zh
2025-07-18 14:23:34 +08:00
parent 7b583f761b
commit 552c086d3a

View File

@ -2344,6 +2344,9 @@ class BillboardObject extends Base {
} }
async updateHeight() { async updateHeight() {
if(!this.sdk || !this.sdk.viewer || !this.sdk.viewer.scene) {
return
}
let height let height
let height2 let height2
let point1 = new Cesium.Cartesian3.fromDegrees( let point1 = new Cesium.Cartesian3.fromDegrees(