the old-but-still-used GML format creates features with geometries of type OpenLayers.Bounds, p=fvanderbiest, r=me (closes #2724)

git-svn-id: http://svn.openlayers.org/trunk/openlayers@10614 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
Éric Lemoine
2010-08-11 14:24:51 +00:00
parent 602cf46c10
commit 5a8775cd16
3 changed files with 64 additions and 12 deletions

View File

@@ -270,8 +270,8 @@ OpenLayers.Format.WMSGetFeatureInfo = OpenLayers.Class(OpenLayers.Format.XML, {
}
var feature = this.gmlFormat.parseFeature(node);
var geometry, bounds = null;
if (feature && feature.geometry) {
geometry = feature.geometry.clone();
if (feature) {
geometry = feature.geometry && feature.geometry.clone();
bounds = feature.bounds && feature.bounds.clone();
feature.destroy();
}