From 513997d9235f0290693ffa72a29755c82437bc1c Mon Sep 17 00:00:00 2001 From: guoyuepeng <770272267@qq.com> Date: Tue, 23 Apr 2024 14:39:25 +0800 Subject: [PATCH] =?UTF-8?q?1.=E4=BC=81=E4=B8=9A=E7=AB=AF=E5=9C=B0=E5=9B=BE?= =?UTF-8?q?=E5=9B=BE=E5=B1=82=E9=97=AE=E9=A2=98=E4=BF=AE=E5=A4=8D=E3=80=82?= =?UTF-8?q?=E8=BD=A8=E8=BF=B9=E5=92=8C=E8=81=9A=E5=90=88=E7=82=B9=E5=9B=BE?= =?UTF-8?q?=E5=B1=82=E4=B8=8A=E7=A7=BB?= 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 ebaae81..2cbfa93 100644 --- a/src/views/map/index.vue +++ b/src/views/map/index.vue @@ -1224,7 +1224,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) @@ -1463,6 +1463,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) {