Helo, thank you for your response, Im trying to move this panel in which i added my drag and zoombox.. for this purpose where would I need to put the x and y? do I need to write a css class and mention that in my code?
regards, Imran 2010/6/2 François Boussuges <[email protected]>: > 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 >> >> > > _______________________________________________ > Users mailing list > [email protected] > http://openlayers.org/mailman/listinfo/users > -- I.R _______________________________________________ Users mailing list [email protected] http://openlayers.org/mailman/listinfo/users
