Change @require to @require:
git-svn-id: http://svn.openlayers.org/trunk/openlayers@326 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
// @require OpenLayers/Control/PanZoom.js
|
||||
// @require: OpenLayers/Control/PanZoom.js
|
||||
|
||||
//
|
||||
// default zoom/pan controls
|
||||
@@ -49,11 +49,13 @@ OpenLayers.Control.PanZoomBar.prototype =
|
||||
return this.div;
|
||||
},
|
||||
_addZoomBar:function(centered,sz) {
|
||||
var imgLocation = OpenLayers.Util.getImagesLocation();
|
||||
|
||||
var zoomStopSize = this.zoomStopHeight;
|
||||
var slider = OpenLayers.Util.createImage("../img/slider.png",
|
||||
var slider = OpenLayers.Util.createImage(imgLocation+"slider.png",
|
||||
new OpenLayers.Pixel(20,9),
|
||||
centered.add(-1, (this.map.getZoomLevels())*zoomStopSize), "absolute",
|
||||
"OpenLayers_Control_PanZoomBar_Slider");
|
||||
"OpenLayers_Control_PanZoomBar_Slider" + this.map.id);
|
||||
slider.style.zIndex = this.div.zIndex + 5;
|
||||
this.slider = slider;
|
||||
|
||||
@@ -66,8 +68,11 @@ OpenLayers.Control.PanZoomBar.prototype =
|
||||
sz.h = zoomStopSize*(this.map.getZoomLevels()+1);
|
||||
sz.w = this.zoomStopWidth;
|
||||
|
||||
var div = OpenLayers.Util.createDiv('OpenLayers_Control_PanZoomBar_Zoombar',centered,sz);
|
||||
div.style.backgroundImage = "url(../img/zoombar.png)";
|
||||
var div = OpenLayers.Util.createDiv(
|
||||
'OpenLayers_Control_PanZoomBar_Zoombar' + this.map.id,
|
||||
centered,
|
||||
sz);
|
||||
div.style.backgroundImage = "url("+imgLocation+"zoombar.png)";
|
||||
|
||||
this.divEvents = new OpenLayers.Events(this, div);
|
||||
this.divEvents.register("mousedown", this, this.divClick);
|
||||
|
||||
Reference in New Issue
Block a user