浏览代码

upgrade the cesium

tags/2.16.0
Caven Chen 3 年前
父节点
当前提交
3eaf8ba232
共有 1 个文件被更改,包括 14 次插入6 次删除
  1. 14
    6
      modules/overlay/primitive/LightCylinderPrimitive.js

+ 14
- 6
modules/overlay/primitive/LightCylinderPrimitive.js 查看文件

@@ -211,9 +211,9 @@ class LightCylinderPrimitive extends Overlay {
this._computeEllipsePositions(this._center, this._bottomRadius * 2)
),
perPositionHeight: !isGroud
})
}),
asynchronous: false
}),
asynchronous: false
})
}

// ring
@@ -254,9 +254,17 @@ class LightCylinderPrimitive extends Overlay {
asynchronous: false
})

this._delegate.add(ring)
this._delegate.add(circle)
this._delegate.add(cylinder)
if (isGroud) {
Cesium.GroundPrimitive.initializeTerrainHeights().then(() => {
this._delegate.add(ring)
this._delegate.add(circle)
this._delegate.add(cylinder)
})
} else {
this._delegate.add(ring)
this._delegate.add(circle)
this._delegate.add(cylinder)
}

// particles
Cesium.Resource.fetchImage({ url: IMG_PARTICLES }).then(image => {

正在加载...
取消
保存