Polyline with Arrow and Dashed materials

1. A concise explanation of the problem you're experiencing.

I want to draw a polyline and apply both the PolylineArrow and PolylineDashed materials to it, so i end up with a dashed arrow.

2. A minimal code example. If you've found a bug, this helps us reproduce and repair it.

var arrowColor = Cesium.Color.fromCssColorString(style.lineColor);
        arrow = new Cesium.PolylineArrowMaterialProperty(arrowColor);

//how can i combine arrow material with dashed material?

var polyline = this._viewer.entities.add({
          name: 'DrawArrow'
        polyline : {
          positions : positions,
          width : style.lineWidth,
          material : arrow
        }
      });

3. Context. Why do you need to do this? We might know a better way to accomplish your goal.

I want to draw an arrow with a dashed line.

4. The Cesium version you're using, your operating system and browser.

Cesium 1.35.1 , we may be updating to 1.41 soon

Hi there,

Currently, there is no built in polyline material for both dashes and arrows. You could create your own material using GLSL and fabric, or you could modify the shaders of the built in materials.

If you do create a new material, consider contributing it as a new built-in material so others can use it!

Thanks,

Gabby