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

claudia office at gisgeo.pt
Tue Nov 30 06:04:10 EST 2010



Leipold, Christopher wrote:
> 
> 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
> 
> 
> _______________________________________________
> Dev mailing list
> Dev at openlayers.org
> http://openlayers.org/mailman/listinfo/dev
> 
> 
Hi, 
I'm having the exact same problem (get the center and radius of a drawn
circle) and would like to know if you have already sorted it out and
appreciate if you could share the answer. 

Thanks, Cláudia 
-- 
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Get-infos-on-newly-created-polygon-with-Draw-Feature-tp5216851p5787707.html
Sent from the OpenLayers Dev mailing list archive at Nabble.com.


More information about the Dev mailing list