Changes between Initial Version and Version 1 of Styles/AddressValidator


Ignore:
Timestamp:
2012-08-31T09:21:42+02:00 (14 years ago)
Author:
Zverikk
Comment:

new style

Legend:

Unmodified
Added
Removed
Modified
  • Styles/AddressValidator

    v1 v1  
     1This style paints buildings and street names in different colors, highlighting buildings where addr:street or addr:housenumber tags are missing.
     2{{{
     3#!style type="mapcss"
     4
     5meta {
     6        title: "Validating tags addr:street, addr:housenumber";
     7        description: "Coloring of buildings with or without addr:street, addr:housenumber";
     8        author: "Antisida, CupIvan, Felis Pimeja, Zverik";
     9        watch-modified: true;
     10}
     11
     12/* paint polygons and multipolygons with building=* tags white */
     13area|z1-17[building][building!=garage][building!=garages][building!=hut][building!=roof], relation[type=multipolygon][building][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;}
     14area|z18[building][building!=garage][building!=garages][building!=hut][building!=roof], relation[type=multipolygon][building][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;}
     15area|z19-[building][building!=garage][building!=garages][building!=hut][building!=roof], relation[type=multipolygon][building][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;}
     16
     17/* highlight buildings */
     18area[addr:street=~/(^|.+ )[АA]/], relation[type=multipolygon][addr:street=~/(^|.+ )[АA]/]> way { fill-color: #AFEEEE; color: #AFEEEE; fill-opacity:0.2;}
     19area[addr:street=~/(^|.+ )[БB]/], relation[type=multipolygon][addr:street=~/(^|.+ )[БB]/]> way { fill-color: #90EE90; color: #90EE90; fill-opacity:0.2;}
     20area[addr:street=~/(^|.+ )[ВC]/], relation[type=multipolygon][addr:street=~/(^|.+ )[ВC]/]> way { fill-color: #EE1289; color: #EE1289; fill-opacity:0.2;}
     21area[addr:street=~/(^|.+ )[ГD]/], relation[type=multipolygon][addr:street=~/(^|.+ )[ГD]/]> way { fill-color: #FFD700; color: #FFD700; fill-opacity:0.2;}
     22area[addr:street=~/(^|.+ )[ДE]/], relation[type=multipolygon][addr:street=~/(^|.+ )[ДE]/]> way { fill-color: #7CFC00; color: #7CFC00; fill-opacity:0.2;}
     23area[addr:street=~/(^|.+ )[ЕF]/], relation[type=multipolygon][addr:street=~/(^|.+ )[ЕF]/]> way { fill-color: #D82BD6; color: #D82BD6; fill-opacity:0.2;}
     24area[addr:street=~/(^|.+ )[ЁG]/], relation[type=multipolygon][addr:street=~/(^|.+ )[ЁG]/]> way { fill-color: #00FF66; color: #00FF66; fill-opacity:0.2;}
     25area[addr:street=~/(^|.+ )[ЖH]/], relation[type=multipolygon][addr:street=~/(^|.+ )[ЖH]/]> way { fill-color: #4328F6; color: #4328F6; fill-opacity:0.2;}
     26area[addr:street=~/(^|.+ )[ЗI]/], relation[type=multipolygon][addr:street=~/(^|.+ )[ЗI]/]> way { fill-color: #43DA2C; color: #43DA2C; fill-opacity:0.2;}
     27area[addr:street=~/(^|.+ )[ИJ]/], relation[type=multipolygon][addr:street=~/(^|.+ )[ИJ]/]> way { fill-color: #26CEF5; color: #26CEF5; fill-opacity:0.2;}
     28area[addr:street=~/(^|.+ )[ЙK]/], relation[type=multipolygon][addr:street=~/(^|.+ )[ЙK]/]> way { fill-color: #CCFF33; color: #CCFF33; fill-opacity:0.2;}
     29area[addr:street=~/(^|.+ )[КL]/], relation[type=multipolygon][addr:street=~/(^|.+ )[КL]/]> way { fill-color: #BA55D3; color: #BA55D3; fill-opacity:0.2;}
     30area[addr:street=~/(^|.+ )[ЛM]/], relation[type=multipolygon][addr:street=~/(^|.+ )[ЛM]/]> way { fill-color: #D20C44; color: #D20C44; fill-opacity:0.2;}
     31area[addr:street=~/(^|.+ )[МN]/], relation[type=multipolygon][addr:street=~/(^|.+ )[МN]/]> way { fill-color: #FFA500; color: #FFA500; fill-opacity:0.2;}
     32area[addr:street=~/(^|.+ )[НO]/], relation[type=multipolygon][addr:street=~/(^|.+ )[НO]/]> way { fill-color: #4C55B2; color: #4C55B2; fill-opacity:0.2;}
     33area[addr:street=~/(^|.+ )[ОP]/], relation[type=multipolygon][addr:street=~/(^|.+ )[ОP]/]> way { fill-color: #FF1493; color: #FF1493; fill-opacity:0.2;}
     34area[addr:street=~/(^|.+ )[ПQ]/], relation[type=multipolygon][addr:street=~/(^|.+ )[ПQ]/]> way { fill-color: #8968CD; color: #8968CD; fill-opacity:0.2;}
     35area[addr:street=~/(^|.+ )[РR]/], relation[type=multipolygon][addr:street=~/(^|.+ )[РR]/]> way { fill-color: #40BA8F; color: #40BA8F; fill-opacity:0.2;}
     36area[addr:street=~/(^|.+ )[СS]/], relation[type=multipolygon][addr:street=~/(^|.+ )[СS]/]> way { fill-color: #38FBC5; color: #38FBC5; fill-opacity:0.2;}
     37area[addr:street=~/(^|.+ )[ТT]/], relation[type=multipolygon][addr:street=~/(^|.+ )[ТT]/]> way { fill-color: #7FFFD4; color: #7FFFD4; fill-opacity:0.2;}
     38area[addr:street=~/(^|.+ )[УU]/], relation[type=multipolygon][addr:street=~/(^|.+ )[УU]/]> way { fill-color: #A40A5F; color: #A40A5F; fill-opacity:0.2;}
     39area[addr:street=~/(^|.+ )[ФV]/], relation[type=multipolygon][addr:street=~/(^|.+ )[ФV]/]> way { fill-color: #CDCD00; color: #CDCD00; fill-opacity:0.2;}
     40area[addr:street=~/(^|.+ )[ХW]/], relation[type=multipolygon][addr:street=~/(^|.+ )[ХW]/]> way { fill-color: #00BFFF; color: #00BFFF; fill-opacity:0.2;}
     41area[addr:street=~/(^|.+ )[ЦX]/], relation[type=multipolygon][addr:street=~/(^|.+ )[ЦX]/]> way { fill-color: #D8FBB0; color: #D8FBB0; fill-opacity:0.2;}
     42area[addr:street=~/(^|.+ )[ЧY]/], relation[type=multipolygon][addr:street=~/(^|.+ )[ЧY]/]> way { fill-color: #1E90FF; color: #1E90FF; fill-opacity:0.2;}
     43area[addr:street=~/(^|.+ )[ШZ]/], relation[type=multipolygon][addr:street=~/(^|.+ )[ШZ]/]> way { fill-color: #F34177; color: #F34177; fill-opacity:0.2;}
     44area[addr:street=~/(^|.+ )[ЩÄ]/], relation[type=multipolygon][addr:street=~/(^|.+ )[ЩÄ]/]> way { fill-color: #51FC40; color: #51FC40; fill-opacity:0.2;}
     45area[addr:street=~/(^|.+ )[ЭÖ]/], relation[type=multipolygon][addr:street=~/(^|.+ )[ЭÖ]/]> way { fill-color: #12EA9A; color: #12EA9A; fill-opacity:0.2;}
     46area[addr:street=~/(^|.+ )[ЮÜ]/], relation[type=multipolygon][addr:street=~/(^|.+ )[ЮÜ]/]> way { fill-color: #A4CB65; color: #A4CB65; fill-opacity:0.2;}
     47area[addr:street=~/(^|.+ )[ЯŚ]/], relation[type=multipolygon][addr:street=~/(^|.+ )[ЯŚ]/]> way { fill-color: #B2D3F0; color: #B2D3F0; fill-opacity:0.2;}
     48
     49/* hide nodes */
     50node|z1-17{ symbol-shape: square; symbol-fill-opacity: 0; symbol-size: 1; z-index:-1}
     51node|z18{ symbol-shape: square; symbol-stroke-color: #FFFF00;  symbol-size:5;  z-index:1}
     52node|z19-{ symbol-shape: square; symbol-stroke-color: #FFFF00;  symbol-size:6;  z-index:1}
     53
     54/* have housenumber, miss street */
     55area|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;}
     56area|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;}
     57area|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;}
     58
     59/* have street, miss housenumber */
     60area|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 }
     61area|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 }
     62area|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 }
     63
     64/* highlight highway names in tone with buildings */
     65way[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}
     66way[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}
     67way[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}
     68way[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}
     69way[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}
     70way[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}
     71way[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}
     72way[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}
     73way[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}
     74way[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}
     75way[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}
     76way[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}
     77way[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}
     78way[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}
     79way[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}
     80way[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}
     81way[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}
     82way[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}
     83way[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}
     84way[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}
     85way[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}
     86way[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}
     87way[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}
     88way[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}
     89way[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}
     90way[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}
     91way[highway][name=~/(^|.+ )[ЩÄ]/]{ font-size: 12; text-color: #000000; text-position: line; text: name; text-offset: 0; text-halo-color: #51FC40; text-halo-radius:2}
     92way[highway][name=~/(^|.+ )[ЭÖ]/]{ font-size: 12; text-color: #000000; text-position: line; text: name; text-offset: 0; text-halo-color: #12EA9A; text-halo-radius:2}
     93way[highway][name=~/(^|.+ )[ЮÜ]/]{ font-size: 12; text-color: #000000; text-position: line; text: name; text-offset: 0; text-halo-color: #A4CB65; text-halo-radius:2}
     94way[highway][name=~/(^|.+ )[ЯŚ]/]{ font-size: 12; text-color: #000000; text-position: line; text: name; text-offset: 0; text-halo-color: #B2D3F0; text-halo-radius:2}
     95
     96/* tone down landuses */
     97area[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;}
     98}}}