[OpenLayers-Users] Pointlist of Polygon

Max Weidemann max.weidemann at freenet.de
Fri Feb 5 07:14:47 EST 2010


Hi frotho,

You have too look at the Vector layer.
In your case

---> var
lastGeometry=vectors.features[(vectors.features.length-1)].geometry;

will give you the last geometry from the layer.

To get the points from an Polygon you have look at the components array.

---> var points=lastGeometry.components

I hope this will help you.

cheers
Max
-- 
View this message in context: http://n2.nabble.com/Pointlist-of-Polygon-tp4519183p4519574.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.



More information about the Users mailing list