This project has moved and is read-only. For the latest updates, please go here.

Line with arrows

Topics: SharpMap v0.9 / v1.x
Jul 17, 2011 at 5:55 PM

Hi All!

I draw some lines on my map. I'd like have arrows at every points (Vertices) that symbolizes the heading of the line. How can I do that?


Jul 18, 2011 at 8:01 AM

Is that of any help:

cheers FObermaier

Jul 18, 2011 at 5:49 PM

Thx FObermaier, I know that sample, but I need arrows at the points, not at equally distances.

Jul 18, 2011 at 10:42 PM

For your purpose the SplitLineString function is even easier. Just split the linestring up into its segements.

I don't see any other way, GDI+ only allows rendering Arrows at the beginning or end of a line.

Hth FObermaier

Jul 19, 2011 at 4:24 PM
Edited Jul 19, 2011 at 4:24 PM

When spiliiting, I'll have seperate line geometries instead of one? Am I right? If so, than I should look for another solution, because I need that geometry in one, not in seperate as several ones.


Jul 20, 2011 at 12:13 PM

you are right, but you may do that just for rendering

Hth FObermaier