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:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user