[styles] Add -difficult and -expert path patterns

Signed-off-by: Konstantin Pastbin <konstantin.pastbin@gmail.com>
This commit is contained in:
Konstantin Pastbin 2024-04-15 22:56:55 +03:00 committed by Viktor Havaka
parent 3580f9d9fc
commit 568d58ccb7
4 changed files with 62 additions and 0 deletions

View file

@ -680,6 +680,8 @@ line|z15-[highway=steps],
{color: @footway;opacity: 0.85;}
line|z14-[highway=path],
{color: @path;opacity: 0.6;}
line|z14-[highway=path][_path_grade=expert],
{color: @path_expert; opacity: 0.6;}
line|z14-[piste:type=hike],
{color: @piste; opacity: 0.4;}
line|z17-[highway=footway][tunnel?]::tunnelBackground,
@ -882,6 +884,28 @@ line|z18[highway=path][bicycle=yes],
line|z19-[highway=path][bicycle=yes],
{width: 3.7; dashes: 8,6.2; opacity: 0.8;}
line|z14[highway=path][_path_grade=difficult],
{width: 0.9; dashes: 1,2;}
line|z15[highway=path][_path_grade=difficult],
{width: 1.1; dashes: 1,2;}
line|z16[highway=path][_path_grade=difficult],
{width: 1.5; dashes: 1.8,2.5;}
line|z17[highway=path][_path_grade=difficult],
{width: 2; dashes: 1.8,2.5;}
line|z18-[highway=path][_path_grade=difficult],
{width: 2.8; dashes: 2.8,3.5;}
line|z14[highway=path][_path_grade=expert],
{width: 0.9; dashes: 1,4;}
line|z15[highway=path][_path_grade=expert],
{width: 1.1; dashes: 1,4;}
line|z16[highway=path][_path_grade=expert],
{width: 1.5; dashes: 1.6,6;}
line|z17[highway=path][_path_grade=expert],
{width: 2; dashes: 1.6,6;}
line|z18-[highway=path][_path_grade=expert],
{width: 2.8; dashes: 2.8,8;}
line|z17-[highway=path][tunnel?]::tunnelBackground
{casing-width-add: 0.5;}
line|z17-[highway=path][tunnel?]::tunnelCasing

View file

@ -114,6 +114,7 @@
@construction: #BBBBAA;
@track: #635730;
@path: #A05012;
@path_expert: #3D2617;
@bridleway: #3D361E;
/* 5.2 Bridges */

View file

@ -114,6 +114,7 @@
@construction: #332F2D;
@track: #5F532D;
@path: #944A12;
@path_expert: #523E33;
@bridleway: #2B2827;
/* 5.2 Bridges */

View file

@ -90,6 +90,9 @@ line|z12-[highway=steps],
line|z11-[highway=path],
{color: @path; opacity: 1;}
line|z11-[highway=path][_path_grade=expert],
{color: @path_expert; opacity: 1;}
line|z12-[piste:type=hike],
{color: @piste; opacity: 0.7;}
@ -182,6 +185,39 @@ line|z18-[highway=path][bicycle=yes],
line|z18-[highway=footway][bicycle=yes],
{width: 4; dashes: 8,6; opacity: 1;}
line|z11[highway=path][_path_grade=difficult],
line|z11[highway=path][_path_grade=expert],
{width: 1; dashes: 1,2; opacity: 0.7;}
line|z12[highway=path][_path_grade=difficult],
line|z12[highway=path][_path_grade=expert],
{width: 1.1; dashes: 1,2; opacity: 0.8;}
line|z13[highway=path][_path_grade=difficult],
{width: 1.3; dashes: 1.5,2.5;}
line|z14[highway=path][_path_grade=difficult],
{width: 1.6; dashes: 1.5,2.5;}
line|z15[highway=path][_path_grade=difficult],
{width: 2; dashes: 2.5,4;}
line|z16[highway=path][_path_grade=difficult],
{width: 2.6; dashes: 2.5,4;}
line|z17[highway=path][_path_grade=difficult],
{width: 3.3; dashes: 3.6,5;}
line|z18-[highway=path][_path_grade=difficult],
{width: 4; dashes: 3.6,5;}
line|z13[highway=path][_path_grade=expert],
{width: 1.3; dashes: 1.4,5;}
line|z14[highway=path][_path_grade=expert],
{width: 1.6; dashes: 1.4,5;}
line|z15[highway=path][_path_grade=expert],
{width: 2; dashes: 2.3,9;}
line|z16[highway=path][_path_grade=expert],
{width: 2.6; dashes: 2.3,9;}
line|z17[highway=path][_path_grade=expert],
{width: 3.3; dashes: 3.5,11;}
line|z18-[highway=path][_path_grade=expert],
{width: 4; dashes: 3.5,11;}
/* Don't display sidewalks and pedestrian crossings till z16. */
line|z11-15[highway=footway][footway=sidewalk],
line|z11-15[highway=footway][footway=crossing],