[OpenLayers-Users] geometry.getLength() returns what format

Tim Schaub tschaub at openplans.org
Tue Sep 11 14:22:55 EDT 2007


Chris Hardin wrote:
> What does the persist options indicate for a handler option??

That persist option on the handlers allow the drawn feature to stick 
around until another one is drawn or the handler is deactivated.

Note that my sandbox work is not to be used in production environments, 
not to be considered stable, not to be considered good code, etc.

The stuff that makes it in to the trunk is good - but that measure stuff 
only works in limited cases (makes big assumptions about projected 
areas/lengths).

Tim

> 
> 
> On 9/5/07, Christopher Schmidt <crschmidt at metacarta.com> wrote:
>> On Wed, Sep 05, 2007 at 02:00:49PM -0500, Chris Hardin wrote:
>>> What does getLength() on the geometry object? Is this measurement in
>>> degrees? I need to convert to mileage or Kilometers.
>> This measurement is in map units. If you want it in miles, you're going
>> to want to look at:
>>
>> http://dev.openlayers.org/sandbox/tschaub/feature/examples/measure.html
>> http://dev.openlayers.org/sandbox/tschaub/feature/lib/OpenLayers/Control/Measure.js
>>
>> (I do not think these will be in 2.5.)
>>
>> Regards,
>> --
>> Christopher Schmidt
>> MetaCarta
>>
> 
> 




More information about the Users mailing list