const drawPoint = (p: Point) => {
const position = Cesium.Cartesian3.fromDegrees(p.longitude, p.latitude, p.height)
p.position = position
const options = {
id: p.no,
position,
billboard: {
......
disableDepthTestDistance: Number.POSITIVE_INFINITY,
depthTestEnabled: false,
},
......
disableDepthTestDistance: Number.POSITIVE_INFINITY,
depthTestEnabled: false,
} as any
return viewer.entities.add(options)
}
const drawLine = (positions: Cesium.Cartesian3[], preview = false) => {
const options = {
polyline: {
positions,
width: 3,
material: preview ? Cesium.Color.fromCssColorString('#dcdcdc') : Cesium.Color.fromCssColorString('#1E90FF'),
depthFailMaterial: new Cesium.StripeMaterialProperty({
evenColor: Cesium.Color.RED.withAlpha(0.5),
oddColor: Cesium.Color.TRANSPARENT,
repeat: 200,
orientation: Cesium.StripeOrientation.VERTICAL,
}),
classificationType: Cesium.ClassificationType.TERRAIN,
},
}
return viewer.entities.add(options)
}
What should i do, the polyline depthFailMaterial will active only by TERRAIN not by billboard?

