Parse gml:boundedBy elements on features as feature.bounds instead of geometry.bounds. This fixes issues when GML comes without a geometry and it is a more correct representation of the element. r=bartvde (closes #2255)

git-svn-id: http://svn.openlayers.org/trunk/openlayers@9801 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
Tim Schaub
2009-11-16 22:25:46 +00:00
parent 10920f6f93
commit f57e19ae2d
3 changed files with 36 additions and 14 deletions

View File

@@ -379,7 +379,7 @@ OpenLayers.Format.GML.Base = OpenLayers.Class(OpenLayers.Format.XML, {
);
}
if(container.bounds) {
feature.geometry.bounds = container.bounds;
feature.bounds = container.bounds;
}
obj.features.push(feature);
},