more updates i missed in r384
git-svn-id: http://svn.openlayers.org/trunk/openlayers@385 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -52,10 +52,12 @@ OpenLayers.Control.PanZoomBar.prototype =
|
|||||||
var imgLocation = OpenLayers.Util.getImagesLocation();
|
var imgLocation = OpenLayers.Util.getImagesLocation();
|
||||||
|
|
||||||
var zoomStopSize = this.zoomStopHeight;
|
var zoomStopSize = this.zoomStopHeight;
|
||||||
var slider = OpenLayers.Util.createAlphaImageDiv(imgLocation+"slider.png",
|
var id = "OpenLayers_Control_PanZoomBar_Slider" + this.map.id;
|
||||||
|
var slider = OpenLayers.Util.createAlphaImageDiv(id,
|
||||||
|
centered.add(-1, (this.map.getZoomLevels())*zoomStopSize),
|
||||||
new OpenLayers.Size(20,9),
|
new OpenLayers.Size(20,9),
|
||||||
centered.add(-1, (this.map.getZoomLevels())*zoomStopSize), "absolute",
|
imgLocation+"slider.png",
|
||||||
"OpenLayers_Control_PanZoomBar_Slider" + this.map.id);
|
"absolute");
|
||||||
slider.style.zIndex = this.div.zIndex + 5;
|
slider.style.zIndex = this.div.zIndex + 5;
|
||||||
this.slider = slider;
|
this.slider = slider;
|
||||||
|
|
||||||
@@ -68,10 +70,13 @@ OpenLayers.Control.PanZoomBar.prototype =
|
|||||||
sz.h = zoomStopSize*(this.map.getZoomLevels()+1);
|
sz.h = zoomStopSize*(this.map.getZoomLevels()+1);
|
||||||
sz.w = this.zoomStopWidth;
|
sz.w = this.zoomStopWidth;
|
||||||
var div = null
|
var div = null
|
||||||
if ((document.body.filters && (version >= 5.5) && (version < 7))) {
|
|
||||||
div = OpenLayers.Util.createAlphaImageDiv(imgLocation+"zoombar.png",
|
if (OpenLayers.Util.alphaHack()) {
|
||||||
new OpenLayers.Size(sz.w, zoomStopSize),
|
var id = "OpenLayers_Control_PanZoomBar" + this.map.id;
|
||||||
centered, "absolute", "OpenLayers_Control_PanZoomBar" + this.map.id);
|
div = OpenLayers.Util.createAlphaImageDiv(id, centered,
|
||||||
|
new OpenLayers.Size(sz.w, zoomStopSize),
|
||||||
|
imgLocation + "zoombar.png",
|
||||||
|
"absolute");
|
||||||
div.style.height = sz.h;
|
div.style.height = sz.h;
|
||||||
} else {
|
} else {
|
||||||
div = OpenLayers.Util.createDiv(
|
div = OpenLayers.Util.createDiv(
|
||||||
@@ -80,6 +85,7 @@ OpenLayers.Control.PanZoomBar.prototype =
|
|||||||
sz,
|
sz,
|
||||||
imgLocation+"zoombar.png");
|
imgLocation+"zoombar.png");
|
||||||
}
|
}
|
||||||
|
|
||||||
this.divEvents = new OpenLayers.Events(this, div);
|
this.divEvents = new OpenLayers.Events(this, div);
|
||||||
this.divEvents.register("mousedown", this, this.divClick);
|
this.divEvents.register("mousedown", this, this.divClick);
|
||||||
this.divEvents.register("mousemove", this, this.zoomBarDivDrag);
|
this.divEvents.register("mousemove", this, this.zoomBarDivDrag);
|
||||||
|
|||||||
Reference in New Issue
Block a user