[OpenLayers-Users] How do I get my polygon coordinates?

Salvaro asufsc at gmail.com
Wed Sep 10 09:09:25 EDT 2008


geometry.getBounds().getCenterLonlat() ?

Salvaro.


Bijoy wrote:
> 
> 
> Hey,
> I am drawing a polygon using the handler as shown below:
> 
> 	polycontrol = new OpenLayers.Control.DrawFeature(vectors,
> OpenLayers.Handler.Polygon);
> 	map.addControl(polycontrol);
> 	polycontrol.activate();
> 
> Now, how do I get polygon coordinates when I finish drawing the polygon?
> 
> -- 
> View this message in context:
> http://www.nabble.com/How-do-I-get-my-polygon-coordinates--tp19413142p19413142.html
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
> 
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
> 
> 

-- 
View this message in context: http://n2.nabble.com/How-do-I-get-my-polygon-coordinates--tp1079900p1079911.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.




More information about the Users mailing list