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.


__________________________________________________________________________________________
Piensa en el medio ambiente - mantenlo en la pantalla. NO lo imprimas si NO es 
necesario.
Think green - keep it on the screen. Do NOT print if it is NOT necessary.
Denken Sie an die Umwelt - bewahren Sie es auf dem Bildschirm. Drucken Sie es 
NICHT, wenn es NICHT notwendig ist.


From: sk92...@gmail.com
Date: Thu, 21 Feb 2013 14:12:30 -0800
Subject: Re: [OpenLayers-Users] measure control...
To: gameji...@hotmail.com
CC: openlayers-users@lists.osgeo.org

do you mean that the layer in geoserver controls the measure tool in OpenLayers?

So if the layer in geoserver is UTM -- the measurement tool cannot generate 
miles ? 

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?






On Thu, Feb 21, 2013 at 2:01 PM, Gery . <gameji...@hotmail.com> wrote:






probably because your base map has utm values, check the projection of your 
layer.




__________________________________________________________________________________________
Piensa en el medio ambiente - mantenlo en la pantalla. NO lo imprimas si NO es 
necesario.


Think green - keep it on the screen. Do NOT print if it is NOT necessary.
Denken Sie an die Umwelt - bewahren Sie es auf dem Bildschirm. Drucken Sie es 
NICHT, wenn es NICHT notwendig ist.




> Date: Thu, 21 Feb 2013 13:57:53 -0800
> From: sk92...@gmail.com
> To: openlayers-users@lists.osgeo.org


> Subject: Re: [OpenLayers-Users] measure control...
> 
> I still dont get miles units -- mine still comes out as KM.
> 
> Here is my measure tool .
> 
> 
> measure.html


> <http://osgeo-org.1560.n6.nabble.com/file/n5036001/measure.html>  
> 
> Why is it still KM?
> 

> 

> 
> --
> View this message in context: 
> http://osgeo-org.1560.n6.nabble.com/measure-control-tp3942722p5036001.html


> Sent from the OpenLayers Users mailing list archive at Nabble.com.
> _______________________________________________
> Users mailing list
> us...@lists.osgeo.org


> http://lists.osgeo.org/mailman/listinfo/openlayers-users
                                          


-- 
Sean

                                          
_______________________________________________
Users mailing list
us...@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to