der-stefan / OpenTopoMap

A topographic map from OpenStreetMap and SRTM data
https://opentopomap.org
Other
470 stars 120 forks source link

Large GPX files cannot be shown #249

Closed martinstingl closed 4 years ago

martinstingl commented 4 years ago

When I try to import .gpx files larger than 1 MByte no data is shown on the map at all. I don't know where the exact threshold is, the error is with all my files > 1MByte.

max-dn commented 4 years ago

There is a default limit in Leaflet.FileLayer with 1MByte. I changed it to 8MByte (L.Control.fileLayerLoad({ fileSizeLimit: 8196, ...). Should work now and I hope this change has no negative side effects ;)

martinstingl commented 4 years ago

Perfect, works for me now. Thank you!