Hi,
On Tue, Feb 3, 2009 at 1:27 PM, Derek Watling <[email protected]> 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
> [email protected]
> http://openlayers.org/mailman/listinfo/users
>
--
Andreas Hocevar
OpenGeo - http://opengeo.org/
Expert service straight from the developers.
_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users