Problem with polyline material


viewer.entities.add({
polyline: {
positions: cartesians,
clampToGround: true,
width: 3,
material: new Cesium.PolylineDashMaterialProperty({
color: Cesium.Color.WHITE,
gapColor: Cesium.Color.BLACK,
phase: 10.0,
}),
},
})

I have provided a screenshot, in which there are two lines, one straight line and one polyline. The black and white interval of the two lines is 1:1, but the black and white interval of the polyline will change. How can I solve this problem?

I’ve tried, and this only happens on broken lines with nodes, straight lines don’t

Hey @guanzheyuan, would you be able to provide a minimal Sandcastle example of the issue you’re seeing? I’m not sure I totally understand what you’re describing

How to set the black and white 1:1 for a polyline with a turning point in cesium, so that no matter how the earth is scaled, the black and white 1:1 will not be out of balance


I I posted a screenshot of that.
The black and white ratio on the straight line is normal no problem.
The black and white ratio is out of whack on the folded line below with the corner points.

This is discussed in Polyline material problem