[OpenLayers-Users] Measuring tool

Mike Quentel mquentel at rim.com
Tue Mar 25 18:38:39 EDT 2008


Here is a link to tips for distance measure tool that might help: 

http://openlayers.org/pipermail/users/2007-May/001682.html

-----Original Message-----
From: users-bounces at openlayers.org [mailto:users-bounces at openlayers.org] On Behalf Of Christopher Schmidt
Sent: Wednesday, 19 March 2008 07:03
To: users at openlayers.org
Subject: Re: [OpenLayers-Users] Measuring tool

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
_______________________________________________
Users mailing list
Users at openlayers.org
http://openlayers.org/mailman/listinfo/users

---------------------------------------------------------------------
This transmission (including any attachments) may contain confidential information, privileged material (including material protected by the solicitor-client or other applicable privileges), or constitute non-public information. Any use of this information by anyone other than the intended recipient is prohibited. If you have received this transmission in error, please immediately reply to the sender and delete this information from your system. Use, dissemination, distribution, or reproduction of this transmission by unintended recipients is not authorized and may be unlawful.



More information about the Users mailing list