From a000a3d5458820bcb6f87317c916e28cdeef10c5 Mon Sep 17 00:00:00 2001 From: crschmidt Date: Fri, 21 Nov 2008 14:49:44 +0000 Subject: [PATCH] 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 --- lib/OpenLayers/Format/GPX.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/OpenLayers/Format/GPX.js b/lib/OpenLayers/Format/GPX.js index 0837c467ad..ca469e10f1 100644 --- a/lib/OpenLayers/Format/GPX.js +++ b/lib/OpenLayers/Format/GPX.js @@ -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;