Skip to content

Conversation

@juliag2
Copy link

@juliag2 juliag2 commented Apr 29, 2024

This PR adds cumulative elevation gain/loss about the user-selected area to the focus box. The values will be hidden if the user has not selected an area.

  • rollup-plugin-embed-css has been updated to make the project build again.
  • Corrections for the cumulated values are loosly based on this article.
  • The cumulated values will be recalculated only if the old values are more than 300ms old, or if the selection has changed by 5 segments or more.

JavaScript is not my usual forte, so improvements are more than welcome. I don't often work with geo data either, so please feel free to correct me.

Thank you for brouter-web. It's among the best bike routing planners out there.

tbsmark86 added a commit to tbsmark86/brouter-web that referenced this pull request May 8, 2025
fixes nrenner#408 and similar bug in the graph itself

includes nrenner/Leaflet.Heightgraph#1 to
display selection stats
tbsmark86 added a commit to tbsmark86/brouter-web that referenced this pull request May 8, 2025
fixes nrenner#408 and similar bug in the graph itself

includes nrenner/Leaflet.Heightgraph#1 to
display selection stats
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant