The globe button will return the user to the max extent of base layer or map default. You need to modify the max extent of base layer if you want to zoom to some specific extent. The code likes below:
var OnMapCreated = function(map) { //left:-180,bottom:-90,right:180,top:90 map.baseLayer.maxExtent = new OpenLayers.Bounds(-180, -90, 180, 90); }
Adding map.baseLayer.maxExtent to OnMapCreated causes panning to stop working on the PanZoomBar. Is there a way to get that working again using OpenLayers?
Also, where can I find documentation on client-side objects (i.e., for a description of properties like map.baseLayer.maxExtent)?
We have tested the code posted in the our previous post, and it runs well. Please make sure you set the right MapUnit; if you set Meter for MapUnit and maybe there is some problem about it.