From 30af3fb47af51379f62bc2669d8eccbcf6fc85e9 Mon Sep 17 00:00:00 2001 From: Konstantin Pastbin Date: Mon, 13 May 2024 23:46:48 +0300 Subject: [PATCH] [styles] Display trunk roads at z6 Signed-off-by: Konstantin Pastbin --- data/styles/default/include/Roads.mapcss | 14 ++++++++++---- data/styles/outdoors/include/Roads.mapcss | 3 +++ data/styles/vehicle/include/Roads.mapcss | 14 ++++++++++---- 3 files changed, 23 insertions(+), 8 deletions(-) diff --git a/data/styles/default/include/Roads.mapcss b/data/styles/default/include/Roads.mapcss index 83691b4690..04bd2755cc 100644 --- a/data/styles/default/include/Roads.mapcss +++ b/data/styles/default/include/Roads.mapcss @@ -2,8 +2,8 @@ 1.Z-INDEX ROADS 2.WORLD LEVEL ROAD 4-9 ZOOM -3.TRUNK & MOTORWAY 7-22 ZOOM - 3.1 Trunk & Motorway 7-22 ZOOM +3.TRUNK & MOTORWAY 6-22 ZOOM + 3.1 Trunk & Motorway 6-22 ZOOM 3.2 Trunk & Motorway tunnel 12-22 ZOOM 3.3 Trunk & Motorway bridge 13-22 ZOOM 4.PRIMARY 8-22 ZOOM @@ -71,8 +71,11 @@ line|z9[highway=world_towns_level], line|z9[highway=world_level] {width: 0.8;} -/* 3.TRUNK & MOTORWAY 7-22 ZOOM */ +/* 3.TRUNK & MOTORWAY 6-22 ZOOM */ +line|z6[highway=trunk], +line|z6[highway=motorway], +{color: @trunk0; opacity: 0.3;} line|z7-9[highway=trunk], line|z7-9[highway=motorway], {color: @trunk0; opacity: 0.7;} @@ -105,8 +108,11 @@ line|z14-[highway=motorway_link][bridge?]::bridgeblack, line|z14-[highway=trunk_link][bridge?]::bridgeblack, {casing-linecap: butt; casing-color: @bridge_casing; casing-opacity: 0.7;} -/* 3.1 Trunk & Motorway 7-22 ZOOM */ +/* 3.1 Trunk & Motorway 6-22 ZOOM */ +line|z6[highway=trunk], +line|z6[highway=motorway], +{width: 0.8;} line|z7[highway=trunk], line|z7[highway=motorway] {width: 0.9;} diff --git a/data/styles/outdoors/include/Roads.mapcss b/data/styles/outdoors/include/Roads.mapcss index 4866ac9270..58c84c91a0 100644 --- a/data/styles/outdoors/include/Roads.mapcss +++ b/data/styles/outdoors/include/Roads.mapcss @@ -3,6 +3,9 @@ /* Make all roads more contrast */ +line|z6[highway=trunk], +line|z6[highway=motorway], +{opacity: 0.7;} line|z7-[highway=trunk], line|z7-[highway=motorway], line|z10-[highway=motorway_link], diff --git a/data/styles/vehicle/include/Roads.mapcss b/data/styles/vehicle/include/Roads.mapcss index 0b84e05e2f..2abb8253ea 100644 --- a/data/styles/vehicle/include/Roads.mapcss +++ b/data/styles/vehicle/include/Roads.mapcss @@ -2,8 +2,8 @@ 1.Z-INDEX ROADS 2.WORLD LEVEL ROAD 4-9 ZOOM -3.TRUNK & MOTORWAY 7-22 ZOOM - 3.1 Trunk & Motorway 7-22 ZOOM +3.TRUNK & MOTORWAY 6-22 ZOOM + 3.1 Trunk & Motorway 6-22 ZOOM 3.2 Trunk & Motorway tunnel 12-22 ZOOM 3.3 Trunk & Motorway bridge 13-22 ZOOM 4.PRIMARY 8-22 ZOOM @@ -70,8 +70,11 @@ line|z9[highway=world_towns_level], line|z9[highway=world_level] {width: 1.2;} -/* 3.TRUNK & MOTORWAY 7-22 ZOOM */ +/* 3.TRUNK & MOTORWAY 6-22 ZOOM */ +line|z6[highway=trunk], +line|z6[highway=motorway], +{color: @trunk0; opacity: 0.3;} line|z7-[highway=trunk], line|z7-[highway=motorway], {color: @trunk0; opacity: 0.7;} @@ -93,8 +96,11 @@ line|z14-[highway=motorway_link][bridge?]::bridgeblack, line|z14-[highway=trunk_link][bridge?]::bridgeblack, {casing-linecap: butt;casing-color:@bridge_casing; casing-opacity: 0.7;} -/* 3.1 Trunk & Motorway 7-22 ZOOM */ +/* 3.1 Trunk & Motorway 6-22 ZOOM */ +line|z6[highway=trunk], +line|z6[highway=motorway], +{width: 0.9;} line|z7[highway=trunk], line|z7[highway=motorway] {width: 1.05;}