There are too many question on this issue, but unfortunately I couldn't get the solution. I have the following settings,
var geographic = new OpenLayers.Projection("EPSG:4326"); // WGS 1984
var mercator = new OpenLayers.Projection("EPSG:900913"); // Spherical Mercator Projection
var myExtent = new OpenLayers.Bounds(60, 23, 79, 37).transform(geographic, mercator);
map : {
title : "Map",
projection : mercator,
displayProjection: geographic,
extent: myExtent,
restrictedExtent: myExtent,
}
The problem is that it zooms to the wrong location, secondly the pan is also not available.
Best Answer
Use this
map
, perhaps resolve your problem:If the problem is not resolved, We must use another method.