Open simplicitywebdesign opened 6 months ago
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
ok, I understand the problem: drawTrack has to be called AFTER createMap.
The map itself shows up fine, but the track does not. My console is showing the following issue:
I have tried for a few weeks now to nail it down but I just don't have the JS abilities to debug it. I'm almost certain I'm doing something stupid here but cannot figure it out.
Anybody else come across this?