[OpenLayers-Users] Handler.RegularPolygon
Tim Langlois
tlanglois at archetypecorp.com
Fri May 4 15:42:53 EDT 2007
I wrote a custom handler to draw an N-sided regular polygon by clicking
and dragging a line to specify the radius. The polygon is drawn on
mouse up. The number of sides is specified by the "sides" attribute.
Here's an example. Click the polygon button in the toolbar in the upper
right corner and click and drag to create the polygon. To change the
sides, enter the number of sides you want and click submit.
http://maps.terratrace.net/mapserver/vmaptest.html
Attached is the handler code.
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070504/6e067e85/RegularPolygon.js.html
More information about the Users
mailing list