[mapguide-users] Re: Measure Tool distance in Feet not Miles

Jamo adam.jamison at portbris.com.au
Tue Sep 28 23:14:17 EDT 2010


in your www\viewerfiles\measureui.templ change these lines to what you need.

function SetMeasureResults(partial, total)
{
//modify partial*1000 to convert yout miles to feet
    document.getElementById("partial").innerHTML =
FormatLocalizedDecimal(partial*1000, 2);
    document.getElementById("total").innerHTML =
FormatLocalizedDecimal(total*1000, 2);
}

function ShowUnits()
{
    var units = GetParent().GetMapFrame().IsEnglishUnits()? "__#MILES#__":
"__#KILOMETERS#__";
    document.getElementById("units1").innerHTML = "Meters"; //change to feet
    document.getElementById("units2").innerHTML = "Meters"; //change to feet
}

-- 
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Measure-Tool-distance-in-Feet-not-Miles-tp5580857p5582109.html
Sent from the MapGuide Users mailing list archive at Nabble.com.


More information about the mapguide-users mailing list