Skip to content

Error when gpx contains Waypoints  #107

@ypcyc

Description

@ypcyc

When I use gpx with route, everything works fine.
when I add at least one waypoint I get error and maps is not shown even with route:

Uncaught TypeError: Cannot read property 'length' of null
at i._parse_gpx_data (VM463 gpx.min.js:formatted:366)
at i (VM463 gpx.min.js:formatted:293)
at XMLHttpRequest.o.onreadystatechange (VM463 gpx.min.js:formatted:286)

I used this, maybe there are some more mandatory parameters that are missing?

<wpt lat="xxx" lon="yyy"> <name>Name</name> </wpt>

Just check some other waypoints from the Issues, it turned out that <desc> is needed, but according to gpx specification it is not mandatory
https://www.topografix.com/gpx_manual.asp

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions