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,9 +165,11 @@ OpenLayers.Format.GPX = OpenLayers.Class(OpenLayers.Format.XML, {
|
|||||||
name = (attrNode.prefix) ?
|
name = (attrNode.prefix) ?
|
||||||
attrNode.nodeName.split(":")[1] :
|
attrNode.nodeName.split(":")[1] :
|
||||||
attrNode.nodeName;
|
attrNode.nodeName;
|
||||||
|
if(name != "trkseg" && name != "rtept") {
|
||||||
attributes[name] = value.nodeValue;
|
attributes[name] = value.nodeValue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
attrNode = attrNode.nextSibling;
|
attrNode = attrNode.nextSibling;
|
||||||
}
|
}
|
||||||
return attributes;
|
return attributes;
|
||||||
|
|||||||
Reference in New Issue
Block a user