Have a look at the PanZoom.js file in the Control directory
(OpenLayers-2.9.1/lib/OpenLayers/Control).  Search for Method: buttonDown
and find:

case "zoomworld": 
this.map.zoomToMaxExtent(); 
break;

Replace the zoomToMaxExtent function with your setCenter function.

-----
Bryan R. McBride, GISP
http://www.bryanmcbride.com bryanmcbride.com 
http://geoserving.net/ geoserving.net 
-- 
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/Zoom-world-icon-in-PanZoomBar-tp5411504p5412249.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users

Reply via email to