If your regular polygon is a rectangle, this code should work just fine.

var areaBound = geom.getBounds();
// fetch the extent
var minx=areaBound.left;
var miny=areaBound.bottom;
var maxx=areaBound.right;
var maxy=areaBound.top;

If your polygon is not a rectangle, this could be an starting point.
Regards,

Manuel Aymerich

http://www.argongra.es www.argongra.es 
http://labs.argongra.com labs.argongra.com 
-- 
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/Getting-coordinates-from-RegularPolygon-vertices-tp5940665p5942947.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to