[OpenLayers-Users] Zoom bar without pan controls
Andreas Hocevar
ahocevar at opengeo.org
Sat Feb 7 17:22:03 EST 2009
Hi,
On Tue, Feb 3, 2009 at 1:27 PM, Derek Watling <derek at cmainfo.co.za> wrote:
>
> I have come up with my own solution. Is there a better way of doing this?
Why not just use OpenLayers.Control.ZoomPanel?
Regards,
Andreas.
> var panZoomBar = new OpenLayers.Control.PanZoomBar();
> map.addControl(panZoomBar);
> for (var p = 0; p < 4; p++) {
> panZoomBar.buttons[p].style.display = 'none'; // Don't dispaly
> panning buttons
> }
> panZoomBar.div.style.marginTop = "-50px"; // Move ZoomBar up
>
> --
> View this message in context: http://n2.nabble.com/Zoom-bar-without-pan-controls-tp2262405p2263026.html
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
>
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>
--
Andreas Hocevar
OpenGeo - http://opengeo.org/
Expert service straight from the developers.
More information about the Users
mailing list