# Repeating arrows

**URL:** <https://community.cesium.com/t/repeating-arrows/6542>\
**Category:** CesiumJS\
**Created:** [February 6, 2018, 4:04pm UTC](https://community.cesium.com/t/repeating-arrows/6542 "2018-02-06T16:04:29Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Guillaume\_Beraudo](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/guillaume_beraudo/32/2985_2.png) [@Guillaume\_Beraudo](https://community.cesium.com/u/Guillaume_Beraudo)\
**Post date:** [February 6, 2018, 4:04pm UTC](https://community.cesium.com/t/repeating-arrows/6542/1 "2018-02-06T16:04:29Z")

</div>

Hello,

I am looking to display arrows along lines.  
At the moment, it does not seem to be supported in Cesium.

Here is my analysis of current state and what could be done (including ugly hacks):

- Billboard  
=\> unusable since it is turning when the camera move

- PolylineArrowMaterial (single head, no drapping on terrain)  
[https://cesiumjs.org/Cesium/Build/Apps/Sandcastle/?src=development/Polyline%20Material.html](https://cesiumjs.org/Cesium/Build/Apps/Sandcastle/?src=development/Polyline%20Material.html)  
=\> could cut the multiline into a list of segments, each segment would have its head  
=\> question: would it be possible to repeat the head pattern along the line? Some modulo to add to the shader?

- CylinderGeometry  
in meters so would need duplication to appear at a reasonable width when the distance changes  
the display condition could be used to avoid collision: [https://cesiumjs.org/Cesium/Build/Documentation/DistanceDisplayConditionGeometryInstanceAttribute.html](https://cesiumjs.org/Cesium/Build/Documentation/DistanceDisplayConditionGeometryInstanceAttribute.html)

- Model  
in meters  
use minimum pixel size to avoid duplicating the model  
Looks similar to: [http://cesiumjs.org/forum.html#!topic/cesium-dev/2s-gA8\_rYGk/discussion](http://cesiumjs.org/forum.html#!topic/cesium-dev/2s-gA8_rYGk/discussion)

Has someone tried addressing this issue already or has some guidances?

Thanks,  
Guillaume

---

<div class="post-metadata">

**Author:** ![upcwxq666](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/upcwxq666/32/5500_2.png) [@upcwxq666](https://community.cesium.com/u/upcwxq666)\
**Post date:** [July 13, 2021, 7:02am UTC](https://community.cesium.com/t/repeating-arrows/6542/2 "2021-07-13T07:02:06Z")

</div>

I have the same question, i tried to make arrows along polyline by using image material,have you solve the question?

---

<div class="post-metadata">

**Author:** ![sam.rothstein](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/sam.rothstein/32/6584_2.png) [@sam.rothstein](https://community.cesium.com/u/sam.rothstein)\
**Post date:** [July 13, 2021, 2:42pm UTC](https://community.cesium.com/t/repeating-arrows/6542/3 "2021-07-13T14:42:38Z")

</div>

@upcwxq666

I am not sure if there is an elegant solution to this problem. @Guillaume_Beraudo gave a comprehensive overview of most of the options and each option is clearly flawed. However, one approach would be to create two intersecting lines using [`PolylineVolumeGeometry`](https://cesium.com/learn/cesiumjs/ref-doc/PolylineVolumeGeometry.html?classFilter=volume).

Here is a sandcastle demo that can get you started:

> **[Cesium Sandcastle](https://sandcastle.cesium.com/#c=7Zdbb9owFID/ioU0KWzUXFq6jku3llZbtW6d6OUFeDCJAWuOHdkOHa347zvOhSZAEUyT2kkDicTnfMc+t9hhShSaMnpPFWojQe9Rh2oW+vgukjn9ghuNO1IYwgRV/UKx2Rd9MQqFa5gUyJV+EBraYcrl1FHEY6Euose+QGgKcwdSM8tpmL43aFrxSCrkWB0DWaUJlxbaP7Q3794llrGtnYxElolT34iZYCO7sdxhxWYMLxbBQagnTixE2XA6RBm4I6K20CIUO4veomheV2onWbFYeg7STCyglEluYmfm9kdREyrx5BZo5uuSdm2IcojydQmpKxgruF4IyHImgUSMOYUURMv/uEBlZA2aqZpTMTYT0NfAxZwmm3mbiROlyMyJ+eKzhYj1a2oBCENvYJl2G2D0MfEYNRKXl0vRY4N8R60pwSLvzDpvAy3CjSrl9Dblef3W+Y4cp95NOLQZjNscU2GAohoTz3OiCAXxaQP1C13qIWPZewYpVTIUHkhcqSA83S9EbgWSzzg8CHeSh9bqcSnsxkq4+3ikpH9Gx4pSHRXhC2XjidFOL41z70MFVxZR79cyg3oFPpnxEnqYGVRrK+zBc2yE5tmjLJsb5NlB+nToCQkgA/kN4DBCUyTO3c3McmleFiLcvbr9fpaQPoFmYoRnOC4V7p7HwBx+5/HOY4tqcylO5a9tqvrZsmgIcFTWIZ1S/lRWaCsPydDYmr5Qibcs7/vtq1utb1/dWsKuL25v8166FxmXUHx92jbX038Cb8XurYMHf6sHTy9vz7HtnRMeTIhTwbV0iaRvGsiokOZlkenKRCedr5vaufov9XOu+yq793O1snlrO9qePahs2tr+d/bLdXZy+tZe+fH7bC/vcvzWd+jn+g79XH9Vx2/8TYr5IKV/I52l0lqwUCq0tJlxepzG8Yn5gVQGhYo7GJcN9QMOq+ryMHR/UoNdrdP3+VY5a9ry2BQxr73mvwhyOdEaNKOQ82v2AFvecasM/Iopl/DWLsZXU6o4mVlsUj2+jIUY41YZhustjZR8SNTSzL8B)**
>
> The Cesium Sandcastle provides an interactive environment for testing Cesium code.

You will need to update the `positions` coordinates accordingly. If the positions are updated, you should be able to get the arrow shape that you are looking for. Let me know if you have any other questions or concerns.

-Sam

---

<div class="post-metadata">

**Author:** ![Kishore\_p](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/kishore_p/32/5777_2.png) [@Kishore\_p](https://community.cesium.com/u/Kishore_p)\
**Post date:** [July 31, 2021, 7:40pm UTC](https://community.cesium.com/t/repeating-arrows/6542/4 "2021-07-31T19:40:00Z")

</div>

Same here looking for kinda directed path like multiple arrows in between is there such a feature already?

---

<div class="post-metadata">

**Author:** ![sam.rothstein](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/sam.rothstein/32/6584_2.png) [@sam.rothstein](https://community.cesium.com/u/sam.rothstein)\
**Post date:** [August 2, 2021, 12:39am UTC](https://community.cesium.com/t/repeating-arrows/6542/5 "2021-08-02T00:39:43Z")

</div>

@Kishore_p

Welcome to the community! I suggest using `CZML`. This demo shows how to add various kinds of `CZML` lines to the Cesium World Terrain.

> **[Cesium Sandcastle](https://sandcastle.cesium.com/?src=CZML%20Polyline.html&label=CZML)**
>
> The Cesium Sandcastle provides an interactive environment for testing Cesium code.

To fit this demo to your needs, you will need to update the `cartographicDegrees` member. Here is some more information on `CZML`:

> **[CZML Guide](https://github.com/AnalyticalGraphicsInc/czml-writer/wiki/CZML-Guide)**
>
> A library for writing CZML content for use with Cesium. - AnalyticalGraphicsInc/czml-writer

Let me know if you have any other questions or concerns.

Best,  
Sam
