Hello,

That's a way to do it:
map.addControl(new OpenLayers.Control.PanZoomBar(), new
OpenLayers.Pixel(2,16)); 

Arnd

-----Ursprüngliche Nachricht-----
Von: [email protected]
[mailto:[email protected]] Im Auftrag von Wyo
Gesendet: Dienstag, 23. November 2010 21:37
An: [email protected]
Betreff: [OpenLayers-Users] Positioning PanZoomBar through CSS

PanZoomBar can't be positioned through CSS with something like

.olControlPanZoomBar {
   top: 24px;
   left: 5px;
}

I had to use a fix in my program http://www.orpatec.ch/osm/tools/main.php

document.getElementById('OpenLayers.Control.PanZoomBarEx_9').style.top='26px
';

yet I'd like to fix that in the control itself. Does anybody know how or
where I have to look in the code?


Wyo

_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to