Skip to content

toGeoJSON() call leads to idx is undefined #39

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
djole87 opened this issue Mar 11, 2022 · 4 comments
Open

toGeoJSON() call leads to idx is undefined #39

djole87 opened this issue Mar 11, 2022 · 4 comments

Comments

@djole87
Copy link

djole87 commented Mar 11, 2022

Getting idx undefined after calling toGeoJSON() method on the parser object.

@thielpeter
Copy link

Same problem here +1

@zarat34
Copy link

zarat34 commented Nov 8, 2022

same problem at : for(idx in this.tracks) {

@cheeterLee
Copy link

sad 😭

@danvk
Copy link

danvk commented Feb 2, 2025

This seems to be caused by a <link> tag in the <author> section, which some tools like gpx.studio emit. This patch fixed this error for me:

diff --git a/assets/2025-02-01-roundtop-kaaterskill/track.gpx b/assets/2025-02-01-roundtop-kaaterskill/track.gpx
index daa011e..d9de2e2 100644
--- a/assets/2025-02-01-roundtop-kaaterskill/track.gpx
+++ b/assets/2025-02-01-roundtop-kaaterskill/track.gpx
@@ -4,7 +4,6 @@
     <name><![CDATA[Afternoon hike]]></name>
     <author>
       <name>gpx.studio</name>
-      <link href="https://gpx.studio">gpx.studio</link>
     </author>
     <link href="http://www.alltrails.com">
       <text>AllTrails, LLC</text>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants