[OpenLayers-Users] Set a Custom Position to the Controls

Bijoy bijoya at rediff.co.in
Fri Oct 3 09:15:43 EDT 2008


Hi Robert,
I can set Custom Position to all Controls, except PanZoomBar. I wanted to
place the PanZoomBar towards right hand side of the map, instead of default
left-hand side position. Unfortunately, the style.css do not seem to have
that option for .olControlPanZoomBar. I tried to set my own, but still could
not place it. I also tried using,
map.addControl(new
OpenLayers.Control.PanZoomBar({'div':myZoomBarContainer}));

Still, the myZoomBarContainer doesn't move using my own css, like

.myZoomBarContainer { top: 20px; left: 600px; }

Is there any other way? I am using OL 2.7

<BIJOY>
-- 
View this message in context: http://www.nabble.com/Set-a-Custom-Position-to-the-Controls-tp19779867p19797528.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.




More information about the Users mailing list