[OpenLayers-Users] drawing only zoom in and zoom out controls

Puneet Kishor punk.kish at gmail.com
Thu Dec 29 15:05:03 EST 2011


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


More information about the Users mailing list