Closed hupe13 closed 3 years ago
This code removes the waypoints from map:
map.on("zoomend", function(e) { map.eachLayer(function(layer) { if (layer instanceof L.Marker) { map.removeLayer(layer); } }); });
I could not solve it any other way.
@hupe13 take a look at https://leafletjs.com/reference#geojson-filter
How do I filter L.GpxGroup?
Otherwise you can add a dedicated option if you want.
Thank you very much, it works.
Hi Raruto,
if a gpx track contains waypoints (wpt), the name of tooltip was the name of the first waypoint. This pull request makes the name of the (first) track to the name of the tooltip.
This code removes the waypoints from map:
I could not solve it any other way.