From 9d648fc1d7202bf47f93d8f65f1c14f247962d49 Mon Sep 17 00:00:00 2001 From: Henrik Fehlauer Date: Sat, 23 May 2020 18:00:00 +0000 Subject: [PATCH] Make hotline contrast more pleasant Colorful routes can conflict visually with colourful maps, therefore having an outline to make the route stand out more makes sense. However, using black results in very high contrast levels, which can become distracting in itself. By using a dark gray, this should look much more balanced, while still fulfilling the original purpose. --- js/plugin/RoutingPathQuality.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/plugin/RoutingPathQuality.js b/js/plugin/RoutingPathQuality.js index d1b7944..64b4872 100644 --- a/js/plugin/RoutingPathQuality.js +++ b/js/plugin/RoutingPathQuality.js @@ -27,6 +27,7 @@ BR.RoutingPathQuality = L.Control.extend({ 0.75: '#ffff00', // yellow 1.0: '#ff0000' // red }, + outlineColor: 'dimgray', renderer: renderer }, valueFunction: function(latLng, prevLatLng) { @@ -44,6 +45,7 @@ BR.RoutingPathQuality = L.Control.extend({ icon: 'fa-area-chart', provider: new HotLineQualityProvider({ hotlineOptions: { + outlineColor: 'dimgray', renderer: renderer }, valueFunction: function(latLng) { @@ -56,6 +58,7 @@ BR.RoutingPathQuality = L.Control.extend({ icon: 'fa-usd', provider: new HotLineQualityProvider({ hotlineOptions: { + outlineColor: 'dimgray', renderer: renderer }, valueFunction: function(latLng) {