This might be a silly question, how can I disable Paning on the client-side. Currently, I am using the below code to restrict the extent. However, this require me to know bound extent. I need the extent to be dynamic.
On Client-side Load:
Sys.WebForms.PageRequestManager.getInstance().add_pageLoaded(restrictArea);
..
function restrictArea() {map.setOptions({ "restrictedExtent": new OpenLayers.Bounds(CurrentMapBound.left, CurrentMapBound.top, CurrentMapBound.right, CurrentMapBound.bottom) }); }