How can I change the format of the scaleline in OpenLayers? I have a black background and I want to change the lines in the scalebar to white. I use:

<link rel="stylesheet" href="http://www.openlayers.org/dev/theme/default/style.css" type="text/css" /> <style type="text/css"> div.olControlScaleLine{ color: white;

But this only change the font. Anybody kmow how?

    color: white;

   border-color: white;
  • It works, I wanted this.Thx. – user2898914 Jul 1 '14 at 12:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.