Changes between Initial Version and Version 1 of Styles/BuildingColors


Ignore:
Timestamp:
2024-01-02T19:16:10+01:00 (2 years ago)
Author:
whatismoss
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Styles/BuildingColors

    v1 v1  
     1= Building Colors =
     2
     3== Description ==
     4
     5This mappaint style colors buildings depending on their type ([osmwiki:Key:building building=*] tag).
     6
     7The building type classification is the same as OsmAnd's "Color building depending on type" setting.
     8
     9== Code ==
     10
     11{{{
     12#!style type="mapcss"
     13
     14meta {
     15    title: "Building Colors";
     16    description: "Colors buildings depending on their building=* tag.";
     17    version: "[[revision]]_[[date]]";
     18    author: "whatismoss";
     19    icon: "buildingcolors.png";
     20    link: "https://josm.openstreetmap.de/wiki/Styles/BuildingColors";
     21}
     22
     23meta[lang=fr] {
     24    title: "Bâtiments colorés";
     25    description: "Met en couleur les bâtiments en fonction de leur clé building=*.";
     26}
     27
     28meta[lang=ca] {
     29    title: "Edificis de Colors";
     30    description: "Acoloreix els edificis en funció de la seva clau building=*.";
     31}
     32
     33area[building], area[building=yes] {
     34    fill-color: #e3ac81;
     35}
     36
     37area[building=garage], area[building=industrial], area[building=transportation], area[building=warehouse], area[building=hangar], area[building=factory], area[building=manufacture], area[building=farm_auxiliary], area[building=shed], area[building=barn], area[building=outbuilding] {
     38    fill-color: #8c79a8;
     39}
     40
     41area[building=residential], area[building=house], area[building=hut], area[building=cabin], area[building=detached], area[building=farm], area[building=hotel] {
     42    fill-color: #e87e51;
     43}
     44
     45area[building=civic], area[building=hall], area[building=administrative], area[building=public], area[building=school], area[building=kindergarten], area[building=university], area[building=college], area[building=stadium], area[building=sports_centre] {
     46    fill-color: #edd772;
     47}
     48
     49area[building=hospital] {
     50    fill-color: #f274a0;
     51}
     52
     53area[building=commercial], area[building=retail] {
     54    fill-color: #f7a1d6;
     55}
     56
     57area[building=bunker], area[building=barracks] {
     58    fill-color: #e66565;
     59}
     60
     61area[building=collapsed], area[building=disused], area[abandoned:building], area[disused:building] {
     62    fill-color: #787878;
     63}
     64
     65area[building=construction] {
     66    fill-color: #B6AE82;
     67}
     68
     69area[building=roof], area[building=carport] {
     70    fill-color: #C2CAD8;
     71}
     72
     73area[building=static_caravan], area[building=tent], area[building=beach_hut] {
     74    fill-color: #97b3e8;
     75}
     76
     77area[building=office] {
     78    fill-color: #73e6d4;
     79}
     80}}}