From a36049bf5118249032fca8d1d9eea3d97bb746cd Mon Sep 17 00:00:00 2001 From: wengxinlei Date: Wed, 11 Sep 2024 15:42:51 +0800 Subject: [PATCH] youhua --- mhvor.html | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/mhvor.html b/mhvor.html index 260457f..359fe48 100644 --- a/mhvor.html +++ b/mhvor.html @@ -144,7 +144,6 @@ scale: 0.5, width: 36, height: 28, - distanceDisplayCondition : new Cesium.DistanceDisplayCondition(10.0, 20000.0), }, label: { fillColor: { @@ -253,12 +252,12 @@ // 相机高度 let camera_height = viewer.camera.positionCartographic.height; - // 相机高度+地球最大半径 + // 相机高度+地球最大半径 let height_total = camera_height + viewer.scene.globe.ellipsoid.maximumRadius - // 实体和相机之间的距离 + // 实体和相机之间的距离 let distance_camera_entity = Cesium.Cartesian3.distance(viewer.camera.position, cartesian) - if (((distance_camera_entity < height_total)) && camera_height < 500000) { + if (((distance_camera_entity < height_total)) && camera_height < 200000) { container.style.visibility = "visible" } else { container.style.visibility = "hidden"