Creating a Polyline

Hello everyone,

I’m working on a project where I need to create a polyline that resembles the shape shown in the image below. I plan to place it on a road using the clampToGround feature, so it needs to be quite thin. I’m having trouble making the lines V-shaped.

If anyone has experience with this or can provide guidance on how to achieve this effect, I would really appreciate your help!

Thank you!

stripes

Hi @Mehmed ,
Thanks for your post and being a part of the Cesium community.

One idea that comes to mind is you could use a texture to apply the desired pattern to your polyline.

I put a sample into a sandcastle here Cesium Sandcastle

The texture pattern comes from a sample png file via url. You would need to find or make a similar file of the v shape pattern you are aiming for.

I believe the alternative to the texture approach would be calculate the geometry of the v - shape in code and style with the colors accordingly.

Please let us know if you have further questions.

Thanks,
Luke