Closed fertlon closed 1 year ago
You should be able to set them to null
in the marker_options
:
new L.GPX(gpx_file, {
async: true,
marker_options: {
startIconUrl: null,
endIconUrl: null,
},
})...
See https://github.com/mpetazzoni/leaflet-gpx/blob/main/gpx.js#L578
Hi,
I would like to not display the start and end waypoints of my track, however I have "empty" waypoint icons showing instead of nothing. Here is the HTML code I use :
` // Create the map const map = L.map('map',{fullscreenControl: true}); L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', { attribution: '© OpenStreetMap contributors' }).addTo(map);
I apology if my question is simple, but I did not find the answer in the documentation...
Thank you in advance for your help ! :)