update loadFeatures() function

git-svn-id: http://svn.openlayers.org/trunk/openlayers@176 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
euzuro
2006-05-19 14:29:51 +00:00
parent 55e0e47c89
commit 50fe4e712f

View File

@@ -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);
}
}
},