Tom Chiverton wrote:
> I was about to do something much harder, involving finding the tangent to the 
> lines intersection with two parallel lines.

actually here's something a bit simpler from a cfc to just figure out the arrow 
head points:

l=arrayLen(arguments.x);
arrowWidth=(arguments.mapExt.xMax-arguments.mapExt.xMin)*0.01;
arrowHeight=arrowWidth*2;
angle=atan2(arguments.y[l]-arguments.y[l-1],arguments.x[l]-arguments.x[l-1]);
//
point[1]: 
arguments.x[l]-arrowHeight*cos(angle)-arrowWidth*sin(angle),arguments.y[l]-arrowHeight*sin(angle)+arrowWidth*cos(angle)
point[2]: arguments.x[l], arguments.y[l]
point[3]: arguments.x[l]-arrowHeight*cos(angle)+arrowWidth*sin(angle),
          arguments.y[l]-arrowHeight*sin(angle)-arrowWidth*cos(angle)

the arrowWidth is a small portion of the x extents of a map, i guess you can 
just use the image size??



Reply via email to