Created
January 16, 2025 04:49
-
-
Save andrewharvey/5ad5dc3adf4fb9546bde2062379d911d to your computer and use it in GitHub Desktop.
ColouredStreets with addr:unit/addr:flats support
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
meta { | |
title: "Coloured Streets AU"; | |
version: "3.53.127_2021-04-10"; | |
description: "Colouring of buildings, address nodes and streets with the same street name in the same colour. Makes working with addresses a lot easier. Check out the linked page to read how to change some settings of this mappaint style."; | |
icon: "ColouredStreetsIcon.svg"; | |
author: "geozeisig, Klumbumbus"; | |
link: "https://josm.openstreetmap.de/wiki/Styles/Coloured_Streets"; | |
min-josm-version: "8087"; /* due to @supports */ | |
/* This mapcss mappaint style was created for JOSM 8087. I try to support future versions of JOSM and its internal default mappaint style as long as possible. */ | |
} | |
meta[lang=de] { | |
title: "Coloured Streets"; | |
description: "Einfärben von Gebäuden, Adressnodes und Straßen mit gleichem Straßennamen in der gleichen Farbe. Macht die Arbeit mit Adressen wesentlich leichter. Schau dir die verlinkte Seite an, um zu lesen, wie man einige Einstellungen dieses MapMaint-Stils ändert."; | |
link: "https://josm.openstreetmap.de/wiki/De:Styles/Coloured_Streets"; | |
} | |
/* ------------------------------------------------------------------------------------------------------------------------ */ | |
/* ------------------------------------------------------------------------------------------------------------------------ */ | |
/* ------------------------------------------------------------------------------------------------------------------------ */ | |
/* Create mappaint user settings. */ | |
setting::display_bicycle { | |
type: boolean; | |
label: tr("Display cycleway dashes"); | |
default: false; | |
} | |
setting::allow_postcode { | |
type: boolean; | |
label: tr("Allow addr:postcode on streets"); | |
default: false; | |
} | |
setting::support_prefix_and_suffix { | |
type: boolean; | |
label: tr("Support prefix and suffix on street names"); | |
default: false; | |
} | |
setting::display_missing_number_message { | |
type: boolean; | |
label: tr("Display missing number message"); | |
default: true; | |
} | |
setting::support_associatedstreet { | |
type: boolean; | |
label: tr("Support associatedStreet relations"); | |
default: true; | |
} | |
setting::allow_housename { | |
type: boolean; | |
label: tr("Allow housename instead of housenumber (used in UK)"); | |
default: false; | |
} | |
/* create crc32checksums. They are use later in the stylesheet to determine the colour. | |
Due to the division by 429496.7296 crc is always a number between 0 and 10000. */ | |
/* streets and pedestrian areas */ | |
way[highway][name][highway!="platform"][highway!="emergency_access_point"][!setting("support_prefix_and_suffix")], | |
way[highway][name][highway!="platform"][highway!="emergency_access_point"][setting("support_prefix_and_suffix")][!name:prefix][!name:suffix], | |
area[highway="pedestrian"][name][!setting("support_prefix_and_suffix")]:closed, | |
area[highway="pedestrian"][name][setting("support_prefix_and_suffix")][!name:prefix][!name:suffix]:closed { | |
crc: CRC32_checksum(tag(name))/429496.7296; | |
} | |
way[highway][name][highway!="platform"][highway!="emergency_access_point"][setting("support_prefix_and_suffix")][name:prefix][!name:suffix], | |
area[highway="pedestrian"][name][setting("support_prefix_and_suffix")][name:prefix][!name:suffix]:closed { | |
crc: CRC32_checksum(concat(tag("name:prefix"), " ", tag("name")))/429496.7296; | |
} | |
way[highway][name][highway!="platform"][highway!="emergency_access_point"][setting("support_prefix_and_suffix")][!name:prefix][name:suffix], | |
area[highway="pedestrian"][name][setting("support_prefix_and_suffix")][!name:prefix][name:suffix]:closed { | |
crc: CRC32_checksum(concat(tag("name"), " ", tag("name:suffix")))/429496.7296; | |
} | |
way[highway][name][highway!="platform"][highway!="emergency_access_point"][setting("support_prefix_and_suffix")][name:prefix][name:suffix], | |
area[highway="pedestrian"][name][setting("support_prefix_and_suffix")][name:prefix][name:suffix]:closed { | |
crc: CRC32_checksum(concat(tag("name:prefix"), " ", tag("name"), " ", tag("name:suffix")))/429496.7296; | |
} | |
/* associated street relations */ | |
/* nohousenumber=yes */ | |
relation[type="associatedStreet"][name] > area[nohousenumber=yes][!setting("support_prefix_and_suffix")][setting("support_associatedstreet")], | |
relation[type="associatedStreet"][name] > node[nohousenumber=yes][!setting("support_prefix_and_suffix")][setting("support_associatedstreet")]::halo, | |
relation[type="associatedStreet"][name][!name:prefix][!name:suffix] > area[nohousenumber=yes][setting("support_prefix_and_suffix")][setting("support_associatedstreet")], | |
relation[type="associatedStreet"][name][!name:prefix][!name:suffix] > node[nohousenumber=yes][setting("support_prefix_and_suffix")][setting("support_associatedstreet")]::halo { | |
crc: CRC32_checksum(parent_tag("name"))/429496.7296; | |
} | |
relation[type="associatedStreet"][name][name:prefix][!name:suffix] > area[nohousenumber=yes][setting("support_prefix_and_suffix")][setting("support_associatedstreet")], | |
relation[type="associatedStreet"][name][name:prefix][!name:suffix] > node[nohousenumber=yes][setting("support_prefix_and_suffix")][setting("support_associatedstreet")]::halo { | |
crc: CRC32_checksum(concat(parent_tag("name:prefix"), " ", parent_tag("name")))/429496.7296; | |
} | |
relation[type="associatedStreet"][name][!name:prefix][name:suffix] > area[nohousenumber=yes][setting("support_prefix_and_suffix")][setting("support_associatedstreet")], | |
relation[type="associatedStreet"][name][!name:prefix][name:suffix] > node[nohousenumber=yes][setting("support_prefix_and_suffix")][setting("support_associatedstreet")]::halo { | |
crc: CRC32_checksum(concat(parent_tag("name"), " ", parent_tag("name:suffix")))/429496.7296; | |
} | |
relation[type="associatedStreet"][name][name:prefix][name:suffix] > area[nohousenumber=yes][setting("support_prefix_and_suffix")][setting("support_associatedstreet")], | |
relation[type="associatedStreet"][name][name:prefix][name:suffix] > node[nohousenumber=yes][setting("support_prefix_and_suffix")][setting("support_associatedstreet")]::halo { | |
crc: CRC32_checksum(concat(parent_tag("name:prefix"), " ", parent_tag("name"), " ", parent_tag("name:suffix")))/429496.7296; | |
} | |
/* normal addr:housenumber */ | |
relation[type="associatedStreet"][name] > area["addr:housenumber"][!setting("support_prefix_and_suffix")][setting("support_associatedstreet")], | |
relation[type="associatedStreet"][name] > node["addr:housenumber"][!setting("support_prefix_and_suffix")][setting("support_associatedstreet")]::halo, | |
relation[type="associatedStreet"][name][!name:prefix][!name:suffix] > area["addr:housenumber"][setting("support_prefix_and_suffix")][setting("support_associatedstreet")], | |
relation[type="associatedStreet"][name][!name:prefix][!name:suffix] > node["addr:housenumber"][setting("support_prefix_and_suffix")][setting("support_associatedstreet")]::halo { | |
crc: CRC32_checksum(parent_tag("name"))/429496.7296; | |
} | |
relation[type="associatedStreet"][name][name:prefix][!name:suffix] > area["addr:housenumber"][setting("support_prefix_and_suffix")][setting("support_associatedstreet")], | |
relation[type="associatedStreet"][name][name:prefix][!name:suffix] > node["addr:housenumber"][setting("support_prefix_and_suffix")][setting("support_associatedstreet")]::halo { | |
crc: CRC32_checksum(concat(parent_tag("name:prefix"), " ", parent_tag("name")))/429496.7296; | |
} | |
relation[type="associatedStreet"][name][!name:prefix][name:suffix] > area["addr:housenumber"][setting("support_prefix_and_suffix")][setting("support_associatedstreet")], | |
relation[type="associatedStreet"][name][!name:prefix][name:suffix] > node["addr:housenumber"][setting("support_prefix_and_suffix")][setting("support_associatedstreet")]::halo { | |
crc: CRC32_checksum(concat(parent_tag("name"), " ", parent_tag("name:suffix")))/429496.7296; | |
} | |
relation[type="associatedStreet"][name][name:prefix][name:suffix] > area["addr:housenumber"][setting("support_prefix_and_suffix")][setting("support_associatedstreet")], | |
relation[type="associatedStreet"][name][name:prefix][name:suffix] > node["addr:housenumber"][setting("support_prefix_and_suffix")][setting("support_associatedstreet")]::halo { | |
crc: CRC32_checksum(concat(parent_tag("name:prefix"), " ", parent_tag("name"), " ", parent_tag("name:suffix")))/429496.7296; | |
} | |
/* everything else (This block is after the block for associated street relations. That means if something is part of a associated street relation | |
and also has an addr:street or addr:place tag, then addr:street resp. addr:place has the higher priority for the color choice than the relation.) */ | |
*["addr:place"] { | |
crc: CRC32_checksum(tag("addr:place"))/429496.7296; | |
} | |
*["addr:place"]::halo { | |
crc: CRC32_checksum(tag("addr:place"))/429496.7296; | |
} | |
*["addr:street"] { | |
crc: CRC32_checksum(tag("addr:street"))/429496.7296; | |
} | |
*["addr:street"]::halo { | |
crc: CRC32_checksum(tag("addr:street"))/429496.7296; | |
} | |
/* own crc values for name:left and name:right on streets */ | |
way[highway][highway!="platform"][highway!="emergency_access_point"]["name:left"] { | |
crc_left: CRC32_checksum(tag("name:left"))/429496.7296; | |
} | |
way[highway][highway!="platform"][highway!="emergency_access_point"]["name:right"] { | |
crc_right: CRC32_checksum(tag("name:right"))/429496.7296; | |
} | |
/* ------------------------------------------------------------------------------------------------------------------------ */ | |
/* ------------------------------------------------------------------------------------------------------------------------ */ | |
/* ------------------------------------------------------------------------------------------------------------------------ */ | |
/* Changes to the JOSM internal mappaint style elemstyles.mapcss to fit better together with Coloured Streets; hide distracting features */ | |
/* Zoom behavior of nodes and text, which is a bit different than in the default style */ | |
node|z-16 { symbol-size: 2; } | |
way > node|z-15!:tagged { symbol-shape: none; } | |
way > node|z16!:tagged { symbol-size: 1; } | |
node|z17 { symbol-size: 2; } | |
way > node|z17!:tagged { symbol-size: 1; } | |
node|z17:connection { symbol-size: 2; } | |
node|z18 { symbol-size: 4; } | |
way > node|z18 { symbol-size: 2; } | |
node|z18:connection { symbol-size: 4; } | |
node|z19 { symbol-size: 4; } | |
way > node|z19 { symbol-size: 3; } | |
node|z19:connection { symbol-size: 5; } | |
node|z20- { symbol-size: 4; } | |
way > node|z20- { symbol-size: 4; } | |
node|z20-:connection { symbol-size: 6; } | |
@supports (min-josm-version: 9451) { | |
node:selected { symbol-size: 6; symbol-shape: square; } | |
} | |
node|z18-19,area|z18-19 { font-size: 8; } | |
node|z20,area|z20 { font-size: 9; } | |
node|z21,area|z21 { font-size: 10; } | |
node|z22-,area|z22- { font-size: 11; } | |
/* tone down landuse fill-color */ | |
area[landuse] { | |
fill-opacity: 0.12; | |
} | |
/* disable place fill-color */ | |
area[place] { | |
fill-opacity: 0; | |
} | |
/* tone down garages and other "minor" buildings, as they usually do not have addr:*=* tags. Also buildings with nohousenumber=yes. */ | |
area[!"addr:housenumber"][!"addr:street"][!"addr:place"][nohousenumber=yes], | |
area[!"addr:housenumber"][!"addr:street"][!"addr:place"][building=barn], | |
area[!"addr:housenumber"][!"addr:street"][!"addr:place"][building=bunker], | |
area[!"addr:housenumber"][!"addr:street"][!"addr:place"][building=cabin], | |
area[!"addr:housenumber"][!"addr:street"][!"addr:place"][building=carport], | |
area[!"addr:housenumber"][!"addr:street"][!"addr:place"][building=cowshed], | |
area[!"addr:housenumber"][!"addr:street"][!"addr:place"][building=farm_auxiliary], | |
area[!"addr:housenumber"][!"addr:street"][!"addr:place"][building=garage], | |
area[!"addr:housenumber"][!"addr:street"][!"addr:place"][building=garages], | |
area[!"addr:housenumber"][!"addr:street"][!"addr:place"][building=gasometer], | |
area[!"addr:housenumber"][!"addr:street"][!"addr:place"][building=greenhouse], | |
area[!"addr:housenumber"][!"addr:street"][!"addr:place"][building=hut], | |
area[!"addr:housenumber"][!"addr:street"][!"addr:place"][building=roof], | |
area[!"addr:housenumber"][!"addr:street"][!"addr:place"][building=shed], | |
area[!"addr:housenumber"][!"addr:street"][!"addr:place"][building=silo], | |
area[!"addr:housenumber"][!"addr:street"][!"addr:place"][building=stable], | |
area[!"addr:housenumber"][!"addr:street"][!"addr:place"][building=static_caravan], | |
area[!"addr:housenumber"][!"addr:street"][!"addr:place"][building=storage_tank], | |
area[!"addr:housenumber"][!"addr:street"][!"addr:place"][building=sty], | |
area[!"addr:housenumber"][!"addr:street"][!"addr:place"][building=toilets], | |
area[!"addr:housenumber"][!"addr:street"][!"addr:place"][building=transformer_tower], | |
area[!"addr:housenumber"][!"addr:street"][!"addr:place"][building=transportation] { | |
fill-color: #ffddf1; | |
width: 1; | |
} | |
/* deactivate the paint style of piste:difficulty */ | |
way["piste:difficulty"]::core_piste { | |
width: 0; | |
} | |
@supports (max-josm-version: 10895) { | |
way["piste:difficulty"]:closed::core_piste { | |
width: 2; | |
color: grey; | |
} | |
area["piste:difficulty"]:closed::core_piste { | |
fill-opacity: 0; | |
} | |
} | |
@supports (min-josm-version: 10896) { | |
way["piste:difficulty"][!highway]::core_piste { | |
width: 2; | |
color: grey; | |
} | |
area["piste:difficulty"]::core_piste { | |
fill-opacity: 0; | |
} | |
} | |
/* option to deactivate the paint style of cycleways (lane and track) */ | |
@supports (max-josm-version: 9565) { | |
way.lR[!setting("display_bicycle")]::core_cycleway, | |
way.tR[!setting("display_bicycle")]::core_cycleway, | |
way[cycleway=opposite][!setting("display_bicycle")]::core_cycleway { | |
width: 0; | |
} | |
/* (grouping the previous and the following block doesn't work correctly, see https://josm.openstreetmap.de/ticket/10106 )*/ | |
way[prop("lL","core_cycleway")][!setting("display_bicycle")]::core_cycleway2, | |
way[prop("tL","core_cycleway")][!setting("display_bicycle")]::core_cycleway2 { | |
width: 0; | |
} | |
} | |
@supports (min-josm-version: 9566) { | |
way.laneRight[!setting("display_bicycle")]::core_cycleway, | |
way.shared_laneRight[!setting("display_bicycle")]::core_cycleway, | |
way.trackRight[!setting("display_bicycle")]::core_cycleway, | |
way[cycleway=opposite][!setting("display_bicycle")]::core_cycleway { | |
width: 0; | |
} | |
way[prop("laneLeft","core_cycleway")][!setting("display_bicycle")]::core_cycleway2, | |
way[prop("shared_laneLeft","core_cycleway")][!setting("display_bicycle")]::core_cycleway2, | |
way[prop("trackLeft","core_cycleway")][!setting("display_bicycle")]::core_cycleway2 { | |
width: 0; | |
} | |
} | |
way[!setting("display_bicycle")][name][highway=path][bicycle=designated][foot=designated], | |
way[!setting("display_bicycle")][name][highway=path][bicycle=official][foot=official], | |
way[!setting("display_bicycle")][name][highway=cycleway][foot=yes], | |
way[!setting("display_bicycle")][name][highway=path][bicycle=designated][foot=yes], | |
way[!setting("display_bicycle")][name][highway=path][bicycle=official][foot=yes], | |
way[!setting("display_bicycle")][name][highway=footway][bicycle=yes], | |
way[!setting("display_bicycle")][name][highway=path][bicycle=yes][foot=designated], | |
way[!setting("display_bicycle")][name][highway=path][bicycle=yes][foot=official] { | |
dashes: none; | |
} | |
/* deactivate the dashes of living streets */ | |
way[highway=living_street][name] { | |
dashes: none; | |
} | |
/* make barrier lines thiner */ | |
way[barrier] { | |
width: 1.5; | |
} | |
/* hide auto-text of streets except for name */ | |
way[highway][!name] { | |
text: ""; | |
} | |
/* ------------------------------------------------------------------------------------------------------------------------ */ | |
/* ------------------------------------------------------------------------------------------------------------------------ */ | |
/* ------------------------------------------------------------------------------------------------------------------------ */ | |
/* highlight address areas, address nodes and streets */ | |
/* all rules, which apply to all colors and different rules for different zoom */ | |
/* address areas */ | |
area|z18-["addr:street"], /* needed later for display of "?" if display_missing_number_message is disabled */ | |
area|z18-["addr:place"], | |
relation[type="associatedStreet"] > area|z18-["addr:housenumber"][setting("support_associatedstreet")] { | |
width: 3; | |
fill-opacity:0.2; | |
text-halo-radius: 3; | |
z-index: 1; | |
} | |
area|z18-["addr:street"][nohousenumber=yes], | |
area|z18-["addr:place"][nohousenumber=yes], | |
relation[type="associatedStreet"] > area|z18-[nohousenumber=yes][setting("support_associatedstreet")] { | |
width: 3; | |
fill-opacity:0.2; | |
text-halo-radius: 3; | |
text: eval(cond(has_tag_key(name), concat("no", " | ", tag("name")), "no")); | |
z-index: 1; | |
} | |
area|z18-["addr:street"]["addr:housenumber"], | |
area|z18-["addr:place"]["addr:housenumber"], | |
relation[type="associatedStreet"] > area|z18-["addr:housenumber"][setting("support_associatedstreet")] { | |
width: 3; | |
fill-opacity:0.2; | |
text-halo-radius: 3; | |
text: eval( | |
cond( | |
has_tag_key(name), | |
concat( | |
cond( | |
has_tag_key("addr:unit"), | |
concat(tag("addr:unit"), " / ", tag("addr:housenumber")), | |
cond( | |
has_tag_key("addr:flats"), | |
concat("(", tag("addr:flats"), ")", " / ", tag("addr:housenumber")), | |
tag("addr:housenumber") | |
) | |
), | |
" | ", tag("name") | |
), | |
tag("addr:housenumber") | |
) | |
); | |
z-index: 1; | |
} | |
area|z-17["addr:street"], | |
area|z-17["addr:place"], | |
relation[type="associatedStreet"] > area|z-17["addr:housenumber"][setting("support_associatedstreet")] { | |
width: 3; | |
fill-opacity:0.2; | |
text: ""; | |
z-index: 1; | |
} | |
/* address nodes */ | |
node|z17-["addr:street"]::halo, | |
node|z17-["addr:place"]::halo, | |
relation[type="associatedStreet"] > node|z17-["addr:housenumber"][setting("support_associatedstreet")]::halo { | |
symbol-size: 22; | |
} | |
node|z16["addr:street"]::halo, | |
node|z16["addr:place"]::halo, | |
relation[type="associatedStreet"] > node|z16["addr:housenumber"][setting("support_associatedstreet")]::halo { | |
symbol-size: 12; | |
} | |
node|z15["addr:street"]::halo, | |
node|z15["addr:place"]::halo, | |
relation[type="associatedStreet"] > node|z15["addr:housenumber"][setting("support_associatedstreet")]::halo { | |
symbol-size: 8; | |
} | |
node|z14["addr:street"]::halo, | |
node|z14["addr:place"]::halo, | |
relation[type="associatedStreet"] > node|z14["addr:housenumber"][setting("support_associatedstreet")]::halo { | |
symbol-size: 6; | |
} | |
node|z13["addr:street"]::halo, | |
node|z13["addr:place"]::halo, | |
relation[type="associatedStreet"] > node|z13["addr:housenumber"][setting("support_associatedstreet")]::halo { | |
symbol-size: 4; | |
} | |
node|z-12["addr:street"]::halo, | |
node|z-12["addr:place"]::halo, | |
relation[type="associatedStreet"] > node|z-12["addr:housenumber"][setting("support_associatedstreet")]::halo { | |
symbol-size: 2; | |
} | |
/* --- */ | |
node|z18-["addr:street"]::halo, | |
node|z18-["addr:place"]::halo, | |
relation[type="associatedStreet"] > node|z18-["addr:housenumber"][setting("support_associatedstreet")]::halo { | |
symbol-shape: circle; | |
symbol-fill-opacity: 0.85; | |
z-index: -1; | |
text: eval( | |
cond( | |
has_tag_key("addr:unit"), | |
concat(tag("addr:unit"), " / ", tag("addr:housenumber")), | |
cond( | |
has_tag_key("addr:flats"), | |
concat("(", tag("addr:flats"), ")", " / ", tag("addr:housenumber")), | |
tag("addr:housenumber") | |
) | |
) | |
); | |
font-size: 12; | |
text-color: black; | |
text-anchor-vertical: center; | |
text-offset-x: -3; | |
text-halo-radius: 2; | |
text-halo-opacity: 0.8; | |
} | |
node|z18-["addr:street"][nohousenumber=yes][!"addr:housenumber"]::halo, | |
node|z18-["addr:place"][nohousenumber=yes][!"addr:housenumber"]::halo, | |
relation[type="associatedStreet"] > node|z18-[!"addr:housenumber"][nohousenumber=yes][setting("support_associatedstreet")]::halo { | |
symbol-shape: circle; | |
symbol-fill-opacity: 0.85; | |
z-index: -1; | |
text: eval("no"); | |
font-size: 12; | |
text-color: black; | |
text-anchor-vertical: center; | |
text-offset-x: -3; | |
text-halo-radius: 2; | |
text-halo-opacity: 0.8; | |
} | |
node|z-17["addr:street"]::halo, | |
node|z-17["addr:place"]::halo, | |
relation[type="associatedStreet"] > node|z-17["addr:housenumber"][setting("support_associatedstreet")]::halo { | |
symbol-shape: circle; | |
symbol-fill-opacity: 0.85; | |
z-index: -1; | |
text: ""; | |
font-size: 12; | |
text-color: black; | |
text-anchor-vertical: center; | |
text-offset-x: -3; | |
text-halo-radius: 2; | |
text-halo-opacity: 0.8; | |
} | |
/* streets */ | |
/* different widths */ | |
way["highway"]["name"][highway!="platform"][highway!="emergency_access_point"] { | |
width: 4; | |
} | |
way["highway"="path"]["name"], | |
way["highway"="footway"]["name"], | |
way["highway"="steps"]["name"], | |
way["highway"="pedestrian"]["name"], | |
way["highway"="cycleway"]["name"], | |
way["highway"="bridleway"]["name"], | |
way["highway"="track"]["name"], | |
way["highway"="escape"]["name"], | |
way["highway"="bus_guideway"]["name"], | |
way["highway"="service"]["name"] { | |
width: 3; | |
} | |
way["highway"^="tertiary"]["name"], | |
way["highway"^="secondary"]["name"], | |
way["highway"^="primary"]["name"], | |
way["highway"^="trunk"]["name"], | |
way["highway"^="motorway"]["name"] { | |
width: 5; | |
} | |
/* other rules */ | |
way|z18-["highway"]["name"][highway!="platform"][highway!="emergency_access_point"] { | |
font-size: 12; | |
text-color: black; | |
text-position: line; | |
text: eval(tag("name")); | |
text-offset: 0; | |
text-halo-radius: 2; | |
} | |
way|z-17["highway"]["name"][highway!="platform"][highway!="emergency_access_point"] { | |
text: ""; | |
} | |
/* casing for name:left and name:right */ | |
way|z16-["highway"][highway!="platform"][highway!="emergency_access_point"]["name:left"] { | |
left-casing-width: 5; | |
left-casing-offset: -1; | |
} | |
way|z16-["highway"][highway!="platform"][highway!="emergency_access_point"]["name:right"] { | |
right-casing-width: 5; | |
right-casing-offset: -1; | |
} | |
/* pedestrian as area */ | |
area|z18-["name"][highway=pedestrian]:closed { | |
width: 3; | |
font-size: 12; | |
text-color: black; | |
text-position: center; | |
text: eval(tag("name")); | |
text-halo-radius: 2; | |
/* fill-color is needed to set it as "area style" to display the names for pedestrian multipolygons correctly. | |
fill-color is set later in the different colors. */ | |
fill-opacity: 0.2; | |
} | |
area|z-17["name"][highway=pedestrian]:closed { | |
width: 3; | |
text: ""; | |
text-halo-radius: 2; | |
/* fill-color is needed to set it as "area style" to display the names for pedestrian multipolygons correctly. | |
fill-color is set later in the different colors. */ | |
fill-opacity: 0.2; | |
} | |
/* display pedestrian areas (not multipolygons) without area=yes as line and not as area */ | |
way["highway"="pedestrian"][name][area!=yes] { | |
text-position: line; | |
fill-opacity: 0; | |
} | |
/* 33 different special selected colors */ | |
area["addr:street"][prop(crc)<303], | |
area["addr:place"][prop(crc)<303], | |
relation[type="associatedStreet"][prop(crc)<303] > area["addr:housenumber"][setting("support_associatedstreet")], | |
relation[type="associatedStreet"][prop(crc)<303] > area[nohousenumber=yes][setting("support_associatedstreet")], | |
area["highway"="pedestrian"]["name"][prop(crc)<303]:closed { | |
color: #8B864E; /* Default value for color is fill-color. Color needs to set nevertheless that pedestrian area multipolygons and areas with "number?" are displayed correctly. */ | |
fill-color: #8B864E; | |
text-halo-color: #8B864E; | |
} | |
node["addr:street"][prop(crc)<303]::halo, | |
node["addr:place"][prop(crc)<303]::halo, | |
relation[type="associatedStreet"][prop(crc)<303] > node["addr:housenumber"][setting("support_associatedstreet")]::halo, | |
relation[type="associatedStreet"][prop(crc)<303] > node[nohousenumber=yes][setting("support_associatedstreet")]::halo { | |
symbol-fill-color: #8B864E; | |
text-halo-color: #8B864E; | |
} | |
way["highway"]["name"][prop(crc)<303] { | |
color: #8B864E; | |
text-halo-color: #8B864E; | |
} | |
/* --------- */ | |
area["addr:street"][prop(crc)>=303][prop(crc)<606], | |
area["addr:place"][prop(crc)>=303][prop(crc)<606], | |
relation[type="associatedStreet"][prop(crc)>=303][prop(crc)<606] > area["addr:housenumber"][setting("support_associatedstreet")], | |
relation[type="associatedStreet"][prop(crc)>=303][prop(crc)<606] > area[nohousenumber=yes][setting("support_associatedstreet")], | |
area["highway"="pedestrian"]["name"][prop(crc)>=303][prop(crc)<606]:closed { | |
color: #b88142; | |
fill-color: #b88142; | |
text-halo-color: #b88142; | |
} | |
node["addr:street"][prop(crc)>=303][prop(crc)<606]::halo, | |
node["addr:place"][prop(crc)>=303][prop(crc)<606]::halo, | |
relation[type="associatedStreet"][prop(crc)>=303][prop(crc)<606] > node["addr:housenumber"][setting("support_associatedstreet")]::halo, | |
relation[type="associatedStreet"][prop(crc)>=303][prop(crc)<606] > node[nohousenumber=yes][setting("support_associatedstreet")]::halo { | |
symbol-fill-color: #b88142; | |
text-halo-color: #b88142; | |
} | |
way["highway"]["name"][prop(crc)>=303][prop(crc)<606] { | |
color: #b88142; | |
text-halo-color: #b88142; | |
} | |
/* --------- */ | |
area["addr:street"][prop(crc)>=606][prop(crc)<909], | |
area["addr:place"][prop(crc)>=606][prop(crc)<909], | |
relation[type="associatedStreet"][prop(crc)>=606][prop(crc)<909] > area["addr:housenumber"][setting("support_associatedstreet")], | |
relation[type="associatedStreet"][prop(crc)>=606][prop(crc)<909] > area[nohousenumber=yes][setting("support_associatedstreet")], | |
area["highway"="pedestrian"]["name"][prop(crc)>=606][prop(crc)<909]:closed { | |
color: #a3fe8f; | |
fill-color: #a3fe8f; | |
text-halo-color: #a3fe8f; | |
} | |
node["addr:street"][prop(crc)>=606][prop(crc)<909]::halo, | |
node["addr:place"][prop(crc)>=606][prop(crc)<909]::halo, | |
relation[type="associatedStreet"][prop(crc)>=606][prop(crc)<909] > node["addr:housenumber"][setting("support_associatedstreet")]::halo, | |
relation[type="associatedStreet"][prop(crc)>=606][prop(crc)<909] > node[nohousenumber=yes][setting("support_associatedstreet")]::halo { | |
symbol-fill-color: #a3fe8f; | |
text-halo-color: #a3fe8f; | |
} | |
way["highway"]["name"][prop(crc)>=606][prop(crc)<909] { | |
color: #a3fe8f; | |
text-halo-color: #a3fe8f; | |
} | |
/* --------- */ | |
area["addr:street"][prop(crc)>=909][prop(crc)<1212], | |
area["addr:place"][prop(crc)>=909][prop(crc)<1212], | |
relation[type="associatedStreet"][prop(crc)>=909][prop(crc)<1212] > area["addr:housenumber"][setting("support_associatedstreet")], | |
relation[type="associatedStreet"][prop(crc)>=909][prop(crc)<1212] > area[nohousenumber=yes][setting("support_associatedstreet")], | |
area["highway"="pedestrian"]["name"][prop(crc)>=909][prop(crc)<1212]:closed { | |
color: #b8674c; | |
fill-color: #b8674c; | |
text-halo-color: #b8674c; | |
} | |
node["addr:street"][prop(crc)>=909][prop(crc)<1212]::halo, | |
node["addr:place"][prop(crc)>=909][prop(crc)<1212]::halo, | |
relation[type="associatedStreet"][prop(crc)>=909][prop(crc)<1212] > node["addr:housenumber"][setting("support_associatedstreet")]::halo, | |
relation[type="associatedStreet"][prop(crc)>=909][prop(crc)<1212] > node[nohousenumber=yes][setting("support_associatedstreet")]::halo { | |
symbol-fill-color: #b8674c; | |
text-halo-color: #b8674c; | |
} | |
way["highway"]["name"][prop(crc)>=909][prop(crc)<1212] { | |
color: #b8674c; | |
text-halo-color: #b8674c; | |
} | |
/* --------- */ | |
area["addr:street"][prop(crc)>=1212][prop(crc)<1515], | |
area["addr:place"][prop(crc)>=1212][prop(crc)<1515], | |
relation[type="associatedStreet"][prop(crc)>=1212][prop(crc)<1515] > area["addr:housenumber"][setting("support_associatedstreet")], | |
relation[type="associatedStreet"][prop(crc)>=1212][prop(crc)<1515] > area[nohousenumber=yes][setting("support_associatedstreet")], | |
area["highway"="pedestrian"]["name"][prop(crc)>=1212][prop(crc)<1515]:closed { | |
color: #f4ff6b; | |
fill-color: #f4ff6b; | |
text-halo-color: #f4ff6b; | |
} | |
node["addr:street"][prop(crc)>=1212][prop(crc)<1515]::halo, | |
node["addr:place"][prop(crc)>=1212][prop(crc)<1515]::halo, | |
relation[type="associatedStreet"][prop(crc)>=1212][prop(crc)<1515] > node["addr:housenumber"][setting("support_associatedstreet")]::halo, | |
relation[type="associatedStreet"][prop(crc)>=1212][prop(crc)<1515] > node[nohousenumber=yes][setting("support_associatedstreet")]::halo { | |
symbol-fill-color: #f4ff6b; | |
text-halo-color: #f4ff6b; | |
} | |
way["highway"]["name"][prop(crc)>=1212][prop(crc)<1515] { | |
color: #f4ff6b; | |
text-halo-color: #f4ff6b; | |
} | |
/* --------- */ | |
area["addr:street"][prop(crc)>=1515][prop(crc)<1818], | |
area["addr:place"][prop(crc)>=1515][prop(crc)<1818], | |
relation[type="associatedStreet"][prop(crc)>=1515][prop(crc)<1818] > area["addr:housenumber"][setting("support_associatedstreet")], | |
relation[type="associatedStreet"][prop(crc)>=1515][prop(crc)<1818] > area[nohousenumber=yes][setting("support_associatedstreet")], | |
area["highway"="pedestrian"]["name"][prop(crc)>=1515][prop(crc)<1818]:closed { | |
color: #81c0ff; | |
fill-color: #81c0ff; | |
text-halo-color: #81c0ff; | |
} | |
node["addr:street"][prop(crc)>=1515][prop(crc)<1818]::halo, | |
node["addr:place"][prop(crc)>=1515][prop(crc)<1818]::halo, | |
relation[type="associatedStreet"][prop(crc)>=1515][prop(crc)<1818] > node["addr:housenumber"][setting("support_associatedstreet")]::halo, | |
relation[type="associatedStreet"][prop(crc)>=1515][prop(crc)<1818] > node[nohousenumber=yes][setting("support_associatedstreet")]::halo { | |
symbol-fill-color: #81c0ff; | |
text-halo-color: #81c0ff; | |
} | |
way["highway"]["name"][prop(crc)>=1515][prop(crc)<1818] { | |
color: #81c0ff; | |
text-halo-color: #81c0ff; | |
} | |
/* --------- */ | |
area["addr:street"][prop(crc)>=1818][prop(crc)<2121], | |
area["addr:place"][prop(crc)>=1818][prop(crc)<2121], | |
relation[type="associatedStreet"][prop(crc)>=1818][prop(crc)<2121] > area["addr:housenumber"][setting("support_associatedstreet")], | |
relation[type="associatedStreet"][prop(crc)>=1818][prop(crc)<2121] > area[nohousenumber=yes][setting("support_associatedstreet")], | |
area["highway"="pedestrian"]["name"][prop(crc)>=1818][prop(crc)<2121]:closed { | |
color: #6b8e23; | |
fill-color: #6b8e23; | |
text-halo-color: #6b8e23; | |
} | |
node["addr:street"][prop(crc)>=1818][prop(crc)<2121]::halo, | |
node["addr:place"][prop(crc)>=1818][prop(crc)<2121]::halo, | |
relation[type="associatedStreet"][prop(crc)>=1818][prop(crc)<2121] > node["addr:housenumber"][setting("support_associatedstreet")]::halo, | |
relation[type="associatedStreet"][prop(crc)>=1818][prop(crc)<2121] > node[nohousenumber=yes][setting("support_associatedstreet")]::halo { | |
symbol-fill-color: #6b8e23; | |
text-halo-color: #6b8e23; | |
} | |
way["highway"]["name"][prop(crc)>=1818][prop(crc)<2121] { | |
color: #6b8e23; | |
text-halo-color: #6b8e23; | |
} | |
/* --------- */ | |
area["addr:street"][prop(crc)>=2121][prop(crc)<2424], | |
area["addr:place"][prop(crc)>=2121][prop(crc)<2424], | |
relation[type="associatedStreet"][prop(crc)>=2121][prop(crc)<2424] > area["addr:housenumber"][setting("support_associatedstreet")], | |
relation[type="associatedStreet"][prop(crc)>=2121][prop(crc)<2424] > area[nohousenumber=yes][setting("support_associatedstreet")], | |
area["highway"="pedestrian"]["name"][prop(crc)>=2121][prop(crc)<2424]:closed { | |
color: #e1bd6a; | |
fill-color: #e1bd6a; | |
text-halo-color: #e1bd6a; | |
} | |
node["addr:street"][prop(crc)>=2121][prop(crc)<2424]::halo, | |
node["addr:place"][prop(crc)>=2121][prop(crc)<2424]::halo, | |
relation[type="associatedStreet"][prop(crc)>=2121][prop(crc)<2424] > node["addr:housenumber"][setting("support_associatedstreet")]::halo, | |
relation[type="associatedStreet"][prop(crc)>=2121][prop(crc)<2424] > node[nohousenumber=yes][setting("support_associatedstreet")]::halo { | |
symbol-fill-color: #e1bd6a; | |
text-halo-color: #e1bd6a; | |
} | |
way["highway"]["name"][prop(crc)>=2121][prop(crc)<2424] { | |
color: #e1bd6a; | |
text-halo-color: #e1bd6a; | |
} | |
/* --------- */ | |
area["addr:street"][prop(crc)>=2424][prop(crc)<2727], | |
area["addr:place"][prop(crc)>=2424][prop(crc)<2727], | |
relation[type="associatedStreet"][prop(crc)>=2424][prop(crc)<2727] > area["addr:housenumber"][setting("support_associatedstreet")], | |
relation[type="associatedStreet"][prop(crc)>=2424][prop(crc)<2727] > area[nohousenumber=yes][setting("support_associatedstreet")], | |
area["highway"="pedestrian"]["name"][prop(crc)>=2424][prop(crc)<2727]:closed { | |
color: #7fffd4; | |
fill-color: #7fffd4; | |
text-halo-color: #7fffd4; | |
} | |
node["addr:street"][prop(crc)>=2424][prop(crc)<2727]::halo, | |
node["addr:place"][prop(crc)>=2424][prop(crc)<2727]::halo, | |
relation[type="associatedStreet"][prop(crc)>=2424][prop(crc)<2727] > node["addr:housenumber"][setting("support_associatedstreet")]::halo, | |
relation[type="associatedStreet"][prop(crc)>=2424][prop(crc)<2727] > node[nohousenumber=yes][setting("support_associatedstreet")]::halo { | |
symbol-fill-color: #7fffd4; | |
text-halo-color: #7fffd4; | |
} | |
way["highway"]["name"][prop(crc)>=2424][prop(crc)<2727] { | |
color: #7fffd4; | |
text-halo-color: #7fffd4; | |
} | |
/* --------- */ | |
area["addr:street"][prop(crc)>=2727][prop(crc)<3030], | |
area["addr:place"][prop(crc)>=2727][prop(crc)<3030], | |
relation[type="associatedStreet"][prop(crc)>=2727][prop(crc)<3030] > area["addr:housenumber"][setting("support_associatedstreet")], | |
relation[type="associatedStreet"][prop(crc)>=2727][prop(crc)<3030] > area[nohousenumber=yes][setting("support_associatedstreet")], | |
area["highway"="pedestrian"]["name"][prop(crc)>=2727][prop(crc)<3030]:closed { | |
color: #8a2be2; | |
fill-color: #8a2be2; | |
text-halo-color: #8a2be2; | |
} | |
node["addr:street"][prop(crc)>=2727][prop(crc)<3030]::halo, | |
node["addr:place"][prop(crc)>=2727][prop(crc)<3030]::halo, | |
relation[type="associatedStreet"][prop(crc)>=2727][prop(crc)<3030] > node["addr:housenumber"][setting("support_associatedstreet")]::halo, | |
relation[type="associatedStreet"][prop(crc)>=2727][prop(crc)<3030] > node[nohousenumber=yes][setting("support_associatedstreet")]::halo { | |
symbol-fill-color: #8a2be2; | |
text-halo-color: #8a2be2; | |
} | |
way["highway"]["name"][prop(crc)>=2727][prop(crc)<3030] { | |
color: #8a2be2; | |
text-halo-color: #8a2be2; | |
} | |
/* --------- */ | |
area["addr:street"][prop(crc)>=3030][prop(crc)<3333], | |
area["addr:place"][prop(crc)>=3030][prop(crc)<3333], | |
relation[type="associatedStreet"][prop(crc)>=3030][prop(crc)<3333] > area["addr:housenumber"][setting("support_associatedstreet")], | |
relation[type="associatedStreet"][prop(crc)>=3030][prop(crc)<3333] > area[nohousenumber=yes][setting("support_associatedstreet")], | |
area["highway"="pedestrian"]["name"][prop(crc)>=3030][prop(crc)<3333]:closed { | |
color: #a52a2a; | |
fill-color: #a52a2a; | |
text-halo-color: #a52a2a; | |
} | |
node["addr:street"][prop(crc)>=3030][prop(crc)<3333]::halo, | |
node["addr:place"][prop(crc)>=3030][prop(crc)<3333]::halo, | |
relation[type="associatedStreet"][prop(crc)>=3030][prop(crc)<3333] > node["addr:housenumber"][setting("support_associatedstreet")]::halo, | |
relation[type="associatedStreet"][prop(crc)>=3030][prop(crc)<3333] > node[nohousenumber=yes][setting("support_associatedstreet")]::halo { | |
symbol-fill-color: #a52a2a; | |
text-halo-color: #a52a2a; | |
} | |
way["highway"]["name"][prop(crc)>=3030][prop(crc)<3333] { | |
color: #a52a2a; | |
text-halo-color: #a52a2a; | |
} | |
/* --------- */ | |
area["addr:street"][prop(crc)>=3333][prop(crc)<3636], | |
area["addr:place"][prop(crc)>=3333][prop(crc)<3636], | |
relation[type="associatedStreet"][prop(crc)>=3333][prop(crc)<3636] > area["addr:housenumber"][setting("support_associatedstreet")], | |
relation[type="associatedStreet"][prop(crc)>=3333][prop(crc)<3636] > area[nohousenumber=yes][setting("support_associatedstreet")], | |
area["highway"="pedestrian"]["name"][prop(crc)>=3333][prop(crc)<3636]:closed { | |
color: #f0b9a6; | |
fill-color: #f0b9a6; | |
text-halo-color: #f0b9a6; | |
} | |
node["addr:street"][prop(crc)>=3333][prop(crc)<3636]::halo, | |
node["addr:place"][prop(crc)>=3333][prop(crc)<3636]::halo, | |
relation[type="associatedStreet"][prop(crc)>=3333][prop(crc)<3636] > node["addr:housenumber"][setting("support_associatedstreet")]::halo, | |
relation[type="associatedStreet"][prop(crc)>=3333][prop(crc)<3636] > node[nohousenumber=yes][setting("support_associatedstreet")]::halo { | |
symbol-fill-color: #f0b9a6; | |
text-halo-color: #f0b9a6; | |
} | |
way["highway"]["name"][prop(crc)>=3333][prop(crc)<3636] { | |
color: #f0b9a6; | |
text-halo-color: #f0b9a6; | |
} | |
/* --------- */ | |
area["addr:street"][prop(crc)>=3636][prop(crc)<3939], | |
area["addr:place"][prop(crc)>=3636][prop(crc)<3939], | |
relation[type="associatedStreet"][prop(crc)>=3636][prop(crc)<3939] > area["addr:housenumber"][setting("support_associatedstreet")], | |
relation[type="associatedStreet"][prop(crc)>=3636][prop(crc)<3939] > area[nohousenumber=yes][setting("support_associatedstreet")], | |
area["highway"="pedestrian"]["name"][prop(crc)>=3636][prop(crc)<3939]:closed { | |
color: #8fbc8f; | |
fill-color: #8fbc8f; | |
text-halo-color: #8fbc8f; | |
} | |
node["addr:street"][prop(crc)>=3636][prop(crc)<3939]::halo, | |
node["addr:place"][prop(crc)>=3636][prop(crc)<3939]::halo, | |
relation[type="associatedStreet"][prop(crc)>=3636][prop(crc)<3939] > node["addr:housenumber"][setting("support_associatedstreet")]::halo, | |
relation[type="associatedStreet"][prop(crc)>=3636][prop(crc)<3939] > node[nohousenumber=yes][setting("support_associatedstreet")]::halo { | |
symbol-fill-color: #8fbc8f; | |
text-halo-color: #8fbc8f; | |
} | |
way["highway"]["name"][prop(crc)>=3636][prop(crc)<3939] { | |
color: #8fbc8f; | |
text-halo-color: #8fbc8f; | |
} | |
/* --------- */ | |
area["addr:street"][prop(crc)>=3939][prop(crc)<4242], | |
area["addr:place"][prop(crc)>=3939][prop(crc)<4242], | |
relation[type="associatedStreet"][prop(crc)>=3939][prop(crc)<4242] > area["addr:housenumber"][setting("support_associatedstreet")], | |
relation[type="associatedStreet"][prop(crc)>=3939][prop(crc)<4242] > area[nohousenumber=yes][setting("support_associatedstreet")], | |
area["highway"="pedestrian"]["name"][prop(crc)>=3939][prop(crc)<4242]:closed { | |
color: #1b7777; | |
fill-color: #1b7777; | |
text-halo-color: #1b7777; | |
} | |
node["addr:street"][prop(crc)>=3939][prop(crc)<4242]::halo, | |
node["addr:place"][prop(crc)>=3939][prop(crc)<4242]::halo, | |
relation[type="associatedStreet"][prop(crc)>=3939][prop(crc)<4242] > node["addr:housenumber"][setting("support_associatedstreet")]::halo, | |
relation[type="associatedStreet"][prop(crc)>=3939][prop(crc)<4242] > node[nohousenumber=yes][setting("support_associatedstreet")]::halo { | |
symbol-fill-color: #1b7777; | |
text-halo-color: #1b7777; | |
} | |
way["highway"]["name"][prop(crc)>=3939][prop(crc)<4242] { | |
color: #1b7777; | |
text-halo-color: #1b7777; | |
} | |
/* --------- */ | |
area["addr:street"][prop(crc)>=4242][prop(crc)<4545], | |
area["addr:place"][prop(crc)>=4242][prop(crc)<4545], | |
relation[type="associatedStreet"][prop(crc)>=4242][prop(crc)<4545] > area["addr:housenumber"][setting("support_associatedstreet")], | |
relation[type="associatedStreet"][prop(crc)>=4242][prop(crc)<4545] > area[nohousenumber=yes][setting("support_associatedstreet")], | |
area["highway"="pedestrian"]["name"][prop(crc)>=4242][prop(crc)<4545]:closed { | |
color: #ff1493; | |
fill-color: #ff1493; | |
text-halo-color: #ff1493; | |
} | |
node["addr:street"][prop(crc)>=4242][prop(crc)<4545]::halo, | |
node["addr:place"][prop(crc)>=4242][prop(crc)<4545]::halo, | |
relation[type="associatedStreet"][prop(crc)>=4242][prop(crc)<4545] > node["addr:housenumber"][setting("support_associatedstreet")]::halo, | |
relation[type="associatedStreet"][prop(crc)>=4242][prop(crc)<4545] > node[nohousenumber=yes][setting("support_associatedstreet")]::halo { | |
symbol-fill-color: #ff1493; | |
text-halo-color: #ff1493; | |
} | |
way["highway"]["name"][prop(crc)>=4242][prop(crc)<4545] { | |
color: #ff1493; | |
text-halo-color: #ff1493; | |
} | |
/* --------- */ | |
area["addr:street"][prop(crc)>=4545][prop(crc)<4848], | |
area["addr:place"][prop(crc)>=4545][prop(crc)<4848], | |
relation[type="associatedStreet"][prop(crc)>=4545][prop(crc)<4848] > area["addr:housenumber"][setting("support_associatedstreet")], | |
relation[type="associatedStreet"][prop(crc)>=4545][prop(crc)<4848] > area[nohousenumber=yes][setting("support_associatedstreet")], | |
area["highway"="pedestrian"]["name"][prop(crc)>=4545][prop(crc)<4848]:closed { | |
color: #0072e2; | |
fill-color: #0072e2; | |
text-halo-color: #0072e2; | |
} | |
node["addr:street"][prop(crc)>=4545][prop(crc)<4848]::halo, | |
node["addr:place"][prop(crc)>=4545][prop(crc)<4848]::halo, | |
relation[type="associatedStreet"][prop(crc)>=4545][prop(crc)<4848] > node["addr:housenumber"][setting("support_associatedstreet")]::halo, | |
relation[type="associatedStreet"][prop(crc)>=4545][prop(crc)<4848] > node[nohousenumber=yes][setting("support_associatedstreet")]::halo { | |
symbol-fill-color: #0072e2; | |
text-halo-color: #0072e2; | |
} | |
way["highway"]["name"][prop(crc)>=4545][prop(crc)<4848] { | |
color: #0072e2; | |
text-halo-color: #0072e2; | |
} | |
/* --------- */ | |
area["addr:street"][prop(crc)>=4848][prop(crc)<5151], | |
area["addr:place"][prop(crc)>=4848][prop(crc)<5151], | |
relation[type="associatedStreet"][prop(crc)>=4848][prop(crc)<5151] > area["addr:housenumber"][setting("support_associatedstreet")], | |
relation[type="associatedStreet"][prop(crc)>=4848][prop(crc)<5151] > area[nohousenumber=yes][setting("support_associatedstreet")], | |
area["highway"="pedestrian"]["name"][prop(crc)>=4848][prop(crc)<5151]:closed { | |
color: #008f00; | |
fill-color: #008f00; | |
text-halo-color: #008f00; | |
} | |
node["addr:street"][prop(crc)>=4848][prop(crc)<5151]::halo, | |
node["addr:place"][prop(crc)>=4848][prop(crc)<5151]::halo, | |
relation[type="associatedStreet"][prop(crc)>=4848][prop(crc)<5151] > node["addr:housenumber"][setting("support_associatedstreet")]::halo, | |
relation[type="associatedStreet"][prop(crc)>=4848][prop(crc)<5151] > node[nohousenumber=yes][setting("support_associatedstreet")]::halo { | |
symbol-fill-color: #008f00; | |
text-halo-color: #008f00; | |
} | |
way["highway"]["name"][prop(crc)>=4848][prop(crc)<5151] { | |
color: #008f00; | |
text-halo-color: #008f00; | |
} | |
/* --------- */ | |
area["addr:street"][prop(crc)>=5151][prop(crc)<5454], | |
area["addr:place"][prop(crc)>=5151][prop(crc)<5454], | |
relation[type="associatedStreet"][prop(crc)>=5151][prop(crc)<5454] > area["addr:housenumber"][setting("support_associatedstreet")], | |
relation[type="associatedStreet"][prop(crc)>=5151][prop(crc)<5454] > area[nohousenumber=yes][setting("support_associatedstreet")], | |
area["highway"="pedestrian"]["name"][prop(crc)>=5151][prop(crc)<5454]:closed { | |
color: #ffcc00; | |
fill-color: #ffcc00; | |
text-halo-color: #ffcc00; | |
} | |
node["addr:street"][prop(crc)>=5151][prop(crc)<5454]::halo, | |
node["addr:place"][prop(crc)>=5151][prop(crc)<5454]::halo, | |
relation[type="associatedStreet"][prop(crc)>=5151][prop(crc)<5454] > node["addr:housenumber"][setting("support_associatedstreet")]::halo, | |
relation[type="associatedStreet"][prop(crc)>=5151][prop(crc)<5454] > node[nohousenumber=yes][setting("support_associatedstreet")]::halo { | |
symbol-fill-color: #ffcc00; | |
text-halo-color: #ffcc00; | |
} | |
way["highway"]["name"][prop(crc)>=5151][prop(crc)<5454] { | |
color: #ffcc00; | |
text-halo-color: #ffcc00; | |
} | |
/* --------- */ | |
area["addr:street"][prop(crc)>=5454][prop(crc)<5757], | |
area["addr:place"][prop(crc)>=5454][prop(crc)<5757], | |
relation[type="associatedStreet"][prop(crc)>=5454][prop(crc)<5757] > area["addr:housenumber"][setting("support_associatedstreet")], | |
relation[type="associatedStreet"][prop(crc)>=5454][prop(crc)<5757] > area[nohousenumber=yes][setting("support_associatedstreet")], | |
area["highway"="pedestrian"]["name"][prop(crc)>=5454][prop(crc)<5757]:closed { | |
color: #BF9017; | |
fill-color: #BF9017; | |
text-halo-color: #BF9017; | |
} | |
node["addr:street"][prop(crc)>=5454][prop(crc)<5757]::halo, | |
node["addr:place"][prop(crc)>=5454][prop(crc)<5757]::halo, | |
relation[type="associatedStreet"][prop(crc)>=5454][prop(crc)<5757] > node["addr:housenumber"][setting("support_associatedstreet")]::halo, | |
relation[type="associatedStreet"][prop(crc)>=5454][prop(crc)<5757] > node[nohousenumber=yes][setting("support_associatedstreet")]::halo { | |
symbol-fill-color: #BF9017; | |
text-halo-color: #BF9017; | |
} | |
way["highway"]["name"][prop(crc)>=5454][prop(crc)<5757] { | |
color: #BF9017; | |
text-halo-color: #BF9017; | |
} | |
/* --------- */ | |
area["addr:street"][prop(crc)>=5757][prop(crc)<6060], | |
area["addr:place"][prop(crc)>=5757][prop(crc)<6060], | |
relation[type="associatedStreet"][prop(crc)>=5757][prop(crc)<6060] > area["addr:housenumber"][setting("support_associatedstreet")], | |
relation[type="associatedStreet"][prop(crc)>=5757][prop(crc)<6060] > area[nohousenumber=yes][setting("support_associatedstreet")], | |
area["highway"="pedestrian"]["name"][prop(crc)>=5757][prop(crc)<6060]:closed { | |
color: #adff2f; | |
fill-color: #adff2f; | |
text-halo-color: #adff2f; | |
} | |
node["addr:street"][prop(crc)>=5757][prop(crc)<6060]::halo, | |
node["addr:place"][prop(crc)>=5757][prop(crc)<6060]::halo, | |
relation[type="associatedStreet"][prop(crc)>=5757][prop(crc)<6060] > node["addr:housenumber"][setting("support_associatedstreet")]::halo, | |
relation[type="associatedStreet"][prop(crc)>=5757][prop(crc)<6060] > node[nohousenumber=yes][setting("support_associatedstreet")]::halo { | |
symbol-fill-color: #adff2f; | |
text-halo-color: #adff2f; | |
} | |
way["highway"]["name"][prop(crc)>=5757][prop(crc)<6060] { | |
color: #adff2f; | |
text-halo-color: #adff2f; | |
} | |
/* --------- */ | |
area["addr:street"][prop(crc)>=6060][prop(crc)<6363], | |
area["addr:place"][prop(crc)>=6060][prop(crc)<6363], | |
relation[type="associatedStreet"][prop(crc)>=6060][prop(crc)<6363] > area["addr:housenumber"][setting("support_associatedstreet")], | |
relation[type="associatedStreet"][prop(crc)>=6060][prop(crc)<6363] > area[nohousenumber=yes][setting("support_associatedstreet")], | |
area["highway"="pedestrian"]["name"][prop(crc)>=6060][prop(crc)<6363]:closed { | |
color: #ff69b4; | |
fill-color: #ff69b4; | |
text-halo-color: #ff69b4; | |
} | |
node["addr:street"][prop(crc)>=6060][prop(crc)<6363]::halo, | |
node["addr:place"][prop(crc)>=6060][prop(crc)<6363]::halo, | |
relation[type="associatedStreet"][prop(crc)>=6060][prop(crc)<6363] > node["addr:housenumber"][setting("support_associatedstreet")]::halo, | |
relation[type="associatedStreet"][prop(crc)>=6060][prop(crc)<6363] > node[nohousenumber=yes][setting("support_associatedstreet")]::halo { | |
symbol-fill-color: #ff69b4; | |
text-halo-color: #ff69b4; | |
} | |
way["highway"]["name"][prop(crc)>=6060][prop(crc)<6363] { | |
color: #ff69b4; | |
text-halo-color: #ff69b4; | |
} | |
/* --------- */ | |
area["addr:street"][prop(crc)>=6363][prop(crc)<6666], | |
area["addr:place"][prop(crc)>=6363][prop(crc)<6666], | |
relation[type="associatedStreet"][prop(crc)>=6363][prop(crc)<6666] > area["addr:housenumber"][setting("support_associatedstreet")], | |
relation[type="associatedStreet"][prop(crc)>=6363][prop(crc)<6666] > area[nohousenumber=yes][setting("support_associatedstreet")], | |
area["highway"="pedestrian"]["name"][prop(crc)>=6363][prop(crc)<6666]:closed { | |
color: #cd5c5c; | |
fill-color: #cd5c5c; | |
text-halo-color: #cd5c5c; | |
} | |
node["addr:street"][prop(crc)>=6363][prop(crc)<6666]::halo, | |
node["addr:place"][prop(crc)>=6363][prop(crc)<6666]::halo, | |
relation[type="associatedStreet"][prop(crc)>=6363][prop(crc)<6666] > node["addr:housenumber"][setting("support_associatedstreet")]::halo, | |
relation[type="associatedStreet"][prop(crc)>=6363][prop(crc)<6666] > node[nohousenumber=yes][setting("support_associatedstreet")]::halo { | |
symbol-fill-color: #cd5c5c; | |
text-halo-color: #cd5c5c; | |
} | |
way["highway"]["name"][prop(crc)>=6363][prop(crc)<6666] { | |
color: #cd5c5c; | |
text-halo-color: #cd5c5c; | |
} | |
/* --------- */ | |
area["addr:street"][prop(crc)>=6666][prop(crc)<6969], | |
area["addr:place"][prop(crc)>=6666][prop(crc)<6969], | |
relation[type="associatedStreet"][prop(crc)>=6666][prop(crc)<6969] > area["addr:housenumber"][setting("support_associatedstreet")], | |
relation[type="associatedStreet"][prop(crc)>=6666][prop(crc)<6969] > area[nohousenumber=yes][setting("support_associatedstreet")], | |
area["highway"="pedestrian"]["name"][prop(crc)>=6666][prop(crc)<6969]:closed { | |
color: #7d5a07; | |
fill-color: #7d5a07; | |
text-halo-color: #7d5a07; | |
} | |
node["addr:street"][prop(crc)>=6666][prop(crc)<6969]::halo, | |
node["addr:place"][prop(crc)>=6666][prop(crc)<6969]::halo, | |
relation[type="associatedStreet"][prop(crc)>=6666][prop(crc)<6969] > node["addr:housenumber"][setting("support_associatedstreet")]::halo, | |
relation[type="associatedStreet"][prop(crc)>=6666][prop(crc)<6969] > node[nohousenumber=yes][setting("support_associatedstreet")]::halo { | |
symbol-fill-color: #7d5a07; | |
text-halo-color: #7d5a07; | |
} | |
way["highway"]["name"][prop(crc)>=6666][prop(crc)<6969] { | |
color: #7d5a07; | |
text-halo-color: #7d5a07; | |
} | |
/* --------- */ | |
area["addr:street"][prop(crc)>=6969][prop(crc)<7272], | |
area["addr:place"][prop(crc)>=6969][prop(crc)<7272], | |
relation[type="associatedStreet"][prop(crc)>=6969][prop(crc)<7272] > area["addr:housenumber"][setting("support_associatedstreet")], | |
relation[type="associatedStreet"][prop(crc)>=6969][prop(crc)<7272] > area[nohousenumber=yes][setting("support_associatedstreet")], | |
area["highway"="pedestrian"]["name"][prop(crc)>=6969][prop(crc)<7272]:closed { | |
color: #824600; | |
fill-color: #824600; | |
text-halo-color: #824600; | |
} | |
node["addr:street"][prop(crc)>=6969][prop(crc)<7272]::halo, | |
node["addr:place"][prop(crc)>=6969][prop(crc)<7272]::halo, | |
relation[type="associatedStreet"][prop(crc)>=6969][prop(crc)<7272] > node["addr:housenumber"][setting("support_associatedstreet")]::halo, | |
relation[type="associatedStreet"][prop(crc)>=6969][prop(crc)<7272] > node[nohousenumber=yes][setting("support_associatedstreet")]::halo { | |
symbol-fill-color: #824600; | |
text-halo-color: #824600; | |
} | |
way["highway"]["name"][prop(crc)>=6969][prop(crc)<7272] { | |
color: #824600; | |
text-halo-color: #824600; | |
} | |
/* --------- */ | |
area["addr:street"][prop(crc)>=7272][prop(crc)<7575], | |
area["addr:place"][prop(crc)>=7272][prop(crc)<7575], | |
relation[type="associatedStreet"][prop(crc)>=7272][prop(crc)<7575] > area["addr:housenumber"][setting("support_associatedstreet")], | |
relation[type="associatedStreet"][prop(crc)>=7272][prop(crc)<7575] > area[nohousenumber=yes][setting("support_associatedstreet")], | |
area["highway"="pedestrian"]["name"][prop(crc)>=7272][prop(crc)<7575]:closed { | |
color: #f08080; | |
fill-color: #f08080; | |
text-halo-color: #f08080; | |
} | |
node["addr:street"][prop(crc)>=7272][prop(crc)<7575]::halo, | |
node["addr:place"][prop(crc)>=7272][prop(crc)<7575]::halo, | |
relation[type="associatedStreet"][prop(crc)>=7272][prop(crc)<7575] > node["addr:housenumber"][setting("support_associatedstreet")]::halo, | |
relation[type="associatedStreet"][prop(crc)>=7272][prop(crc)<7575] > node[nohousenumber=yes][setting("support_associatedstreet")]::halo { | |
symbol-fill-color: #f08080; | |
text-halo-color: #f08080; | |
} | |
way["highway"]["name"][prop(crc)>=7272][prop(crc)<7575] { | |
color: #f08080; | |
text-halo-color: #f08080; | |
} | |
/* --------- */ | |
area["addr:street"][prop(crc)>=7575][prop(crc)<7878], | |
area["addr:place"][prop(crc)>=7575][prop(crc)<7878], | |
relation[type="associatedStreet"][prop(crc)>=7575][prop(crc)<7878] > area["addr:housenumber"][setting("support_associatedstreet")], | |
relation[type="associatedStreet"][prop(crc)>=7575][prop(crc)<7878] > area[nohousenumber=yes][setting("support_associatedstreet")], | |
area["highway"="pedestrian"]["name"][prop(crc)>=7575][prop(crc)<7878]:closed { | |
color: #F75617; | |
fill-color: #F75617; | |
text-halo-color: #F75617; | |
} | |
node["addr:street"][prop(crc)>=7575][prop(crc)<7878]::halo, | |
node["addr:place"][prop(crc)>=7575][prop(crc)<7878]::halo, | |
relation[type="associatedStreet"][prop(crc)>=7575][prop(crc)<7878] > node["addr:housenumber"][setting("support_associatedstreet")]::halo, | |
relation[type="associatedStreet"][prop(crc)>=7575][prop(crc)<7878] > node[nohousenumber=yes][setting("support_associatedstreet")]::halo { | |
symbol-fill-color: #F75617; | |
text-halo-color: #F75617; | |
} | |
way["highway"]["name"][prop(crc)>=7575][prop(crc)<7878] { | |
color: #F75617; | |
text-halo-color: #F75617; | |
} | |
/* --------- */ | |
area["addr:street"][prop(crc)>=7878][prop(crc)<8181], | |
area["addr:place"][prop(crc)>=7878][prop(crc)<8181], | |
relation[type="associatedStreet"][prop(crc)>=7878][prop(crc)<8181] > area["addr:housenumber"][setting("support_associatedstreet")], | |
relation[type="associatedStreet"][prop(crc)>=7878][prop(crc)<8181] > area[nohousenumber=yes][setting("support_associatedstreet")], | |
area["highway"="pedestrian"]["name"][prop(crc)>=7878][prop(crc)<8181]:closed { | |
color: #54d954; | |
fill-color: #54d954; | |
text-halo-color: #54d954; | |
} | |
node["addr:street"][prop(crc)>=7878][prop(crc)<8181]::halo, | |
node["addr:place"][prop(crc)>=7878][prop(crc)<8181]::halo, | |
relation[type="associatedStreet"][prop(crc)>=7878][prop(crc)<8181] > node["addr:housenumber"][setting("support_associatedstreet")]::halo, | |
relation[type="associatedStreet"][prop(crc)>=7878][prop(crc)<8181] > node[nohousenumber=yes][setting("support_associatedstreet")]::halo { | |
symbol-fill-color: #54d954; | |
text-halo-color: #54d954; | |
} | |
way["highway"]["name"][prop(crc)>=7878][prop(crc)<8181] { | |
color: #54d954; | |
text-halo-color: #54d954; | |
} | |
/* --------- */ | |
area["addr:street"][prop(crc)>=8181][prop(crc)<8484], | |
area["addr:place"][prop(crc)>=8181][prop(crc)<8484], | |
relation[type="associatedStreet"][prop(crc)>=8181][prop(crc)<8484] > area["addr:housenumber"][setting("support_associatedstreet")], | |
relation[type="associatedStreet"][prop(crc)>=8181][prop(crc)<8484] > area[nohousenumber=yes][setting("support_associatedstreet")], | |
area["highway"="pedestrian"]["name"][prop(crc)>=8181][prop(crc)<8484]:closed { | |
color: #ba55d3; | |
fill-color: #ba55d3; | |
text-halo-color: #ba55d3; | |
} | |
node["addr:street"][prop(crc)>=8181][prop(crc)<8484]::halo, | |
node["addr:place"][prop(crc)>=8181][prop(crc)<8484]::halo, | |
relation[type="associatedStreet"][prop(crc)>=8181][prop(crc)<8484] > node["addr:housenumber"][setting("support_associatedstreet")]::halo, | |
relation[type="associatedStreet"][prop(crc)>=8181][prop(crc)<8484] > node[nohousenumber=yes][setting("support_associatedstreet")]::halo { | |
symbol-fill-color: #ba55d3; | |
text-halo-color: #ba55d3; | |
} | |
way["highway"]["name"][prop(crc)>=8181][prop(crc)<8484] { | |
color: #ba55d3; | |
text-halo-color: #ba55d3; | |
} | |
/* --------- */ | |
area["addr:street"][prop(crc)>=8484][prop(crc)<8787], | |
area["addr:place"][prop(crc)>=8484][prop(crc)<8787], | |
relation[type="associatedStreet"][prop(crc)>=8484][prop(crc)<8787] > area["addr:housenumber"][setting("support_associatedstreet")], | |
relation[type="associatedStreet"][prop(crc)>=8484][prop(crc)<8787] > area[nohousenumber=yes][setting("support_associatedstreet")], | |
area["highway"="pedestrian"]["name"][prop(crc)>=8484][prop(crc)<8787]:closed { | |
color: #9370db; | |
fill-color: #9370db; | |
text-halo-color: #9370db; | |
} | |
node["addr:street"][prop(crc)>=8484][prop(crc)<8787]::halo, | |
node["addr:place"][prop(crc)>=8484][prop(crc)<8787]::halo, | |
relation[type="associatedStreet"][prop(crc)>=8484][prop(crc)<8787] > node["addr:housenumber"][setting("support_associatedstreet")]::halo, | |
relation[type="associatedStreet"][prop(crc)>=8484][prop(crc)<8787] > node[nohousenumber=yes][setting("support_associatedstreet")]::halo { | |
symbol-fill-color: #9370db; | |
text-halo-color: #9370db; | |
} | |
way["highway"]["name"][prop(crc)>=8484][prop(crc)<8787] { | |
color: #9370db; | |
text-halo-color: #9370db; | |
} | |
/* --------- */ | |
area["addr:street"][prop(crc)>=8787][prop(crc)<9090], | |
area["addr:place"][prop(crc)>=8787][prop(crc)<9090], | |
relation[type="associatedStreet"][prop(crc)>=8787][prop(crc)<9090] > area["addr:housenumber"][setting("support_associatedstreet")], | |
relation[type="associatedStreet"][prop(crc)>=8787][prop(crc)<9090] > area[nohousenumber=yes][setting("support_associatedstreet")], | |
area["highway"="pedestrian"]["name"][prop(crc)>=8787][prop(crc)<9090]:closed { | |
color: #ff7c00; | |
fill-color: #ff7c00; | |
text-halo-color: #ff7c00; | |
} | |
node["addr:street"][prop(crc)>=8787][prop(crc)<9090]::halo, | |
node["addr:place"][prop(crc)>=8787][prop(crc)<9090]::halo, | |
relation[type="associatedStreet"][prop(crc)>=8787][prop(crc)<9090] > node["addr:housenumber"][setting("support_associatedstreet")]::halo, | |
relation[type="associatedStreet"][prop(crc)>=8787][prop(crc)<9090] > node[nohousenumber=yes][setting("support_associatedstreet")]::halo { | |
symbol-fill-color: #ff7c00; | |
text-halo-color: #ff7c00; | |
} | |
way["highway"]["name"][prop(crc)>=8787][prop(crc)<9090] { | |
color: #ff7c00; | |
text-halo-color: #ff7c00; | |
} | |
/* --------- */ | |
area["addr:street"][prop(crc)>=9090][prop(crc)<9393], | |
area["addr:place"][prop(crc)>=9090][prop(crc)<9393], | |
relation[type="associatedStreet"][prop(crc)>=9090][prop(crc)<9393] > area["addr:housenumber"][setting("support_associatedstreet")], | |
relation[type="associatedStreet"][prop(crc)>=9090][prop(crc)<9393] > area[nohousenumber=yes][setting("support_associatedstreet")], | |
area["highway"="pedestrian"]["name"][prop(crc)>=9090][prop(crc)<9393]:closed { | |
color: #3cb371; | |
fill-color: #3cb371; | |
text-halo-color: #3cb371; | |
} | |
node["addr:street"][prop(crc)>=9090][prop(crc)<9393]::halo, | |
node["addr:place"][prop(crc)>=9090][prop(crc)<9393]::halo, | |
relation[type="associatedStreet"][prop(crc)>=9090][prop(crc)<9393] > node["addr:housenumber"][setting("support_associatedstreet")]::halo, | |
relation[type="associatedStreet"][prop(crc)>=9090][prop(crc)<9393] > node[nohousenumber=yes][setting("support_associatedstreet")]::halo { | |
symbol-fill-color: #3cb371; | |
text-halo-color: #3cb371; | |
} | |
way["highway"]["name"][prop(crc)>=9090][prop(crc)<9393] { | |
color: #3cb371; | |
text-halo-color: #3cb371; | |
} | |
/* --------- */ | |
area["addr:street"][prop(crc)>=9393][prop(crc)<9696], | |
area["addr:place"][prop(crc)>=9393][prop(crc)<9696], | |
relation[type="associatedStreet"][prop(crc)>=9393][prop(crc)<9696] > area["addr:housenumber"][setting("support_associatedstreet")], | |
relation[type="associatedStreet"][prop(crc)>=9393][prop(crc)<9696] > area[nohousenumber=yes][setting("support_associatedstreet")], | |
area["highway"="pedestrian"]["name"][prop(crc)>=9393][prop(crc)<9696]:closed { | |
color: #707000; | |
fill-color: #707000; | |
text-halo-color: #707000; | |
} | |
node["addr:street"][prop(crc)>=9393][prop(crc)<9696]::halo, | |
node["addr:place"][prop(crc)>=9393][prop(crc)<9696]::halo, | |
relation[type="associatedStreet"][prop(crc)>=9393][prop(crc)<9696] > node["addr:housenumber"][setting("support_associatedstreet")]::halo, | |
relation[type="associatedStreet"][prop(crc)>=9393][prop(crc)<9696] > node[nohousenumber=yes][setting("support_associatedstreet")]::halo { | |
symbol-fill-color: #707000; | |
text-halo-color: #707000; | |
} | |
way["highway"]["name"][prop(crc)>=9393][prop(crc)<9696] { | |
color: #707000; | |
text-halo-color: #707000; | |
} | |
/* --------- */ | |
area["addr:street"][prop(crc)>=9696], | |
area["addr:place"][prop(crc)>=9696], | |
relation[type="associatedStreet"][prop(crc)>=9696] > area["addr:housenumber"][setting("support_associatedstreet")], | |
relation[type="associatedStreet"][prop(crc)>=9696] > area[nohousenumber=yes][setting("support_associatedstreet")], | |
area["highway"="pedestrian"]["name"][prop(crc)>=9696]:closed { | |
color: #ff4444; | |
fill-color: #ff4444; | |
text-halo-color: #ff4444; | |
} | |
node["addr:street"][prop(crc)>=9696]::halo, | |
node["addr:place"][prop(crc)>=9696]::halo, | |
relation[type="associatedStreet"][prop(crc)>=9696] > node["addr:housenumber"][setting("support_associatedstreet")]::halo, | |
relation[type="associatedStreet"][prop(crc)>=9696] > node[nohousenumber=yes][setting("support_associatedstreet")]::halo { | |
symbol-fill-color: #ff4444; | |
text-halo-color: #ff4444; | |
} | |
way["highway"]["name"][prop(crc)>=9696] { | |
color: #ff4444; | |
text-halo-color: #ff4444; | |
} | |
/* ------------------------------------------------------------------------------------------------------------------------ */ | |
/* ------------------------------------------------------------------------------------------------------------------------ */ | |
/* ------------------------------------------------------------------------------------------------------------------------ */ | |
/* left and right casing */ | |
/* left casing */ | |
way["highway"][highway!="platform"][highway!="emergency_access_point"]["name:left"][prop(crc_left)<303] { left-casing-color: #8B864E; } | |
way["highway"][highway!="platform"][highway!="emergency_access_point"]["name:left"][prop(crc_left)>=303][prop(crc_left)<606] { left-casing-color: #b88142; } | |
way["highway"][highway!="platform"][highway!="emergency_access_point"]["name:left"][prop(crc_left)>=606][prop(crc_left)<909] { left-casing-color: #a3fe8f; } | |
way["highway"][highway!="platform"][highway!="emergency_access_point"]["name:left"][prop(crc_left)>=909][prop(crc_left)<1212] { left-casing-color: #b8674c; } | |
way["highway"][highway!="platform"][highway!="emergency_access_point"]["name:left"][prop(crc_left)>=1212][prop(crc_left)<1515] { left-casing-color: #f4ff6b; } | |
way["highway"][highway!="platform"][highway!="emergency_access_point"]["name:left"][prop(crc_left)>=1515][prop(crc_left)<1818] { left-casing-color: #81c0ff; } | |
way["highway"][highway!="platform"][highway!="emergency_access_point"]["name:left"][prop(crc_left)>=1818][prop(crc_left)<2121] { left-casing-color: #6b8e23; } | |
way["highway"][highway!="platform"][highway!="emergency_access_point"]["name:left"][prop(crc_left)>=2121][prop(crc_left)<2424] { left-casing-color: #e1bd6a; } | |
way["highway"][highway!="platform"][highway!="emergency_access_point"]["name:left"][prop(crc_left)>=2424][prop(crc_left)<2727] { left-casing-color: #7fffd4; } | |
way["highway"][highway!="platform"][highway!="emergency_access_point"]["name:left"][prop(crc_left)>=2727][prop(crc_left)<3030] { left-casing-color: #8a2be2; } | |
way["highway"][highway!="platform"][highway!="emergency_access_point"]["name:left"][prop(crc_left)>=3030][prop(crc_left)<3333] { left-casing-color: #a52a2a; } | |
way["highway"][highway!="platform"][highway!="emergency_access_point"]["name:left"][prop(crc_left)>=3333][prop(crc_left)<3636] { left-casing-color: #f0b9a6; } | |
way["highway"][highway!="platform"][highway!="emergency_access_point"]["name:left"][prop(crc_left)>=3636][prop(crc_left)<3939] { left-casing-color: #8fbc8f; } | |
way["highway"][highway!="platform"][highway!="emergency_access_point"]["name:left"][prop(crc_left)>=3939][prop(crc_left)<4242] { left-casing-color: #1b7777; } | |
way["highway"][highway!="platform"][highway!="emergency_access_point"]["name:left"][prop(crc_left)>=4242][prop(crc_left)<4545] { left-casing-color: #ff1493; } | |
way["highway"][highway!="platform"][highway!="emergency_access_point"]["name:left"][prop(crc_left)>=4545][prop(crc_left)<4848] { left-casing-color: #0072e2; } | |
way["highway"][highway!="platform"][highway!="emergency_access_point"]["name:left"][prop(crc_left)>=4848][prop(crc_left)<5151] { left-casing-color: #008f00; } | |
way["highway"][highway!="platform"][highway!="emergency_access_point"]["name:left"][prop(crc_left)>=5151][prop(crc_left)<5454] { left-casing-color: #ffcc00; } | |
way["highway"][highway!="platform"][highway!="emergency_access_point"]["name:left"][prop(crc_left)>=5454][prop(crc_left)<5757] { left-casing-color: #BF9017; } | |
way["highway"][highway!="platform"][highway!="emergency_access_point"]["name:left"][prop(crc_left)>=5757][prop(crc_left)<6060] { left-casing-color: #adff2f; } | |
way["highway"][highway!="platform"][highway!="emergency_access_point"]["name:left"][prop(crc_left)>=6060][prop(crc_left)<6363] { left-casing-color: #ff69b4; } | |
way["highway"][highway!="platform"][highway!="emergency_access_point"]["name:left"][prop(crc_left)>=6363][prop(crc_left)<6666] { left-casing-color: #cd5c5c; } | |
way["highway"][highway!="platform"][highway!="emergency_access_point"]["name:left"][prop(crc_left)>=6666][prop(crc_left)<6969] { left-casing-color: #7d5a07; } | |
way["highway"][highway!="platform"][highway!="emergency_access_point"]["name:left"][prop(crc_left)>=6969][prop(crc_left)<7272] { left-casing-color: #824600; } | |
way["highway"][highway!="platform"][highway!="emergency_access_point"]["name:left"][prop(crc_left)>=7272][prop(crc_left)<7575] { left-casing-color: #f08080; } | |
way["highway"][highway!="platform"][highway!="emergency_access_point"]["name:left"][prop(crc_left)>=7575][prop(crc_left)<7878] { left-casing-color: #F75617; } | |
way["highway"][highway!="platform"][highway!="emergency_access_point"]["name:left"][prop(crc_left)>=7878][prop(crc_left)<8181] { left-casing-color: #54d954; } | |
way["highway"][highway!="platform"][highway!="emergency_access_point"]["name:left"][prop(crc_left)>=8181][prop(crc_left)<8484] { left-casing-color: #ba55d3; } | |
way["highway"][highway!="platform"][highway!="emergency_access_point"]["name:left"][prop(crc_left)>=8484][prop(crc_left)<8787] { left-casing-color: #9370db; } | |
way["highway"][highway!="platform"][highway!="emergency_access_point"]["name:left"][prop(crc_left)>=8787][prop(crc_left)<9090] { left-casing-color: #ff7c00; } | |
way["highway"][highway!="platform"][highway!="emergency_access_point"]["name:left"][prop(crc_left)>=9090][prop(crc_left)<9393] { left-casing-color: #3cb371; } | |
way["highway"][highway!="platform"][highway!="emergency_access_point"]["name:left"][prop(crc_left)>=9393][prop(crc_left)<9696] { left-casing-color: #707000; } | |
way["highway"][highway!="platform"][highway!="emergency_access_point"]["name:left"][prop(crc_left)>=9696] { left-casing-color: #ff4444; } | |
/* right casing */ | |
way["highway"][highway!="platform"][highway!="emergency_access_point"]["name:right"][prop(crc_right)<303] { right-casing-color: #8B864E; } | |
way["highway"][highway!="platform"][highway!="emergency_access_point"]["name:right"][prop(crc_right)>=303][prop(crc_right)<606] { right-casing-color: #b88142; } | |
way["highway"][highway!="platform"][highway!="emergency_access_point"]["name:right"][prop(crc_right)>=606][prop(crc_right)<909] { right-casing-color: #a3fe8f; } | |
way["highway"][highway!="platform"][highway!="emergency_access_point"]["name:right"][prop(crc_right)>=909][prop(crc_right)<1212] { right-casing-color: #b8674c; } | |
way["highway"][highway!="platform"][highway!="emergency_access_point"]["name:right"][prop(crc_right)>=1212][prop(crc_right)<1515] { right-casing-color: #f4ff6b; } | |
way["highway"][highway!="platform"][highway!="emergency_access_point"]["name:right"][prop(crc_right)>=1515][prop(crc_right)<1818] { right-casing-color: #81c0ff; } | |
way["highway"][highway!="platform"][highway!="emergency_access_point"]["name:right"][prop(crc_right)>=1818][prop(crc_right)<2121] { right-casing-color: #6b8e23; } | |
way["highway"][highway!="platform"][highway!="emergency_access_point"]["name:right"][prop(crc_right)>=2121][prop(crc_right)<2424] { right-casing-color: #e1bd6a; } | |
way["highway"][highway!="platform"][highway!="emergency_access_point"]["name:right"][prop(crc_right)>=2424][prop(crc_right)<2727] { right-casing-color: #7fffd4; } | |
way["highway"][highway!="platform"][highway!="emergency_access_point"]["name:right"][prop(crc_right)>=2727][prop(crc_right)<3030] { right-casing-color: #8a2be2; } | |
way["highway"][highway!="platform"][highway!="emergency_access_point"]["name:right"][prop(crc_right)>=3030][prop(crc_right)<3333] { right-casing-color: #a52a2a; } | |
way["highway"][highway!="platform"][highway!="emergency_access_point"]["name:right"][prop(crc_right)>=3333][prop(crc_right)<3636] { right-casing-color: #f0b9a6; } | |
way["highway"][highway!="platform"][highway!="emergency_access_point"]["name:right"][prop(crc_right)>=3636][prop(crc_right)<3939] { right-casing-color: #8fbc8f; } | |
way["highway"][highway!="platform"][highway!="emergency_access_point"]["name:right"][prop(crc_right)>=3939][prop(crc_right)<4242] { right-casing-color: #1b7777; } | |
way["highway"][highway!="platform"][highway!="emergency_access_point"]["name:right"][prop(crc_right)>=4242][prop(crc_right)<4545] { right-casing-color: #ff1493; } | |
way["highway"][highway!="platform"][highway!="emergency_access_point"]["name:right"][prop(crc_right)>=4545][prop(crc_right)<4848] { right-casing-color: #0072e2; } | |
way["highway"][highway!="platform"][highway!="emergency_access_point"]["name:right"][prop(crc_right)>=4848][prop(crc_right)<5151] { right-casing-color: #008f00; } | |
way["highway"][highway!="platform"][highway!="emergency_access_point"]["name:right"][prop(crc_right)>=5151][prop(crc_right)<5454] { right-casing-color: #ffcc00; } | |
way["highway"][highway!="platform"][highway!="emergency_access_point"]["name:right"][prop(crc_right)>=5454][prop(crc_right)<5757] { right-casing-color: #BF9017; } | |
way["highway"][highway!="platform"][highway!="emergency_access_point"]["name:right"][prop(crc_right)>=5757][prop(crc_right)<6060] { right-casing-color: #adff2f; } | |
way["highway"][highway!="platform"][highway!="emergency_access_point"]["name:right"][prop(crc_right)>=6060][prop(crc_right)<6363] { right-casing-color: #ff69b4; } | |
way["highway"][highway!="platform"][highway!="emergency_access_point"]["name:right"][prop(crc_right)>=6363][prop(crc_right)<6666] { right-casing-color: #cd5c5c; } | |
way["highway"][highway!="platform"][highway!="emergency_access_point"]["name:right"][prop(crc_right)>=6666][prop(crc_right)<6969] { right-casing-color: #7d5a07; } | |
way["highway"][highway!="platform"][highway!="emergency_access_point"]["name:right"][prop(crc_right)>=6969][prop(crc_right)<7272] { right-casing-color: #824600; } | |
way["highway"][highway!="platform"][highway!="emergency_access_point"]["name:right"][prop(crc_right)>=7272][prop(crc_right)<7575] { right-casing-color: #f08080; } | |
way["highway"][highway!="platform"][highway!="emergency_access_point"]["name:right"][prop(crc_right)>=7575][prop(crc_right)<7878] { right-casing-color: #F75617; } | |
way["highway"][highway!="platform"][highway!="emergency_access_point"]["name:right"][prop(crc_right)>=7878][prop(crc_right)<8181] { right-casing-color: #54d954; } | |
way["highway"][highway!="platform"][highway!="emergency_access_point"]["name:right"][prop(crc_right)>=8181][prop(crc_right)<8484] { right-casing-color: #ba55d3; } | |
way["highway"][highway!="platform"][highway!="emergency_access_point"]["name:right"][prop(crc_right)>=8484][prop(crc_right)<8787] { right-casing-color: #9370db; } | |
way["highway"][highway!="platform"][highway!="emergency_access_point"]["name:right"][prop(crc_right)>=8787][prop(crc_right)<9090] { right-casing-color: #ff7c00; } | |
way["highway"][highway!="platform"][highway!="emergency_access_point"]["name:right"][prop(crc_right)>=9090][prop(crc_right)<9393] { right-casing-color: #3cb371; } | |
way["highway"][highway!="platform"][highway!="emergency_access_point"]["name:right"][prop(crc_right)>=9393][prop(crc_right)<9696] { right-casing-color: #707000; } | |
way["highway"][highway!="platform"][highway!="emergency_access_point"]["name:right"][prop(crc_right)>=9696] { right-casing-color: #ff4444; } | |
/* ------------------------------------------------------------------------------------------------------------------------ */ | |
/* ------------------------------------------------------------------------------------------------------------------------ */ | |
/* ------------------------------------------------------------------------------------------------------------------------ */ | |
/* Error messages and other special rules */ | |
/* have housenumber, miss street */ | |
node[addr:housenumber][!addr:street][!addr:place]::halo, | |
area[addr:housenumber][!addr:street][!addr:place] { | |
isinassociatedstreetrelation: eval(cond(parent_tag(type)="associatedStreet",true,false)); | |
} | |
area[addr:housenumber][!addr:street][!addr:place][prop(isinassociatedstreetrelation)=false][setting("support_associatedstreet")], | |
area[addr:housenumber][!addr:street][!addr:place][!setting("support_associatedstreet")] { | |
text: eval( | |
cond( | |
has_tag_key(name), | |
concat( | |
cond( | |
has_tag_key("addr:unit"), | |
concat(tag("addr:unit"), " / ", tag("addr:housenumber")), | |
cond( | |
has_tag_key("addr:flats"), | |
concat("(", tag("addr:flats"), ")", " / ", tag("addr:housenumber")), | |
tag("addr:housenumber") | |
) | |
), | |
" ", tr("street?"), " | ", tag("name") | |
), | |
concat( | |
cond( | |
has_tag_key("addr:unit"), | |
concat(tag("addr:unit"), " / ", tag("addr:housenumber")), | |
cond( | |
has_tag_key("addr:flats"), | |
concat("(", tag("addr:flats"), ")", " / ", tag("addr:housenumber")), | |
tag("addr:housenumber") | |
) | |
), | |
" ", tr("street?") | |
) | |
) | |
); | |
text-halo-color: red; | |
text-halo-radius: 2; | |
text-halo-opacity: 0.8; | |
width: 3; | |
fill-color: red; | |
fill-opacity:0.7; | |
text-color: black; | |
font-size: 10; | |
casing-width: 1; | |
casing-color: yellow; | |
z-index: 1; | |
} | |
node[addr:housenumber][!addr:street][!addr:place][prop(isinassociatedstreetrelation)=false][setting("support_associatedstreet")]::halo, | |
node[addr:housenumber][!addr:street][!addr:place][!setting("support_associatedstreet")]::halo { | |
text: eval( | |
concat( | |
cond( | |
has_tag_key("addr:unit"), | |
concat(tag("addr:unit"), " / ", tag("addr:housenumber")), | |
cond( | |
has_tag_key("addr:flats"), | |
concat("(", tag("addr:flats"), ")", " / ", tag("addr:housenumber")), | |
tag("addr:housenumber") | |
) | |
), | |
" ", tr("street?") | |
) | |
); | |
font-size: 12; | |
text-color: black; | |
text-halo-color: red; | |
text-halo-radius: 2; | |
text-halo-opacity: 0.8; | |
text-anchor-vertical: center; | |
symbol-shape: triangle; | |
symbol-fill-opacity:0.7; | |
symbol-fill-color: red; | |
symbol-size: 30; | |
symbol-stroke-color: yellow; | |
z-index: -1; | |
} | |
/* have street, miss housenumber */ | |
/* areas */ | |
area|z18-[addr:street][!addr:housenumber]["addr:housename"][!highway][!addr:interpolation][setting("allow_housename")], | |
area|z18-[addr:place][!addr:housenumber]["addr:housename"][!highway][!addr:interpolation][setting("allow_housename")] { | |
text: eval(cond(has_tag_key(name), concat(tag("addr:housename"), " | ", tag("name")), tag("addr:housename"))); /* "housename | name" or only "housename" (no warning) */ | |
text-position: center; | |
text-color: black; | |
font-size: 12; | |
} | |
area|z18-[addr:street][!addr:housenumber][nohousenumber!=yes][!"addr:housename"][!highway][!addr:interpolation][!setting("display_missing_number_message")], | |
area|z18-[addr:place][!addr:housenumber][nohousenumber!=yes][!"addr:housename"][!highway][!addr:interpolation][!setting("display_missing_number_message")], | |
area|z18-[addr:street][!addr:housenumber][nohousenumber!=yes][!highway][!addr:interpolation][!setting("display_missing_number_message")][!setting("allow_housename")], | |
area|z18-[addr:place][!addr:housenumber][nohousenumber!=yes][!highway][!addr:interpolation][!setting("display_missing_number_message")][!setting("allow_housename")] { | |
text: eval(cond(has_tag_key(name), concat("? | ", tag("name")), "?")); /* "? | name" or only "?" (no warning) */ | |
text-position: center; | |
text-color: black; | |
font-size: 12; | |
} | |
area[addr:street][!addr:housenumber][nohousenumber!=yes][!highway][!addr:interpolation][setting("display_missing_number_message")][!setting("allow_housename")], | |
area[addr:place][!addr:housenumber][nohousenumber!=yes][!highway][!addr:interpolation][setting("display_missing_number_message")][!setting("allow_housename")], | |
area[addr:street][!addr:housenumber][nohousenumber!=yes][!"addr:housename"][!highway][!addr:interpolation][setting("display_missing_number_message")][setting("allow_housename")], | |
area[addr:place][!addr:housenumber][nohousenumber!=yes][!"addr:housename"][!highway][!addr:interpolation][setting("display_missing_number_message")][setting("allow_housename")] { | |
width: 3; | |
text-halo-radius: 2; | |
fill-color: red; | |
fill-opacity:0.7; | |
text: eval(cond(has_tag_key(name), concat(tr("number?"), " | ", tag("name")), tr("number?"))); /* "number? | name" or only "number?" (as warning) */ | |
text-position: center; | |
text-color: black; | |
font-size: 12; | |
casing-width: 1; | |
casing-color: yellow; | |
} | |
area|z-18[addr:street][!addr:housenumber][!highway][!addr:interpolation], | |
area|z-18[addr:place][!addr:housenumber][!highway][!addr:interpolation] { | |
font-size: 11; | |
} | |
/* nodes */ | |
node["addr:street"][!"addr:housenumber"][nohousenumber!=yes][setting("display_missing_number_message")][!setting("allow_housename")]::halo, | |
node["addr:place"][!"addr:housenumber"][nohousenumber!=yes][setting("display_missing_number_message")][!setting("allow_housename")]::halo, | |
node["addr:street"][!"addr:housenumber"][nohousenumber!=yes][!"addr:housename"][setting("display_missing_number_message")][setting("allow_housename")]::halo, | |
node["addr:place"][!"addr:housenumber"][nohousenumber!=yes][!"addr:housename"][setting("display_missing_number_message")][setting("allow_housename")]::halo { | |
text: tr("number?"); /* "number?" (as warning) */ | |
text-color: black; | |
font-size: 12; | |
symbol-shape: triangle; | |
symbol-fill-opacity:0.7; | |
symbol-fill-color: red; | |
symbol-size: 30; | |
symbol-stroke-color: yellow; | |
z-index: -1; | |
} | |
node|z18-["addr:street"][!"addr:housenumber"]["addr:housename"][setting("allow_housename")]::halo, | |
node|z18-["addr:place"][!"addr:housenumber"]["addr:housename"][setting("allow_housename")]::halo { | |
text: eval(tag("addr:housename")); /* "housename" (no warning) */ | |
text-color: black; | |
font-size: 12; | |
} | |
node|z18-["addr:street"][!"addr:housenumber"][nohousenumber!=yes][!"addr:housename"][!setting("display_missing_number_message")]::halo, | |
node|z18-["addr:place"][!"addr:housenumber"][nohousenumber!=yes][!"addr:housename"][!setting("display_missing_number_message")]::halo, | |
node|z18-["addr:street"][!"addr:housenumber"][nohousenumber!=yes][!setting("display_missing_number_message")][!setting("allow_housename")]::halo, | |
node|z18-["addr:place"][!"addr:housenumber"][nohousenumber!=yes][!setting("display_missing_number_message")][!setting("allow_housename")]::halo { | |
text: eval("?"); /* "?" (no warning) */ | |
text-color: black; | |
font-size: 12; | |
} | |
/* street with addr:*=* */ | |
way["highway"][highway!=services][highway!=rest_area]["addr:country"], | |
way["highway"][highway!=services][highway!=rest_area]["addr:postcode"][!setting("allow_postcode")], | |
way["highway"][highway!=services][highway!=rest_area]["addr:city"], | |
way["highway"][highway!=services][highway!=rest_area]["addr:street"], | |
way["highway"][highway!=services][highway!=rest_area]["addr:place"], | |
way["highway"][highway!=services][highway!=rest_area]["addr:housenumber"] { | |
text: tr("no address!"); | |
color: red; | |
width: 4; | |
dashes: 28,2; | |
dashes-background-color: yellow; | |
object-z-index:-1.0; | |
text-halo-color: red; | |
text-halo-radius: 2; | |
casing-width: 0.7; | |
casing-color: yellow; | |
} | |
/* addr:*=* together with addr:interpolation=* */ | |
way["addr:interpolation"]["addr:country"], | |
way["addr:interpolation"]["addr:postcode"], | |
way["addr:interpolation"]["addr:city"], | |
way["addr:interpolation"]["addr:street"], | |
way["addr:interpolation"]["addr:place"], | |
way["addr:interpolation"]["addr:housenumber"] { | |
text: tr("addr:interpolation shouldn't have other addr:*=* tags!"); | |
color: red; | |
width: 4; | |
dashes: 28,2; | |
dashes-background-color: yellow; | |
object-z-index:-1.0; | |
text-halo-color: red; | |
text-halo-radius: 2; | |
text-color: black; | |
font-size: 12; | |
casing-width: 0.7; | |
casing-color: yellow; | |
} | |
/* names of nodes */ | |
node["addr:housenumber"], | |
relation[type="associatedStreet"] > node[nohousenumber=yes][setting("support_associatedstreet")] { | |
font-size: 10; | |
text-color: white; | |
text-anchor-vertical: center; | |
text-offset-y: -10; | |
text-offset-x: 8; | |
} | |
node|z22-["addr:housenumber"] { | |
font-size: 11; | |
} | |
/* hide housenumbers of default layer */ | |
node["addr:housenumber"][!name] { | |
font-size: 0; | |
} | |
/* names for adress nodes without number */ | |
node[!"addr:housenumber"][name][addr:street], | |
node[!"addr:housenumber"][name][addr:place] { | |
font-size: 10; | |
text-color: white; | |
text-anchor-vertical: center; | |
text-offset-y: -10; | |
text-offset-x: 8; | |
} | |
/* text style of areas with number */ | |
way:closed["addr:housenumber"], | |
way:closed[!"addr:housenumber"][nohousenumber=yes][addr:street], | |
way:closed[!"addr:housenumber"][nohousenumber=yes][addr:place], | |
relation[type=multipolygon]["addr:housenumber"], | |
relation[type=multipolygon][!"addr:housenumber"][nohousenumber=yes][addr:street], | |
relation[type=multipolygon][!"addr:housenumber"][nohousenumber=yes][addr:place], | |
relation[type="associatedStreet"] > area["addr:housenumber"][setting("support_associatedstreet")], | |
relation[type="associatedStreet"] > area[!"addr:housenumber"][nohousenumber=yes][setting("support_associatedstreet")] { | |
text-color: black; | |
font-size: 12; | |
text-position: center; | |
} | |
way|z-18:closed["addr:housenumber"], | |
way|z-18:closed[!"addr:housenumber"][nohousenumber=yes][addr:street], | |
way|z-18:closed[!"addr:housenumber"][nohousenumber=yes][addr:place], | |
relation|z-18[type=multipolygon]["addr:housenumber"], | |
relation|z-18[type=multipolygon][!"addr:housenumber"][nohousenumber=yes][addr:street], | |
relation|z-18[type=multipolygon][!"addr:housenumber"][nohousenumber=yes][addr:place], | |
relation[type="associatedStreet"] > area|z-18["addr:housenumber"][setting("support_associatedstreet")], | |
relation[type="associatedStreet"] > area|z-18[!"addr:housenumber"][nohousenumber=yes][setting("support_associatedstreet")] { | |
font-size: 11; | |
} | |
/* text style of highways and false addr */ | |
way[highway][highway!="platform"][highway!="emergency_access_point"] { | |
text-color: black; | |
font-size: 12; | |
} | |
/* higway=residential and highway=living_street without name (but no roundabouts) */ | |
way[highway=residential][!name][noname!=yes][unnamed!=yes][name:absent!=yes][validate:no_name!=yes][junction!=roundabout], | |
way[highway=living_street][!name][noname!=yes][unnamed!=yes][name:absent!=yes][validate:no_name!=yes][junction!=roundabout] { | |
color: red; | |
width: 4; | |
font-size: 12; | |
text-color: black; | |
text-position: line; | |
text: tr("name?"); | |
text-offset: 0; | |
text-halo-color: red; | |
text-halo-radius: 2; | |
dashes: 28,2; | |
dashes-background-color: yellow; | |
casing-width: 0.7; | |
casing-color: yellow; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment