|
@@ -103,7 +103,9 @@ const handlerDrawing = function (PolyType, tooltipNum) { //(传入操作的Dra
|
|
|
return;
|
|
|
}
|
|
|
if (PolyType == "Polygon") {
|
|
|
- DrawHandler.polygon._polygon._material._color._value.alpha = 0.5 //绘制面透明度
|
|
|
+ // DrawHandler.polygon._polygon._material._color._value.alpha = 0.5 //绘制面透明度
|
|
|
+ DrawHandler.polygon._polygon._material._color._value = Cesium.Color.WHITE.withAlpha(0.3)
|
|
|
+ DrawHandler.polyline._polyline._material._color._value = Cesium.Color.RED
|
|
|
}
|
|
|
let positions = cartographic(result.object.positions)
|
|
|
tooltip.setVisible(false);
|
|
@@ -112,7 +114,7 @@ const handlerDrawing = function (PolyType, tooltipNum) { //(传入操作的Dra
|
|
|
positions: positions
|
|
|
});
|
|
|
//半透线
|
|
|
- window.polylineTransparent.show = true
|
|
|
+ window.polylineTransparent.show = PolyType !== "Polygon"
|
|
|
let p2 = [...result.object.positions]
|
|
|
if (PolyType == "Polygon") { //画面时,需要首尾相连
|
|
|
p2.push(p2[0])
|