"GeoRSS Format Parsing fails with items with no geo-feature". Patch from

Edgemaster to fix this failure mode. r=me  (Closes #1258)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5715 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
crschmidt
2008-01-11 01:16:18 +00:00
parent 454026baf8
commit cb13a6d053

View File

@@ -119,6 +119,13 @@ OpenLayers.Layer.GeoRSS = OpenLayers.Class(OpenLayers.Layer.Markers, {
for (var i = 0; i < features.length; i++) {
var data = {};
var feature = features[i];
// we don't support features with no geometry in the GeoRSS
// layer at this time.
if (!feature.geometry) {
continue;
}
var title = feature.attributes.title ?
feature.attributes.title : "Untitled";