rtept and trksegs should be ignored in parsing GPX. Patch from Edgemaster,

r=me. (Closes #1842)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@8404 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
crschmidt
2008-11-21 14:49:44 +00:00
parent 40ddec54a3
commit a000a3d545

View File

@@ -165,7 +165,9 @@ OpenLayers.Format.GPX = OpenLayers.Class(OpenLayers.Format.XML, {
name = (attrNode.prefix) ?
attrNode.nodeName.split(":")[1] :
attrNode.nodeName;
attributes[name] = value.nodeValue;
if(name != "trkseg" && name != "rtept") {
attributes[name] = value.nodeValue;
}
}
}
attrNode = attrNode.nextSibling;