--- a/style/roads.mss Tue Sep 15 15:06:57 2020 +0300 +++ b/style/roads.mss Tue Sep 15 17:36:45 2020 +0300 @@ -601,3 +601,80 @@ text-avoid-edges: true; text-size: 12; } + +@foot-route-fill: #ffc3c3; +@hiking-route-fill: #f7cfb1; +@bicycle-lcn-route-fill: #c3e1ff; +@bicycle-rcn-route-fill: #d6cdff; +@bicycle-ncn-route-fill: #ffc3ff; + +#foot-routes-layer-n1[layer < 0], +#foot-routes[layer = 0], +#foot-routes-layer-1[layer > 0] +{ + line-color: @foot-route-fill; + [route = 'hiking'] + { + line-color: @hiking-route-fill; + } + [route = 'bicycle_lcn'] + { + line-color: @bicycle-lcn-route-fill; + } + [route = 'bicycle_rcn'] + { + line-color: @bicycle-rcn-route-fill; + } + [route = 'bicycle_ncn'], + [route = 'bicycle_icn'] + { + line-color: @bicycle-ncn-route-fill; + } + line-width: 4; + [zoom >= 15] { line-width: 6; } + [zoom >= 16] { line-width: 8; } + [zoom >= 17] { line-width: 10; } + [zoom >= 18] { line-width: 13; } + [zoom >= 19] { line-width: 16; } + [zoom >= 20] { line-width: 20; } + line-join: round; + line-cap: round; +} + +#foot-routes-text +{ + text-name: "[name]"; + [ref != null] + { + text-name: "[ref]"; + } + text-fill: saturate(darken(@foot-route-fill, 50%), 35%); + [route = 'hiking'] + { + text-fill: saturate(darken(@hiking-route-fill, 50%), 35%); + } + [route = 'bicycle_lcn'] + { + text-fill: saturate(darken(@bicycle-lcn-route-fill, 50%), 35%); + } + [route = 'bicycle_rcn'] + { + text-fill: saturate(darken(@bicycle-rcn-route-fill, 50%), 35%); + } + [route = 'bicycle_ncn'], + [route = 'bicycle_icn'] + { + text-fill: saturate(darken(@bicycle-ncn-route-fill, 50%), 35%); + } + text-dy: 5; + text-face-name: "Liberation Sans Regular"; + text-repeat-distance: 300; + text-placement: line; + text-halo-radius: 1; + text-halo-fill: white; + text-clip: false; + text-avoid-edges: true; + text-size: 10; + [zoom >= 16] { text-size: 11; } + [zoom >= 17] { text-size: 12; } +}