what is the max zoom to extent?

Hi all,i found out that the max zoom to extent is 3.can i set it to 2 or 1?

below is the code i create my map


function CreateMap(div){
	//set up projections
    // World Geodetic System 1984 projection
    var WGS84 = new OpenLayers.Projection("EPSG:4326");

    // WGS84 Google Mercator projection
    var WGS84_google_mercator = new OpenLayers.Projection("EPSG:900913");

    // OS British National Grid
    var os = new OpenLayers.Projection("EPSG:27700");	
	
    var options = {
            controls:[
            //allows the user pan ability
            new OpenLayers.Control.Navigation(),
            //displays the pan/zoom tools
            //new OpenLayers.Control.PanZoom(),
            new OpenLayers.Control.PanZoomBar(),
            //displays a layer switcher
            new OpenLayers.Control.LayerSwitcher(),
            new OpenLayers.Control.OverviewMap(),
            //Displays the scale
            new OpenLayers.Control.ScaleLine(),
            new OpenLayers.Control.Scale($('scale')),
            //new OpenLayers.Control.Permalink()    		
    		new OpenLayers.Control.KeyboardDefaults(),            
            new OpenLayers.Control.MousePosition({
    			prefix:"Current Position: [",
    			separator: "E, ",
    			suffix:"N]",
    			numDigits:4
    		})           
            ],

            maxExtent: new OpenLayers.Bounds(-16.08,49.06,6.76,58.74),
            maxResolution: 0.00138671875,
            projection: "EPSG:4326",
            units: "m"//"degrees"

    };
    map = new OpenLayers.Map(div, options );    
	this.map = map;
	//return this;
}



What zoom are you talking about?

not pretty sure . i meant the one we use to zoom in or zoom out our map? you got me?

what map do you mean exactly?

There are maps from mapbox.com, itoworld.com. open.mapquest.com, openstreetmap.de, openstreetbrowser.org, openstreetmap.org, flosm.de, maps.skobbler.de … to name but a few.

And tell us what framework you want to use: leaflet.js or openlayers.org or khtml.org or …

I’m using openstreetmap,OpenLayers.Map?

I’m using openstreetmap,OpenLayers.Map?

http://trac.osgeo.org/openlayers/wiki/SettingZoomLevels
http://forum.openstreetmap.org/viewtopic.php?id=6444
http://stackoverflow.com/questions/4240610/min-max-zoom-level-in-openlayers
etc.

Hi Scai,I’ve set ’ maxExtent: new OpenLayers.Bounds(-180, -90, 180, 90),’ to my map,but it doesnt seem to work for me? I want to set zoomin level to be the largest

And I found that the max extent value various depends on the browser size. If the browser size is small, max extent can be lower than 3. Do you know why?

I heard there is some special handling for mobile devices (= small screen sizes) but I’m not sure if it has anything to do with your issue.