Changes between Initial Version and Version 1 of Styles/Coloured_buildings_uk


Ignore:
Timestamp:
2021-04-12T17:53:38+02:00 (5 years ago)
Author:
darkonus
Comment:

Add style

Legend:

Unmodified
Added
Removed
Modified
  • Styles/Coloured_buildings_uk

    v1 v1  
     1[[TranslatedPages]]
     2[[PageOutline(2-10,Table of Content)]]
     3
     4= Coloured buildings =
     5
     6== Classification of buildings ==
     7
     8Detached: building=detached[[BR]]
     9Terraced: building=terrace[[BR]]
     10Apartments: building=apartments[[BR]]
     11Garage(s): building=garage(s)[[BR]]
     12
     13
     14''too generell, better use the values above''[[BR]]
     15House: building=house[[BR]]
     16Residential: building=residential[[BR]]
     17
     18
     19Hotel: building=hotel[[BR]]
     20Church: building=church, building=cathedral[[BR]]
     21Retail: building=retail[[BR]]
     22Hospital: building=hospital[[BR]]
     23Commercial: building=commercial[[BR]]
     24Industrial: building=industrial[[BR]]
     25
     26
     27School (only building): building=school[[BR]]
     28Area of School: amenity=school[[BR]]
     29University: building=university[[BR]]
     30Civic: building=civic[[BR]]
     31Domitory: building=dormitory[[BR]]
     32
     33
     34[osmwiki:Key:amenity amenity] with the value of amenity[[BR]]
     35
     36[osmwiki:Key:shop shop] with the value of shop[[BR]]
     37
     38[osmwiki:Office office] with the value of office[[BR]]
     39
     40[osmwiki:Key:building Wiki:building][[BR]]
     41
     42
     43== Code ==
     44{{{
     45#!style type="mapcss"
     46
     47meta   
     48{
     49        title: "Coloured Buildings.uk";
     50        author: "darkonus";
     51        version: "0.1_[[revision]]_[[date]]";
     52        description: "Style to classify buildings. Translation of the geozeisig style";
     53        link: "https://josm.openstreetmap.de/wiki/Styles/Coloured_buildings_uk";
     54}
     55meta[lang=uk]
     56{
     57        title: "Coloured Buildings.uk";
     58        description: "Стиль для класифікації будівель. Переклад стилю від geozeisig";
     59        link: "https://josm.openstreetmap.de/wiki/De:Styles/Coloured_buildings";
     60}
     61area[building=residential]
     62{
     63        text: eval("Житлове приміщення");
     64        text-color: black;
     65        font-size: 9;
     66        z-index: 1;
     67        color: #FFFFFF;
     68        fill-color: #FFFFFF;
     69        width: 3;
     70        dashes: 10,2;
     71}
     72       
     73area[building=house]
     74{
     75        text: eval("Житло");
     76        text-color: black;
     77        font-size: 9;
     78        z-index: 1;
     79        color: #FFF88B;
     80        fill-color: #FFF88B;
     81        width: 3;
     82        dashes: 10,2;
     83}
     84
     85area[building=detached]
     86{
     87        text: eval("Односімейна");
     88        text-color: black;
     89        font-size: 9;
     90        z-index: 1;
     91        color: #FFFD36;
     92        fill-color: #FFFD36;
     93        width: 3;
     94}
     95area[building=semidetached_house]
     96{
     97        text: eval("Двосімейна");
     98        text-color: black;
     99        font-size: 9;
     100        z-index: 1;
     101        color: #FFFC00;
     102        fill-color: #FFFC00;
     103        width: 3;
     104}
     105area[building=terrace]
     106{
     107        text: eval("Ряд житлових");
     108        text-color: black;
     109        font-size: 9;
     110        z-index: 1;
     111        color: #FFFC00;
     112        fill-color: #FFFC00;
     113        width: 3;
     114}
     115area[building=apartments]
     116{
     117        text: eval("Багатоквартирна");
     118        text-color: black;
     119        font-size: 9;
     120        z-index: 1;
     121        color: #FF9E00;
     122        fill-color: #FF9E00;
     123        width: 3;
     124}
     125area[building=garage]
     126{
     127        text: eval("Гараж");
     128        text-color: black;
     129        font-size: 9;
     130        z-index: 1;
     131        color: #A37237;
     132        fill-color: #A37237;
     133        width: 3;
     134}
     135area[building=garages]
     136{
     137        text: eval("Гаражі");
     138        text-color: black;
     139        font-size: 9;
     140        z-index: 1;
     141        color: #A37237;
     142        fill-color: #A37237;
     143        width: 3;
     144}
     145
     146area[building=parking]
     147{
     148        text: eval("Будівля-стоянка");
     149        text-color: black;
     150        font-size: 9;
     151        z-index: 1;
     152        color: #A37237;
     153        fill-color: #A37237;
     154        width: 3;
     155}
     156area[building=hotel]
     157{
     158        text: eval("Готель");
     159        text-color: black;
     160        font-size: 9;
     161        z-index: 1;
     162        color: #F26100;
     163        fill-color: #F26100;
     164        width: 3;
     165}
     166
     167area[building=commercial]
     168{
     169        text: eval("Комерційна");
     170        text-color: black;
     171        font-size: 9;
     172        z-index: 1;
     173        color: #D76EFF;
     174        fill-color: #D76EFF;
     175        width: 3;
     176}
     177area[building=warehouse]
     178{
     179        text: eval("Склад");
     180        text-color: black;
     181        font-size: 9;
     182        z-index: 1;
     183        color: #D76EFF;
     184        fill-color: #D76EFF;
     185        width: 3;
     186}
     187area[building=toilets]
     188{
     189        text: eval("Туалет");
     190        text-color: black;
     191        font-size: 9;
     192        z-index: 1;
     193        color: #D76EFF;
     194        fill-color: #D76EFF;
     195        width: 3;
     196}
     197area[building=industrial]
     198{
     199        text: eval("Промислова");
     200        text-color: black;
     201        font-size: 9;
     202        z-index: 1;
     203        color: #C224FF;
     204        fill-color: #C224FF;
     205        width: 3;
     206}
     207
     208area[building=church]
     209{
     210        text: eval("Церква");
     211        text-color: black;
     212        font-size: 9;
     213        z-index: 1;
     214        color: #9224FF;
     215        fill-color: #9224FF;
     216        width: 3;
     217}
     218area[building=chapel]
     219{
     220        text: eval("Каплиця");
     221        text-color: black;
     222        font-size: 9;
     223        z-index: 1;
     224        color: #9224FF;
     225        fill-color: #9224FF;
     226        width: 3;
     227}
     228area[building=mosque]
     229{
     230        text: eval("Мечеть");
     231        text-color: black;
     232        font-size: 9;
     233        z-index: 1;
     234        color: #9224FF;
     235        fill-color: #9224FF;
     236        width: 3;
     237}
     238area[building=synagogue]
     239{
     240        text: eval("Синагога");
     241        text-color: black;
     242        font-size: 9;
     243        z-index: 1;
     244        color: #9224FF;
     245        fill-color: #9224FF;
     246        width: 3;
     247}
     248area[building=temple]
     249{
     250        text: eval("Храм");
     251        text-color: black;
     252        font-size: 9;
     253        z-index: 1;
     254        color: #9224FF;
     255        fill-color: #9224FF;
     256        width: 3;
     257}
     258area[building=cathedral]
     259{
     260        text: eval("Собор");
     261        text-color: black;
     262        font-size: 9;
     263        z-index: 1;
     264        color: #7D1DDD;
     265        fill-color: #7D1DDD;
     266        width: 3;
     267}
     268
     269area[building=retail]
     270{
     271        text: eval("Торгівля");
     272        text-color: black;
     273        font-size: 9;
     274        z-index: 1;
     275        color: #A5FC4E;
     276        fill-color: #A5FC4E;
     277        width: 3;
     278}
     279
     280area[building=supermarket]
     281{
     282        text: eval("Супермаркет");
     283        text-color: black;
     284        font-size: 9;
     285        z-index: 1;
     286        color: #A5FC4E;
     287        fill-color: #A5FC4E;
     288        width: 3;
     289}
     290area[building=kiosk]
     291{
     292        text: eval("Кіоск");
     293        text-color: black;
     294        font-size: 9;
     295        z-index: 1;
     296        color: #A5FC4E;
     297        fill-color: #A5FC4E;
     298        width: 3;
     299}
     300
     301area[building=roof]
     302{
     303        text: eval("Навіс");
     304        text-color: black;
     305        font-size: 9;
     306        z-index: 1;
     307        color: #CBA371;
     308        fill-color: #CBA371;
     309        width: 3;
     310}
     311
     312area[building=hospital]
     313{
     314        text: eval("Лікарня");
     315        text-color: black;
     316        font-size:10;
     317        z-index: 1;
     318        color: #FF5566;
     319        fill-color: #FF5566;
     320        width: 3;
     321}
     322area[building=fire_station]
     323{
     324        text: eval("Пожежна");
     325        text-color: black;
     326        font-size:10;
     327        z-index: 1;
     328        color: #FF5566;
     329        fill-color: #FF5566;
     330        width: 3;
     331}
     332area[amenity=hospital]
     333{
     334        color: #FF5566;
     335        width: 3;
     336}
     337area[building=school]
     338{
     339        text: eval("Школа");
     340        text-color: black;
     341        font-size: 9;
     342        z-index: 1;
     343        color: #884CFF;
     344        fill-color: #884CFF;
     345        width: 3;
     346}
     347area[building=kindergarten]
     348{
     349        text: eval("Дитсадок");
     350        text-color: black;
     351        font-size: 9;
     352        z-index: 1;
     353        color: #884CFF;
     354        fill-color: #884CFF;
     355        width: 3;
     356}
     357area[amenity=school]
     358{
     359        color: #884CFF;
     360        width: 3;
     361}
     362area[building=university]
     363{
     364        text: eval("Універ");
     365        text-color: black;
     366        font-size: 9;
     367        z-index: 1;
     368        color: #7834FF;
     369        fill-color: #7834FF;
     370        width: 2;
     371}
     372area[amenity=university]
     373{
     374        color: #7834FF;
     375        width: 3;
     376}
     377area[building=civic]
     378{
     379        text: eval("Громадська");
     380        text-color: black;
     381        font-size: 9;
     382        z-index: 1;
     383        color: #FF2238;
     384        fill-color: #FF2238;
     385        width: 3;
     386        dashes: 10,2;
     387}
     388area[building=train_station]
     389{
     390        text: eval("Залізнична");
     391        text-color: black;
     392        font-size: 9;
     393        z-index: 1;
     394        color: #FF2238;
     395        fill-color: #FF2238;
     396        width: 3;
     397}
     398
     399area[building=dormitory]
     400{
     401        text: eval("Гуртожиток");
     402        text-color: black;
     403        font-size: 9;
     404        z-index: 1;
     405        color: #F07B2D;
     406        fill-color: #F07B2D;
     407        width: 3;
     408}
     409
     410area[building=yes][amenity][building!=church][building!=cathedral]
     411{
     412        text: "Заклад";
     413        text-color: black;
     414        dashes: 20,4;
     415        font-size: 10;
     416        z-index: 1;
     417        color: #FF2238;
     418        fill-color: #FF2238;
     419        width: 3;
     420}
     421
     422area[building=yes][shop]
     423{
     424        text: "Крамниця";
     425        text-color: black;
     426        dashes: 20,4;
     427        font-size: 10;
     428        z-index: 1;
     429        color: #3E43D2;
     430        fill-color: #3E43D2;
     431        width: 3;
     432}
     433
     434area[building=yes][office]
     435{
     436        text: "Офіс";
     437        text-color: black;
     438        font-size: 10;
     439        z-index: 1;
     440        color: #39D237;
     441        fill-color: #39D237;
     442        width: 3;
     443        dashes: 20,4;
     444}
     445/* highlight wrong schoolbuildings */
     446way[building=yes][amenity=school]
     447{
     448        text: eval("познач школу");
     449        font-size: 12;
     450        z-index: 1;
     451        color: red;
     452        width: 5;
     453        dashes: 20,4;
     454        dashes-background-color: #FFFF00;
     455}
     456
     457/* highlight wrong church */
     458way[building=yes][amenity=place_of_worship]
     459{
     460        text: eval("познач церкву");
     461        font-size: 12;
     462        z-index: 1;
     463        color: red;
     464        width: 5;
     465        dashes: 20,4;
     466        dashes-background-color: #FFFF00;
     467}
     468}}}