only add extra urls if this.urls actually exists
git-svn-id: http://svn.openlayers.org/trunk/openlayers@942 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
1 parent
bd9ee403f2
commit
a3aa327d2f
1 file changed
+7
-5
@@ -115,11 +115,13 @@ OpenLayers.Layer.WFS.prototype =
|
||||
//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);
|
||||
if (this.urls != null) {
|
||||
// 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,
|
||||
|
||||
Reference in new issue
Block a user