udpatoing Tile.WFS code, removing ol.Application calls. AddingAjax.js file (do we want this?) and including it in the dynamic loader

git-svn-id: http://svn.openlayers.org/trunk/openlayers@275 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
euzuro
2006-05-23 00:22:22 +00:00
parent 3bf34940ca
commit 1041515bfd
3 changed files with 130 additions and 8 deletions
+7 -8
View File
@@ -26,7 +26,7 @@ OpenLayers.Tile.WFS.prototype =
this.features = new Array();
this.handlers = new Array();
this.handlers["requestSuccess"] = this._requestSuccess;
this.handlers["requestSuccess"] = this.requestSuccess;
},
/**
@@ -61,8 +61,8 @@ OpenLayers.Tile.WFS.prototype =
// result isn't immediately retrieved, but it's hacky.
// Do it better.
this.loaded = true;
ol.Log.info("request string: " + this.url);
ol.Application.loadURL(this.url, null, this, success, failure);
// ol.Log.info("request string: " + this.url);
OpenLayers.loadURL(this.url, null, this, success, failure);
}
}
},
@@ -72,16 +72,15 @@ OpenLayers.Tile.WFS.prototype =
* @param {} request
*/
requestSuccess:function(request) {
var doc = request.responseXML;
if (!doc || request.fileType!="XML") {
doc = ol.Application.parseXMLString(request.responseText);
doc = OpenLayer.parseXMLString(request.responseText);
}
var resultFeatures = ol.Application.getNodes(doc, "gml:featureMember");
ol.Log.info(this.grid.name + " found " +
resultFeatures.length + " features");
var resultFeatures = OpenLayers.getNodes(doc, "gml:featureMember");
// ol.Log.info(this.grid.name + " found " +
// resultFeatures.length + " features");
//clear old featureList
this.features = new Array();