[OpenLayers-Users] ScaleLine km only

Zac Spitzer zac.spitzer at gmail.com
Wed Apr 16 03:33:54 EDT 2008


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, Matthew Doyle <mtd at bom.gov.au> 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 hack or design my own custom
>  scale which swaps in and out for each zoom level? Apologies if this is an
>  easy one, but the docs/api and searching through usergroups didn't give me
>  any joy.
>
>  Cheers in advance,
>  Regards,
>  Matt
>  --
>  View this message in context: http://www.nabble.com/ScaleLine-km-only-tp16717688p16717688.html
>  Sent from the OpenLayers Users mailing list archive at Nabble.com.
>
>  _______________________________________________
>  Users mailing list
>  Users at openlayers.org
>  http://openlayers.org/mailman/listinfo/users
>



-- 
Zac Spitzer -
http://zacster.blogspot.com (My Blog)
+61 405 847 168



More information about the Users mailing list