polyline is not transparent while drawing on terrain loaded globe.

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.

Any solution for this for making polyline transparent and visible.

Can you post a full Sandcastle example I can run? Are you saying the polyline appears with the correct color only when it is static? Are you using a CallbackProperty to make it dynamic while drawing?

A picture might also help.