updates to allow a wfs layer to query multiple wfs servers with the same parameters. untested, but all tests pass.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@941 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -110,11 +110,20 @@ OpenLayers.Layer.WFS.prototype =
|
||||
* @type OpenLayers.Tile.WFS
|
||||
*/
|
||||
addTile:function(bounds, position) {
|
||||
var url = this.getFullRequestString(
|
||||
{ BBOX:bounds.toBBOX() });
|
||||
var urls = new Array();
|
||||
|
||||
//add standard URL
|
||||
urls.push( this.getFullRequestString( { BBOX:bounds.toBBOX() }) );
|
||||
|
||||
// if there are more urls, add them.
|
||||
for(var i=0; i < this.urls.length; i++) {
|
||||
var newUrl = this.getFullRequestString( { BBOX:bounds.toBBOX() },
|
||||
this.urls[i] );
|
||||
urls.push(newUrl);
|
||||
}
|
||||
|
||||
return new OpenLayers.Tile.WFS(this, position, bounds,
|
||||
url, this.tileSize);
|
||||
urls, this.tileSize);
|
||||
},
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user