Closed FranGhe closed 6 months ago
There is an event eledata_loaded: https://github.com/Raruto/leaflet-elevation/blob/bd9316bd1b7e7784b3bf3d812960eaa808ad94d6/examples/leaflet-elevation.html#L78
I use this in a WordPress plugin.
Just a clarification:
eledata_loaded
event on the L.Map
object.elevationViewer.load()
function👋 Raruto
My was solution was :
elevationViewer.on('eledata_loaded', function({ layer, name } /* ← ADDED */) {
console.log("loaded");
});
Thanks
I would like to have a callback when the my Gpx file is loaded, so track and graph are ready because I need to get the zoom level.
My code is this:
I thought to use this... but don't work for me
I found on old issues but without success... any suggestion?