brouter-web/js/plugin
Henrik Fehlauer 900f925276 Improve incline coding visuals and use different colors for going uphill
Currently it is a bit difficult to guess the slope of the route for
planning purposes, since even for routes in very hilly terrain the
colors hardly change. Only extremely steep hills are indicated,
and there is no visual difference between going uphill or downhill.

By cutting off earlier, more of the route will show meaningful
differences in color. Note that BRouter's gradients are already
averaged compared to the maximum gradients shown on road signs, so 15%
should be a good compromise (anything steeper is difficult to ride on
for longer periods anyway, and rightly deserves to be colored with an
alarming red).

By using different colors for the min and max parameters, uphill and
downhill sections should now be easy to distinguish.

By introducing two more color stops, the gradient becomes much smoother,
with flat sections featuring a distinctive green, where they were drawn
in a muddy dark green before.

Note that this approach had been implemented like this in QLandkarte GT
for several years now, with great success.
2020-05-22 18:00:00 +00:00
..
Bing.js Add prettier and reformat code 2019-05-17 20:55:39 +02:00
Elevation.js Increase prettier maxwidth to 120 2019-08-10 19:36:36 +02:00
leaflet-distance-marker.js Improve distance markers a bit (#243) 2019-12-13 12:44:24 +01:00
leaflet-fullHash.js Exclude loaded tracks from URL hash 2020-06-03 20:24:17 +02:00
NogoAreas.js Fix nogo drawing for mobile Chrome, fixes #259 2020-06-05 20:11:36 +02:00
POIMarkers.js Replace large awesome-markers with smaller vector-markers (#268) 2019-12-18 21:28:58 +01:00
Routing.js Replace large awesome-markers with smaller vector-markers (#268) 2019-12-18 21:28:58 +01:00
RoutingPathQuality.js Improve incline coding visuals and use different colors for going uphill 2020-05-22 18:00:00 +00:00
Search.js Upgrade leaflet geocoder to properly parse lat/lng 2019-06-16 19:04:18 +02:00
Sidebar.js Increase prettier maxwidth to 120 2019-08-10 19:36:36 +02:00
stravaSegments.js Add eslint 2019-11-03 14:29:26 +01:00
TracksLoader.js Set track color yellow for CyclOSM (#297) 2020-06-02 22:09:22 +02:00