brouter-web/js
Marcus Jaschen fc54c65e23 Add sidebar tab with route analysis data
- adds a new analysis tab in the sidebar
- the analysis tab shows length distribution for different way types, surface, and smoothness
- table rows can be hovered/clicked to highlight the according segments on the map (similar behaviour as the detailed data table)
- localization is implemented for `de` and `en`
- the method for finding segment edges was extracted from `js/control/TrackMessages.js` into `js/util/TrackEdges.js` as it's used in the new analysis class too (the Gulp config was changed to reflect that)

Notes:

I had the idea to use the *DataTable* plugin for rendering the tables but decided against it. The only meaningful way to sort such a table is by the length column and that's already the case. So it's just three plain, old HTML tables, rendered by jQuery.

For meaningful statistics the `processUnusedTags` setting has to be enabled in the routing profile. Only in this case the BRouter backend includes all needed tags (`highway`, `surface`, and `smoothness`) for *every* route segment in the response. I’ve enabled that setting for all profiles at my BRouter-web instance at <https://brouter.m11n.de/>.
2020-06-07 16:56:50 +02:00
..
control Add sidebar tab with route analysis data 2020-06-07 16:56:50 +02:00
plugin Fix nogo drawing for mobile Chrome, fixes #259 2020-06-05 20:11:36 +02:00
router Fix Custom option not disabled when URL with profile 2019-11-29 15:45:31 +01:00
util Add sidebar tab with route analysis data 2020-06-07 16:56:50 +02:00
Browser.js Increase prettier maxwidth to 120 2019-08-10 19:36:36 +02:00
index.js Add sidebar tab with route analysis data 2020-06-07 16:56:50 +02:00
LayersConfig.js Fix "Layer not found: route-quality" error msg (ignore built-in layers) 2020-01-08 19:13:15 +01:00
Map.js Make privacy policy URL configurable (#284) 2020-05-28 10:54:08 +02:00
Util.js Hide zoom controls on mobile 2020-05-24 21:24:14 +02:00