Giter Site home page Giter Site logo

tmuguet / map2gpx Goto Github PK

View Code? Open in Web Editor NEW
7.0 7.0 2.0 8.48 MB

map2gpx lets you trace paths on maps (for hiking for instance) and export them to GPX or KML formats.

Home Page: https://map2gpx.fr/

License: MIT License

HTML 51.99% JavaScript 41.00% PHP 4.05% CSS 2.97%

map2gpx's People

Contributors

dependabot[bot] avatar eduha avatar tmuguet avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

eduha jamison413

map2gpx's Issues

Unable to load some GPX tracks

Can't load this track: 2094421.gpx.zip.

Fails with a Leaflet error:

Uncaught (in promise) TypeError: t is null
    project leaflet.js:5
    latLngToPoint leaflet.js:5
    project leaflet.js:5
    latLngToLayerPoint leaflet.js:5
    update leaflet.js:5
    onAdd leaflet.js:5
    _layerAdd leaflet.js:5
    whenReady leaflet.js:5
    addLayer leaflet.js:5
    addLayer leaflet.js:5
    addLayer leaflet.js:5
    addTo leaflet.js:5
    _prepareNode leaflet.trackdrawer.min.js:1
    addNode leaflet.trackdrawer.min.js:1
    _loop2$ leaflet.trackdrawer.min.js:1
    Babel 11
    asyncGeneratorStep leaflet.trackdrawer.min.js:1
    _next leaflet.trackdrawer.min.js:1
    _asyncToGenerator leaflet.trackdrawer.min.js:1
    _asyncToGenerator leaflet.trackdrawer.min.js:1
    _dataLoadedHandler leaflet.trackdrawer.min.js:1
    _callee3$ leaflet.trackdrawer.min.js:1
    Babel 3
    asyncGeneratorStep leaflet.trackdrawer.min.js:1
    _next leaflet.trackdrawer.min.js:1
    _asyncToGenerator leaflet.trackdrawer.min.js:1
    _asyncToGenerator leaflet.trackdrawer.min.js:1
    loadFile leaflet.trackdrawer.min.js:1
    fire leaflet.js:5
    onload leaflet.filelayer.js:88
    load leaflet.filelayer.js:83
    loadFile leaflet.trackdrawer.min.js:1
    loadFile leaflet.trackdrawer.min.js:1
    _import ImportButton.js:46
    this.options.submitLabel ImportButton.js:87
    jQuery 3

Add undo/redo

Should cover: add marker, move marker and delete marker

Option to avoid export waypoints in the track

Personnaly the waypoints in the track are more disturbing me when I use the gpx in other app or software.

  • First what is your opinion, does someone is using the points or find this usefull.
  • Second, would it be possible to give the user an option to export only the track ?

Thanks

Bounds when importing a track via URL are incorrect

When loading a track via the url parameter (e.g. via https://map2gpx.fr/?url=https://thomasmuguet.info/2016-08-27-refuge-adele-planchard/track.gpx), the map focuses on the marker and not on the whole track.

Loading a URL with a space fails

Example:

URL de la requête :https://map2gpx.fr/fetch.php?url=https://thomasmuguet.info/todo/Lacs Robert.gpx
Méthode de la requête :GET
Code d’état : 400 Bad Request

Validation of the URL is maybe too restrictive?

Add stopovers

When creating a track, user could use stopovers (e.g. for hikes of several days).

Computation should show stats on each part of the track, and on the whole track.
Export to / import from GPX could use multiple trk.
Export to KML could use multiple Placemark.

Export multitrack as single track

When you export a track, you have the option "Include the stepover markers". I would like to add an option to create as a simple track because many devices (Garmin, Suunto ...) do not support multitracks and only show the first track (first <trk> ... </trk>) of a multitrack. I tried to modify it but I haven't found a way to do it, could you help me? Thank you very much

Deleting a marker while its route is computing does not work

Steps to reproduce:

  • double click to add a marker,
  • before the route is computing, click on the newly created marker or on the starting marker, and delete it

Expected result: marker is removed and route is cancelled
Actual result: marker is removed but route is kept. State of the whole track is then inconsistent and requires reset or refresh of the page

Add other maps source

Hi,

I did not look in detail your code, I have in all case not enough knowledge in this to understand everything.
I really appreciate your work and your tool. I am also French so I totally understand the need of this with the IGN. Actually I am leaving in Germany and I would also like to use it, however the maps are not really satisfying my need, you would understand.

So I come to my question, is it possible to implement other maps ? and how ? (OpenTopo, for example, or Kompass eventually - but may not be allowed).

Thanks

Placing the first marker can result in two markers at the same location

Reproduced with Chrome (61.0.3163.100) & IE11.

Leaves "Calculs en cours..." indefinitely.

Stack trace:

Uncaught TypeError: Cannot read property 'lat' of undefined
at Object.project (leaflet.js:5)
at Object.latLngToPoint (leaflet.js:5)
at e.project (leaflet.js:5)
at e.latLngToLayerPoint (leaflet.js:5)
at e.latLngToContainerPoint (leaflet.js:5)
at e._snakeForward (L.Polyline.SnakeAnim.js:81)
at e._snake (L.Polyline.SnakeAnim.js:73)
at e.snakeIn (L.Polyline.SnakeAnim.js:57)
at e._snakeNext (L.Polyline.SnakeAnim.js:194)
at e.snakeIn (L.Polyline.SnakeAnim.js:172)

Potential fix: ignore marker if placed at the same location as the previous one

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.