meta { title: "contagt Style"; author: "Niklas Bartz"; version: "0.1"; description: "Style to classify buildings"; link: "http://josm.openstreetmap.de/wiki/Styles/Coloured_buildings"; watch-modified: true; } area[building=residential] { text: eval("Wohn"); text-color: black; font-size: 9; z-index: 1; color: #FFFFFF; fill-color: #FFFFFF; width: 3; dashes: 10,2; } area[building=house] { text: eval("Haus"); text-color: black; font-size: 9; z-index: 1; color: #FFF88B; fill-color: #FFF88B; width: 3; dashes: 10,2; } area[building=detached] { text: eval("Einzel"); text-color: black; font-size: 9; z-index: 1; color: #FFFD36; fill-color: #FFFD36; width: 3; } area[building=terrace] { text: eval("Reihen"); text-color: black; font-size: 9; z-index: 1; color: #FFFC00; fill-color: #FFFC00; width: 3; } area[building=apartments] { text: eval("Mehrf"); text-color: black; font-size: 9; z-index: 1; color: #FF9E00; fill-color: #FF9E00; width: 3; } area[building=garage] { text: eval("Garage"); text-color: black; font-size: 9; z-index: 1; color: #A37237; fill-color: #A37237; width: 3; } area[building=garages] { text: eval("Garagen"); text-color: black; font-size: 9; z-index: 1; color: #A37237; fill-color: #A37237; width: 3; } area[building=hotel] { text: eval("Hotel"); text-color: black; font-size: 9; z-index: 1; color: #F26100; fill-color: #F26100; width: 3; } area[building=commercial] { text: eval("gewerblich"); text-color: black; font-size: 9; z-index: 1; color: #D76EFF; fill-color: #D76EFF; width: 3; } area[building=industrial] { text: eval("industriel"); text-color: black; font-size: 9; z-index: 1; color: #C224FF; fill-color: #C224FF; width: 3; } area[building=church] { text: eval("Kirche"); text-color: black; font-size: 9; z-index: 1; color: #9224FF; fill-color: #9224FF; width: 3; } area[building=cathedral] { text: eval("Dom"); text-color: black; font-size: 9; z-index: 1; color: #7D1DDD; fill-color: #7D1DDD; width: 3; } area[building=retail] { text: eval("Einzelhandel"); text-color: black; font-size: 9; z-index: 1; color: #A5FC4E; fill-color: #A5FC4E; width: 3; } area[building=roof] { text: eval("Dach"); text-color: black; font-size: 9; z-index: 1; color: #CBA371; fill-color: #CBA371; width: 3; } area[building=hospital] { text: eval("Krankenhaus"); text-color: black; font-size:10; z-index: 1; color: #FF5566; fill-color: #FF5566; width: 3; } area[amenity=hospital] { color: #FF5566; width: 3; } area[building=school] { text: eval("Schule"); text-color: black; font-size: 9; z-index: 1; color: #884CFF; fill-color: #884CFF; width: 3; } area[amenity=school] { color: #884CFF; width: 3; } area[building=university] { text: eval("Uni"); text-color: black; font-size: 9; z-index: 1; color: #7834FF; fill-color: #7834FF; width: 2; } area[amenity=university] { color: #7834FF; width: 3; } area[building=civic] { text: eval("Öffentlich"); text-color: black; font-size: 9; z-index: 1; color: #FF2238; fill-color: #FF2238; width: 3; } area[building=dormitory] { text: eval("Wohnheim"); text-color: black; font-size: 9; z-index: 1; color: #F07B2D; fill-color: #F07B2D; width: 3; } area[building][amenity][building!=church][building!=cathedral] { text: "amenity"; text-color: black; dashes: 20,4; font-size: 10; z-index: 1; color: #FF2238; fill-color: #FF2238; width: 3; } area[building][shop] { text: "shop"; text-color: black; dashes: 20,4; font-size: 10; z-index: 1; color: #3E43D2; fill-color: #3E43D2; width: 3; } area[building][office] { text: "office"; text-color: black; font-size: 10; z-index: 1; color: #39D237; fill-color: #39D237; width: 3; dashes: 20,4; } /* highlight wrong schoolbuildings */ way[building=yes][amenity=school] { text: eval("set builing=school"); font-size: 12; z-index: 1; color: red; width: 5; dashes: 20,4; dashes-background-color: #FFFF00; } /* highlight wrong church */ way[building=yes][amenity=place_of_worship] { text: eval("set builing=church"); font-size: 12; z-index: 1; color: red; width: 5; dashes: 20,4; dashes-background-color: #FFFF00; } /* darken walls */ way[wall] { z-index: 1; color: #252525; width: 3; } way[handrail] { dashes: 5,2; color: #333333; width: 2; fill-color: #999999; } way[barrier=fence] { color: #404040; width: 2; dashes: 10, 2; } /* linking between different route files */ node[attributes *= "transitionRelation"] { text: "attributes"; font-size: 20; font-weight: bolder; z-index: 1; text-color: green; } node[tag]["attributes"] { text: eval(tag("tag")); /*text: eval("Set 'displayName'");*/ font-size: 16; z-index: 1; text-color: orange; } node[tag][!"attributes"] { /*text: eval(substring(tag("attributes"),5));*/ text: eval(tag("tag") ); /*text: eval("Set 'displayName'");*/ font-size: 16; z-index: 1; font-weight: bold; text-color: yellow; } node[tag=TODO] { text: eval("set tag="); font-size: 20; font-weight: bolder; z-index: 1; text-color: red; } way[TODO] { text: "TODO"; font-size: 20; font-weight: bolder; z-index: 10; text-color: red; } node[TODO] { text: "TODO"; font-size: 20; font-weight: bolder; z-index: 1; text-color: red; } area[surface=solid] { z-index: 2; fill-color: #0B0811; opacity: 0.9; } area[surface=background] { z-index: 0; color: #FFFFFF; fill-color: #FFFFFF; fill-opacity: .5; } area[surface=room] { z-index: 3; fill-color: #CCCCCC; color: #AAAAAA; width: 1; opacity: 0.9; dashes: 15, 10; } area[surface=green] { z-index: 3; fill-color: #88C037; opacity: 0.2; } area[surface=plant] { z-index: 3; fill-color: #83DF60; opacity: 0.9; } way[surface=door] { z-index: 5; color: #607F84; opacity: 1; width: 3; } area[surface=floor] { z-index: 2; fill-color: #A3BDFF; opacity: 0.3; } area[surface=steps] { z-index: 2; fill-color: #FFA384; opacity: 0.6; } area[surface=elevator] { z-index: 2; fill-color: #CCA384; opacity: 0.6; } area[surface=balcony] { z-index: 2; fill-color: #875646; opacity: 0.6; } area[surface=sanitary] { z-index: 13; fill-color: #9D7FFF; opacity: 0.3; } node[keywords ^= "#sanitary"] { icon-image: "service/toilets.png"; } area[surface=sand] { z-index: 13; fill-color: #FDD485; color: #000000; fill-opacity: 0.9; opacity: 0.8; dashes: 9, 9; } area[surface=concrete] { z-index: 13; fill-color: #DDDDDD; color: #222222; fill-opacity: 0.9; opacity: 0.6; dashes: 9, 3; } area[surface=paving_slab], way[surface=paving_slab] { z-index: 13; fill-color: #E0D0DB; color: #222222; opacity: 0.6; } way[wall != yes][!highway][!building][!amenity][!surface][!handrail] { z-index: 0; color: #ff5522; width: 3; } node[highway=emergency_access_point] { icon-width: 20; icon-height: 20; icon-image:https://upload.wikimedia.org/wikipedia/commons/5/57/ISO_7010_E007.svg; } area[natural=water] { color: #000066; fill-color: #0000ff; } way[surface=asphalt] { color: #00f000; fill-color: #ff0000; } area[surface=asphalt] { color: #000000; fill-color: #cccccc; }