Version 6 (modified by 13 years ago) ( diff ) | ,
---|
Address validation style
This style paints buildings and street names in different colors, highlighting buildings where addr:street or addr:housenumber tags are missing.
The style itself
meta { title: "Address Tags Validator"; description: "Coloring of buildings with or without addr:street, addr:housenumber"; author: "Antisida, CupIvan, Felis Pimeja, Zverik"; version: "1.18_2020-10-05"; watch-modified: true; } /* paint polygons and multipolygons with building=* tags white */ area|z1-17[building][building!=shed][building!=garage][building!=garages][building!=hut][building!=roof], relation[type=multipolygon][building][building!=shed][building!=garage][building!=garages][building!=hut][building!=roof]>way {fill-color: #FFFAFA; width: 2; casing-color: red; fill-opacity:0.9; text-color: #000000; font-size: 10;} area|z18[building][building!=shed][building!=garage][building!=garages][building!=hut][building!=roof], relation[type=multipolygon][building][building!=shed][building!=garage][building!=garages][building!=hut][building!=roof]>way {fill-color: #FFFAFA; width: 2; casing-color: red; fill-opacity:0.4; text-color: #000000; font-size: 10;} area|z19-[building][building!=shed][building!=garage][building!=garages][building!=hut][building!=roof], relation[type=multipolygon][building][building!=shed][building!=garage][building!=garages][building!=hut][building!=roof]>way {fill-color: #FFFAFA; width: 2; casing-color: red; fill-opacity:0.1; text-color: #000000; font-size: 10;} /* highlight buildings */ area[addr:street=~/(^|.+ )[АA]/], relation[type=multipolygon][addr:street=~/(^|.+ )[АA]/]> way { fill-color: #AFEEEE; color: #AFEEEE; fill-opacity:0.2;} area[addr:street=~/(^|.+ )[БB]/], relation[type=multipolygon][addr:street=~/(^|.+ )[БB]/]> way { fill-color: #90EE90; color: #90EE90; fill-opacity:0.2;} area[addr:street=~/(^|.+ )[ВC]/], relation[type=multipolygon][addr:street=~/(^|.+ )[ВC]/]> way { fill-color: #EE1289; color: #EE1289; fill-opacity:0.2;} area[addr:street=~/(^|.+ )[ГD]/], relation[type=multipolygon][addr:street=~/(^|.+ )[ГD]/]> way { fill-color: #FFD700; color: #FFD700; fill-opacity:0.2;} area[addr:street=~/(^|.+ )[ДE]/], relation[type=multipolygon][addr:street=~/(^|.+ )[ДE]/]> way { fill-color: #7CFC00; color: #7CFC00; fill-opacity:0.2;} area[addr:street=~/(^|.+ )[ЕF]/], relation[type=multipolygon][addr:street=~/(^|.+ )[ЕF]/]> way { fill-color: #D82BD6; color: #D82BD6; fill-opacity:0.2;} area[addr:street=~/(^|.+ )[ЁG]/], relation[type=multipolygon][addr:street=~/(^|.+ )[ЁG]/]> way { fill-color: #00FF66; color: #00FF66; fill-opacity:0.2;} area[addr:street=~/(^|.+ )[ЖH]/], relation[type=multipolygon][addr:street=~/(^|.+ )[ЖH]/]> way { fill-color: #4328F6; color: #4328F6; fill-opacity:0.2;} area[addr:street=~/(^|.+ )[ЗI]/], relation[type=multipolygon][addr:street=~/(^|.+ )[ЗI]/]> way { fill-color: #43DA2C; color: #43DA2C; fill-opacity:0.2;} area[addr:street=~/(^|.+ )[ИJ]/], relation[type=multipolygon][addr:street=~/(^|.+ )[ИJ]/]> way { fill-color: #26CEF5; color: #26CEF5; fill-opacity:0.2;} area[addr:street=~/(^|.+ )[ЙK]/], relation[type=multipolygon][addr:street=~/(^|.+ )[ЙK]/]> way { fill-color: #CCFF33; color: #CCFF33; fill-opacity:0.2;} area[addr:street=~/(^|.+ )[КL]/], relation[type=multipolygon][addr:street=~/(^|.+ )[КL]/]> way { fill-color: #BA55D3; color: #BA55D3; fill-opacity:0.2;} area[addr:street=~/(^|.+ )[ЛM]/], relation[type=multipolygon][addr:street=~/(^|.+ )[ЛM]/]> way { fill-color: #D20C44; color: #D20C44; fill-opacity:0.2;} area[addr:street=~/(^|.+ )[МN]/], relation[type=multipolygon][addr:street=~/(^|.+ )[МN]/]> way { fill-color: #FFA500; color: #FFA500; fill-opacity:0.2;} area[addr:street=~/(^|.+ )[НO]/], relation[type=multipolygon][addr:street=~/(^|.+ )[НO]/]> way { fill-color: #4C55B2; color: #4C55B2; fill-opacity:0.2;} area[addr:street=~/(^|.+ )[ОP]/], relation[type=multipolygon][addr:street=~/(^|.+ )[ОP]/]> way { fill-color: #FF1493; color: #FF1493; fill-opacity:0.2;} area[addr:street=~/(^|.+ )[ПQ]/], relation[type=multipolygon][addr:street=~/(^|.+ )[ПQ]/]> way { fill-color: #8968CD; color: #8968CD; fill-opacity:0.2;} area[addr:street=~/(^|.+ )[РR]/], relation[type=multipolygon][addr:street=~/(^|.+ )[РR]/]> way { fill-color: #40BA8F; color: #40BA8F; fill-opacity:0.2;} area[addr:street=~/(^|.+ )[СS]/], relation[type=multipolygon][addr:street=~/(^|.+ )[СS]/]> way { fill-color: #38FBC5; color: #38FBC5; fill-opacity:0.2;} area[addr:street=~/(^|.+ )[ТT]/], relation[type=multipolygon][addr:street=~/(^|.+ )[ТT]/]> way { fill-color: #7FFFD4; color: #7FFFD4; fill-opacity:0.2;} area[addr:street=~/(^|.+ )[УU]/], relation[type=multipolygon][addr:street=~/(^|.+ )[УU]/]> way { fill-color: #A40A5F; color: #A40A5F; fill-opacity:0.2;} area[addr:street=~/(^|.+ )[ФV]/], relation[type=multipolygon][addr:street=~/(^|.+ )[ФV]/]> way { fill-color: #CDCD00; color: #CDCD00; fill-opacity:0.2;} area[addr:street=~/(^|.+ )[ХW]/], relation[type=multipolygon][addr:street=~/(^|.+ )[ХW]/]> way { fill-color: #00BFFF; color: #00BFFF; fill-opacity:0.2;} area[addr:street=~/(^|.+ )[ЦX]/], relation[type=multipolygon][addr:street=~/(^|.+ )[ЦX]/]> way { fill-color: #D8FBB0; color: #D8FBB0; fill-opacity:0.2;} area[addr:street=~/(^|.+ )[ЧY]/], relation[type=multipolygon][addr:street=~/(^|.+ )[ЧY]/]> way { fill-color: #1E90FF; color: #1E90FF; fill-opacity:0.2;} area[addr:street=~/(^|.+ )[ШZ]/], relation[type=multipolygon][addr:street=~/(^|.+ )[ШZ]/]> way { fill-color: #F34177; color: #F34177; fill-opacity:0.2;} area[addr:street=~/(^|.+ )[ЩÄ]/], relation[type=multipolygon][addr:street=~/(^|.+ )[ЩÄ]/]> way { fill-color: #51FC40; color: #51FC40; fill-opacity:0.2;} area[addr:street=~/(^|.+ )[ЭÖ]/], relation[type=multipolygon][addr:street=~/(^|.+ )[ЭÖ]/]> way { fill-color: #12EA9A; color: #12EA9A; fill-opacity:0.2;} area[addr:street=~/(^|.+ )[ЮÜ]/], relation[type=multipolygon][addr:street=~/(^|.+ )[ЮÜ]/]> way { fill-color: #A4CB65; color: #A4CB65; fill-opacity:0.2;} area[addr:street=~/(^|.+ )[ЯŚ]/], relation[type=multipolygon][addr:street=~/(^|.+ )[ЯŚ]/]> way { fill-color: #B2D3F0; color: #B2D3F0; fill-opacity:0.2;} /* hide nodes */ node|z1-17{ symbol-shape: square; symbol-fill-opacity: 0; symbol-size: 1; z-index:-1} node|z18{ symbol-shape: square; symbol-stroke-color: #FFFF00; symbol-size:5; z-index:1} node|z19-{ symbol-shape: square; symbol-stroke-color: #FFFF00; symbol-size:6; z-index:1} /* have housenumber, miss street */ area|z1-17[addr:housenumber][!addr:street], relation[type=multipolygon][building][addr:housenumber][!addr:street] > way { width: 2; fill-color: #FF0000; fill-opacity:0.9; text-color: #000000; font-size: 10;casing-width: 1; casing-color: #FFFF00;} area|z18[addr:housenumber][!addr:street], relation[type=multipolygon][building][addr:housenumber][!addr:street] > way { width: 2; fill-color: #FF0000; fill-opacity:0.4; text-color: #000000; font-size: 10;casing-width: 1; casing-color: #FFFF00;} area|z19-[addr:housenumber][!addr:street], relation[type=multipolygon][building][addr:housenumber][!addr:street] > way { width: 2; fill-color: #FF0000; fill-opacity:0.1; text-color: #000000; font-size: 10;casing-width: 1; casing-color: #FFFF00;} /* have street, miss housenumber */ area|z1-17[addr:street][!addr:housenumber], relation[type=multipolygon][building][!addr:housenumber][addr:street] > way { width: 2; fill-opacity:0.9; font-size: 10; casing-width: 1; casing-color: grey; color: #FFFFFF } area|z18[addr:street][!addr:housenumber], relation[type=multipolygon][building][!addr:housenumber][addr:street] > way { width: 4; fill-opacity:0.4; font-size: 10; casing-width: 1; casing-color: grey; color: #FFFFFF } area|z19-[addr:street][!addr:housenumber], relation[type=multipolygon][building][!addr:housenumber][addr:street] > way { width: 4; fill-opacity:0.1; font-size: 10; casing-width: 1; casing-color: grey; color: #FFFFFF } /* highlight highway names in tone with buildings */ way[highway][name=~/(^|.+ )[АA]/]{ font-size: 12; text-color: #000000; text-position: line; text: name; text-offset: 0; text-halo-color: #AFEEEE; text-halo-radius:2} way[highway][name=~/(^|.+ )[БB]/]{ font-size: 12; text-color: #000000; text-position: line; text: name; text-offset: 0; text-halo-color: #90EE90; text-halo-radius:2} way[highway][name=~/(^|.+ )[ВC]/]{ font-size: 12; text-color: #000000; text-position: line; text: name; text-offset: 0; text-halo-color: #EE1289; text-halo-radius:2} way[highway][name=~/(^|.+ )[ГD]/]{ font-size: 12; text-color: #000000; text-position: line; text: name; text-offset: 0; text-halo-color: #FFD700; text-halo-radius:2} way[highway][name=~/(^|.+ )[ДE]/]{ font-size: 12; text-color: #000000; text-position: line; text: name; text-offset: 0; text-halo-color: #7CFC00; text-halo-radius:2} way[highway][name=~/(^|.+ )[ЕF]/]{ font-size: 12; text-color: #000000; text-position: line; text: name; text-offset: 0; text-halo-color: #D82BD6; text-halo-radius:2} way[highway][name=~/(^|.+ )[ЁG]/]{ font-size: 12; text-color: #000000; text-position: line; text: name; text-offset: 0; text-halo-color: #00FF66; text-halo-radius:2} way[highway][name=~/(^|.+ )[ЖH]/]{ font-size: 12; text-color: #000000; text-position: line; text: name; text-offset: 0; text-halo-color: #4328F6; text-halo-radius:2} way[highway][name=~/(^|.+ )[ЗI]/]{ font-size: 12; text-color: #000000; text-position: line; text: name; text-offset: 0; text-halo-color: #43DA2C; text-halo-radius:2} way[highway][name=~/(^|.+ )[ИJ]/]{ font-size: 12; text-color: #000000; text-position: line; text: name; text-offset: 0; text-halo-color: #26CEF5; text-halo-radius:2} way[highway][name=~/(^|.+ )[ЙK]/]{ font-size: 12; text-color: #000000; text-position: line; text: name; text-offset: 0; text-halo-color: #CCFF33; text-halo-radius:2} way[highway][name=~/(^|.+ )[КL]/]{ font-size: 12; text-color: #000000; text-position: line; text: name; text-offset: 0; text-halo-color: #BA55D3; text-halo-radius:2} way[highway][name=~/(^|.+ )[ЛM]/]{ font-size: 12; text-color: #000000; text-position: line; text: name; text-offset: 0; text-halo-color: #D20C44; text-halo-radius:2} way[highway][name=~/(^|.+ )[МN]/]{ font-size: 12; text-color: #000000; text-position: line; text: name; text-offset: 0; text-halo-color: #FFA500; text-halo-radius:2} way[highway][name=~/(^|.+ )[НO]/]{ font-size: 12; text-color: #000000; text-position: line; text: name; text-offset: 0; text-halo-color: #4C55B2; text-halo-radius:2} way[highway][name=~/(^|.+ )[ОP]/]{ font-size: 12; text-color: #000000; text-position: line; text: name; text-offset: 0; text-halo-color: #FF1493; text-halo-radius:2} way[highway][name=~/(^|.+ )[ПQ]/]{ font-size: 12; text-color: #000000; text-position: line; text: name; text-offset: 0; text-halo-color: #8968CD; text-halo-radius:2} way[highway][name=~/(^|.+ )[РR]/]{ font-size: 12; text-color: #000000; text-position: line; text: name; text-offset: 0; text-halo-color: #40BA8F; text-halo-radius:2} way[highway][name=~/(^|.+ )[СS]/]{ font-size: 12; text-color: #000000; text-position: line; text: name; text-offset: 0; text-halo-color: #38FBC5; text-halo-radius:2} way[highway][name=~/(^|.+ )[ТT]/]{ font-size: 12; text-color: #000000; text-position: line; text: name; text-offset: 0; text-halo-color: #7FFFD4; text-halo-radius:2} way[highway][name=~/(^|.+ )[УU]/]{ font-size: 12; text-color: #000000; text-position: line; text: name; text-offset: 0; text-halo-color: #A40A5F; text-halo-radius:2} way[highway][name=~/(^|.+ )[ФV]/]{ font-size: 12; text-color: #000000; text-position: line; text: name; text-offset: 0; text-halo-color: #CDCD00; text-halo-radius:2} way[highway][name=~/(^|.+ )[ХW]/]{ font-size: 12; text-color: #000000; text-position: line; text: name; text-offset: 0; text-halo-color: #00BFFF; text-halo-radius:2} way[highway][name=~/(^|.+ )[ЦX]/]{ font-size: 12; text-color: #000000; text-position: line; text: name; text-offset: 0; text-halo-color: #D8FBB0; text-halo-radius:2} way[highway][name=~/(^|.+ )[ЧY]/]{ font-size: 12; text-color: #000000; text-position: line; text: name; text-offset: 0; text-halo-color: #1E90FF; text-halo-radius:2} way[highway][name=~/(^|.+ )[ШZ]/]{ font-size: 12; text-color: #000000; text-position: line; text: name; text-offset: 0; text-halo-color: #F34177; text-halo-radius:2} way[highway][name=~/(^|.+ )[ЩÄ]/]{ font-size: 12; text-color: #000000; text-position: line; text: name; text-offset: 0; text-halo-color: #51FC40; text-halo-radius:2} way[highway][name=~/(^|.+ )[ЭÖ]/]{ font-size: 12; text-color: #000000; text-position: line; text: name; text-offset: 0; text-halo-color: #12EA9A; text-halo-radius:2} way[highway][name=~/(^|.+ )[ЮÜ]/]{ font-size: 12; text-color: #000000; text-position: line; text: name; text-offset: 0; text-halo-color: #A4CB65; text-halo-radius:2} way[highway][name=~/(^|.+ )[ЯŚ]/]{ font-size: 12; text-color: #000000; text-position: line; text: name; text-offset: 0; text-halo-color: #B2D3F0; text-halo-radius:2} /* tone down landuses */ area[landuse], relation[type=multipolygon][landuse]> way {opacity:0.5; color:#CDCDC1; width: 1; fill-color: #F0FFFF; fill-opacity:0; casing-width: 0; casing-color: grey;}
Styles_AddressValidator-style.mapcss, Styles_AddressValidator.zip
Attachments (1)
-
addrvalidator-titled.gif
(46.3 KB
) - added by 13 years ago.
(NOZIP) screenshot
Download all attachments as: .zip
Note:
See TracWiki
for help on using the wiki.