[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 <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