[Geomoose-users] Change default measure units

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


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/140058c8/attachment.html>


More information about the Geomoose-users mailing list