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

@@ -37,7 +37,8 @@ OpenLayers.Control.PanZoom.prototype =
this._addButton("panright", "east-mini.png", px.add(sz.w, 0), sz);
this._addButton("pandown", "south-mini.png", centered.add(0, sz.h*2), sz);
this._addButton("zoomin", "zoom-plus-mini.png", centered.add(0, sz.h*3+5), sz);
this._addButton("zoomout", "zoom-minus-mini.png", centered.add(0, sz.h*4+5), sz);
this._addButton("zoomworld", "zoom-world-mini.png", centered.add(0, sz.h*4+5), sz);
this._addButton("zoomout", "zoom-minus-mini.png", centered.add(0, sz.h*5+5), sz);
return this.div;
},
_addButton:function(id, img, xy, sz) {
@@ -100,7 +101,7 @@ OpenLayers.Control.PanZoom.prototype =
break;
case "zoomin": this.map.zoomIn(); break;
case "zoomout": this.map.zoomOut(); break;
case "zoomextents": this.map.zoomExtent(); break;
case "zoomworld": this.map.zoomExtent(); break;
}
Event.stop(evt);
},