<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:o = 
"urn:schemas-microsoft-com:office:office" xmlns:w = 
"urn:schemas-microsoft-com:office:word" xmlns:st1 = 
"urn:schemas-microsoft-com:office:smarttags"><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.16587" name=GENERATOR><o:SmartTagType 
name="PostalCode" 
namespaceuri="urn:schemas-microsoft-com:office:smarttags"></o:SmartTagType><o:SmartTagType 
name="City" 
namespaceuri="urn:schemas-microsoft-com:office:smarttags"></o:SmartTagType><o:SmartTagType 
name="State" 
namespaceuri="urn:schemas-microsoft-com:office:smarttags"></o:SmartTagType><o:SmartTagType 
name="PlaceType" 
namespaceuri="urn:schemas-microsoft-com:office:smarttags"></o:SmartTagType><o:SmartTagType 
name="PlaceName" 
namespaceuri="urn:schemas-microsoft-com:office:smarttags"></o:SmartTagType><o:SmartTagType 
name="place" 
namespaceuri="urn:schemas-microsoft-com:office:smarttags"></o:SmartTagType><!--[if !mso]>
<STYLE>st1\:* {
        BEHAVIOR: url(#default#ieooui)
}
</STYLE>
<![endif]-->
<STYLE>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
p.MsoAutoSig, li.MsoAutoSig, div.MsoAutoSig
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:Verdana;
        color:windowtext;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</STYLE>
</HEAD>
<BODY lang=EN-US vLink=purple link=blue bgColor=#ffffff>
<DIV><FONT size=2>Hi</FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2>the unit were never intended to be parametrable</FONT></DIV>
<DIV><FONT size=2>but you can certainly modify the javascript.</FONT></DIV>
<DIV><FONT size=2>see functions Map.prototype.distance and Map.prototype.surface 
in dhtmlInit.js</FONT></DIV>
<DIV><FONT size=2>all the calculation are done in metric value, so I think you 
only need to&nbsp;add a conversion formula&nbsp;just after the 
lines&nbsp;distance = ... and surface = </FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2>the string "km2" and "km" are automaticaly recovered from the 
template, so simply replace km2 and km in the template by whatever you 
want.</FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2>by the way, you can place the modified dhtmlInit.js in your 
project, this way only your project will bne affected by this 
modification.</FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2>regards</FONT></DIV>
<DIV><FONT size=2>Oliver</FONT></DIV>
<BLOCKQUOTE 
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV 
  style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
  <A title=kmenke@edac.unm.edu href="mailto:kmenke@edac.unm.edu">Kurt Menke</A> 
  </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A 
  title=cartoweb-users@lists.maptools.org 
  href="mailto:cartoweb-users@lists.maptools.org">cartoweb-users@lists.maptools.org</A> 
  </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Wednesday, February 06, 2008 7:54 
  PM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> [Cartoweb-users] statictools 
  units</DIV>
  <DIV><BR></DIV>
  <DIV class=Section1>
  <P class=MsoNormal><FONT face=Verdana size=3><SPAN 
  style="FONT-SIZE: 12pt; FONT-FAMILY: Verdana">Is there a way to configure the 
  units that are reported by using the distance and surface tools?&nbsp; I’d 
  like surface area to be reported in acres and distance in miles but haven’t 
  seen any options to change the units which by default are set to km2 and 
  km.<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Verdana size=3><SPAN 
  style="FONT-SIZE: 12pt; FONT-FAMILY: Verdana">Kurt<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Verdana size=3><SPAN 
  style="FONT-SIZE: 12pt; FONT-FAMILY: Verdana"><o:p>&nbsp;</o:p></SPAN></FONT></P>
  <P class=MsoAutoSig><FONT face=Verdana size=2><SPAN lang=NL 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana">*************************************</SPAN></FONT><SPAN 
  lang=NL><o:p></o:p></SPAN></P>
  <P class=MsoAutoSig><FONT face=Verdana size=2><SPAN lang=NL 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana">Kurt A. Menke, 
  GISP</SPAN></FONT><SPAN lang=NL><o:p></o:p></SPAN></P>
  <P class=MsoAutoSig><FONT face=Verdana size=2><SPAN lang=NL 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana">GIS 
  Analyst/Programmer</SPAN></FONT><SPAN lang=NL><o:p></o:p></SPAN></P>
  <P class=MsoAutoSig><st1:place w:st="on"><st1:PlaceName w:st="on"><FONT 
  face=Verdana size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana">Earth</SPAN></FONT></st1:PlaceName><FONT 
  face=Verdana size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana"> 
  <st1:PlaceName w:st="on">Data</st1:PlaceName> <st1:PlaceName 
  w:st="on">Analysis</st1:PlaceName> <st1:PlaceType 
  w:st="on">Center</st1:PlaceType></SPAN></FONT></st1:place><o:p></o:p></P>
  <P class=MsoAutoSig><FONT face=Verdana size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana">MSC01 
  1110</SPAN></FONT><o:p></o:p></P>
  <P class=MsoAutoSig><FONT face=Verdana size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana">1 University of <st1:State 
  w:st="on"><st1:place w:st="on">New 
  Mexico</st1:place></st1:State></SPAN></FONT><o:p></o:p></P>
  <P class=MsoAutoSig><st1:place w:st="on"><st1:City w:st="on"><FONT 
  face=Verdana size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana">Albuquerque</SPAN></FONT></st1:City><FONT 
  face=Verdana size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana">, 
  <st1:State w:st="on">NM</st1:State> <st1:PostalCode 
  w:st="on">87131-0001</st1:PostalCode></SPAN></FONT></st1:place><o:p></o:p></P>
  <P class=MsoAutoSig><FONT face=Verdana size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana">Ph: 505-277-3622 
  x239</SPAN></FONT><o:p></o:p></P>
  <P class=MsoAutoSig><FONT face=Verdana size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana">Fax: 
  505-277-3614</SPAN></FONT><o:p></o:p></P>
  <P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
  style="FONT-SIZE: 12pt"><o:p>&nbsp;</o:p></SPAN></FONT></P></DIV>
  <P>
  <HR>

  <P></P>_______________________________________________<BR>Cartoweb-users 
  mailing 
  list<BR>Cartoweb-users@lists.maptools.org<BR>http://lists.maptools.org/mailman/listinfo/cartoweb-users<BR></BLOCKQUOTE></BODY></HTML>