| | 1 | = Building Colors = |
| | 2 | |
| | 3 | == Description == |
| | 4 | |
| | 5 | This mappaint style colors buildings depending on their type ([osmwiki:Key:building building=*] tag). |
| | 6 | |
| | 7 | The 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 | |
| | 14 | meta { |
| | 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 | |
| | 23 | meta[lang=fr] { |
| | 24 | title: "Bâtiments colorés"; |
| | 25 | description: "Met en couleur les bâtiments en fonction de leur clé building=*."; |
| | 26 | } |
| | 27 | |
| | 28 | meta[lang=ca] { |
| | 29 | title: "Edificis de Colors"; |
| | 30 | description: "Acoloreix els edificis en funció de la seva clau building=*."; |
| | 31 | } |
| | 32 | |
| | 33 | area[building], area[building=yes] { |
| | 34 | fill-color: #e3ac81; |
| | 35 | } |
| | 36 | |
| | 37 | area[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 | |
| | 41 | area[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 | |
| | 45 | area[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 | |
| | 49 | area[building=hospital] { |
| | 50 | fill-color: #f274a0; |
| | 51 | } |
| | 52 | |
| | 53 | area[building=commercial], area[building=retail] { |
| | 54 | fill-color: #f7a1d6; |
| | 55 | } |
| | 56 | |
| | 57 | area[building=bunker], area[building=barracks] { |
| | 58 | fill-color: #e66565; |
| | 59 | } |
| | 60 | |
| | 61 | area[building=collapsed], area[building=disused], area[abandoned:building], area[disused:building] { |
| | 62 | fill-color: #787878; |
| | 63 | } |
| | 64 | |
| | 65 | area[building=construction] { |
| | 66 | fill-color: #B6AE82; |
| | 67 | } |
| | 68 | |
| | 69 | area[building=roof], area[building=carport] { |
| | 70 | fill-color: #C2CAD8; |
| | 71 | } |
| | 72 | |
| | 73 | area[building=static_caravan], area[building=tent], area[building=beach_hut] { |
| | 74 | fill-color: #97b3e8; |
| | 75 | } |
| | 76 | |
| | 77 | area[building=office] { |
| | 78 | fill-color: #73e6d4; |
| | 79 | } |
| | 80 | }}} |