pass the position in as parameter on new tile creation. remove unnecessary setPosition() function, as tiles no longer really get moved. they get drawn in their div and then the div moves around. no need to make that any more complicated. update tests for that. Also, finish renaming 'grid' to 'layer' (from r369).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@390 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -66,7 +66,8 @@ OpenLayers.Layer.WFS.prototype =
|
||||
addTile:function(bounds, position) {
|
||||
url = this.getFullRequestString(
|
||||
{ bbox:bounds.toBBOX() });
|
||||
var tile = new OpenLayers.Tile.WFS(this, bounds, url, this.tileSize);
|
||||
var tile = new OpenLayers.Tile.WFS(this, position, bounds,
|
||||
url, this.tileSize);
|
||||
tile.draw();
|
||||
return tile;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user