Leaflet.Elevation icon indicating copy to clipboard operation
Leaflet.Elevation copied to clipboard

Zoom sync

Open karussell opened this issue 10 years ago • 1 comments

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 ...

karussell avatar Mar 06 '14 17:03 karussell

If so, this should be an optional feature. I´ll see when I go again time to do some work here...

MrMufflon avatar Mar 10 '14 20:03 MrMufflon