[Users] Change Measurement Units in GeoExt.ux.MeasureLength

Eric Lemoine eric.lemoine at camptocamp.com
Wed Sep 22 08:59:18 CEST 2010


On Tue, Sep 21, 2010 at 9:14 PM, Stacey Larsen <staceylarsen at landez.com> wrote:
> Has anyone tried or found a way to change the units of measurement used in
> GeoExt.ux.MeasureLength()?  For example, if you wanted the length in miles
> instead of kilometers.

To get miles instead of kilometers displaySystem: "english" must be
passed to the Measure control. And passing options to the Measure
control is done through the controlOptions option, so something like
that:

new GeoExt.ux.MeasureLength({
    controlOptions: {displaySystem: "english"}
});


Cheers,

-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemoine at camptocamp.com
http://www.camptocamp.com


More information about the Users mailing list