Hi guys,
I am trying to draw arrowheads on a line using a custom ArrowheadLineStyle which inherits from LineStyle (Please see the attached code). The bearing of the arrowheads is correct when I draw straight lines between points using LineShape (please refer to screenshot below).
However, when I draw a multilineshape from the wellknowntext generated by the TSP algorithm of the routing extension, the some (or half of the) arrowheads point at the the opposite direction of where it's meant to be pointing. The arrowheads with incorrect directions have been circled:
I don't think this is caused by the 180 degree difference between initial bearing bearing and the final bearing as the points are so close to each other. Or is it an issue with the wellnowntext route generated by the routing extension? Another thing that comes to mind is the issue I reported (gis.thinkgeo.com/Support/Dis...fault.aspx) re the rotationangle being calculated in an anti-clockwise direction instead of the traditional clockwise direction used to calculate bearing in navigation.
Your help with this issue would be appreciated.
Thanks,
Nirish
1941-ArrowheadLineStyle.cs (16.8 KB)