Leaflet.Elevation
Leaflet.Elevation copied to clipboard
Zoom sync
I know I've already demanded lots of stuff but I'm very exciting about the current state. So you another bonus feature:
We can already drag on the widget and the map zooms to the position. Which is very nice!
Now I thought: why not sync back to the widget and change the interval based on the zoomed map? So if I zoom somewhere on the map which contains the route the widget would change the data it shows. ala
map-zoom-event => map.getBoundingBox => get first and last visible point of the route within that box => the widget changes the visible data
Hmmh, we would need a button to zoom back to the full route as well. Not sure if this is a useful feature for others too ...
If so, this should be an optional feature. I´ll see when I go again time to do some work here...