Compare commits

..

3 Commits

Author SHA1 Message Date
guoyuepeng 05a8219cf7 Merge remote-tracking branch 'origin/pet' into pet 2024-04-24 18:32:25 +08:00
guoyuepeng 77ffeafcdf Merge remote-tracking branch 'origin/pet' into pet 2024-04-23 14:51:46 +08:00
guoyuepeng 513997d923 1.企业端地图图层问题修复。轨迹和聚合点图层上移 2024-04-23 14:39:25 +08:00
1 changed files with 4 additions and 1 deletions

View File

@ -1234,7 +1234,7 @@ export default {
} }
const entity = new Cesium.Entity({ const entity = new Cesium.Entity({
id: 'trajectory', 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') const collection = new Cesium.CustomDataSource('trajectoryEntityCollection')
collection.entities.add(entity) collection.entities.add(entity)
@ -1472,6 +1472,9 @@ export default {
cluster.billboard.show = true cluster.billboard.show = true
cluster.billboard.id = cluster.label.id cluster.billboard.id = cluster.label.id
cluster.billboard.verticalOrigin = Cesium.VerticalOrigin.BOTTOM 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) { if (clusteredEntities.length >= 100) {
cluster.billboard.image = pin100 cluster.billboard.image = pin100
} else if (clusteredEntities.length >= 50) { } else if (clusteredEntities.length >= 50) {