diff --git a/lib/OpenLayers/Tile/WFS.js b/lib/OpenLayers/Tile/WFS.js index f3c59bfae1..eed526138a 100644 --- a/lib/OpenLayers/Tile/WFS.js +++ b/lib/OpenLayers/Tile/WFS.js @@ -54,18 +54,14 @@ OpenLayers.Tile.WFS.prototype = if (!this.loaded) { - var server = this.ds.serverPath; - - if (server != "") { + if (this.url != "") { - var queryString = this.getFullRequestString(); // TODO: Hmmm, this stops multiple loads of the data when a // result isn't immediately retrieved, but it's hacky. // Do it better. this.loaded = true; - ol.Log.info("request string: " + queryString); - ol.Application.loadURL(queryString, null, this, - success, failure); + ol.Log.info("request string: " + this.url); + ol.Application.loadURL(this.url, null, this, success, failure); } } },