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:
parent
900f925276
commit
9d648fc1d7
1 changed files with 3 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue