<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=us-ascii" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.19400"></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=968050823-21022013><FONT color=#0000ff
size=2 face=Arial>Hi,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=968050823-21022013><FONT color=#0000ff
size=2 face=Arial></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=968050823-21022013>folks who use OpenLayer
looks at their code, if it's all right.</SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=968050823-21022013></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=968050823-21022013><FONT color=#0000ff
size=2 face=Arial>Instead of diplaySystem you should use displaySystem and you
get what you want.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=968050823-21022013><FONT color=#0000ff
size=2 face=Arial></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=968050823-21022013><FONT color=#0000ff
size=2 face=Arial>You add also 2 times the measureControl to your
map.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=968050823-21022013><FONT color=#0000ff
size=2 face=Arial></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=968050823-21022013><FONT color=#0000ff
size=2 face=Arial> mapOptions.controls =
measureControls;<BR> ...<BR>
map.addControl(measureTool);<BR></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=968050823-21022013><FONT color=#0000ff
size=2 face=Arial>One is enough.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=968050823-21022013><FONT color=#0000ff
size=2 face=Arial></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=968050823-21022013><FONT color=#0000ff
size=2 face=Arial>OpenLayers is a powerful javascript library to build complex
web map applications. </FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=968050823-21022013><FONT color=#0000ff
size=2 face=Arial>It's easy to use, but it's also easy to fall in ones own
trap.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=968050823-21022013><FONT color=#0000ff
size=2 face=Arial></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=968050823-21022013><FONT color=#0000ff
size=2 face=Arial>Good luck with OL</DIV></FONT></SPAN>
<DIV dir=ltr align=left><SPAN class=968050823-21022013><FONT color=#0000ff
size=2 face=Arial>Arnd</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=968050823-21022013></SPAN> </DIV>
<DIV dir=ltr align=left>
<HR tabIndex=-1>
</DIV>
<DIV dir=ltr align=left><FONT size=2 face=Tahoma><B>Von:</B>
openlayers-users-bounces@lists.osgeo.org
[mailto:openlayers-users-bounces@lists.osgeo.org] <B>Im Auftrag von </B>Sean
K<BR><B>Gesendet:</B> Donnerstag, 21. Februar 2013 23:13<BR><B>An:</B> Gery
.<BR><B>Cc:</B> openlayers-users@lists.osgeo.org<BR><B>Betreff:</B> Re:
[OpenLayers-Users] measure control...<BR></FONT><BR></DIV>
<DIV></DIV>
<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=gmail_extra><BR><BR>
<DIV class=gmail_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
style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex"
class=gmail_quote>
<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></BODY></HTML>