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;
}