|
|
|
@ -4101,6 +4101,9 @@ this.viewer.scene.postProcessStages.fxaa.enabled = true |
|
|
|
entity.polyline.material = Cesium.Color.fromCssColorString(data.borderColor || data.color) |
|
|
|
entity.polyline.width = data.width |
|
|
|
} |
|
|
|
if (data.name && data.centerEntity && data.centerEntity.label) { |
|
|
|
data.centerEntity.label.text = data.name |
|
|
|
} |
|
|
|
break |
|
|
|
case 'sector': |
|
|
|
if (entity.polygon) { |
|
|
|
@ -5104,6 +5107,17 @@ this.viewer.scene.postProcessStages.fxaa.enabled = true |
|
|
|
outlineColor: Cesium.Color.WHITE, |
|
|
|
outlineWidth: 2, |
|
|
|
disableDepthTestDistance: Number.POSITIVE_INFINITY |
|
|
|
}, |
|
|
|
label: { |
|
|
|
text: '', |
|
|
|
font: '14px Microsoft YaHei', |
|
|
|
fillColor: Cesium.Color.WHITE, |
|
|
|
outlineColor: Cesium.Color.BLACK, |
|
|
|
outlineWidth: 2, |
|
|
|
style: Cesium.LabelStyle.FILL_AND_OUTLINE, |
|
|
|
verticalOrigin: Cesium.VerticalOrigin.TOP, |
|
|
|
pixelOffset: new Cesium.Cartesian2(0, -20), |
|
|
|
disableDepthTestDistance: Number.POSITIVE_INFINITY |
|
|
|
} |
|
|
|
}); |
|
|
|
|
|
|
|
@ -5144,12 +5158,17 @@ this.viewer.scene.postProcessStages.fxaa.enabled = true |
|
|
|
centerEntity: this.powerZoneCenterEntity, |
|
|
|
center: this.powerZoneCenter, |
|
|
|
radius: radiusInMeters, |
|
|
|
name: radiusData.name, |
|
|
|
color: '#FF0000', |
|
|
|
opacity: 0, |
|
|
|
borderColor: '#FF0000', |
|
|
|
width: 2 |
|
|
|
}); |
|
|
|
|
|
|
|
if (this.powerZoneCenterEntity && this.powerZoneCenterEntity.label) { |
|
|
|
this.powerZoneCenterEntity.label.text = radiusData.name; |
|
|
|
} |
|
|
|
|
|
|
|
this.isDrawing = false; |
|
|
|
this.viewer.canvas.style.cursor = 'default'; |
|
|
|
|
|
|
|
|