Closed bermaneyal closed 5 years ago
You can just remove the layer from the map:
var gpx = new L.GPX(url, options).addTo(map); // later map.removeLayer(gpx);
You can just remove the layer from the map: