<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'><font style="font-size:10pt;" color="#366092" face="Arial" size="2"><br id="FontBreak"></font>if the layer is in utm, I think yes, by default the measurement will be in meters (as far I know). I don't work with geoserver so I can't help you much here, but the value you get can be converted to miles in javascript, you would just need to catch the value before it gets printed.<br><br><font style="font-size:10pt" color="#1F497D" face="Arial" size="2"><br>__________________________________________________________________________________________<br>Piensa en el medio ambie<font style="" face="Arial">nte - mantenlo en la pantalla. NO lo imprimas si NO es necesario.</font></font><font style="font-size:10pt" color="#1F497D" face="Arial" size="2"><br></font><font style="font-size:10pt" color="#1F497D" face="Arial" size="2">Think green - keep it on the screen. Do NOT print if it is NOT necessary.</font><font style="font-size:10pt" color="#1F497D" face="Arial" size="2"><br></font><font style="font-size:10pt" color="#1F497D" face="Arial" size="2"><span id="ecxresult_box" class="ecxshort_text" lang="de"><span class="ecxhps">Denken Sie an</span> <span class="ecxhps">die Umwelt</span></span></font><font style="font-size:10pt" color="#1F497D" face="Arial" size="2"><span id="ecxresult_box" lang="de"><span class="ecxhps"></span> <span class="ecxhps">-</span> <span class="ecxhps">bewahren Sie es</span> <span class="ecxhps">auf dem Bildschirm.</span> <span class="ecxhps">Drucken Sie es NICHT</span><span>, wenn</span> <span class="ecxhps">es NICHT notwendig ist</span><span>.</span></span></font><br><br><br><div><div id="SkyDrivePlaceholder"></div><hr id="stopSpelling">From: sk92129@gmail.com<br>Date: Thu, 21 Feb 2013 14:12:30 -0800<br>Subject: Re: [OpenLayers-Users] measure control...<br>To: gamejihou@hotmail.com<br>CC: openlayers-users@lists.osgeo.org<br><br><div dir="ltr"><div><div>do you mean that the layer in geoserver controls the measure tool in OpenLayers?<br><br></div>So if the layer in geoserver is UTM -- the measurement tool cannot generate miles ? <br><br></div>What do folks do to make this work as a general solution -- regardless of the projection in the layer? Do folks who use OpenLayer have to look at the measurement event.units and convert on the OpenLayer javascript side?<br>
<br><br></div><div class="ecxgmail_extra"><br><br><div class="ecxgmail_quote">On Thu, Feb 21, 2013 at 2:01 PM, Gery . <span dir="ltr"><<a href="mailto:gamejihou@hotmail.com" target="_blank">gamejihou@hotmail.com</a>></span> wrote:<br>
<blockquote class="ecxgmail_quote" style="border-left:1px #ccc solid;padding-left:1ex;">
<div><div dir="ltr"><font style="font-size:10pt;" color="#366092" face="Arial"><br></font>probably because your base map has utm values, check the projection of your layer.<br><br><font style="font-size:10pt;" color="#1F497D" face="Arial"><br>
__________________________________________________________________________________________<br>Piensa en el medio ambie<font face="Arial">nte - mantenlo en la pantalla. NO lo imprimas si NO es necesario.</font></font><font style="font-size:10pt;" color="#1F497D" face="Arial"><br>
</font><font style="font-size:10pt;" color="#1F497D" face="Arial">Think green - keep it on the screen. Do NOT print if it is NOT necessary.</font><font style="font-size:10pt;" color="#1F497D" face="Arial"><br></font><font style="font-size:10pt;" color="#1F497D" face="Arial"><span lang="de"><span>Denken Sie an</span> <span>die Umwelt</span></span></font><font style="font-size:10pt;" color="#1F497D" face="Arial"><span lang="de"><span></span> <span>-</span> <span>bewahren Sie es</span> <span>auf dem Bildschirm.</span> <span>Drucken Sie es NICHT</span><span>, wenn</span> <span>es NICHT notwendig ist</span><span>.</span></span></font><br>
<br><br><div><div></div>> Date: Thu, 21 Feb 2013 13:57:53 -0800<br>> From: <a href="mailto:sk92129@gmail.com" target="_blank">sk92129@gmail.com</a><br>> To: <a href="mailto:openlayers-users@lists.osgeo.org" target="_blank">openlayers-users@lists.osgeo.org</a><br>
> Subject: Re: [OpenLayers-Users] measure control...<div><div class="h5"><br>> <br>> I still dont get miles units -- mine still comes out as KM.<br>> <br>> Here is my measure tool .<br>> <br>> <br>> measure.html<br>
> <<a href="http://osgeo-org.1560.n6.nabble.com/file/n5036001/measure.html" target="_blank">http://osgeo-org.1560.n6.nabble.com/file/n5036001/measure.html</a>> <br>> <br>> Why is it still KM?<br>> <br>
> <br>
> <br>> --<br>> View this message in context: <a href="http://osgeo-org.1560.n6.nabble.com/measure-control-tp3942722p5036001.html" target="_blank">http://osgeo-org.1560.n6.nabble.com/measure-control-tp3942722p5036001.html</a><br>
> Sent from the OpenLayers Users mailing list archive at Nabble.com.<br>> _______________________________________________<br>> Users mailing list<br>> <a href="mailto:Users@lists.osgeo.org" target="_blank">Users@lists.osgeo.org</a><br>
> <a href="http://lists.osgeo.org/mailman/listinfo/openlayers-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a><br></div></div></div> </div></div>
</blockquote></div><br><br clear="all"><br>-- <br>Sean<br>
</div></div> </div></body>
</html>