[OpenLayers-Users] Scalebar style behaving badly

Paul Meems bontepaarden at gmail.com
Wed Nov 28 00:09:52 PST 2012


I'm using ScaleBar.js to show a scalebar.
This was working fine.
I've made some changes to other parts of my web page and now the position
of the scalebar style has changed. The location of the labels and the
markers are shifted.

I have no idea why this is happening. When I investigate using Firebug I
see the left and width properties of the style are wrong. I can correct
them in Firefox, but they are calculated in the javascript part. This code
is a bit too complicated for me ;)

Does anybody have a solution?

Thanks,

Paul
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20121128/c42f3fea/attachment.html>


More information about the Users mailing list