Try using OpenLayers.Control.ZoomPanel<br><br><div class="gmail_quote">On Thu, Dec 29, 2011 at 3:05 PM, Puneet Kishor <span dir="ltr"><<a href="mailto:punk.kish@gmail.com">punk.kish@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
The following works<br>
<br>
map = new OpenLayers.Map("map", {<br>
"allOverlays": true,<br>
"controls": [<br>
new OpenLayers.Control.LayerSwitcher(),<br>
new OpenLayers.Control.PanZoom()<br>
]<br>
});<br>
<br>
But the following doesn't<br>
<br>
map = new OpenLayers.Map("map", {<br>
"allOverlays": true,<br>
"controls": [<br>
new OpenLayers.Control.LayerSwitcher(),<br>
new OpenLayers.Control.ZoomIn(),<br>
new OpenLayers.Control.ZoomOut()<br>
]<br>
});<br>
<br>
Neither the ZoomIn nor the ZoomOut controls draw. What am I doing wrong?<br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
--<br>
Puneet Kishor<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.osgeo.org">Users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/openlayers-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a><br>
</font></span></blockquote></div><br>