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) {
|
if (!this.loaded) {
|
||||||
|
|
||||||
var server = this.ds.serverPath;
|
if (this.url != "") {
|
||||||
|
|
||||||
if (server != "") {
|
|
||||||
|
|
||||||
var queryString = this.getFullRequestString();
|
|
||||||
// TODO: Hmmm, this stops multiple loads of the data when a
|
// TODO: Hmmm, this stops multiple loads of the data when a
|
||||||
// result isn't immediately retrieved, but it's hacky.
|
// result isn't immediately retrieved, but it's hacky.
|
||||||
// Do it better.
|
// Do it better.
|
||||||
this.loaded = true;
|
this.loaded = true;
|
||||||
ol.Log.info("request string: " + queryString);
|
ol.Log.info("request string: " + this.url);
|
||||||
ol.Application.loadURL(queryString, null, this,
|
ol.Application.loadURL(this.url, null, this, success, failure);
|
||||||
success, failure);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user