EfficiencyJunky / BikeLapse

A webapp built with leaflet.js and mapbox meant to make it easy to catalog bike rides that have been recorded with the DistanceLapse Video Creation System and Strava
4 stars 0 forks source link

clear the elevation cursor when clearing elevationControl #32

Open EfficiencyJunky opened 4 years ago

EfficiencyJunky commented 4 years ago

When the elevation Control is filled with data and the follow layer is showing on the map, it is possible to mouse over the follow layer and show the cursor on the elevation Control

When we call elevationControl.clear() this cursor persists.

We need to figure out how to clear it from the elevationControl display

Here's an example of what happens when we load a new ride and the cursor from the previous ride is still there. Notice the cursor shows 18 miles and 355 feet but it should show 10 miles and 500 feet: Screen Shot 2020-08-09 at 2 17 08 PM

This is a bug in the elevationControl code not ours. But we can probably fix it anyways.