Change @require to @require:

git-svn-id: http://svn.openlayers.org/trunk/openlayers@326 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
crschmidt
2006-05-24 17:17:22 +00:00
parent 875cfb20b6
commit c0ec7f9a00
18 changed files with 53 additions and 31 deletions

View File

@@ -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);