|
@@ -103,7 +103,9 @@ const handlerDrawing = function (PolyType, tooltipNum) {
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
if (PolyType == "Polygon") {
|
|
if (PolyType == "Polygon") {
|
|
- 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)
|
|
let positions = cartographic(result.object.positions)
|
|
tooltip.setVisible(false);
|
|
tooltip.setVisible(false);
|
|
@@ -112,7 +114,7 @@ const handlerDrawing = function (PolyType, tooltipNum) {
|
|
positions: positions
|
|
positions: positions
|
|
});
|
|
});
|
|
|
|
|
|
- window.polylineTransparent.show = true
|
|
+ window.polylineTransparent.show = PolyType !== "Polygon"
|
|
let p2 = [...result.object.positions]
|
|
let p2 = [...result.object.positions]
|
|
if (PolyType == "Polygon") {
|
|
if (PolyType == "Polygon") {
|
|
p2.push(p2[0])
|
|
p2.push(p2[0])
|