From d530022ecd3af4e03da47d7a48d130ab24aaf2a0 Mon Sep 17 00:00:00 2001 From: Baconcrisp26 <50333308+Baconcrisp26@users.noreply.github.com> Date: Thu, 29 Dec 2022 16:35:18 -0700 Subject: [PATCH] Update Kaart-Styles.mapcss Added updated style for ways with access tags and added primary+ ways to flag roads without name style. --- Kaart-Styles.mapcss | 37 ++++++++++++++++++++++++++++++++++++- 1 file changed, 36 insertions(+), 1 deletion(-) diff --git a/Kaart-Styles.mapcss b/Kaart-Styles.mapcss index cc8f248..8b96d0d 100644 --- a/Kaart-Styles.mapcss +++ b/Kaart-Styles.mapcss @@ -291,6 +291,12 @@ label: tr("Barrier Setting"); default: true; } +setting::access { + type: boolean; + label: tr("Access On/off"); + default: false; +} + @@ -360,6 +366,35 @@ relation[admin_level=2][setting("show_boundary")] > way::core_boundary { dashes: 9,9; } +/****************************/ +/* access restrictions tags */ +/****************************/ + +way[access?!]::core_access { + z-index: -1; + width: +2; + color: no#ff8080; + dashes: 2,2; +} +way[access=permissive][setting("access")]::core_access { + z-index: -1; + width: +5; + color: permissive#80ff80; + dashes: 2,2; +} +way[access=private][setting("access")]::core_access { + z-index: -1; + width: +5; + color: private#ff8080; + dashes: 2,2; +} +way[access=destination][setting("access")]::core_access { + z-index: -1; + width: +5; + color: destination#8080ff; + dashes: 2,2; +} + /* Untagged Ways */ way { z-index: 6; color: grey; width: 3.5; casing-width: 1; casing-color: #000000; } @@ -3173,7 +3208,7 @@ node[public_transport=platform][ferry=yes] { /* Name & Ref Checker */ -way["highway"=~/^(secondary|tertiary|unclassified|residential|living_street)$/][!name][setting("check_name")] { +way["highway"=~/^(motorway|trunk|primary|secondary|tertiary|unclassified|residential|living_street)$/][!name][setting("check_name")] { casing-color: red; casing-width: 3; text: tr("");