判断viewer是否存在
This commit is contained in:
@ -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(
|
||||||
|
Reference in New Issue
Block a user