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 zoom to wrong location, secondly the pan is also not available. Could anyone please help..
أكثر...
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 zoom to wrong location, secondly the pan is also not available. Could anyone please help..
أكثر...