[OpenLayers-Users] setting location for control panel?
François Boussuges
f.boussuges at gmail.com
Wed Jun 2 09:17:25 EDT 2010
Hello add the configuration X and Y to move your control:
for exemple:
var zoom = new GeoExt.ZoomSlider({
vertical: true,
height: 150,
x: 10,
y:50,
plugins: new GeoExt.ZoomSliderTip()
});
I move my zoom slider to left : 10px and to down : 50px
try this is very easy
Imran Rajjad a écrit :
> Hi
>
> my map has default panning buttons and zoom bar..i also tried to add
> zoombox and drag pan .. but my zoom box and drag panel aprea over the
> previous controls , what can i do to set this
>
>
> my code:
>
> var zb = new OpenLayers.Control.ZoomBox({title:"Zoom box: zoom on an
> area by clicking and dragging."});
>
> var panel = new OpenLayers.Control.Panel({defaultControl: zb}); //
> default control of panel is zoombox
>
> panel.addControls([new
> OpenLayers.Control.MouseDefaults({title:'default mouse
> configuration'}),zb]); // nav and zoom box
> map.addControl(panel); // adding map control
>
> i want to add these controls to somewher near the bottom or in another
> html component.. is it posible
>
>
More information about the Users
mailing list