人员轨迹修改显示涂层

5_7_地图同步
liujun 2024-05-21 16:51:02 +08:00
parent 23aa4ca7f7
commit 7f0caa34bd
1 changed files with 4 additions and 1 deletions

View File

@ -1607,7 +1607,7 @@ export default {
}
const entity = new Cesium.Entity({
id: 'trajectory',
polyline: { positions, width: 5.0, material: Cesium.Color.RED }
polyline: { positions, width: 5.0, material: Cesium.Color.RED, clampToGround: true }
})
const collection = new Cesium.CustomDataSource('trajectoryEntityCollection')
collection.entities.add(entity)
@ -1860,6 +1860,9 @@ export default {
cluster.billboard.show = true
cluster.billboard.id = cluster.label.id
cluster.billboard.verticalOrigin = Cesium.VerticalOrigin.BOTTOM
cluster.billboard.horizontalOrigin = Cesium.HorizontalOrigin.CENTER
cluster.billboard.heightReference = Cesium.HeightReference.CLAMP_TO_GROUND
cluster.billboard.disableDepthTestDistance = Number.POSITIVE_INFINITY
if (clusteredEntities.length >= 100) {
cluster.billboard.image = pin100
} else if (clusteredEntities.length >= 50) {