[OpenLayers-Users] Drawing a polygon and retrieving it's geometric information

Bradley McLain bradley_mclain at debortoliwines.com
Sun Feb 15 18:17:34 EST 2009


Hi all,

What i would like to do is be able to draw a polygon on a map and then click
a button and have the geometric co-ordinates of that polygon displayed.

I have been using a vector layer in association with the DrawFeature
control.

 polygonEditor = new OpenLayers.Control.DrawFeature(vlayer,
OpenLayers.Handler.Polygon);
polygonEditor.activate();

This draws the shape nicely however i have been unable to work out how to
close this shape when done and then extract the information about it.

Brad


-- 
Bradley Mclain
Systems Administrator Trainee
De Bortoli Wines Pty limited
De Bortoli Rd, BILBUL NSW  2680
e:  bradley_mclain at debortoliwines.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20090216/0da3fb08/attachment.html


More information about the Users mailing list