[OpenLayers-Users] Vector Circle

Tim Langlois tlanglois at archetypecorp.com
Wed Apr 25 11:22:02 EDT 2007


Before I design my own, I thought I would ask.  Is there a DrawFeature
and Handler that will create a circle from mouse clicks?  Or can you
suggest the best course for implementing my own version of this.
Basically, I would like to click on the map to set the center of the
circle, then click again to define the radius and draw the circle using
a Polygon.

I've considered overriding the addFeature method for the Path control
and drawing a circle using the bounds of the line segment.  However, to
really do this properly I think I need to implement a custom control and
handler and add this to my toolbar.

Thanks,

Tim


The information transmitted is the property of Archetype, Inc. and is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Statements and opinions expressed in this e-mail may not represent those of the company.  Any review, retransmission, dissemination and other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender immediately and delete the material from any computer. E-mail transmission cannot be guaranteed to be secured or error-free as information could be intercepted, corrupted, lost, destroyed, received late or incomplete, or could contain viruses. The sender therefore does not accept liability for any error or omission in the contents of this message, which arises as a result of e-mail transmission.




More information about the Users mailing list