diff --git a/src/views/map/index.vue b/src/views/map/index.vue index d72748b..0c4809b 100644 --- a/src/views/map/index.vue +++ b/src/views/map/index.vue @@ -1234,7 +1234,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) @@ -1472,6 +1472,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) {