|
|
|
@ -492,7 +492,7 @@ export default { |
|
|
|
}, false), |
|
|
|
width: 3, |
|
|
|
material: Cesium.Color.fromCssColorString('#800080'), |
|
|
|
clampToGround: true |
|
|
|
arcType: Cesium.ArcType.NONE |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
@ -700,7 +700,7 @@ export default { |
|
|
|
positions: linePositions, |
|
|
|
width: 3, |
|
|
|
material: Cesium.Color.fromCssColorString('#008aff'), |
|
|
|
clampToGround: true, |
|
|
|
arcType: Cesium.ArcType.NONE, |
|
|
|
disableDepthTestDistance: Number.POSITIVE_INFINITY |
|
|
|
} |
|
|
|
}); |
|
|
|
@ -1110,7 +1110,7 @@ export default { |
|
|
|
finalPathPositions.push(exit); |
|
|
|
this.viewer.entities.add({ |
|
|
|
id: `hold-line-${routeId}-${i}`, |
|
|
|
polyline: { positions: [entry, ...arcPoints.slice(1), exit], width: 8, material: Cesium.Color.ORANGE, clampToGround: true, zIndex: 20 }, |
|
|
|
polyline: { positions: [entry, ...arcPoints.slice(1), exit], width: 8, material: Cesium.Color.ORANGE, arcType: Cesium.ArcType.NONE, zIndex: 20 }, |
|
|
|
properties: { routeId: routeId } |
|
|
|
}); |
|
|
|
lastPos = exit; |
|
|
|
@ -1127,7 +1127,7 @@ export default { |
|
|
|
const arcPoints = this.computeArcPositions(lastPos, currPos, nextLogical, radius); |
|
|
|
this.viewer.entities.add({ |
|
|
|
id: `arc-line-${routeId}-${i}`, |
|
|
|
polyline: { positions: arcPoints, width: lineWidth, material: lineMaterial, clampToGround: true, zIndex: 20 }, |
|
|
|
polyline: { positions: arcPoints, width: lineWidth, material: lineMaterial, arcType: Cesium.ArcType.NONE, zIndex: 20 }, |
|
|
|
properties: { routeId: routeId } |
|
|
|
}); |
|
|
|
// 转弯半径两侧航点与航线整体航点风格一致,点击均打开原航点编辑(dbId 为当前 wp.id) |
|
|
|
@ -1178,7 +1178,7 @@ export default { |
|
|
|
positions: finalPathPositions, |
|
|
|
width: lineWidth, |
|
|
|
material: lineMaterial, |
|
|
|
clampToGround: true, |
|
|
|
arcType: Cesium.ArcType.NONE, |
|
|
|
zIndex: 1 |
|
|
|
}, |
|
|
|
properties: {isMissionRouteLine: true, routeId: routeId} |
|
|
|
@ -2506,7 +2506,7 @@ export default { |
|
|
|
positions: this.drawingPoints, |
|
|
|
width: this.defaultStyles.line.width, |
|
|
|
material: Cesium.Color.fromCssColorString(this.defaultStyles.line.color), |
|
|
|
clampToGround: true |
|
|
|
arcType: Cesium.ArcType.NONE |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
@ -2524,7 +2524,7 @@ export default { |
|
|
|
color: Cesium.Color.fromCssColorString(this.defaultStyles.line.color), |
|
|
|
dashLength: 16 |
|
|
|
}), |
|
|
|
clampToGround: true |
|
|
|
arcType: Cesium.ArcType.NONE |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
@ -2707,9 +2707,7 @@ export default { |
|
|
|
} |
|
|
|
return Cesium.Rectangle.fromDegrees(0, 0, 0, 0); |
|
|
|
}, false), |
|
|
|
// 设置填充颜色 |
|
|
|
material: Cesium.Color.fromCssColorString(this.defaultStyles.rectangle.color).withAlpha(this.defaultStyles.rectangle.opacity), |
|
|
|
clampToGround: true // 贴地 |
|
|
|
material: Cesium.Color.fromCssColorString(this.defaultStyles.rectangle.color).withAlpha(this.defaultStyles.rectangle.opacity) |
|
|
|
}, |
|
|
|
// 边框部分 |
|
|
|
polyline: { |
|
|
|
@ -2788,8 +2786,7 @@ export default { |
|
|
|
// 填充部分 |
|
|
|
rectangle: { |
|
|
|
coordinates: rect, |
|
|
|
material: Cesium.Color.fromCssColorString(this.defaultStyles.rectangle.color).withAlpha(this.defaultStyles.rectangle.opacity), |
|
|
|
clampToGround: true |
|
|
|
material: Cesium.Color.fromCssColorString(this.defaultStyles.rectangle.color).withAlpha(this.defaultStyles.rectangle.opacity) |
|
|
|
}, |
|
|
|
// 边框部分 |
|
|
|
polyline: { |
|
|
|
@ -3717,7 +3714,7 @@ export default { |
|
|
|
positions: positions, |
|
|
|
width: this.defaultStyles.line.width, |
|
|
|
material: Cesium.Color.fromCssColorString(this.defaultStyles.line.color), |
|
|
|
clampToGround: true |
|
|
|
arcType: Cesium.ArcType.NONE |
|
|
|
} |
|
|
|
}) |
|
|
|
const entityData = { |
|
|
|
@ -3751,9 +3748,7 @@ export default { |
|
|
|
// 填充部分 |
|
|
|
polygon: { |
|
|
|
hierarchy: new Cesium.PolygonHierarchy(polygonPositions), |
|
|
|
// 初始无填充 |
|
|
|
material: Cesium.Color.TRANSPARENT, |
|
|
|
clampToGround: true |
|
|
|
material: Cesium.Color.TRANSPARENT |
|
|
|
}, |
|
|
|
// 边框部分 |
|
|
|
polyline: { |
|
|
|
@ -4483,7 +4478,7 @@ export default { |
|
|
|
positions: linePositions, |
|
|
|
width: 3, |
|
|
|
material: Cesium.Color.fromCssColorString(color), |
|
|
|
clampToGround: true |
|
|
|
arcType: Cesium.ArcType.NONE |
|
|
|
}, |
|
|
|
label: { |
|
|
|
text: entityData.label || '线', |
|
|
|
@ -4886,7 +4881,7 @@ export default { |
|
|
|
positions: newPositions, |
|
|
|
width: selectedLineEntity.width, |
|
|
|
material: Cesium.Color.fromCssColorString(selectedLineEntity.color), |
|
|
|
clampToGround: true |
|
|
|
arcType: Cesium.ArcType.NONE |
|
|
|
} |
|
|
|
}) |
|
|
|
// 更新线实体的引用和位置数组 |
|
|
|
@ -5093,13 +5088,13 @@ export default { |
|
|
|
semiMinorAxis: radiusInMeters, |
|
|
|
semiMajorAxis: radiusInMeters, |
|
|
|
material: Cesium.Color.RED.withAlpha(0), |
|
|
|
clampToGround: true |
|
|
|
arcType: Cesium.ArcType.NONE |
|
|
|
}, |
|
|
|
polyline: { |
|
|
|
positions: circlePositions, |
|
|
|
width: 2, |
|
|
|
material: Cesium.Color.RED, |
|
|
|
clampToGround: true |
|
|
|
arcType: Cesium.ArcType.NONE |
|
|
|
} |
|
|
|
}); |
|
|
|
|
|
|
|
|