Changes between Initial Version and Version 1 of Styles/Coloured_Streets


Ignore:
Timestamp:
2012-12-27T17:53:07+01:00 (13 years ago)
Author:
geozeisig
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Styles/Coloured_Streets

    v1 v1  
     1{{{
     2#!style type="mapcss"
     3
     4meta
     5{
     6        title: "Coloured Addresses";
     7        version: "0.1.[[revision]]_[[date]]";
     8        description: "Coloring of buildings in the color of the street";
     9        author: "geozeisig";
     10        watch-modified: true;
     11}
     12
     13
     14/* highlight buildings */
     15area["addr:street"^="A"], relation[type=multipolygon]["addr:street"^="A"]
     16{
     17        fill-color: #00FFFF;
     18        color: #00FFFF;
     19        width: 3;
     20        fill-opacity:0.2;
     21        }
     22node["addr:street"^="A"]::halo
     23{
     24        symbol-fill-color: #00FFFF;
     25        symbol-shape: circle;
     26        symbol-size: 20;
     27        z-index: -1;
     28}
     29way["highway"]["name"^="A"]
     30{
     31        color: #00FFFF;
     32        width: 3;
     33        font-size: 12;
     34        text-color: #000000;
     35        text-position: line;
     36        text: "name";
     37        text-offset: 0;
     38        text-halo-color: #00FFFF;
     39        text-halo-radius:2
     40}       
     41
     42area["addr:street"^="B"], relation[type=multipolygon]["addr:street"^="B"]
     43{
     44        fill-color: #7fffd4;
     45        color: #7fffd4;
     46        width: 3;
     47        fill-opacity:0.2;
     48       
     49}
     50node["addr:street"^="B"]::halo
     51{
     52        symbol-fill-color: #7fffd4;
     53        symbol-shape: circle;
     54        symbol-size: 20;
     55        z-index: -1;
     56}
     57way["highway"]["name"^="B"]
     58{
     59        color: #7fffd4;
     60        width: 3;
     61        font-size: 12;
     62        text-color: #000000;
     63        text-position: line;
     64        text: "name";
     65        text-offset: 0;
     66        text-halo-color: #7fffd4;
     67        text-halo-radius:2
     68}       
     69       
     70area["addr:street"^="C"], relation[type=multipolygon]["addr:street"^="C"]
     71{
     72        fill-color: #8a2be2;
     73        color: #8a2be2;
     74        width: 3;
     75        fill-opacity:0.2;
     76}
     77node["addr:street"^="C"]::halo
     78{
     79        symbol-fill-color: #8a2be2;
     80        symbol-shape: circle;
     81        symbol-size: 20;
     82        z-index: -1;
     83}
     84way["highway"]["name"^="C"]
     85{
     86        color: #8a2be2;
     87        width: 3;
     88        font-size: 12;
     89        text-color: #000000;
     90        text-position: line;
     91        text: "name";
     92        text-offset: 0;
     93        text-halo-color: #8a2be2;
     94        text-halo-radius:2
     95}       
     96       
     97area["addr:street"^="D"], relation[type=multipolygon]["addr:street"^="D"]
     98{
     99        fill-color: #a52a2a;
     100        color: #a52a2a;
     101        width: 3;
     102        fill-opacity:0.2;
     103}
     104node["addr:street"^="D"]::halo
     105{
     106        symbol-fill-color: #a52a2a;
     107        symbol-shape: circle;
     108        symbol-size: 20;
     109        z-index: -1;   
     110}
     111way["highway"]["name"^="D"]
     112{
     113        color: #a52a2a;
     114        width: 3;
     115        font-size: 12;
     116        text-color: #000000;
     117        text-position: line;
     118        text: "name";
     119        text-offset: 0;
     120        text-halo-color: #a52a2a;
     121        text-halo-radius:2
     122}       
     123       
     124area["addr:street"^="E"], relation[type=multipolygon]["addr:street"^="E"]
     125{
     126        fill-color: #e9967a;
     127        color: #e9967a;
     128        width: 3;
     129        fill-opacity:0.2;       
     130}
     131       
     132node["addr:street"^="E"]::halo
     133{
     134        symbol-fill-color: #e9967a;
     135        symbol-shape: circle;
     136        symbol-size: 20;
     137        z-index: -1;
     138}
     139way["highway"]["name"^="E"]
     140{
     141        color: #e9967a;
     142        width: 3;
     143        font-size: 12;
     144        text-color: #000000;
     145        text-position: line;
     146        text: "name";
     147        text-offset: 0;
     148        text-halo-color: #e9967a;
     149        text-halo-radius:2
     150}       
     151       
     152area["addr:street"^="F"], relation[type=multipolygon]["addr:street"^="F"]
     153{
     154        fill-color: #8fbc8f;
     155        color: #8fbc8f;
     156        width: 3;
     157        fill-opacity:0.2;
     158}
     159node["addr:street"^="F"]::halo
     160{
     161        symbol-fill-color: #8fbc8f;
     162        symbol-shape: circle;
     163        symbol-size: 20;
     164        z-index: -1;
     165}
     166way["highway"]["name"^="F"]
     167{
     168        color: #8fbc8f;
     169        width: 3;
     170        font-size: 12;
     171        text-color: #000000;
     172        text-position: line;
     173        text: "name";
     174        text-offset: 0;
     175        text-halo-color: #8fbc8f;
     176        text-halo-radius:2
     177}       
     178       
     179area["addr:street"^="G"], relation[type=multipolygon]["addr:street"^="G"]
     180{
     181        fill-color: #2f4f4f;
     182        color: #2f4f4f;
     183        width: 3;
     184        fill-opacity:0.2;
     185}
     186node["addr:street"^="G"]::halo
     187{
     188        symbol-fill-color: #2f4f4f;
     189        symbol-shape: circle;
     190        symbol-size: 20;
     191        z-index: -1;
     192}
     193way["highway"]["name"^="G"]
     194{
     195        color: #2f4f4f;
     196        width: 3;
     197        font-size: 12;
     198        text-color: #000000;
     199        text-position: line;
     200        text: "name";
     201        text-offset: 0;
     202        text-halo-color: #2f4f4f;
     203        text-halo-radius:2
     204}       
     205       
     206area["addr:street"^="H"], relation[type=multipolygon]["addr:street"^="H"]
     207{
     208        fill-color: #ff1493;
     209        color: #ff1493;
     210        width: 3;
     211        fill-opacity:0.2;       
     212}
     213node["addr:street"^="H"]::halo
     214{
     215        symbol-fill-color: #ff1493;
     216        symbol-shape: circle;
     217        symbol-size: 20;
     218        z-index: -1;   
     219}
     220way["highway"]["name"^="H"]
     221{
     222        color: #ff1493;
     223        width: 3;
     224        font-size: 12;
     225        text-color: #000000;
     226        text-position: line;
     227        text: "name";
     228        text-offset: 0;
     229        text-halo-color: #ff1493;
     230        text-halo-radius:2
     231}       
     232       
     233area["addr:street"^="I"], relation[type=multipolygon]["addr:street"^="I"]
     234{
     235        fill-color: #1e90ff;
     236        color: #1e90ff;
     237        width: 3;
     238        fill-opacity:0.2;
     239}
     240node["addr:street"^="I"]::halo
     241{
     242        symbol-fill-color: #1e90ff;
     243        symbol-shape: circle;
     244        symbol-size: 20;
     245        z-index: -1;
     246}
     247way["highway"]["name"^="I"]
     248{
     249        color: #1e90ff;
     250        width: 3;
     251        font-size: 12;
     252        text-color: #000000;
     253        text-position: line;
     254        text: "name";
     255        text-offset: 0;
     256        text-halo-color: #1e90ff;
     257        text-halo-radius:2
     258}       
     259       
     260area["addr:street"^="J"], relation[type=multipolygon]["addr:street"^="J"]
     261{
     262        fill-color: #228b22;
     263        color: #228b22;
     264        width: 3;
     265        fill-opacity:0.2;       
     266}
     267node["addr:street"^="J"]::halo
     268{
     269        symbol-fill-color: #228b22;
     270        symbol-shape: circle;
     271        symbol-size: 20;
     272        z-index: -1;   
     273}
     274way["highway"]["name"^="J"]
     275{
     276        color: #228b22;
     277        width: 3;
     278        font-size: 12;
     279        text-color: #000000;
     280        text-position: line;
     281        text: "name";
     282        text-offset: 0;
     283        text-halo-color: #228b22;
     284        text-halo-radius:2
     285}       
     286       
     287area["addr:street"^="K"], relation[type=multipolygon]["addr:street"^="K"]
     288{
     289        fill-color: #ffd700;
     290        color: #ffd700;
     291        width: 3;
     292        fill-opacity:0.2;       
     293}
     294node["addr:street"^="K"]::halo
     295{
     296        symbol-fill-color: #ffd700;
     297        symbol-shape: circle;
     298        symbol-size: 20;
     299        z-index: -1;   
     300}
     301way["highway"]["name"^="K"]
     302{
     303        color: #ffd700;
     304        width: 3;
     305        font-size: 12;
     306        text-color: #000000;
     307        text-position: line;
     308        text: "name";
     309        text-offset: 0;
     310        text-halo-color: #ffd700;
     311        text-halo-radius:2
     312}       
     313       
     314area["addr:street"^="L"], relation[type=multipolygon]["addr:street"^="L"]
     315{
     316        fill-color: #BF9017;
     317        color: #BF9017;
     318        width: 3;
     319        fill-opacity:0.2;       
     320}
     321node["addr:street"^="L"]::halo
     322{
     323        symbol-fill-color: #BF9017;
     324        symbol-shape: circle;
     325        symbol-size: 20;
     326        z-index: -1;   
     327}
     328way["highway"]["name"^="L"]
     329{
     330        color: #BF9017;
     331        width: 3;
     332        font-size: 12;
     333        text-color: #000000;
     334        text-position: line;
     335        text: "name";
     336        text-offset: 0;
     337        text-halo-color:#BF9017;
     338        text-halo-radius:2
     339}       
     340       
     341area["addr:street"^="M"], relation[type=multipolygon]["addr:street"^="M"]
     342{
     343        fill-color: #adff2f;
     344        color: #adff2f;
     345        width: 3;
     346        fill-opacity:0.2;       
     347}
     348node["addr:street"^="M"]::halo
     349{
     350        symbol-fill-color: #adff2f;
     351        symbol-shape: circle;
     352        symbol-size: 20;
     353        z-index: -1;   
     354}
     355way["highway"]["name"^="M"]
     356{
     357        color: #adff2f;
     358        width: 3;
     359        font-size: 12;
     360        text-color: #000000;
     361        text-position: line;
     362        text: "name";
     363        text-offset: 0;
     364        text-halo-color: #adff2f;
     365        text-halo-radius:2
     366}       
     367       
     368area["addr:street"^="N"], relation[type=multipolygon]["addr:street"^="N"]
     369{
     370        fill-color: #ff69b4;
     371        color: #ff69b4;
     372        width: 3;
     373        fill-opacity:0.2;       
     374}
     375node["addr:street"^="N"]::halo
     376{
     377        symbol-fill-color: #ff69b4;
     378        symbol-shape: circle;
     379        symbol-size: 20;
     380        z-index: -1;   
     381}
     382way["highway"]["name"^="N"]
     383{
     384        color: #ff69b4;
     385        width: 3;
     386        font-size: 12;
     387        text-color: #000000;
     388        text-position: line;
     389        text: "name";
     390        text-offset: 0;
     391        text-halo-color: #ff69b4;
     392        text-halo-radius:2
     393}       
     394       
     395area["addr:street"^="O"], relation[type=multipolygon]["addr:street"^="O"]
     396{
     397        fill-color: #cd5c5c;
     398        color: #cd5c5c;
     399        width: 3;
     400        fill-opacity:0.2;       
     401}
     402node["addr:street"^="O"]::halo
     403{
     404        symbol-fill-color: #cd5c5c;
     405        symbol-shape: circle;
     406        symbol-size: 20;
     407        z-index: -1;   
     408}
     409way["highway"]["name"^="O"]
     410{
     411        color: #cd5c5c;
     412        width: 3;
     413        font-size: 12;
     414        text-color: #000000;
     415        text-position: line;
     416        text: "name";
     417        text-offset: 0;
     418        text-halo-color: #cd5c5c;
     419        text-halo-radius:2
     420}       
     421       
     422area["addr:street"^="P"], relation[type=multipolygon]["addr:street"^="P"]
     423{
     424        fill-color: #4b0082;
     425        color: #4b0082;
     426        width: 3;
     427        fill-opacity:0.2;       
     428}
     429node["addr:street"^="P"]::halo
     430{
     431        symbol-fill-color: #4b0082;
     432        symbol-shape: circle;
     433        symbol-size: 20;
     434        z-index: -1;   
     435}
     436way["highway"]["name"^="P"]
     437{
     438        color: #4b0082;
     439        width: 3;
     440        font-size: 12;
     441        text-color: #000000;
     442        text-position: line;
     443        text: "name";
     444        text-offset: 0;
     445        text-halo-color: #4b0082;
     446        text-halo-radius:2
     447}       
     448       
     449area["addr:street"^="Q"], relation[type=multipolygon]["addr:street"^="Q"]
     450{
     451        fill-color: #f08080;
     452        color: #f08080;
     453        width: 3;
     454        fill-opacity:0.2;       
     455}
     456node["addr:street"^="Q"]::halo
     457{
     458        symbol-fill-color: #f08080;
     459        symbol-shape: circle;
     460        symbol-size: 20;
     461        z-index: -1;   
     462}
     463way["highway"]["name"^="Q"]
     464{
     465        color: #f08080;
     466        width: 3;
     467        font-size: 12;
     468        text-color: #000000;
     469        text-position: line;
     470        text: "name";
     471        text-offset: 0;
     472        text-halo-color: #f08080;
     473        text-halo-radius:2     
     474}       
     475       
     476area["addr:street"^="R"], relation[type=multipolygon]["addr:street"^="R"]
     477{
     478        fill-color: #ffa07a;
     479        color: #ffa07a;
     480        width: 3;
     481        fill-opacity:0.2;       
     482}
     483node["addr:street"^="R"]::halo
     484{
     485        symbol-fill-color: #ffa07a;
     486        symbol-shape: circle;
     487        symbol-size: 20;
     488        z-index: -1;   
     489}
     490way["highway"]["name"^="R"]
     491{
     492        color: #ffa07a;
     493        width: 3;
     494        font-size: 12;
     495        text-color: #000000;
     496        text-position: line;
     497        text: "name";
     498        text-offset: 0;
     499        text-halo-color: #ffa07a;
     500        text-halo-radius:2     
     501}
     502               
     503area["addr:street"^="S"], relation[type=multipolygon]["addr:street"^="S"]
     504{
     505        fill-color: #32cd32;
     506        color: #32cd32;
     507        width: 3;
     508        fill-opacity:0.2;       
     509}
     510node["addr:street"^="S"]::halo
     511{
     512        symbol-fill-color: #32cd32;
     513        symbol-shape: circle;
     514        symbol-size: 20;
     515        z-index: -1;   
     516}
     517way["highway"]["name"^="S"]
     518{
     519        color: #32cd32;
     520        width: 3;
     521        font-size: 12;
     522        text-color: #000000;
     523        text-position: line;
     524        text: "name";
     525        text-offset: 0;
     526        text-halo-color: #32cd32;
     527        text-halo-radius:2     
     528}
     529               
     530area["addr:street"^="T"], relation[type=multipolygon]["addr:street"^="T"]
     531{
     532        fill-color: #ba55d3;
     533        color: #ba55d3;
     534        width: 3;
     535        fill-opacity:0.2;       
     536}
     537node["addr:street"^="T"]::halo
     538{
     539        symbol-fill-color: #ba55d3;
     540        symbol-shape: circle;
     541        symbol-size: 20;
     542        z-index: -1;   
     543}
     544way["highway"]["name"^="T"]
     545{
     546        color: #ba55d3;
     547        width: 3;
     548        font-size: 12;
     549        text-color: #000000;
     550        text-position: line;
     551        text: "name";
     552        text-offset: 0;
     553        text-halo-color: #ba55d3;
     554        text-halo-radius:2     
     555}
     556               
     557area["addr:street"^="U"], relation[type=multipolygon]["addr:street"^="U"]
     558{
     559        fill-color: #9370db;
     560        color: #9370db;
     561        width: 3;
     562        fill-opacity:0.2;       
     563}
     564node["addr:street"^="U"]::halo
     565{
     566        symbol-fill-color: #9370db;
     567        symbol-shape: circle;
     568        symbol-size: 20;
     569        z-index: -1;
     570}
     571way["highway"]["name"^="U"]
     572{
     573        color: #9370db;
     574        width: 3;
     575        font-size: 12;
     576        text-color: #000000;
     577        text-position: line;
     578        text: "name";
     579        text-offset: 0;
     580        text-halo-color: #9370db;
     581        text-halo-radius:2     
     582}
     583               
     584area["addr:street"^="V"], relation[type=multipolygon]["addr:street"^="V"]
     585{
     586        fill-color: #3cb371;
     587        color: #3cb371;
     588        width: 3;
     589        fill-opacity:0.2;       
     590}
     591node["addr:street"^="V"]::halo
     592{
     593        symbol-fill-color: #3cb371;
     594        symbol-shape: circle;
     595        symbol-size: 20;
     596        z-index: -1;   
     597}
     598way["highway"]["name"^="V"]
     599{
     600        color: #3cb371;
     601        width: 3;
     602        font-size: 12;
     603        text-color: #000000;
     604        text-position: line;
     605        text: "name";
     606        text-offset: 0;
     607        text-halo-color: #3cb371;
     608        text-halo-radius:2     
     609}
     610               
     611area["addr:street"^="W"], relation[type=multipolygon]["addr:street"^="W"]
     612{
     613        fill-color: #808000;
     614        color: #808000;
     615        width: 3;
     616        fill-opacity:0.2;       
     617}
     618node["addr:street"^="W"]::halo
     619{
     620        symbol-fill-color: #808000;
     621        symbol-shape: circle;
     622        symbol-size: 20;
     623        z-index: -1;   
     624}
     625way["highway"]["name"^="W"]
     626{
     627        color: #808000;
     628        width: 3;
     629        font-size: 12;
     630        text-color: #000000;
     631        text-position: line;
     632        text: "name";
     633        text-offset: 0;
     634        text-halo-color: #808000;
     635        text-halo-radius:2     
     636}
     637       
     638area["addr:street"^="X"], relation[type=multipolygon]["addr:street"^="X"]
     639{
     640        fill-color: #7cfc00 ;
     641        color: #7cfc00 ;
     642        width: 3;
     643        fill-opacity:0.2;       
     644}
     645node["addr:street"^="X"]::halo
     646{
     647        symbol-fill-color: #7cfc00;
     648        symbol-shape: circle;
     649        symbol-size: 20;
     650        z-index: -1;   
     651}
     652way["highway"]["name"^="X"]
     653{
     654        color: #7cfc00;
     655        width: 3;
     656        font-size: 12;
     657        text-color: #000000;
     658        text-position: line;
     659        text: "name";
     660        text-offset: 0;
     661        text-halo-color: #7cfc00;
     662        text-halo-radius:2     
     663}
     664               
     665area["addr:street"^="Y"], relation[type=multipolygon]["addr:street"^="Y"]
     666{
     667        fill-color: #6b8e23;
     668        color: #6b8e23;
     669        width: 3;
     670        fill-opacity:0.2;       
     671}
     672node["addr:street"^="Y"]::halo
     673{
     674        symbol-fill-color: #6b8e23;
     675        symbol-shape: circle;
     676        symbol-size: 20;
     677        z-index: -1;   
     678}
     679way["highway"]["name"^="Y"]
     680{
     681        color: #6b8e23;
     682        width: 3;
     683        font-size: 12;
     684        text-color: #000000;
     685        text-position: line;
     686        text: "name";
     687        text-offset: 0;
     688        text-halo-color: #6b8e23;
     689        text-halo-radius:2     
     690}
     691               
     692area["addr:street"^="Z"], relation[type=multipolygon]["addr:street"^="Z"]
     693{
     694        fill-color: #ff4500;
     695        color: #ff4500;
     696        width: 3;
     697        fill-opacity:0.2;       
     698}
     699node["addr:street"^="Z"]::halo
     700{
     701        symbol-fill-color: #ff4500;
     702        symbol-shape: circle;
     703        symbol-size: 20;
     704        z-index: -1;   
     705}
     706way["highway"]["name"^="Z"]
     707{
     708        color: #ff4500;
     709        width: 3;
     710        font-size: 12;
     711        text-color: #000000;
     712        text-position: line;
     713        text: "name";
     714        text-offset: 0;
     715        text-halo-color: #ff4500;
     716        text-halo-radius:2     
     717}
     718       
     719
     720/* have street, miss city */
     721area[building][addr:street][!addr:city]
     722{
     723        width: 2;
     724        text: eval("city?");
     725        fill-color: #FF0000; 
     726        fill-opacity:0.9;
     727        text-color: #000000;
     728        font-size: 10;
     729        casing-width: 1;
     730        casing-color: #FFFF00;
     731}
     732node[addr:housenumber][!addr:city]::halo
     733{
     734        text: eval("city?");
     735        symbol-shape: triangle;
     736        symbol-fill-opacity:0.7;
     737        symbol-fill-color: #FF0000;
     738        symbol-size: 30;
     739        symbol-stroke-color: #FFFF00;
     740        z-index: -1;   
     741}
     742
     743/* have housenumber, miss street */
     744area[building][addr:housenumber][!addr:street]
     745{
     746        width: 2;
     747        fill-color: #FF0000; 
     748        fill-opacity:0.9;
     749        text-color: #000000;
     750        font-size: 10;
     751        casing-width: 1;
     752        casing-color: #FFFF00;
     753       
     754}
     755node[addr:housenumber][!addr:street]::halo
     756{
     757        text: eval("street?");
     758        symbol-shape: triangle;
     759        symbol-fill-opacity:0.7;
     760        symbol-fill-color: #FF0000;
     761        symbol-size: 30;
     762        symbol-stroke-color: #FFFF00;
     763        z-index: -1;   
     764}
     765
     766/* have street, miss housenumber */
     767area[addr:street][!addr:housenumber]
     768{
     769        width: 2;
     770        fill-color: #FF0000; 
     771        fill-opacity:0.9;
     772        text: eval("number?");
     773        text-color: #000000;
     774        font-size: 10;
     775        casing-width: 1;
     776        casing-color: #FFFF00; 
     777}
     778node["addr:street"][!"addr:housenumber"][!amenity]::halo
     779{
     780        text: eval("number?");
     781        text-color: #FF0000;
     782        font-size: 12;
     783        symbol-shape: triangle;
     784        symbol-fill-opacity:0.7;
     785        symbol-fill-color: #FF0000;
     786        symbol-size: 30;
     787        symbol-stroke-color: #FFFF00;
     788        z-index: -1;   
     789}
     790
     791/* have street, have addr is not correct */
     792way["highway"]["addr:country"],
     793way["highway"]["addr:postcode"],
     794way["highway"]["addr:city"],
     795way["highway"]["addr:street"]
     796{
     797        text: eval("no addr!");
     798        color: red;
     799        width: 5;
     800        dashes: 20,4;
     801        dashes-background-color: #FFFF00;
     802        object-z-index:-1.0;
     803}
     804       
     805/* all marked  housenumber in black color */
     806node["addr:housenumber"]
     807{
     808        font-size: 10;
     809        text-color: black;     
     810}
     811area[building]["addr:housenumber"]
     812{
     813        text-color: black;
     814        font-size: 10; 
     815}
     816       
     817/* higway=residetial without name */   
     818way[highway=residential][!name]
     819{
     820        color: #FF0000;
     821        width: 5;
     822        font-size: 12;
     823        text-color: #000000;
     824        text-position: line;
     825        text: eval("no name!");
     826        text-offset: 0;
     827        text-halo-color: #FF0000;
     828        text-halo-radius:2;
     829        dashes: 20,4;
     830        dashes-background-color: #FFFF00;
     831       
     832}
     833}}}