[Geomoose-users] Change default measure units
Dan Little
theduckylittle at gmail.com
Thu Apr 13 06:18:25 PDT 2017
Try adding this to your mapbook:
<configuration>
...
<param name="measure_tool.line_units">m</param>
<param name="measure_tool.area_units">m</param>
...
</configuration>
The important part being the <param> as you'll likely have other
things in <configuration>.
On Wed, Apr 12, 2017 at 7:46 PM, Kevin Grootendorst
<kgrootendorst at gmail.com> wrote:
> 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
>
>
>
> _______________________________________________
> Geomoose-users mailing list
> Geomoose-users at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/geomoose-users
More information about the Geomoose-users
mailing list