update loadFeatures() function
git-svn-id: http://svn.openlayers.org/trunk/openlayers@176 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user