[OpenLayers-Users] drawing only zoom in and zoom out controls
Adam Eskreis
aeskreis at gmail.com
Thu Dec 29 17:59:39 EST 2011
Try using OpenLayers.Control.ZoomPanel
On Thu, Dec 29, 2011 at 3:05 PM, Puneet Kishor <punk.kish at gmail.com> 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
> Users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20111229/e8320dcf/attachment.html
More information about the Users
mailing list