diff --git a/lib/OpenLayers/Tile/Image.js b/lib/OpenLayers/Tile/Image.js index ac63a1eedb..44ccee5818 100644 --- a/lib/OpenLayers/Tile/Image.js +++ b/lib/OpenLayers/Tile/Image.js @@ -24,18 +24,19 @@ OpenLayers.Tile.Image.prototype = draw:function() { OpenLayers.Tile.prototype.draw.apply(this, arguments); this.img = OpenLayers.Util.createImage(this.url, - this.size); + this.size, + null, + "absolute"); }, /** * @param OpenLayers.Pixel */ - setPosition:function(point) { + setPosition:function(pixel) { if (this.img) { - this.img.style.top = point.y + "px"; - this.img.style.left = point.x + "px"; - this.img.style.position = "absolute"; - this.position = point; + this.img.style.top = pixel.y + "px"; + this.img.style.left = pixel.x + "px"; + this.position = pixel; } },