var maxExtent = new OpenLayers.Bounds(-20037508, -20037508, 20037508, 20037508); var restrictedExtent = maxExtent.clone();
var map = new OpenLayers.Map({ div: "map", projection: proj4326, displayProjection: proj900913, maxExtent: maxExtent, restrictedExtent: restrictedExtent, });
Thanks for sharing this code!
var maxExtent = new OpenLayers.Bounds(-20037508, -20037508, 20037508, 20037508);
var restrictedExtent = maxExtent.clone();
var map = new OpenLayers.Map({
div: "map",
projection: proj4326,
displayProjection: proj900913,
maxExtent: maxExtent,
restrictedExtent: restrictedExtent,
});