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