fix map.zoomExtent().

Re-add zoomToWorld button to PanZoom control.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@473 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
crschmidt
2006-05-30 21:10:53 +00:00
parent fc2eb32f5c
commit cdd26c1df2
2 changed files with 5 additions and 4 deletions

View File

@@ -444,10 +444,10 @@ OpenLayers.Map.prototype = {
zoomExtent: function() {
var fullExtent = this.getFullExtent();
var oldZoom = this.zoom;
this.zoom = this.getZoomForExtent( fullExtent );
this.setCenter(
new OpenLayers.LonLat((fullExtent.left+fullExtent.right)/2,
(fullExtent.bottom+fullExtent.top)/2)
(fullExtent.bottom+fullExtent.top)/2),
0
);
},