5

I would like to use the leaflet.draw plugin to allow users to digitize vectors on the map. At the end the data should be downloadable as a GPX-file.

Is there any sample that shows how this can be done?

  • 1
    Do you want a set of waypoints, a route (plan for what to do) or a track (record of what happened)? Do you need time association with these points / vectors? – BradHards Jan 13 '13 at 8:29
2

If processing on the serverside is an option you can consider using ogr2ogr, which supports geojson and gpx. http://www.gdal.org/ogr2ogr.html

| improve this answer | |
1

It can be done with OpenLayers. You can use OpenLayers.Format.GPX to read/write GPX files. Leaflet Supports reading GPX files through plugins but i'm not sure if it supports writing as well.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.