[OpenLayers-Users] relocating PanZoom Control

Bart van den Eijnden (OSGIS) bartvde at osgis.nl
Tue Feb 27 02:46:29 EST 2007


Hi Brad,

true, I had to change something for that in the MouseToolbar code, I changed
the initialize function to:

initialize: function(options) {
OpenLayers.Control.prototype.initialize.apply(this, [options]);
},

which worked for me.

But maybe there is a better way?

Best regards,
Bart

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


--------- Oorspronkelijk bericht --------
Van: brad at cubewerx.com.au
Naar: Bart van den Eijnden OSGIS <bartvde at osgis.nl>
Onderwerp: RE: [OpenLayers-Users] relocating PanZoom Control
Datum: 27/02/07 05:32

> Bart,
> 
> Thanks for that I can move the zoom bar but the mouse controls do not
follow
> the same model?
> 
> Cheers,
> 
> 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
> 
> -----Original Message-----
> From: Bart van den Eijnden (OSGIS) [mailto:bartvde at osgis.nl]
> Sent: Tuesday, 27 February 2007 5:48 PM
> To: brad at cubewerx.com.au; openlayers users
> Subject: Re: [OpenLayers-Users] relocating PanZoom Control
> 
> 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 &lt;users at openlayers.org&gt;
> Onderwerp: [OpenLayers-Users] relocating PanZoom Control
> Datum: 27/02/07 03:13
> 
> &gt;
> &gt;
> &gt;
> &gt;
> &gt;
> &gt;
> &gt;
> &gt;
> &gt;
> &gt;
> &gt;
> &gt;
> &gt;
> &gt;
> &gt;
> &gt;
> &gt;
> &gt;
> &gt; In Google maps the API allows you to locate the panZoom controls
outside
> &gt; the map by allowing you to anchor to one of the four corners. Is
there a
> similar
> &gt; feature in OpenLayers.
> &gt;
> &gt; &amp;nbsp;
> &gt;
> &gt; I want to do this because I am using a mouse click on the map to do a
> getFeatureInfo
> &gt; request but when I click on the panzoom to do navigate around the map
it
> actually
> &gt; launches off the getFeatureInfo request. So the best way to do this
is to
> move
> &gt; the controls off the map.
> &gt;
> &gt; &amp;nbsp;
> &gt;
> &gt; See http://www.cubewerx.com.au/DemoDrapes.html
> &gt;
> &gt; &amp;nbsp;
> &gt;
> &gt; Cheers,
> &gt;
> &gt; &amp;nbsp;
> &gt;
> &gt; Brad Spencer
> &gt;
> &gt; General Manager
> &gt;
> &gt; CubeWerx Australia Pty Ltd
> &gt;
> &gt; ABN: 37 115 163
> &gt; 285
> &gt;
> &gt; Mob: +61 (0)404
> &gt; 841 131
> &gt;
> &gt; Tel/Fax: +61
> &gt; (0)2 9481 7024
> &gt;
> &gt; mailto:brad at cubewerx.com.au
> &gt;
> &gt; http://www.cubewerx.com.au
> &gt;
> &gt; &amp;nbsp;
> &gt;
> &gt;
> &gt;
> &gt;
> &gt;
> &gt;
> &gt;
> &gt;
> &gt;
> &gt;
> &gt;
> &gt; _______________________________________________
> &gt; Users mailing list
> &gt; Users at openlayers.org
> &gt; http://openlayers.org/mailman/listinfo/users
> &gt;
> 
> 
> 
> 
> 






More information about the Users mailing list