viewer.entities.add({
name: "Red line on the surface",
polyline: {
positions: Cesium.Cartesian3.fromDegreesArray([
120.07707916829266,
33.31066501592769,
120.07898303220986,
33.305927861283074
]),
width: 20,
depthFailMaterial: new Cesium.PolylineOutlineMaterialProperty({
color: new Cesium.Color(238, 2387, 0, 0.2)
})
}
});