Sync an elevation profile with a map
Scrub the chart and the map's marker travels the route. Move the pointer over the route and the chart's cursor follows. Neither direction is wired below.
Hold the map in state rather than a ref, so the profile re-renders when the style finishes loading.