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