mpetazzoni / leaflet-gpx

A GPX track plugin for Leaflet.js
http://mpetazzoni.github.io/leaflet-gpx
BSD 2-Clause "Simplified" License
529 stars 114 forks source link

Change url and update track #154

Closed IamSAB closed 3 months ago

IamSAB commented 3 months ago

How should i handle url changes? I.e when i load a gpx and add it to the map and later change the url that the new gpx is loaded and displayed.

As I understand, the reload function assumed same url and uses it to load a changed gpx file.

mpetazzoni commented 3 months ago

I would recommend making a new layer (via a new L.GPX instance) in this case.