[OpenLayers-Users] Get Length of Vector Polyline
Derek Watling
derek at cmainfo.co.za
Fri Jul 2 02:52:23 EDT 2010
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.
More information about the Users
mailing list