[OpenLayers-Users] Measuring tool

Christopher Schmidt crschmidt at metacarta.com
Wed Mar 19 07:03:26 EDT 2008


On Wed, Mar 19, 2008 at 08:44:42AM +0100, Gérald Quintana wrote:
> Hi,
> 
> Once I saw an example of Control to measure the length of a path
> (rubber), but I can't find it anymore. Where is it?
> 
> I managed to do my own using the DrawFeature control and the
> Curve.getLength() method but I miss the conversion factor to get the
> distance in meters or kilometers, how can I do it?

No measurement tool in OpenLayers has ever done this. Hoever, the
OpenLayers.Util.distVincenty function might help you.

Regards,
-- 
Christopher Schmidt
MetaCarta



More information about the Users mailing list