fix to PanZoom controls to make them alpha-clear. This is it for #25

git-svn-id: http://svn.openlayers.org/trunk/openlayers@363 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
euzuro
2006-05-25 16:38:07 +00:00
parent a844ccafe2
commit af4028879f
2 changed files with 2 additions and 2 deletions

View File

@@ -44,7 +44,7 @@ OpenLayers.Control.PanZoom.prototype =
_addButton:function(id, img, xy, sz) {
var imgLocation = OpenLayers.Util.getImagesLocation() + img;
// var btn = new ol.AlphaImage("_"+id, imgLocation, xy, sz);
var btn = OpenLayers.Util.createImage(
var btn = OpenLayers.Util.createAlphaImageDiv(
imgLocation, sz, xy, "absolute",
"OpenLayers_Control_PanZoom_" + id );

View File

@@ -52,7 +52,7 @@ OpenLayers.Control.PanZoomBar.prototype =
var imgLocation = OpenLayers.Util.getImagesLocation();
var zoomStopSize = this.zoomStopHeight;
var slider = OpenLayers.Util.createImage(imgLocation+"slider.png",
var slider = OpenLayers.Util.createAlphaImageDiv(imgLocation+"slider.png",
new OpenLayers.Pixel(20,9),
centered.add(-1, (this.map.getZoomLevels())*zoomStopSize), "absolute",
"OpenLayers_Control_PanZoomBar_Slider" + this.map.id);