Commit f2a1151d authored by Volker Krause's avatar Volker Krause
Browse files

Use the newly supported layer selectors to untangle roads and tramways

Their styles no longer get mixed when they share the same geometry now,
and trams are always rendered on top of roads.
parent 0102c237
Pipeline #65374 passed with stage
in 23 seconds
......@@ -112,13 +112,13 @@ line[highway=tertiary],
line[highway=tertiary_link],
line[highway=unclassified],
line[highway=residential],
line[highway=service][!aeroway],
line[highway=service]::road,
line[highway=living_street],
line[highway=pedestrian],
line[highway=road]
{
casing-width: 1;
z-index: -10;
z-index: -30;
linecap: round;
casing-linecap: round;
}
......@@ -151,7 +151,7 @@ line[highway=road]
width: 3;
}
line[highway=service] { width: 2; }
line[highway=service]::road { width: 2; }
line[highway][layer<0],
line[highway][tunnel] {
......@@ -195,7 +195,7 @@ line|z20-[highway=road]
way[railway=rail],
way[railway=light_rail],
way[railway=subway],
way[railway=tram],
way[railway=tram]::tram,
way[railway=monorail]
{
color: #eff0f1;
......@@ -204,6 +204,7 @@ way[railway=monorail]
casing-width: 3;
casing-color: #31363b;
linecap: none;
linejoin: miter;
}
way[railway=narrow_gauge]
{
......
......@@ -54,7 +54,7 @@ line[highway=tertiary],
line[highway=tertiary_link],
line[highway=unclassified],
line[highway=residential],
line[highway=service][!aeroway],
line[highway=service]::road,
line[highway=road]
{
casing-color: #393c40;
......@@ -137,6 +137,16 @@ line[public_transport=platform][railway!=platform_edge]
width: 1.5; // meter
}
way[railway=rail],
way[railway=light_rail],
way[railway=subway],
way[railway=tram]::tram,
way[railway=monorail],
way[railway=narrow_gauge]
{
casing-color: #232629;
}
/** General amenities/shops/etc. */
* [amenity],
* [indoor],
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment