Try using OpenLayers.Control.ZoomPanel
On Thu, Dec 29, 2011 at 3:05 PM, Puneet Kishor <[email protected]> wrote:
> The following works
>
> map = new OpenLayers.Map("map", {
> "allOverlays": true,
> "controls": [
> new OpenLayers.Control.LayerSwitcher(),
> new OpenLayers.Control.PanZoom()
> ]
> });
>
> But the following doesn't
>
> map = new OpenLayers.Map("map", {
> "allOverlays": true,
> "controls": [
> new OpenLayers.Control.LayerSwitcher(),
> new OpenLayers.Control.ZoomIn(),
> new OpenLayers.Control.ZoomOut()
> ]
> });
>
> Neither the ZoomIn nor the ZoomOut controls draw. What am I doing wrong?
>
>
> --
> Puneet Kishor
> _______________________________________________
> Users mailing list
> [email protected]
> http://lists.osgeo.org/mailman/listinfo/openlayers-users
>
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users