[mapguide-users] Default unit for measure tool

Steve G stevenlgolden at gmail.com
Wed Sep 25 12:00:27 PDT 2013


Thanks for the response.  That variable switches the default between the
imperial system and metric system, however, not the unit of measure within
each of those systems.

I figured it out though...to set the default unit (within the two different
systems above), change the following:

In C:\Program Files\OSGeo\MapGuide\Web\www\viewerfiles\measureui.templ 

function SetUnits()
{
    if (!units || units == "")
    {
        units = GetParent().GetMapFrame().IsEnglishUnits()? "mi": "km";
    }


If you change "mi" to "ft" the the default for the imperial system will be
feet, same applies if you want the default unit for the metric system to
something other than km.




--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Default-unit-for-measure-tool-tp5078520p5079996.html
Sent from the MapGuide Users mailing list archive at Nabble.com.


More information about the mapguide-users mailing list