Changes between Version 15 and Version 16 of Styles/Coloured_Streets


Ignore:
Timestamp:
2014-02-26T17:35:24+01:00 (12 years ago)
Author:
Klumbumbus
Comment:

+code, bearbeitungshinweis entfernt

Legend:

Unmodified
Added
Removed
Modified
  • Styles/Coloured_Streets

    v15 v16  
    1 '''xxxxxx Diese Seite ist derzeit in Bearbeitung! xxxxxx'''
    21= Coloured Streets =
    32[[TOC(inline)]]
     
    172171{
    173172        title: "Coloured Streets";
    174         version: "1.0[[revision]]_[[date]]";
    175         description: "Coloring of buildings in the color of the street";
    176         author: "geozeisig";
    177         link: "http://josm.openstreetmap.de/wiki/Styles/Coloured_Streets";
     173        version: "2.0.[[revision]]_[[date]]";
     174        description: "Colouring of streets, buildings and address nodes with the same first letter of the street name in the same colour. (Let me know if you miss special characters. I will add them.)";
     175        icon: "http://upload.wikimedia.org/wikipedia/commons/3/3a/ColouredStreetsIcon.png";
     176        author: "geozeisig, Klumbumbus";
     177        link: "http://josm.openstreetmap.de/wiki/Styles/Coloured_Streets";
    178178        watch-modified: true;
    179 }
    180 
    181 
    182 /* highlight buildings */
    183 area["addr:street"^="A"], relation[type=multipolygon]["addr:street"^="A"]
    184 {
    185         fill-color: #00FFFF;
    186         color: #00FFFF;
     179        /* This mapcss mappaint style was created for JOSM 6767. I try to support future versions of JOSM as long as I'm able to.*/
     180}
     181
     182meta[lang=de]
     183{
     184        title: "Coloured Streets";
     185        description: "Einfärben von Straßen, Gebäuden und Adressnodes mit gleichem Anfangsbuchstabe des Straßennamens in der gleichen Farbe. (Gib mir Bescheid, wenn Sonderzeichen fehlen. Ich werde sie hinzufügen.)";
     186}
     187
     188
     189/* highlight areas, ways and nodes*/
     190        /* all unknown characters in white color and all rules, which apply to all colors; different rules for different zoom*/
     191area|z18-["addr:street"],
     192relation[type="associatedStreet"] > area|z18-["addr:housenumber"]
     193{
     194        fill-color: #ffffff;
     195        color: #ffffff;
    187196        width: 3;
    188         fill-opacity:0.2;
    189         }
    190 node["addr:street"^="A"]::halo
    191 {
    192         symbol-fill-color: #00FFFF;
     197        fill-opacity:0.2;       
     198        text-halo-radius: 3;
     199        text-halo-color: #ffffff;
     200        text: eval(cond(has_tag_key(name), concat(tag("addr:housenumber"), " | ", tag("name")), tag("addr:housenumber")));
     201}
     202area|z-17["addr:street"],
     203relation[type="associatedStreet"] > area|z-17["addr:housenumber"]
     204{
     205        fill-color: #ffffff;
     206        color: #ffffff;
     207        width: 3;
     208        fill-opacity:0.2;       
     209        text: ;
     210}
     211node|z18-["addr:street"]::halo,
     212relation[type="associatedStreet"] > node|z18-["addr:housenumber"]::halo
     213{
     214        symbol-fill-color: #ffffff;
    193215        symbol-shape: circle;
    194         symbol-size: 20;
     216        symbol-size: 22;
     217        symbol-fill-opacity: 0.8;
    195218        z-index: -1;
    196 }
    197 way["highway"]["name"^="A"]
    198 {
    199         color: #00FFFF;
     219        text: eval(tag("addr:housenumber"));
     220        font-size: 12;
     221        text-color: black;
     222        text-anchor-vertical: center;
     223        text-offset-x: -3;
     224        text-halo-color: #ffffff;
     225        text-halo-radius: 2;
     226        text-halo-opacity: 0.8;
     227}
     228node|z-17["addr:street"]::halo,
     229relation[type="associatedStreet"] > node|z-17["addr:housenumber"]::halo
     230{
     231        symbol-fill-color: #ffffff;
     232        symbol-shape: circle;
     233        symbol-size: 22;
     234        symbol-fill-opacity: 0.8;
     235        z-index: -1;
     236        text: ;
     237        font-size: 12;
     238        text-color: black;
     239        text-anchor-vertical: center;
     240        text-offset-x: -3;
     241        text-halo-color: #ffffff;
     242        text-halo-radius: 2;
     243        text-halo-opacity: 0.8;
     244}
     245way|z18-["highway"]["name"]
     246{
     247        color: #ffffff;
    200248        width: 3;
    201249        font-size: 12;
    202250        text-color: #000000;
    203251        text-position: line;
    204         text: "name";
     252        text: eval(tag("name"));
    205253        text-offset: 0;
    206         text-halo-color: #00FFFF;
    207         text-halo-radius:2
    208 }       
    209 
    210 area["addr:street"^="B"], relation[type=multipolygon]["addr:street"^="B"]
     254        text-halo-color: #ffffff;
     255        text-halo-radius: 2;
     256}       
     257way|z-17["highway"]["name"]
     258{
     259        color: #ffffff;
     260        width: 3;
     261        text: ;
     262}       
     263
     264        /* all known characters in different colors */
     265
     266area["addr:street"=~/^[AАΑ]/],
     267relation[type="associatedStreet"][name=~/^[AАΑ]/] > area["addr:housenumber"]
     268{
     269        fill-color: #81c0ff;
     270        color: #81c0ff;
     271        text-halo-color: #81c0ff;
     272}
     273node["addr:street"=~/^[AАΑ]/]::halo,
     274relation[type="associatedStreet"][name=~/^[AАΑ]/] > node["addr:housenumber"]::halo
     275{
     276        symbol-fill-color: #81c0ff;
     277        text-halo-color: #81c0ff;
     278}
     279way["highway"]["name"=~/^[AАΑ]/]
     280{
     281        color: #81c0ff;
     282        text-halo-color: #81c0ff;
     283}       
     284
     285area["addr:street"=~/^[Ä1БΒÁÀÂÆ]/],
     286relation[type="associatedStreet"][name=~/^[Ä1БΒÁÀÂÆ]/] > area["addr:housenumber"]
     287{
     288        fill-color: #e1bd6a;
     289        color: #e1bd6a;
     290        text-halo-color: #e1bd6a;
     291}
     292node["addr:street"=~/^[Ä1БΒÁÀÂÆ]/]::halo,
     293relation[type="associatedStreet"][name=~/^[Ä1БΒÁÀÂÆ]/] > node["addr:housenumber"]::halo
     294{
     295        symbol-fill-color: #e1bd6a;
     296        text-halo-color: #e1bd6a;
     297}
     298way["highway"]["name"=~/^[Ä1БΒÁÀÂÆ]/]
     299{
     300        color: #e1bd6a;
     301        text-halo-color: #e1bd6a;
     302}       
     303
     304area["addr:street"=~/^[BВΓ]/],
     305relation[type="associatedStreet"][name=~/^[BВΓ]/] > area["addr:housenumber"]
    211306{
    212307        fill-color: #7fffd4;
    213308        color: #7fffd4;
    214         width: 3;
    215         fill-opacity:0.2;
    216        
    217 }
    218 node["addr:street"^="B"]::halo
     309        text-halo-color: #7fffd4;
     310}
     311node["addr:street"=~/^[BВΓ]/]::halo,
     312relation[type="associatedStreet"][name=~/^[BВΓ]/] > node["addr:housenumber"]::halo
    219313{
    220314        symbol-fill-color: #7fffd4;
    221         symbol-shape: circle;
    222         symbol-size: 20;
    223         z-index: -1;
    224 }
    225 way["highway"]["name"^="B"]
     315        text-halo-color: #7fffd4;
     316}
     317way["highway"]["name"=~/^[BВΓ]/]
    226318{
    227319        color: #7fffd4;
    228         width: 3;
    229         font-size: 12;
    230         text-color: #000000;
    231         text-position: line;
    232         text: "name";
    233         text-offset: 0;
    234320        text-halo-color: #7fffd4;
    235         text-halo-radius:2
    236 }       
    237        
    238 area["addr:street"^="C"], relation[type=multipolygon]["addr:street"^="C"]
     321}       
     322       
     323area["addr:street"=~/^[CГΔÇČ]/],
     324relation[type="associatedStreet"][name=~/^[CГΔÇČ]/] > area["addr:housenumber"]
    239325{
    240326        fill-color: #8a2be2;
    241327        color: #8a2be2;
    242         width: 3;
    243         fill-opacity:0.2;
    244 }
    245 node["addr:street"^="C"]::halo 
     328        text-halo-color: #8a2be2;
     329}
     330node["addr:street"=~/^[CГΔÇČ]/]::halo,
     331relation[type="associatedStreet"][name=~/^[CГΔÇČ]/] > node["addr:housenumber"]::halo
    246332{
    247333        symbol-fill-color: #8a2be2;
    248         symbol-shape: circle;
    249         symbol-size: 20;
    250         z-index: -1;
    251 }
    252 way["highway"]["name"^="C"]
     334        text-halo-color: #8a2be2;
     335}
     336way["highway"]["name"=~/^[CГΔÇČ]/]
    253337{
    254338        color: #8a2be2;
    255         width: 3;
    256         font-size: 12;
    257         text-color: #000000;
    258         text-position: line;
    259         text: "name";
    260         text-offset: 0;
    261339        text-halo-color: #8a2be2;
    262         text-halo-radius:2
    263 }       
    264        
    265 area["addr:street"^="D"], relation[type=multipolygon]["addr:street"^="D"]
     340}       
     341       
     342area["addr:street"=~/^[DДΕ]/],
     343relation[type="associatedStreet"][name=~/^[DДΕ]/] > area["addr:housenumber"]
    266344{
    267345        fill-color: #a52a2a;
    268346        color: #a52a2a;
    269         width: 3;
    270         fill-opacity:0.2;
    271 }
    272 node["addr:street"^="D"]::halo 
     347        text-halo-color: #a52a2a;
     348}
     349node["addr:street"=~/^[DДΕ]/]::halo,
     350relation[type="associatedStreet"][name=~/^[DДΕ]/] > node["addr:housenumber"]::halo
    273351{
    274352        symbol-fill-color: #a52a2a;
    275         symbol-shape: circle;
    276         symbol-size: 20;
    277         z-index: -1;   
    278 }
    279 way["highway"]["name"^="D"]
     353        text-halo-color: #a52a2a;
     354}
     355way["highway"]["name"=~/^[DДΕ]/]
    280356{
    281357        color: #a52a2a;
    282         width: 3;
    283         font-size: 12;
    284         text-color: #000000;
    285         text-position: line;
    286         text: "name";
    287         text-offset: 0;
    288358        text-halo-color: #a52a2a;
    289         text-halo-radius:2
    290 }       
    291        
    292 area["addr:street"^="E"], relation[type=multipolygon]["addr:street"^="E"]
    293 {
    294         fill-color: #e9967a;
    295         color: #e9967a;
    296         width: 3;
    297         fill-opacity:0.2;       
    298 }
    299        
    300 node["addr:street"^="E"]::halo
    301 {
    302         symbol-fill-color: #e9967a;
    303         symbol-shape: circle;
    304         symbol-size: 20;
    305         z-index: -1;
    306 }
    307 way["highway"]["name"^="E"]
    308 {
    309         color: #e9967a;
    310         width: 3;
    311         font-size: 12;
    312         text-color: #000000;
    313         text-position: line;
    314         text: "name";
    315         text-offset: 0;
    316         text-halo-color: #e9967a;
    317         text-halo-radius:2
    318 }       
    319        
    320 area["addr:street"^="F"], relation[type=multipolygon]["addr:street"^="F"]
     359}       
     360       
     361area["addr:street"=~/^[EЕЁΖÊÉÈË]/],
     362relation[type="associatedStreet"][name=~/^[EЕЁΖÊÉÈË]/] > area["addr:housenumber"]
     363{
     364        fill-color: #f0b9a6;
     365        color: #f0b9a6;
     366        text-halo-color: #f0b9a6;
     367}
     368node["addr:street"=~/^[EЕЁΖÊÉÈË]/]::halo,
     369relation[type="associatedStreet"][name=~/^[EЕЁΖÊÉÈË]/] > node["addr:housenumber"]::halo
     370{
     371        symbol-fill-color: #f0b9a6;
     372        text-halo-color: #f0b9a6;
     373}
     374way["highway"]["name"=~/^[EЕЁΖÊÉÈË]/]
     375{
     376        color: #f0b9a6;
     377        text-halo-color: #f0b9a6;
     378}       
     379       
     380area["addr:street"=~/^[FЖΗ]/],
     381relation[type="associatedStreet"][name=~/^[FЖΗ]/] > area["addr:housenumber"]
    321382{
    322383        fill-color: #8fbc8f;
    323384        color: #8fbc8f;
    324         width: 3;
    325         fill-opacity:0.2;
    326 }
    327 node["addr:street"^="F"]::halo 
     385        text-halo-color: #8fbc8f;
     386}
     387node["addr:street"=~/^[FЖΗ]/]::halo,
     388relation[type="associatedStreet"][name=~/^[FЖΗ]/] > node["addr:housenumber"]::halo
    328389{
    329390        symbol-fill-color: #8fbc8f;
    330         symbol-shape: circle;
    331         symbol-size: 20;
    332         z-index: -1;
    333 }
    334 way["highway"]["name"^="F"]
     391        text-halo-color: #8fbc8f;
     392}
     393way["highway"]["name"=~/^[FЖΗ]/]
    335394{
    336395        color: #8fbc8f;
    337         width: 3;
    338         font-size: 12;
    339         text-color: #000000;
    340         text-position: line;
    341         text: "name";
    342         text-offset: 0;
    343396        text-halo-color: #8fbc8f;
    344         text-halo-radius:2
    345 }       
    346        
    347 area["addr:street"^="G"], relation[type=multipolygon]["addr:street"^="G"]
    348 {
    349         fill-color: #2f4f4f;
    350         color: #2f4f4f;
    351         width: 3;
    352         fill-opacity:0.2;
    353 }
    354 node["addr:street"^="G"]::halo
    355 {
    356         symbol-fill-color: #2f4f4f;
    357         symbol-shape: circle;
    358         symbol-size: 20;
    359         z-index: -1;
    360 }
    361 way["highway"]["name"^="G"]
    362 {
    363         color: #2f4f4f;
    364         width: 3;
    365         font-size: 12;
    366         text-color: #000000;
    367         text-position: line;
    368         text: "name";
    369         text-offset: 0;
    370         text-halo-color: #2f4f4f;
    371         text-halo-radius:2
    372 }       
    373        
    374 area["addr:street"^="H"], relation[type=multipolygon]["addr:street"^="H"]
     397}       
     398       
     399area["addr:street"=~/^[GЗĞ]/],
     400relation[type="associatedStreet"][name=~/^[GЗĞ]/] > area["addr:housenumber"]
     401{
     402        fill-color: #1b7777;
     403        color: #1b7777;
     404        text-halo-color: #1b7777;
     405}
     406node["addr:street"=~/^[GЗĞ]/]::halo,
     407relation[type="associatedStreet"][name=~/^[GЗĞ]/] > node["addr:housenumber"]::halo
     408{
     409        symbol-fill-color: #1b7777;
     410        text-halo-color: #1b7777;
     411}
     412way["highway"]["name"=~/^[GЗĞ]/]
     413{
     414        color: #1b7777;
     415        text-halo-color: #1b7777;
     416}       
     417       
     418area["addr:street"=~/^[HИΘ]/],
     419relation[type="associatedStreet"][name=~/^[HИΘ]/] > area["addr:housenumber"]
    375420{
    376421        fill-color: #ff1493;
    377422        color: #ff1493;
    378         width: 3;
    379         fill-opacity:0.2;       
    380 }
    381 node["addr:street"^="H"]::halo 
     423        text-halo-color: #ff1493;
     424}
     425node["addr:street"=~/^[HИΘ]/]::halo,
     426relation[type="associatedStreet"][name=~/^[HИΘ]/] > node["addr:housenumber"]::halo
    382427{
    383428        symbol-fill-color: #ff1493;
    384         symbol-shape: circle;
    385         symbol-size: 20;
    386         z-index: -1;   
    387 }
    388 way["highway"]["name"^="H"]
     429        text-halo-color: #ff1493;
     430}
     431way["highway"]["name"=~/^[HИΘ]/]
    389432{
    390433        color: #ff1493;
    391         width: 3;
    392         font-size: 12;
    393         text-color: #000000;
    394         text-position: line;
    395         text: "name";
    396         text-offset: 0;
    397434        text-halo-color: #ff1493;
    398         text-halo-radius:2
    399 }       
    400        
    401 area["addr:street"^="I"], relation[type=multipolygon]["addr:street"^="I"]
    402 {
    403         fill-color: #1e90ff;
    404         color: #1e90ff;
    405         width: 3;
    406         fill-opacity:0.2;
    407 }
    408 node["addr:street"^="I"]::halo
    409 {
    410         symbol-fill-color: #1e90ff;
    411         symbol-shape: circle;
    412         symbol-size: 20;
    413         z-index: -1;
    414 }
    415 way["highway"]["name"^="I"]
    416 {
    417         color: #1e90ff;
    418         width: 3;
    419         font-size: 12;
    420         text-color: #000000;
    421         text-position: line;
    422         text: "name";
    423         text-offset: 0;
    424         text-halo-color: #1e90ff;
    425         text-halo-radius:2
    426 }       
    427        
    428 area["addr:street"^="J"], relation[type=multipolygon]["addr:street"^="J"]
     435}       
     436       
     437area["addr:street"=~/^[IЙΙÎ]/],
     438relation[type="associatedStreet"][name=~/^[IЙΙÎ]/] > area["addr:housenumber"]
     439{
     440        fill-color: #0072e2;
     441        color: #0072e2;
     442        text-halo-color: #0072e2;
     443}
     444node["addr:street"=~/^[IЙΙÎ]/]::halo,
     445relation[type="associatedStreet"][name=~/^[IЙΙÎ]/] > node["addr:housenumber"]::halo
     446{
     447        symbol-fill-color: #0072e2;
     448        text-halo-color: #0072e2;
     449}
     450way["highway"]["name"=~/^[IЙΙÎ]/]
     451{
     452        color: #0072e2;
     453        text-halo-color: #0072e2;
     454}       
     455       
     456area["addr:street"=~/^[J2КΚ]/],
     457relation[type="associatedStreet"][name=~/^[J2КΚ]/] > area["addr:housenumber"]
    429458{
    430459        fill-color: #228b22;
    431460        color: #228b22;
    432         width: 3;
    433         fill-opacity:0.2;       
    434 }
    435 node["addr:street"^="J"]::halo 
     461        text-halo-color: #228b22;
     462}
     463node["addr:street"=~/^[J2КΚ]/]::halo,
     464relation[type="associatedStreet"][name=~/^[J2КΚ]/] > node["addr:housenumber"]::halo
    436465{
    437466        symbol-fill-color: #228b22;
    438         symbol-shape: circle;
    439         symbol-size: 20;
    440         z-index: -1;   
    441 }
    442 way["highway"]["name"^="J"]
     467        text-halo-color: #228b22;
     468}
     469way["highway"]["name"=~/^[J2КΚ]/]
    443470{
    444471        color: #228b22;
    445         width: 3;
    446         font-size: 12;
    447         text-color: #000000;
    448         text-position: line;
    449         text: "name";
    450         text-offset: 0;
    451472        text-halo-color: #228b22;
    452         text-halo-radius:2
    453 }       
    454        
    455 area["addr:street"^="K"], relation[type=multipolygon]["addr:street"^="K"]
     473}       
     474       
     475area["addr:street"=~/^[KЛΛ]/],
     476relation[type="associatedStreet"][name=~/^[KЛΛ]/] > area["addr:housenumber"]
    456477{
    457478        fill-color: #ffd700;
    458479        color: #ffd700;
    459         width: 3;
    460         fill-opacity:0.2;       
    461 }
    462 node["addr:street"^="K"]::halo 
     480        text-halo-color: #ffd700;
     481}
     482node["addr:street"=~/^[KЛΛ]/]::halo,
     483relation[type="associatedStreet"][name=~/^[KЛΛ]/] > node["addr:housenumber"]::halo
    463484{
    464485        symbol-fill-color: #ffd700;
    465         symbol-shape: circle;
    466         symbol-size: 20;
    467         z-index: -1;   
    468 }
    469 way["highway"]["name"^="K"]
     486        text-halo-color: #ffd700;
     487}
     488way["highway"]["name"=~/^[KЛΛ]/]
    470489{
    471490        color: #ffd700;
    472         width: 3;
    473         font-size: 12;
    474         text-color: #000000;
    475         text-position: line;
    476         text: "name";
    477         text-offset: 0;
    478491        text-halo-color: #ffd700;
    479         text-halo-radius:2
    480 }       
    481        
    482 area["addr:street"^="L"], relation[type=multipolygon]["addr:street"^="L"]
     492}       
     493       
     494area["addr:street"=~/^[LМΜŁ]/],
     495relation[type="associatedStreet"][name=~/^[LМΜŁ]/] > area["addr:housenumber"]
    483496{
    484497        fill-color: #BF9017;
    485498        color: #BF9017;
    486         width: 3;
    487         fill-opacity:0.2;       
    488 }
    489 node["addr:street"^="L"]::halo 
     499        text-halo-color: #BF9017;
     500}
     501node["addr:street"=~/^[LМΜŁ]/]::halo,
     502relation[type="associatedStreet"][name=~/^[LМΜŁ]/] > node["addr:housenumber"]::halo
    490503{
    491504        symbol-fill-color: #BF9017;
    492         symbol-shape: circle;
    493         symbol-size: 20;
    494         z-index: -1;   
    495 }
    496 way["highway"]["name"^="L"]
     505        text-halo-color: #BF9017;
     506}
     507way["highway"]["name"=~/^[LМΜŁ]/]
    497508{
    498509        color: #BF9017;
    499         width: 3;
    500         font-size: 12;
    501         text-color: #000000;
    502         text-position: line;
    503         text: "name";
    504         text-offset: 0;
    505510        text-halo-color:#BF9017;
    506         text-halo-radius:2
    507 }       
    508        
    509 area["addr:street"^="M"], relation[type=multipolygon]["addr:street"^="M"]
     511}       
     512       
     513area["addr:street"=~/^[MНΝ]/],
     514relation[type="associatedStreet"][name=~/^[MНΝ]/] > area["addr:housenumber"]
    510515{
    511516        fill-color: #adff2f;
    512517        color: #adff2f;
    513         width: 3;
    514         fill-opacity:0.2;       
    515 }
    516 node["addr:street"^="M"]::halo 
     518        text-halo-color: #adff2f;
     519}
     520node["addr:street"=~/^[MНΝ]/]::halo,
     521relation[type="associatedStreet"][name=~/^[MНΝ]/] > node["addr:housenumber"]::halo
    517522{
    518523        symbol-fill-color: #adff2f;
    519         symbol-shape: circle;
    520         symbol-size: 20;
    521         z-index: -1;   
    522 }
    523 way["highway"]["name"^="M"]
     524        text-halo-color: #adff2f;
     525}
     526way["highway"]["name"=~/^[MНΝ]/]
    524527{
    525528        color: #adff2f;
    526         width: 3;
    527         font-size: 12;
    528         text-color: #000000;
    529         text-position: line;
    530         text: "name";
    531         text-offset: 0;
    532529        text-halo-color: #adff2f;
    533         text-halo-radius:2
    534 }       
    535        
    536 area["addr:street"^="N"], relation[type=multipolygon]["addr:street"^="N"]
     530}       
     531       
     532area["addr:street"=~/^[NОΞÑ]/],
     533relation[type="associatedStreet"][name=~/^[NОΞÑ]/] > area["addr:housenumber"]
    537534{
    538535        fill-color: #ff69b4;
    539536        color: #ff69b4;
    540         width: 3;
    541         fill-opacity:0.2;       
    542 }
    543 node["addr:street"^="N"]::halo 
     537        text-halo-color: #ff69b4;
     538}
     539node["addr:street"=~/^[NОΞÑ]/]::halo,
     540relation[type="associatedStreet"][name=~/^[NОΞÑ]/] > node["addr:housenumber"]::halo
    544541{
    545542        symbol-fill-color: #ff69b4;
    546         symbol-shape: circle;
    547         symbol-size: 20;
    548         z-index: -1;   
    549 }
    550 way["highway"]["name"^="N"]
     543        text-halo-color: #ff69b4;
     544}
     545way["highway"]["name"=~/^[NОΞÑ]/]
    551546{
    552547        color: #ff69b4;
    553         width: 3;
    554         font-size: 12;
    555         text-color: #000000;
    556         text-position: line;
    557         text: "name";
    558         text-offset: 0;
    559548        text-halo-color: #ff69b4;
    560         text-halo-radius:2
    561 }       
    562        
    563 area["addr:street"^="O"], relation[type=multipolygon]["addr:street"^="O"]
     549}       
     550       
     551area["addr:street"=~/^[OПΟ]/],
     552relation[type="associatedStreet"][name=~/^[OПΟ]/] > area["addr:housenumber"]
    564553{
    565554        fill-color: #cd5c5c;
    566555        color: #cd5c5c;
    567         width: 3;
    568         fill-opacity:0.2;       
    569 }
    570 node["addr:street"^="O"]::halo 
     556        text-halo-color: #cd5c5c;
     557}
     558node["addr:street"=~/^[OПΟ]/]::halo,
     559relation[type="associatedStreet"][name=~/^[OПΟ]/] > node["addr:housenumber"]::halo
    571560{
    572561        symbol-fill-color: #cd5c5c;
    573         symbol-shape: circle;
    574         symbol-size: 20;
    575         z-index: -1;   
    576 }
    577 way["highway"]["name"^="O"]
     562        text-halo-color: #cd5c5c;
     563}
     564way["highway"]["name"=~/^[OПΟ]/]
    578565{
    579566        color: #cd5c5c;
    580         width: 3;
    581         font-size: 12;
    582         text-color: #000000;
    583         text-position: line;
    584         text: "name";
    585         text-offset: 0;
    586567        text-halo-color: #cd5c5c;
    587         text-halo-radius:2
    588 }       
    589        
    590 area["addr:street"^="P"], relation[type=multipolygon]["addr:street"^="P"]
    591 {
    592         fill-color: #4b0082;
    593         color: #4b0082;
    594         width: 3;
    595         fill-opacity:0.2;       
    596 }
    597 node["addr:street"^="P"]::halo
    598 {
    599         symbol-fill-color: #4b0082;
    600         symbol-shape: circle;
    601         symbol-size: 20;
    602         z-index: -1;   
    603 }
    604 way["highway"]["name"^="P"]
    605 {
    606         color: #4b0082;
    607         width: 3;
    608         font-size: 12;
    609         text-color: #000000;
    610         text-position: line;
    611         text: "name";
    612         text-offset: 0;
    613         text-halo-color: #4b0082;
    614         text-halo-radius:2
    615 }       
    616        
    617 area["addr:street"^="Q"], relation[type=multipolygon]["addr:street"^="Q"]
     568}       
     569
     570area["addr:street"=~/^[Ö3РΠØÓÔŒ]/],
     571relation[type="associatedStreet"][name=~/^[Ö3РΠØÓÔŒ]/] > area["addr:housenumber"]
     572{
     573        fill-color: #81621a;
     574        color: #81621a;
     575        text-halo-color: #81621a;
     576}
     577node["addr:street"=~/^[Ö3РΠØÓÔŒ]/]::halo,
     578relation[type="associatedStreet"][name=~/^[Ö3РΠØÓÔŒ]/] > node["addr:housenumber"]::halo
     579{
     580        symbol-fill-color: #81621a;
     581        text-halo-color: #81621a;
     582}
     583way["highway"]["name"=~/^[Ö3РΠØÓÔŒ]/] 
     584{
     585        color: #81621a;
     586        text-halo-color: #81621a;
     587}
     588       
     589area["addr:street"=~/^[PС]/],
     590relation[type="associatedStreet"][name=~/^[PС]/] > area["addr:housenumber"]
     591{
     592        fill-color: #824b00;
     593        color: #824b00;
     594        text-halo-color: #824b00;
     595}
     596node["addr:street"=~/^[PС]/]::halo,
     597relation[type="associatedStreet"][name=~/^[PС]/] > node["addr:housenumber"]::halo
     598{
     599        symbol-fill-color: #824b00;
     600        text-halo-color: #824b00;
     601}
     602way["highway"]["name"=~/^[PС]/]
     603{
     604        color: #824b00;
     605        text-halo-color: #824b00;
     606}       
     607       
     608area["addr:street"=~/^[Q4ТΡ]/],
     609relation[type="associatedStreet"][name=~/^[Q4ТΡ]/] > area["addr:housenumber"]
    618610{
    619611        fill-color: #f08080;
    620612        color: #f08080;
    621         width: 3;
    622         fill-opacity:0.2;       
    623 }
    624 node["addr:street"^="Q"]::halo 
     613        text-halo-color: #f08080;
     614}
     615node["addr:street"=~/^[Q4ТΡ]/]::halo,
     616relation[type="associatedStreet"][name=~/^[Q4ТΡ]/] > node["addr:housenumber"]::halo
    625617{
    626618        symbol-fill-color: #f08080;
    627         symbol-shape: circle;
    628         symbol-size: 20;
    629         z-index: -1;   
    630 }
    631 way["highway"]["name"^="Q"]
     619        text-halo-color: #f08080;
     620}
     621way["highway"]["name"=~/^[Q4ТΡ]/]
    632622{
    633623        color: #f08080;
    634         width: 3;
    635         font-size: 12;
    636         text-color: #000000;
    637         text-position: line;
    638         text: "name";
    639         text-offset: 0;
    640624        text-halo-color: #f08080;
    641         text-halo-radius:2     
    642 }       
    643        
    644 area["addr:street"^="R"], relation[type=multipolygon]["addr:street"^="R"]
     625}       
     626       
     627area["addr:street"=~/^[RУΣ]/],
     628relation[type="associatedStreet"][name=~/^[RУΣ]/] > area["addr:housenumber"]
    645629{
    646630        fill-color: #F75617;
    647631        color: #F75617;
    648         width: 3;
    649         fill-opacity:0.2;       
    650 }
    651 node["addr:street"^="R"]::halo 
     632        text-halo-color: #F75617;
     633}
     634node["addr:street"=~/^[RУΣ]/]::halo,
     635relation[type="associatedStreet"][name=~/^[RУΣ]/] > node["addr:housenumber"]::halo
    652636{
    653637        symbol-fill-color: #F75617;
    654         symbol-shape: circle;
    655         symbol-size: 20;
    656         z-index: -1;   
    657 }
    658 way["highway"]["name"^="R"]
     638        text-halo-color: #F75617;
     639}
     640way["highway"]["name"=~/^[RУΣ]/]
    659641{
    660642        color: #F75617;
    661         width: 3;
    662         font-size: 12;
    663         text-color: #000000;
    664         text-position: line;
    665         text: "name";
    666         text-offset: 0;
    667643        text-halo-color: #F75617;
    668         text-halo-radius:2     
    669644}
    670645               
    671 area["addr:street"^="S"], relation[type=multipolygon]["addr:street"^="S"]
     646area["addr:street"=~/^[SХΤŞ]/],
     647relation[type="associatedStreet"][name=~/^[SХΤŞ]/] > area["addr:housenumber"]
    672648{
    673649        fill-color: #32cd32;
    674650        color: #32cd32;
    675         width: 3;
    676         fill-opacity:0.2;       
    677 }
    678 node["addr:street"^="S"]::halo 
     651        text-halo-color: #32cd32;
     652}
     653node["addr:street"=~/^[SХΤŞ]/]::halo,
     654relation[type="associatedStreet"][name=~/^[SХΤŞ]/] > node["addr:housenumber"]::halo
    679655{
    680656        symbol-fill-color: #32cd32;
    681         symbol-shape: circle;
    682         symbol-size: 20;
    683         z-index: -1;   
    684 }
    685 way["highway"]["name"^="S"]
     657        text-halo-color: #32cd32;
     658}
     659way["highway"]["name"=~/^[SХΤŞ]/]
    686660{
    687661        color: #32cd32;
    688         width: 3;
    689         font-size: 12;
    690         text-color: #000000;
    691         text-position: line;
    692         text: "name";
    693         text-offset: 0;
    694662        text-halo-color: #32cd32;
    695         text-halo-radius:2     
    696663}
    697664               
    698 area["addr:street"^="T"], relation[type=multipolygon]["addr:street"^="T"]
     665area["addr:street"=~/^[TЦΥ]/],
     666relation[type="associatedStreet"][name=~/^[TЦΥ]/] > area["addr:housenumber"]
    699667{
    700668        fill-color: #ba55d3;
    701669        color: #ba55d3;
    702         width: 3;
    703         fill-opacity:0.2;       
    704 }
    705 node["addr:street"^="T"]::halo 
     670        text-halo-color: #ba55d3;
     671}
     672node["addr:street"=~/^[TЦΥ]/]::halo,
     673relation[type="associatedStreet"][name=~/^[TЦΥ]/] > node["addr:housenumber"]::halo
    706674{
    707675        symbol-fill-color: #ba55d3;
    708         symbol-shape: circle;
    709         symbol-size: 20;
    710         z-index: -1;   
    711 }
    712 way["highway"]["name"^="T"]
     676        text-halo-color: #ba55d3;
     677}
     678way["highway"]["name"=~/^[TЦΥ]/]
    713679{
    714680        color: #ba55d3;
    715         width: 3;
    716         font-size: 12;
    717         text-color: #000000;
    718         text-position: line;
    719         text: "name";
    720         text-offset: 0;
    721681        text-halo-color: #ba55d3;
    722         text-halo-radius:2     
    723682}
    724683               
    725 area["addr:street"^="U"], relation[type=multipolygon]["addr:street"^="U"]
     684area["addr:street"=~/^[UЧ]/],
     685relation[type="associatedStreet"][name=~/^[UЧ]/] > area["addr:housenumber"]
    726686{
    727687        fill-color: #9370db;
    728688        color: #9370db;
    729         width: 3;
    730         fill-opacity:0.2;       
    731 }
    732 node["addr:street"^="U"]::halo 
     689        text-halo-color: #9370db;
     690}
     691node["addr:street"=~/^[UЧ]/]::halo,
     692relation[type="associatedStreet"][name=~/^[UЧ]/] > node["addr:housenumber"]::halo
    733693{
    734694        symbol-fill-color: #9370db;
    735         symbol-shape: circle;
    736         symbol-size: 20;
    737         z-index: -1;
    738 }
    739 way["highway"]["name"^="U"]
     695        text-halo-color: #9370db;
     696}
     697way["highway"]["name"=~/^[UЧ]/]
    740698{
    741699        color: #9370db;
    742         width: 3;
    743         font-size: 12;
    744         text-color: #000000;
    745         text-position: line;
    746         text: "name";
    747         text-offset: 0;
    748700        text-halo-color: #9370db;
    749         text-halo-radius:2     
    750701}
    751702               
    752 area["addr:street"^="V"], relation[type=multipolygon]["addr:street"^="V"]
     703area["addr:street"=~/^[Ü5ШЩΦÚÙÛ]/],
     704relation[type="associatedStreet"][name=~/^[Ü5ШЩΦÚÙÛ]/] > area["addr:housenumber"]
     705{
     706        fill-color: #ff7c00;
     707        color: #ff7c00;
     708        text-halo-color: #ff7c00;
     709}
     710node["addr:street"=~/^[Ü5ШЩΦÚÙÛ]/]::halo,
     711relation[type="associatedStreet"][name=~/^[Ü5ШЩΦÚÙÛ]/] > node["addr:housenumber"]::halo
     712{
     713        symbol-fill-color: #ff7c00;
     714        text-halo-color: #ff7c00;
     715}
     716way["highway"]["name"=~/^[Ü5ШЩΦÚÙÛ]/]
     717{
     718        color: #ff7c00;
     719        text-halo-color: #ff7c00;
     720}
     721
     722area["addr:street"=~/^[V6Ы]/],
     723relation[type="associatedStreet"][name=~/^[V6Ы]/] > area["addr:housenumber"]
    753724{
    754725        fill-color: #3cb371;
    755726        color: #3cb371;
    756         width: 3;
    757         fill-opacity:0.2;       
    758 }
    759 node["addr:street"^="V"]::halo 
     727        text-halo-color: #3cb371;
     728}
     729node["addr:street"=~/^[V6Ы]/]::halo,
     730relation[type="associatedStreet"][name=~/^[V6Ы]/] > node["addr:housenumber"]::halo
    760731{
    761732        symbol-fill-color: #3cb371;
    762         symbol-shape: circle;
    763         symbol-size: 20;
    764         z-index: -1;   
    765 }
    766 way["highway"]["name"^="V"]
     733        text-halo-color: #3cb371;
     734}
     735way["highway"]["name"=~/^[V6Ы]/]
    767736{
    768737        color: #3cb371;
    769         width: 3;
    770         font-size: 12;
    771         text-color: #000000;
    772         text-position: line;
    773         text: "name";
    774         text-offset: 0;
    775738        text-halo-color: #3cb371;
    776         text-halo-radius:2     
    777739}
    778740               
    779 area["addr:street"^="W"], relation[type=multipolygon]["addr:street"^="W"]
     741area["addr:street"=~/^[W7ЬΧ]/],
     742relation[type="associatedStreet"][name=~/^[W7ЬΧ]/] > area["addr:housenumber"]
    780743{
    781744        fill-color: #808000;
    782745        color: #808000;
    783         width: 3;
    784         fill-opacity:0.2;       
    785 }
    786 node["addr:street"^="W"]::halo 
     746        text-halo-color: #808000;
     747}
     748node["addr:street"=~/^[W7ЬΧ]/]::halo,
     749relation[type="associatedStreet"][name=~/^[W7ЬΧ]/] > node["addr:housenumber"]::halo
    787750{
    788751        symbol-fill-color: #808000;
    789         symbol-shape: circle;
    790         symbol-size: 20;
    791         z-index: -1;   
    792 }
    793 way["highway"]["name"^="W"]
     752        text-halo-color: #808000;
     753
     754}
     755way["highway"]["name"=~/^[W7ЬΧ]/]
    794756{
    795757        color: #808000;
    796         width: 3;
    797         font-size: 12;
    798         text-color: #000000;
    799         text-position: line;
    800         text: "name";
    801         text-offset: 0;
    802758        text-halo-color: #808000;
    803         text-halo-radius:2     
    804 }
    805        
    806 area["addr:street"^="X"], relation[type=multipolygon]["addr:street"^="X"]
     759}
     760       
     761area["addr:street"=~/^[X8ЭФΨ]/],
     762relation[type="associatedStreet"][name=~/^[X8ЭФΨ]/] > area["addr:housenumber"]
    807763{
    808764        fill-color: #7cfc00 ;
    809765        color: #7cfc00 ;
    810         width: 3;
    811         fill-opacity:0.2;       
    812 }
    813 node["addr:street"^="X"]::halo 
     766        text-halo-color: #7cfc00;
     767}
     768node["addr:street"=~/^[X8ЭФΨ]/]::halo,
     769relation[type="associatedStreet"][name=~/^[X8ЭФΨ]/] > node["addr:housenumber"]::halo
    814770{
    815771        symbol-fill-color: #7cfc00;
    816         symbol-shape: circle;
    817         symbol-size: 20;
    818         z-index: -1;   
    819 }
    820 way["highway"]["name"^="X"]
     772        text-halo-color: #7cfc00;
     773       
     774}
     775way["highway"]["name"=~/^[X8ЭФΨ]/]
    821776{
    822777        color: #7cfc00;
    823         width: 3;
    824         font-size: 12;
    825         text-color: #000000;
    826         text-position: line;
    827         text: "name";
    828         text-offset: 0;
    829778        text-halo-color: #7cfc00;
    830         text-halo-radius:2     
    831779}
    832780               
    833 area["addr:street"^="Y"], relation[type=multipolygon]["addr:street"^="Y"]
     781area["addr:street"=~/^[Y9ЮЪΩ]/],
     782relation[type="associatedStreet"][name=~/^[Y9ЮЪΩ]/] > area["addr:housenumber"]
    834783{
    835784        fill-color: #6b8e23;
    836785        color: #6b8e23;
    837         width: 3;
    838         fill-opacity:0.2;       
    839 }
    840 node["addr:street"^="Y"]::halo 
    841 { 
     786        text-halo-color: #6b8e23;
     787}
     788node["addr:street"=~/^[Y9ЮЪΩ]/]::halo,
     789relation[type="associatedStreet"][name=~/^[Y9ЮЪΩ]/] > node["addr:housenumber"]::halo
     790{
    842791        symbol-fill-color: #6b8e23;
    843         symbol-shape: circle;
    844         symbol-size: 20;
    845         z-index: -1;   
    846 }
    847 way["highway"]["name"^="Y"]
     792        text-halo-color: #6b8e23;
     793}
     794way["highway"]["name"=~/^[Y9ЮЪΩ]/]
    848795{
    849796        color: #6b8e23;
    850         width: 3;
    851         font-size: 12;
    852         text-color: #000000;
    853         text-position: line;
    854         text: "name";
    855         text-offset: 0;
    856797        text-halo-color: #6b8e23;
    857         text-halo-radius:2     
    858798}
    859799               
    860 area["addr:street"^="Z"], relation[type=multipolygon]["addr:street"^="Z"]
    861 {
    862         fill-color: #ff4500;
    863         color: #ff4500;
    864         width: 3;
    865         fill-opacity:0.2;       
    866 }
    867 node["addr:street"^="Z"]::halo
    868 {
    869         symbol-fill-color: #ff4500;
    870         symbol-shape: circle;
    871         symbol-size: 20;
    872         z-index: -1;   
    873 }
    874 way["highway"]["name"^="Z"]
    875 {
    876         color: #ff4500;
    877         width: 3;
    878         font-size: 12;
    879         text-color: #000000;
    880         text-position: line;
    881         text: "name";
    882         text-offset: 0;
    883         text-halo-color: #ff4500;
    884         text-halo-radius:2     
     800area["addr:street"=~/^[Z0ЯŽ]/],
     801relation[type="associatedStreet"][name=~/^[Z0ЯŽ]/] > area["addr:housenumber"]
     802{
     803        fill-color: #ff4444;
     804        color: #ff4444;
     805        text-halo-color: #ff4444;
     806}
     807node["addr:street"=~/^[Z0ЯŽ]/]::halo,
     808relation[type="associatedStreet"][name=~/^[Z0ЯŽ]/] > node["addr:housenumber"]::halo
     809{
     810        symbol-fill-color: #ff4444;
     811        text-halo-color: #ff4444;
     812}
     813way["highway"]["name"=~/^[Z0ЯŽ]/]
     814{
     815        color: #ff4444;
     816        text-halo-color: #ff4444;
    885817}
    886818       
    887819
    888820/* have housenumber, miss street */
    889 area[building][addr:housenumber][!addr:street]
    890 {
    891         text: eval("street?");
    892         width: 2;
     821node[addr:housenumber][!addr:street],
     822area[addr:housenumber][!addr:street]
     823{
     824        isinassociatedstreetrelation: eval(cond(parent_tag(type)="associatedStreet",true,false));
     825}
     826area[addr:housenumber][!addr:street][prop(isinassociatedstreetrelation)=false]
     827{
     828        text: eval(cond(has_tag_key(name), concat("street? ", tag("addr:housenumber"), " | ", tag("name")),concat("street? ", tag("addr:housenumber"))));
     829        text-halo-color: red;
     830        text-halo-radius: 2;
     831        text-halo-opacity: 0.8;
     832        width: 2;
    893833        fill-color: #FF0000; 
    894         fill-opacity:0.9;
     834        fill-opacity:0.7;
    895835        text-color: #000000;
    896836        font-size: 10;
     
    899839       
    900840}
    901 node[addr:housenumber][!addr:street]::halo
    902 {
    903         text: eval("street?");
     841node[addr:housenumber][!addr:street][prop(isinassociatedstreetrelation)=false]::halo
     842{
     843        text: eval(concat("street? ", tag("addr:housenumber")));
     844        font-size: 12;
     845        text-color: black;
     846        text-halo-color: red;
     847        text-halo-radius: 2;
     848        text-halo-opacity: 0.8;
     849        text-anchor-vertical: center;
    904850        symbol-shape: triangle;
    905851        symbol-fill-opacity:0.7;
     
    911857
    912858/* have street, miss housenumber */
    913 area[addr:street][!addr:housenumber]
    914 {
    915         width: 2;
     859area[addr:street][!addr:housenumber][!highway]
     860{
     861        width: 3;
     862        text-halo-radius: 2;
    916863        fill-color: #FF0000; 
    917         fill-opacity:0.9;
    918         text: eval("number?");
     864        fill-opacity:0.7;
     865        text: eval(cond(has_tag_key(name), concat("number? | ", tag("name")), "number?"));
     866        text-position: center;
    919867        text-color: #000000;
    920         font-size: 10;
     868        font-size: 12;
    921869        casing-width: 1;
    922870        casing-color: #FFFF00; 
    923871}
    924 node["addr:street"][!"addr:housenumber"][!amenity]::halo
     872node["addr:street"][!"addr:housenumber"]::halo
    925873{
    926874        text: eval("number?");
    927         text-color: #FF0000;
     875        text-color: black;
    928876        font-size: 12;
    929877        symbol-shape: triangle;
     
    939887way["highway"]["addr:postcode"],
    940888way["highway"]["addr:city"],
    941 way["highway"]["addr:street"]
     889way["highway"]["addr:street"],
     890way["highway"]["addr:housenumber"]
    942891{
    943892        text: eval("no addr!");
     
    947896        dashes-background-color: #FFFF00;
    948897        object-z-index:-1.0;
    949 }
    950        
    951 /* all marked  housenumber in black color */
     898        text-halo-color: red;
     899        text-halo-radius: 2;
     900}
     901       
     902/* names of nodes */
    952903node["addr:housenumber"]
    953904{
    954905        font-size: 10;
    955         text-color: black;     
     906        text-color: white;
     907        text-anchor-vertical: center;
     908        text-offset-y: -10;
     909        text-offset-x: 8;
     910}
     911
     912/* disable double numbers */
     913node["addr:housenumber"][!name]
     914{
     915        font-size: 0;
    956916}
    957 area[building]["addr:housenumber"]
     917
     918/* names for adress nodes without number */
     919node[!"addr:housenumber"][name][addr:street]
     920{
     921        font-size: 10;
     922        text-color: white;
     923        text-anchor-vertical: center;
     924        text-offset-y: -10;
     925        text-offset-x: 8;
     926}
     927
     928/* text style of areas with number */
     929way:closed["addr:housenumber"],
     930relation[type=multipolygon]["addr:housenumber"],
     931relation[type="associatedStreet"] > area["addr:housenumber"]
    958932{
    959933        text-color: black;
    960         font-size: 10; 
    961 }
    962        
    963 /* higway=residetial without name */   
     934        font-size: 12;
     935        text-position: center;
     936
     937}
     938
     939/* text style of highways and false addr */
     940
     941way[highway]
     942{
     943        text-color: black;
     944        font-size: 12;
     945}
     946       
     947/* higway=residential without name */   
    964948way[highway=residential][!name]
    965949{
     
    972956        text-offset: 0;
    973957        text-halo-color: #FF0000;
    974         text-halo-radius:2;
     958        text-halo-radius: 2;
    975959        dashes: 20,4;
    976960        dashes-background-color: #FFFF00;
    977961       
    978962}
     963/* tone down garages and other "small" buildings, as they usually do not have addr:*=* tags. */
     964
     965area[building=bunker][!"addr:housenumber"][!"addr:street"],
     966area[building=cabin][!"addr:housenumber"][!"addr:street"],
     967area[building=farm_auxiliary][!"addr:housenumber"][!"addr:street"],
     968area[building=garage][!"addr:housenumber"][!"addr:street"],
     969area[building=garages][!"addr:housenumber"][!"addr:street"],
     970area[building=hut][!"addr:housenumber"][!"addr:street"],
     971area[building=roof][!"addr:housenumber"][!"addr:street"],
     972area[building=shed][!"addr:housenumber"][!"addr:street"]
     973{
     974        fill-color: #ffddf1;
     975        width: 1;
     976}
    979977}}}