[OpenLayers-Users] Zoom world icon in PanZoomBar

BMcBride bmcbride at chacompanies.com
Wed Aug 11 09:32:38 EDT 2010


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.



More information about the Users mailing list