|
|
|
@ -408,16 +408,17 @@ export default { |
|
|
|
const nextPos = originalPositions[i + 1]; |
|
|
|
const arcPoints = this.computeArcPositions(prevPos, currPos, nextPos, radius); |
|
|
|
// 绘制红色实线弧 |
|
|
|
this.viewer.entities.add({ |
|
|
|
id: `arc-line-${routeId}-${i}`, |
|
|
|
polyline: { |
|
|
|
positions: arcPoints, |
|
|
|
width: 8, |
|
|
|
material: Cesium.Color.RED, |
|
|
|
clampToGround: true, |
|
|
|
zIndex: 20 |
|
|
|
} |
|
|
|
}); |
|
|
|
this.viewer.entities.add({ |
|
|
|
id: `arc-line-${routeId}-${i}`, |
|
|
|
polyline: { |
|
|
|
positions: arcPoints, |
|
|
|
width: 8, |
|
|
|
material: Cesium.Color.RED, |
|
|
|
clampToGround: true, |
|
|
|
zIndex: 20 |
|
|
|
}, |
|
|
|
properties: {routeId: routeId} |
|
|
|
}); |
|
|
|
console.log(`>>> 航点 ${waypoints[i].name} 已渲染红色转弯弧,半径: ${radius}`); |
|
|
|
} |
|
|
|
if (i === 0 || i === waypoints.length - 1 || radius <= 0) { |
|
|
|
|