| Version 2 (modified by , 12 years ago) ( diff ) |
|---|
This is a style to visualize the presence of some of the simple building:* tags (i.e. building:colour and building:levels, which can be obtained during ground surveys). Therefore, it helps mapping these tags in JOSM faster and more efficiently because you can see easily where these tags are missing.
Please add ideas for further improvement at the bottom of this page.
meta { title: "Simple building tags"; author: "heilbron"; version: "1.21_2020-10-05"; description: "Visualize the presence of some basic building tags (wall colour and later also building:levels)"; link: "http://josm.openstreetmap.de/wiki/Styles/SimpleBuildingTags"; watch-modified: true; } area[building] { z-index: 1; fill-opacity: 0.03; /* let the background, i.e. the roof, be recognizable */ } area[building]["building:colour"] { z-index: 1; opacity: 0.9; color: (tag("building:colour")); /* if a color is set, use it to color the outline ... */ } area[building]["building:colour"=grey] { color: #A0A0A0; /* ... but make grey (#BEBEBE) a little darker*/ } area[building]["building:colour"=darkgrey] { color: #505050; /* ... but make darkgrey (#A9A9A9) quite darker*/ } area[building]["building:colour"=brown] { color: #802020; /* ... but make brown (#A52A2A) darker*/ } area[building]["building:colour"=rose] { color: #E8ADAA; /* ... JOSM doesn't understand the official "rose" ?! */ } area[building]["building:colour"=cream] { color: #FFFFCC; /* ... JOSM doesn't understand the official "cream" ?! */ } area[building]["building:colour"=mustard] { color: #FFDB58; /* ... JOSM doesn't understand the official "mustard" ?! */ } area[building]["building:colour"=iceberg] { color: #56A5EC; /* ... JOSM doesn't understand the official "iceberg" ?! */ } area[building]["building:colour"=peach] { color: #FFE5B4; /* ... JOSM doesn't understand the official "peach" ?! */ } area[building]["building:colour"="lemon chiffon"] { color: #FFF8C6; /* ... JOSM doesn't understand the official "lemon chiffon", "sandig" in German ?! */ } area[building][!"building:colour"] { z-index: 1; color: #080808; /* no building:colour tag => make the outline look almost black */ } area|z17-[building][!"building:levels"] /* no building:levels set? => dash the outline */ { z-index: 1; width: 4; dashes: 3,3; /* any building WITHOUT a building:levels tag (except fpr garages) gets a 4 pixel outline */ } area|z17-[building=~/garage.*/] /* almost ignore building tags for garages, i.e. make them all look the same */ { z-index: 0; width: 2; dashes: 8,1; color: #282828; /* garages get a thin, dashed, almost black outline, unless tagged otherwise */ } area[building]["building:levels"] { z-index: 1; width: 5; /* any building WITH a building:levels tag (except for garages) get a 5 pixel thick outline */ }
Styles_SimpleBuildingTags-style.mapcss, Styles_SimpleBuildingTags.zip
Ideas for improvements:
- Visualize the number of building:levels.
Attachments (2)
-
JOSM_without_SimpleBuildingTags.png
(767.6 KB
) - added by 7 years ago.
JOSM screenshot without SimpleBuildingTags
-
JOSM_with_SimpleBuildingTags.png
(769.3 KB
) - added by 7 years ago.
JOSM screenshot with SimpleBuildingTags
Download all attachments as: .zip


