Create polylines in multiple colors

When create a polyline using entity, I want to assign different colors to each polyline segment based on the entity type. I know that each polyline can be generated individually, but it is difficult to manage them uniformly. I tried using callbackProperty to solve it but unfortunately it didn’t work,does anyone know how to solve it?

Hi there,

This particular appearance does not exist out-of-the box in CesiumJS. It sounds like you’d want to create a custom material for polylines.