Skip to content

Commit

Permalink
Update Kaart-Styles.mapcss
Browse files Browse the repository at this point in the history
Added updated style for ways with access tags and added primary+ ways to flag roads without name style.
  • Loading branch information
Baconcrisp26 authored Dec 29, 2022
1 parent 7c2adfb commit d530022
Showing 1 changed file with 36 additions and 1 deletion.
37 changes: 36 additions & 1 deletion Kaart-Styles.mapcss
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,12 @@ label: tr("Barrier Setting");
default: true;
}

setting::access {
type: boolean;
label: tr("Access On/off");
default: false;
}




Expand Down Expand Up @@ -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; }
Expand Down Expand Up @@ -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("");
Expand Down

0 comments on commit d530022

Please sign in to comment.