Select to view content in your preferred language

Line style to include a directional arrow at the start of the line

522
4
02-13-2024 11:27 PM
Labels (1)
Sprawls
Emerging Contributor

I had lovely line work in PRO - segment lines with a starting perpendicular line and and offset direction of flow arrow at each line start. Of course AGOL did not like it. 

I went through all the symbology options in AGOL and don't seem to be able to get an arrow at the START of each line segment. One arrow per each segment at the start only.  

Question 1 - did I miss something in the AGOL symbology? Is there an option for start of line only?

If not - Question 2 - can someone point me to some code so I can show the lines in this manner? 

If still not, I am thinking I will publish multiple of the same data - once for the boring lines, and another for the arrow point. Seems overkill to me - have others found a better solution? 

 

0 Kudos
4 Replies
Amir-Sarrafzadeh-Arasi
Frequent Contributor

Dear EveSprawling,

I hope you are doing well,

With Dictionary option in the symbology section in ArcGIS Pro, you can do almost what-ever you want.

Please check my github in the below link. There is a sample project of Dictionary renderer.

https://github.com/AmirSarrafzadeh/symbology_dictionary

I also attached some useful links to learn more in details about the dictionary rendrerer.

Just remember you will need ArcGIS Pro and DB Browser for SQLite for opening .stylx file, and you need a little knowledge of Arcade to figure out the .stylx.

https://developers.arcgis.com/net/styles-and-data-visualization/display-symbols-with-a-dictionary-re...

https://developers.arcgis.com/net/wpf/sample-code/custom-dictionary-style/

I also attached a random pircture of my project in Github,

All the symbols, colors and text you see are dynamic.

 

Symb.png

hope it helps,

for any more information please let me know.

 

Amir Sarrafzadeh Arasi
RussRoberts
Esri Notable Contributor

Can you share a style file with the symbol and I can take a look? Where are you viewing this symbol - Map Viewer or Map Viewer Classic? 

 

Quick sample here is Map Viewer

RussRoberts_0-1707917502327.png

 

Pro

RussRoberts_1-1707917578560.png

 

 

Thanks!

0 Kudos
Sprawls
Emerging Contributor

Hi. Thanks. Map Viewer. The arrows here are at the end of the lines. I need them at the beginning. 

0 Kudos
Sprawls
Emerging Contributor

I went back in Pro and did Share - Overwrite layer. This time I turned off "make symbology compatible for all users." The symbology publishes as it does in Pro. 

 

This is a line feature. 3 parts to the symbol. Thin very light grey line, with a perpendicular line at the Start point (break between segments) and arrow of direction. 

 

ArrowExample.png

0 Kudos