There are 2 functions: getLength and getGeodesicLength.

eg.
var length = vectorFeature.getGeodesicLength(new
OpenLayers.Projection("EPSG:900913"));
where vectorFeature references the polyline on the vector layer you want to
measure.
-- 
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/Get-Length-of-Vector-Polyline-tp5246348p5246587.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users

Reply via email to