Closed haldo98 closed 1 year ago
In the latest versions of this library the lealfet-gpx
dependency has been removed.
BTW, if you don't want to go crazy understanding too much third party code you can also do it directly adding two simple L.Markers (at the start and end of your path).
👋 Raruto
Thank you.... is there a way to directly point to the start (and maybe also to the end) of the track with the plugin or should I have one or two waypoints ? (start-end)
thank u
I think there are several ways to achieve this, just FYI, here you can change the properties related to the current start and end icons (if I remember correctly, even if they are L.CircleMarkers with a little imagination, you could also use raster icons, in case please search for this on the web and let me know..)
Otherwise here it is something old-fashioned:
controlElevation.on('eledata_loaded', (e) => {
console.log(e, controlElevation._data); // <-- here you can do something much more clever.. 😃
);
controlElevation.load(url);
👋 Raruto
Thank you for your great work.
I'm a newbie in js so please forgive me if I'm writing something dumb
I have some issue with the gpxOptions inherited from leaflet-gpx
I added the options #18 of the marker from leaflet-gpx but the markers are not shown.
Here is my working example: https://www.tadini.it/temp/map.html
And..... does the event from leaflet-gpx is supported? (addpoint - loaded - error )
Thank You.