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