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:
@@ -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
|
||||
);
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user