From 19bc35c01faf426ba3efba1d988ae0192715e0a6 Mon Sep 17 00:00:00 2001 From: liujun Date: Tue, 21 May 2024 17:32:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=BA=E5=91=98=E8=BD=A8=E8=BF=B9=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E6=98=BE=E7=A4=BA=E6=B6=82=E5=B1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/map/index.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/views/map/index.vue b/src/views/map/index.vue index 8c138e9..b5f92ee 100644 --- a/src/views/map/index.vue +++ b/src/views/map/index.vue @@ -1481,7 +1481,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) @@ -1734,6 +1734,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) {