Select to view content in your preferred language

Changing line rendering to include an arrow head?

1372
3
Jump to solution
09-05-2013 07:11 PM
KeithGemeinhart
Regular Contributor
I'm trying to change the symbology/appearance of a line/graphic on an ArcGISLocalFeatureLayer. I would like to have a line with an arrow on the end.

I've tried making changes in the mxd before publishing as a map package, but it doesn't look right when the layer is loaded on the map. For example, I choose the pre-defined "Arrow at end" and change the color, keeping the arrow black. Then I share the package. On my runtime app map, it looks like a thick black line. I'm guessing it's having a problem rendering the arrow, maybe repeating it over the length of the line, obscuring the actual colored line.

I tried changing the renderer on the layer but that caused some other problems, and I still couldn't get the arrow at the end of the line.

Would someone be kind enough to post some example code that shows how to change the appearance of a line to include an arrow at the end?

Thanks!
0 Kudos
1 Solution

Accepted Solutions
KeithGemeinhart
Regular Contributor
Here is a small sample I put together. Let me know if you have any questions.

https://github.com/keithgemeinhart/ArcGis.Wpf.ArrowheadDemo

View solution in original post

0 Kudos
3 Replies
JohanWennberg
Emerging Contributor
I have the same problem. And i need to get this working! Does anyone have a clue???

/Johan
0 Kudos
KeithGemeinhart
Regular Contributor
I've got a solution, but will take me a day or two until I have a chance to post some code.
0 Kudos
KeithGemeinhart
Regular Contributor
Here is a small sample I put together. Let me know if you have any questions.

https://github.com/keithgemeinhart/ArcGis.Wpf.ArrowheadDemo
0 Kudos