diff --git a/lib/OpenLayers/Layer/WFS.js b/lib/OpenLayers/Layer/WFS.js index 9d98958aef..9e48077965 100644 --- a/lib/OpenLayers/Layer/WFS.js +++ b/lib/OpenLayers/Layer/WFS.js @@ -64,7 +64,7 @@ OpenLayers.Layer.WFS.prototype = addTile:function(bounds, position) { url = this.getFullRequestString( { bbox:bounds.toBBOX() }); - var tile = new OpenLayers.Tile.WFS(bounds, url, this.tileSize); + var tile = new OpenLayers.Tile.WFS(this, bounds, url, this.tileSize); tile.draw(); tile.setPosition(position); this.div.appendChild(tile.img); diff --git a/lib/OpenLayers/Layer/WMS.js b/lib/OpenLayers/Layer/WMS.js index f3582eca8f..8c5674f764 100644 --- a/lib/OpenLayers/Layer/WMS.js +++ b/lib/OpenLayers/Layer/WMS.js @@ -58,7 +58,7 @@ OpenLayers.Layer.WMS.prototype = {bbox:bounds.toBBOX(), width:this.tileSize.w, height:this.tileSize.h}); - var tile = new OpenLayers.Tile.Image(bounds, url, this.tileSize); + var tile = new OpenLayers.Tile.Image(this, bounds, url, this.tileSize); tile.draw(); tile.setPosition(position); this.div.appendChild(tile.img);