charlesepaillard

Results 3 comments of charlesepaillard

Hi @simplicitywebdesign I have the same problem on my side - showing maps and adding markers is all good. However I have the very same issue and error showing gpx.

using debugger: L.control.elevation(opts.elevationControl.options).addTo(leafletMapsObj[trackOpts.mapId]) returns an error because leafletMapsObj[trackOpts.mapId] is "undefined" main reason is that leafletMapsObj is an empty dictionary ![Capture](https://github.com/altrdev/hugo-leaflet/assets/7326398/66a1727e-36f7-4107-a272-fb7097501bf2)

ok, I understand the problem: drawTrack has to be called AFTER createMap.