How to add icon on segment of polyline

Hello, I want to add a polyline which places icons in the middle of its each segment.
how to do?

Welcome to the Cesium Community!

This can be achieved with a polyline and a label or billboard entity with an image. Here is an example: Sandcastle. There is not a way to automatically set the billboard at the center of the polyline. That will need to be computed manually.