Touching up WMSGetFeatureInfo. Requests are now sent out with correct case on request parameter. Requests are only sent out if there are layers to query. The control has a single format with configurable options. Requests can be made in cases where layer url differs from control url. The control url property is optional. In cases where it is not provided, the url of the first eligible layer will be used. Tests pass and example works (for the first time) in IE as well.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9300 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -77,14 +77,18 @@ OpenLayers.Format.WMSGetFeatureInfo = OpenLayers.Class(OpenLayers.Format.XML, {
|
||||
data = OpenLayers.Format.XML.prototype.read.apply(this, [data]);
|
||||
}
|
||||
var root = data.documentElement;
|
||||
var scope = this;
|
||||
var read = this["read_" + root.nodeName];
|
||||
if(read) {
|
||||
result = read.call(this, root);
|
||||
if(root) {
|
||||
var scope = this;
|
||||
var read = this["read_" + root.nodeName];
|
||||
if(read) {
|
||||
result = read.call(this, root);
|
||||
} else {
|
||||
// fall-back to GML since this is a common output format for WMS
|
||||
// GetFeatureInfo responses
|
||||
result = new OpenLayers.Format.GML((this.options ? this.options : {})).read(data);
|
||||
}
|
||||
} else {
|
||||
// fall-back to GML since this is a common output format for WMS
|
||||
// GetFeatureInfo responses
|
||||
result = new OpenLayers.Format.GML((this.options ? this.options : {})).read(data);
|
||||
result = data;
|
||||
}
|
||||
return result;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user