[OpenLayers-Users] relocating PanZoom Control

Bart van den Eijnden (OSGIS) bartvde at osgis.nl
Tue Feb 27 01:47:56 EST 2007


You can pass in a div id into the constructor, and use css to position the
div:

map.addControl(new OpenLayers.Control.PanZoomBar({div:
$('zoomLevelContainer')}));

Best regards,
Bart

--
Bart van den Eijnden
OSGIS, Open Source GIS
http://www.osgis.nl


--------- Oorspronkelijk bericht --------
Van: brad at cubewerx.com.au
Naar: openlayers users <users at openlayers.org>
Onderwerp: [OpenLayers-Users] relocating PanZoom Control
Datum: 27/02/07 03:13

> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> In Google maps the API allows you to locate the panZoom controls outside
> the map by allowing you to anchor to one of the four corners. Is there a
similar
> feature in OpenLayers.
> 
> &nbsp;
> 
> I want to do this because I am using a mouse click on the map to do a
getFeatureInfo
> request but when I click on the panzoom to do navigate around the map it
actually
> launches off the getFeatureInfo request. So the best way to do this is to
move
> the controls off the map.
> 
> &nbsp;
> 
> See http://www.cubewerx.com.au/DemoDrapes.html
> 
> &nbsp;
> 
> Cheers,
> 
> &nbsp;
> 
> Brad Spencer
> 
> General Manager
> 
> CubeWerx Australia Pty Ltd
> 
> ABN: 37 115 163
> 285
> 
> Mob: +61 (0)404
> 841 131
> 
> Tel/Fax: +61
> (0)2 9481 7024
> 
> mailto:brad at cubewerx.com.au
> 
> http://www.cubewerx.com.au
> 
> &nbsp;
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
> 






More information about the Users mailing list