您好,
entity有个参数为 disableDepthTestDistance ,设置可以解决遮挡情况
示例如下:
viewer.entities.add(new Cesium.Entity({
point: new Cesium.PointGraphics({
color: new Cesium.Color(1, 1, 0),
pixelSize: 10,
outlineColor: new Cesium.Color(0, 1, 1),
disableDepthTestDistance:50000// 可以显示的距离
}),
position: Cesium.Cartesian3.fromDegrees(longitude, latitude, height + 0.5)
}));
}, Cesium.ScreenSpaceEventType.LEFT_CLICK);