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