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 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. >
You might also want to check out the ScaleBar control. Examples: http://dev.openlayers.org/addins/scalebar/trunk/examples/scalebar.html http://dev.openlayers.org/addins/scalebar/trunk/examples/scalebar-custom.html Docs: http://trac.openlayers.org/wiki/Addins/ScaleBar Tim > Cheers in advance, > Regards, > Matt _______________________________________________ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users