引入路径规划 数据组件添加完成点
This commit is contained in:
@@ -215,12 +215,9 @@ export default function CesiumMap({ realtimePosition, pathPoints = [], devices =
|
||||
const trackLine = viewer.entities.add({
|
||||
polyline: {
|
||||
positions: positions,
|
||||
width: 3,
|
||||
material: new Cesium.PolylineDashMaterialProperty({
|
||||
color: Cesium?.Color.BLUE,
|
||||
dashLength: 16,
|
||||
gapColor: Cesium?.Color.TRANSPARENT,
|
||||
}),
|
||||
width: 2,
|
||||
// 实线 + 纯蓝色(核心修改)
|
||||
material: Cesium.Color.BLUE.withAlpha(0.9), // 半透明蓝色实线,更美观
|
||||
clampToGround: true,
|
||||
disableDepthTestDistance: Number.POSITIVE_INFINITY,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user