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.
This commit is contained in:
Henrik Fehlauer 2020-05-23 18:00:00 +00:00
parent 900f925276
commit 9d648fc1d7

View file

@ -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) {