[Geomoose-users] Change default measure units

Kevin Grootendorst kgrootendorst at gmail.com
Wed Apr 12 17:46:46 PDT 2017


I forgot to mention that the code changes were made in
'MeasureWithBearing.js'.

On Wed, Apr 12, 2017 at 8:42 PM, Kevin Grootendorst <kgrootendorst at gmail.com
> wrote:

> I would like to change the default measure units from feet to metres, but
> not sure how to do this.
> I've modified the order of the units/lengths, such that metres is on top,
> but this did not affect the default units.
>
> units: {
>         length: [
>             {'label' : 'Meters', 'inches_per' : 39.37, 'unit' : 'm'},
>             {'label' : 'Kilometers', 'inches_per' : 39370.079, 'unit' :
> 'km'},
>             {'label' : 'Feet', 'inches_per' : 12, 'unit' : 'ft'},
>             {'label' : 'Miles', 'inches_per' : 63360, 'unit' : 'mi'}
>             /*{'label' : 'Yards', 'inches_per' : 36, 'unit' : 'yd'},
>             {'label' : 'Inches', 'inches_per' : 1 ,'unit' : 'in'},
>             {'label' : 'Kilometers', 'inches_per' : 39370.079, 'unit' :
> 'km'}*/
>         ]
>     },
>
>
> I see the /* set default units */ section too, but changing the
> [selected_index] does not change the default units of feet, only the number
> of units listed in the drop down.
>
> Cheers,
> Kevin
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geomoose-users/attachments/20170412/d4d9b665/attachment.html>


More information about the Geomoose-users mailing list