1. A concise explanation of the problem you’re experiencing.
Hi sir, I am trying to draw the polyline using the mouse handlers over the terrain loaded globe. While drawing the polyline the line is going under the terrain and sometimes not visible. Once i completed the drawing it is becoming transparent. How to make the line transparent while drawing also.
2. A minimal code example. If you’ve found a bug, this helps us reproduce and repair it.
shape = viewer.entities.add({
polyline : {
positions : positionData,
width : 3,
material : new Cesium.PolylineOutlineMaterialProperty({
color : Cesium.Color.YELLOW.withAlpha(0.7)
}),
depthFailMaterial : new Cesium.PolylineOutlineMaterialProperty({
color : Cesium.Color.YELLOW.withAlpha(0.7)
})
}
});
3. Context. Why do you need to do this? We might know a better way to accomplish your goal.
To mark the areas
4. The Cesium version you’re using, your operating system and browser.