Commit change to GeoRSS -- once we parse the RSS file, set the layer name.

git-svn-id: http://svn.openlayers.org/trunk/openlayers@804 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
crschmidt
2006-06-27 22:20:37 +00:00
parent 102820ad77
commit 63bd624827

View File

@@ -58,6 +58,7 @@ OpenLayers.Layer.GeoRSS.prototype =
if (!doc || ajaxRequest.fileType!="XML") {
doc = OpenLayers.parseXMLString(ajaxRequest.responseText);
}
this.name = doc.getElementsByTagName("title")[0].firstChild.nodeValue;
var itemlist = doc.getElementsByTagName('item');
for (var i = 0; i < itemlist.length; i++) {
var data = {};