feat(3d-situational-awareness): 禁用地图标记的深度测试

为点实体和公告板添加 `disableDepthTestDistance` 属性,以确保标记无论地形或其他物体如何都保持可见
This commit is contained in:
Zzc 2025-11-25 11:38:41 +08:00
parent 8ed82ad175
commit ff767925af

View File

@ -176,7 +176,8 @@ export function useMapMarkers() {
pixelSize: 12, pixelSize: 12,
outlineColor: Cesium.Color.WHITE, outlineColor: Cesium.Color.WHITE,
outlineWidth: 2, outlineWidth: 2,
heightReference: Cesium.HeightReference.CLAMP_TO_GROUND heightReference: Cesium.HeightReference.CLAMP_TO_GROUND,
disableDepthTestDistance: Number.POSITIVE_INFINITY
} }
}) })
entities.push(pointEntity) entities.push(pointEntity)
@ -654,7 +655,8 @@ export function useMapMarkers() {
width: 48, width: 48,
height: 48, height: 48,
verticalOrigin: Cesium.VerticalOrigin.BOTTOM, verticalOrigin: Cesium.VerticalOrigin.BOTTOM,
heightReference: resolveBillboardHeightReference(result.samplingSucceeded) heightReference: resolveBillboardHeightReference(result.samplingSucceeded),
disableDepthTestDistance: Number.POSITIVE_INFINITY
}, },
properties: { properties: {
type, type,
@ -741,7 +743,8 @@ export function useMapMarkers() {
width: 48, width: 48,
height: 48, height: 48,
verticalOrigin: Cesium.VerticalOrigin.BOTTOM, verticalOrigin: Cesium.VerticalOrigin.BOTTOM,
heightReference: resolveBillboardHeightReference(result.samplingSucceeded) heightReference: resolveBillboardHeightReference(result.samplingSucceeded),
disableDepthTestDistance: Number.POSITIVE_INFINITY
}, },
properties: { properties: {
type: 'station', type: 'station',