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:
@@ -36,9 +36,8 @@ OpenLayers.Control.PanZoom.prototype =
|
|||||||
this._addButton("panleft", "west-mini.png", px, sz);
|
this._addButton("panleft", "west-mini.png", px, sz);
|
||||||
this._addButton("panright", "east-mini.png", px.add(sz.w, 0), 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("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);
|
this._addButton("zoomin", "zoom-plus-mini.png", centered.add(0, sz.h*3+5), sz);
|
||||||
centered = centered.add(0, sz.h*4);
|
this._addButton("zoomout", "zoom-minus-mini.png", centered.add(0, sz.h*4+5), sz);
|
||||||
this._addButton("zoomout", "zoom-minus-mini.png", centered, sz);
|
|
||||||
return this.div;
|
return this.div;
|
||||||
},
|
},
|
||||||
_addButton:function(id, img, xy, sz) {
|
_addButton:function(id, img, xy, sz) {
|
||||||
|
|||||||
@@ -42,9 +42,8 @@ OpenLayers.Control.PanZoomBar.prototype =
|
|||||||
this._addButton("panleft", "west-mini.png", px, sz);
|
this._addButton("panleft", "west-mini.png", px, sz);
|
||||||
this._addButton("panright", "east-mini.png", px.add(sz.w, 0), 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("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);
|
this._addButton("zoomin", "zoom-plus-mini.png", centered.add(0, sz.h*3+5), sz);
|
||||||
centered = centered.add(0, sz.h*4);
|
centered = this._addZoomBar(centered.add(0, sz.h*4 + 5));
|
||||||
centered = this._addZoomBar(centered);
|
|
||||||
this._addButton("zoomout", "zoom-minus-mini.png", centered, sz);
|
this._addButton("zoomout", "zoom-minus-mini.png", centered, sz);
|
||||||
return this.div;
|
return this.div;
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user