[OpenLayers-Users] ScaleLine km only

Matthew Doyle mtd at bom.gov.au
Wed Apr 16 03:06:54 EDT 2008


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.




More information about the Users mailing list