[OpenLayers-Users] PanZoomBar position

R. Ortner reinhard.ortner at edu.fh-kaernten.ac.at
Wed Nov 7 04:49:20 EST 2007


hi,

How can i change the position in % of the page not in px?

i finaly made it to change the position of the PanZoomBar but have anyone an
idea how i can change it to a relative position. I´d like to give the
position in % of the page not absolute in px!?!



// -------------------------  PanZoomBar new Position
--------------------------------------------------------------------------------------------------
			var pzb=new
OpenLayers.Control.PanZoomBar({'div':OpenLayers.Util.getElement('panzoombar')});
			pzb.position=new OpenLayers.Pixel(527,62);
			map.addControl(pzb);
			//
--------------------------------------------------------------------------------------------------------------------------------------------------------------

.
.
.

<div id="panzoombar"
style="position:absolute;width:35px;height:100px;background:transparent;z-index:100"></div>
-- 
View this message in context: http://www.nabble.com/PanZoomBar-position-tf4763572.html#a13623977
Sent from the OpenLayers Users mailing list archive at Nabble.com.




More information about the Users mailing list