Re: [OpenLayers-Users] ScaleLine km only

2008-11-03 Thread huub fleuren
HeyHey-- I was looking for an answer for a KM only ScaleLine(); Maybe you should be able to do this by option (in OL v. 2.7), but the following does the trick. adapt the style for the lower (miles/feet) part .olControlScaleLineBottom {    display: none; } Regards, Huub On 4/16/2008 5:2

Re: [OpenLayers-Users] ScaleLine km only

2008-04-16 Thread Tim Schaub
Hey- Matthew Doyle wrote: > Hi All, > > Using Openlayers 2.6 and coding a map using the ScaleLine control a la: > map.addControl(new OpenLayers.Control.ScaleLine()); > > My client wishes it only to display kilometres and not miles. Is there any > way to configure this? Or will i have to code a h

Re: [OpenLayers-Users] ScaleLine km only

2008-04-16 Thread Zac Spitzer
http://dev.openlayers.org/docs/files/OpenLayers/Control/ScaleLine-js.html check the properties topOutUnits & topInUnits there is a bug with IE if you try and hide the bottom or top set by setting these values to be empty http://trac.openlayers.org/ticket/1478 z On Wed, Apr 16, 2008 at 5:06 PM

[OpenLayers-Users] ScaleLine km only

2008-04-16 Thread Matthew Doyle
Hi All, Using Openlayers 2.6 and coding a map using the ScaleLine control a la: map.addControl(new OpenLayers.Control.ScaleLine()); My client wishes it only to display kilometres and not miles. Is there any way to configure this? Or will i have to code a hack or design my own custom scale which