Line with arrows

Topics: SharpMap v0.9 / v1.x
Jul 17, 2011 at 4: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?

Thx

Coordinator
Jul 18, 2011 at 7:01 AM

Is that of any help:

http://sharpmap.codeplex.com/discussions/233009

cheers FObermaier

Jul 18, 2011 at 4:49 PM

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

Coordinator
Jul 18, 2011 at 9: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 3:24 PM
Edited Jul 19, 2011 at 3: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.

Thanks

Coordinator
Jul 20, 2011 at 11:13 AM

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

Hth FObermaier