[Geomoose-users] Change default measure units

Kevin Grootendorst kgrootendorst at gmail.com
Mon Apr 17 05:14:07 PDT 2017


That works - thanks.

On Thu, Apr 13, 2017 at 9:18 AM, Dan Little <theduckylittle at gmail.com>
wrote:

> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geomoose-users/attachments/20170417/c07595f9/attachment.html>


More information about the Geomoose-users mailing list