Commit visual tweaks to controls for #55 .

git-svn-id: http://svn.openlayers.org/trunk/openlayers@460 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
crschmidt
2006-05-29 19:31:11 +00:00
parent a78ee9f86c
commit f11bdcef95
2 changed files with 4 additions and 6 deletions

View File

@@ -36,9 +36,8 @@ OpenLayers.Control.PanZoom.prototype =
this._addButton("panleft", "west-mini.png", px, sz);
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), sz);
centered = centered.add(0, sz.h*4);
this._addButton("zoomout", "zoom-minus-mini.png", centered, 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);
return this.div;
},
_addButton:function(id, img, xy, sz) {

View File

@@ -42,9 +42,8 @@ OpenLayers.Control.PanZoomBar.prototype =
this._addButton("panleft", "west-mini.png", px, sz);
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), sz);
centered = centered.add(0, sz.h*4);
centered = this._addZoomBar(centered);
this._addButton("zoomin", "zoom-plus-mini.png", centered.add(0, sz.h*3+5), sz);
centered = this._addZoomBar(centered.add(0, sz.h*4 + 5));
this._addButton("zoomout", "zoom-minus-mini.png", centered, sz);
return this.div;
},