[OpenLayers-Dev] Get infos on newly created polygon with Draw Feature

Leipold, Christopher leipold at bi.bisnode.de
Thu Jun 24 05:08:31 EDT 2010


Hello,

I'm trying to build a function that lets me draw a 'circle' (40-sided
polygon) and then get the coordinates of it's center and get it's
radius.

Drawing the circle is pretty straightforward (I just copied the code
from http://openlayers.org/dev/examples/regular-polygons.html) but I
don't have the slightest clue how to trigger the right event (which is
sketchcomplete I guess).

 

Any hint is appreciated!

Chris

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-dev/attachments/20100624/a30ff1ba/attachment.html


More information about the Dev mailing list