[OpenLayers-Users] Drawing an Arc (or Circle Segment)

Mike Melson mike at melson.com
Fri Apr 19 22:55:38 PDT 2013


I need to draw numerous arcs at various distances from multiple locations. And, each arc will have different start & end values.

Ideally, a function with the following signature: function drawArc(originLongitude, originLatitude, radius, start, end) {};

I could then invoke it like: "drawArc(-119, 33, 10, 0, 90);" to draw an arc at a distance of 10 miles from that location & sweeping from due North (0 degrees) to due East (90 degrees).

Does this exist? It seems like a pretty basic drawing primitive but I can't find any examples.

Thanks,
M2


More information about the Users mailing list