Changes between Initial Version and Version 1 of Styles/Coloured_buildings_en


Ignore:
Timestamp:
2021-09-18T18:18:48+02:00 (4 years ago)
Author:
riiga
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Styles/Coloured_buildings_en

    v1 v1  
     1[[PageOutline(2-10,Table of Content)]]
     2
     3= Coloured buildings =
     4
     5This is an English translation of the original coloured buildings style.
     6
     7== Code ==
     8{{{
     9#!style type="mapcss"
     10
     11meta   
     12{
     13        title: "Coloured Buildings.en";
     14        author: "riiga";
     15        version: "1.0[[revision]]_[[date]]";
     16        description: "Style to classify buildings (English)";
     17        link: "https://josm.openstreetmap.de/wiki/Styles/Coloured_buildings";
     18}
     19area[building=residential]
     20{
     21        text: eval("Residential");
     22        text-color: black;
     23        font-size: 9;
     24        z-index: 1;
     25        color: #FFFFFF;
     26        fill-color: #FFFFFF;
     27        width: 3;
     28        dashes: 10,2;
     29}
     30       
     31area[building=house]
     32{
     33        text: eval("House");
     34        text-color: black;
     35        font-size: 9;
     36        z-index: 1;
     37        color: #FFF88B;
     38        fill-color: #FFF88B;
     39        width: 3;
     40        dashes: 10,2;
     41}
     42
     43area[building=detached]
     44{
     45        text: eval("Detached");
     46        text-color: black;
     47        font-size: 9;
     48        z-index: 1;
     49        color: #FFFD36;
     50        fill-color: #FFFD36;
     51        width: 3;
     52}
     53area[building=semidetached_house]
     54{
     55        text: eval("Semidetached");
     56        text-color: black;
     57        font-size: 9;
     58        z-index: 1;
     59        color: #FFFC00;
     60        fill-color: #FFFC00;
     61        width: 3;
     62}
     63area[building=terrace]
     64{
     65        text: eval("Terrace");
     66        text-color: black;
     67        font-size: 9;
     68        z-index: 1;
     69        color: #FFFC00;
     70        fill-color: #FFFC00;
     71        width: 3;
     72}
     73area[building=apartments]
     74{
     75        text: eval("Apartments");
     76        text-color: black;
     77        font-size: 9;
     78        z-index: 1;
     79        color: #FF9E00;
     80        fill-color: #FF9E00;
     81        width: 3;
     82}
     83area[building=garage]
     84{
     85        text: eval("Garage");
     86        text-color: black;
     87        font-size: 9;
     88        z-index: 1;
     89        color: #A37237;
     90        fill-color: #A37237;
     91        width: 3;
     92}
     93area[building=garages]
     94{
     95        text: eval("Garages");
     96        text-color: black;
     97        font-size: 9;
     98        z-index: 1;
     99        color: #A37237;
     100        fill-color: #A37237;
     101        width: 3;
     102}
     103
     104area[building=parking]
     105{
     106        text: eval("Parking");
     107        text-color: black;
     108        font-size: 9;
     109        z-index: 1;
     110        color: #A37237;
     111        fill-color: #A37237;
     112        width: 3;
     113}
     114area[building=hotel]
     115{
     116        text: eval("Hotel");
     117        text-color: black;
     118        font-size: 9;
     119        z-index: 1;
     120        color: #F26100;
     121        fill-color: #F26100;
     122        width: 3;
     123}
     124
     125area[building=commercial]
     126{
     127        text: eval("Commercial");
     128        text-color: black;
     129        font-size: 9;
     130        z-index: 1;
     131        color: #D76EFF;
     132        fill-color: #D76EFF;
     133        width: 3;
     134}
     135area[building=warehouse]
     136{
     137        text: eval("Warehouse");
     138        text-color: black;
     139        font-size: 9;
     140        z-index: 1;
     141        color: #D76EFF;
     142        fill-color: #D76EFF;
     143        width: 3;
     144}
     145area[building=toilets]
     146{
     147        text: eval("Toilets");
     148        text-color: black;
     149        font-size: 9;
     150        z-index: 1;
     151        color: #D76EFF;
     152        fill-color: #D76EFF;
     153        width: 3;
     154}
     155area[building=industrial]
     156{
     157        text: eval("Industrial");
     158        text-color: black;
     159        font-size: 9;
     160        z-index: 1;
     161        color: #C224FF;
     162        fill-color: #C224FF;
     163        width: 3;
     164}
     165
     166area[building=church]
     167{
     168        text: eval("Church");
     169        text-color: black;
     170        font-size: 9;
     171        z-index: 1;
     172        color: #9224FF;
     173        fill-color: #9224FF;
     174        width: 3;
     175}
     176area[building=chapel]
     177{
     178        text: eval("Chapel");
     179        text-color: black;
     180        font-size: 9;
     181        z-index: 1;
     182        color: #9224FF;
     183        fill-color: #9224FF;
     184        width: 3;
     185}
     186area[building=mosque]
     187{
     188        text: eval("Mosque");
     189        text-color: black;
     190        font-size: 9;
     191        z-index: 1;
     192        color: #9224FF;
     193        fill-color: #9224FF;
     194        width: 3;
     195}
     196area[building=synagogue]
     197{
     198        text: eval("Synagogue");
     199        text-color: black;
     200        font-size: 9;
     201        z-index: 1;
     202        color: #9224FF;
     203        fill-color: #9224FF;
     204        width: 3;
     205}
     206area[building=temple]
     207{
     208        text: eval("Temple");
     209        text-color: black;
     210        font-size: 9;
     211        z-index: 1;
     212        color: #9224FF;
     213        fill-color: #9224FF;
     214        width: 3;
     215}
     216area[building=cathedral]
     217{
     218        text: eval("Cathedral");
     219        text-color: black;
     220        font-size: 9;
     221        z-index: 1;
     222        color: #7D1DDD;
     223        fill-color: #7D1DDD;
     224        width: 3;
     225}
     226
     227area[building=retail]
     228{
     229        text: eval("Retail");
     230        text-color: black;
     231        font-size: 9;
     232        z-index: 1;
     233        color: #A5FC4E;
     234        fill-color: #A5FC4E;
     235        width: 3;
     236}
     237
     238area[building=supermarket]
     239{
     240        text: eval("Supermarket");
     241        text-color: black;
     242        font-size: 9;
     243        z-index: 1;
     244        color: #A5FC4E;
     245        fill-color: #A5FC4E;
     246        width: 3;
     247}
     248area[building=kiosk]
     249{
     250        text: eval("Kiosk");
     251        text-color: black;
     252        font-size: 9;
     253        z-index: 1;
     254        color: #A5FC4E;
     255        fill-color: #A5FC4E;
     256        width: 3;
     257}
     258
     259area[building=roof]
     260{
     261        text: eval("Roof");
     262        text-color: black;
     263        font-size: 9;
     264        z-index: 1;
     265        color: #CBA371;
     266        fill-color: #CBA371;
     267        width: 3;
     268}
     269
     270area[building=hospital]
     271{
     272        text: eval("Hospital");
     273        text-color: black;
     274        font-size:10;
     275        z-index: 1;
     276        color: #FF5566;
     277        fill-color: #FF5566;
     278        width: 3;
     279}
     280area[building=fire_station]
     281{
     282        text: eval("Fire station");
     283        text-color: black;
     284        font-size:10;
     285        z-index: 1;
     286        color: #FF5566;
     287        fill-color: #FF5566;
     288        width: 3;
     289}
     290area[amenity=hospital]
     291{
     292        color: #FF5566;
     293        width: 3;
     294}
     295area[building=school]
     296{
     297        text: eval("School");
     298        text-color: black;
     299        font-size: 9;
     300        z-index: 1;
     301        color: #884CFF;
     302        fill-color: #884CFF;
     303        width: 3;
     304}
     305area[building=kindergarten]
     306{
     307        text: eval("Kindergarten");
     308        text-color: black;
     309        font-size: 9;
     310        z-index: 1;
     311        color: #884CFF;
     312        fill-color: #884CFF;
     313        width: 3;
     314}
     315area[amenity=school]
     316{
     317        color: #884CFF;
     318        width: 3;
     319}
     320area[building=university]
     321{
     322        text: eval("University");
     323        text-color: black;
     324        font-size: 9;
     325        z-index: 1;
     326        color: #7834FF;
     327        fill-color: #7834FF;
     328        width: 2;
     329}
     330area[amenity=university]
     331{
     332        color: #7834FF;
     333        width: 3;
     334}
     335area[building=civic]
     336{
     337        text: eval("Civic");
     338        text-color: black;
     339        font-size: 9;
     340        z-index: 1;
     341        color: #FF2238;
     342        fill-color: #FF2238;
     343        width: 3;
     344        dashes: 10,2;
     345}
     346area[building=train_station]
     347{
     348        text: eval("Train station");
     349        text-color: black;
     350        font-size: 9;
     351        z-index: 1;
     352        color: #FF2238;
     353        fill-color: #FF2238;
     354        width: 3;
     355}
     356
     357area[building=dormitory]
     358{
     359        text: eval("Dormitory");
     360        text-color: black;
     361        font-size: 9;
     362        z-index: 1;
     363        color: #F07B2D;
     364        fill-color: #F07B2D;
     365        width: 3;
     366}
     367
     368area[building=yes][amenity][building!=church][building!=cathedral]
     369{
     370        text: "amenity";
     371        text-color: black;
     372        dashes: 20,4;
     373        font-size: 10;
     374        z-index: 1;
     375        color: #FF2238;
     376        fill-color: #FF2238;
     377        width: 3;
     378}
     379
     380area[building=yes][shop]
     381{
     382        text: "shop";
     383        text-color: black;
     384        dashes: 20,4;
     385        font-size: 10;
     386        z-index: 1;
     387        color: #3E43D2;
     388        fill-color: #3E43D2;
     389        width: 3;
     390}
     391
     392area[building=yes][office]
     393{
     394        text: "office";
     395        text-color: black;
     396        font-size: 10;
     397        z-index: 1;
     398        color: #39D237;
     399        fill-color: #39D237;
     400        width: 3;
     401        dashes: 20,4;
     402}
     403/* highlight wrong schoolbuildings */
     404way[building=yes][amenity=school]
     405{
     406        text: eval("set builing=school");
     407        font-size: 12;
     408        z-index: 1;
     409        color: red;
     410        width: 5;
     411        dashes: 20,4;
     412        dashes-background-color: #FFFF00;
     413}
     414
     415/* highlight wrong church */
     416way[building=yes][amenity=place_of_worship]
     417{
     418        text: eval("set builing=church");
     419        font-size: 12;
     420        z-index: 1;
     421        color: red;
     422        width: 5;
     423        dashes: 20,4;
     424        dashes-background-color: #FFFF00;
     425}
     426
     427}}}