meta 
{
    title: "BAR Damage Assessment";
    description: "Displays colored and shaped icons, to show tagging of visible structural strength and damage scale of buildings, according to HHI BAR damage assessment methodology, adapted for OSM";
    icon: "matrix-icons.png";
    version: "0.6_2018-03-24";
    author: "jgc";
    link: "https://josm.openstreetmap.de/wiki/Styles/BAR-damage-assessment"; 
}
/*
   Based on: https://hhi.harvard.edu/publications/satellite-imagery-interpretation-guide-assessing-wind-disaster-damage-structures , adapted for OSM
   
   (mapcss style adapted from https://josm.openstreetmap.de/wiki/Styles/JP-Tsunami)
*/
node[damage=none][damage:structure=light] {icon-image: "light-none-16.png"}
node[damage=minimal][damage:structure=light] {icon-image: "light-minimal-16.png"}
node[damage=significant][damage:structure=light] {icon-image: "light-significant-16.png"}
node[damage=complete][damage:structure=light] {icon-image: "light-complete-16.png"}
node[damage=none][damage:structure=medium] {icon-image: "medium-none-16.png"}
node[damage=minimal][damage:structure=medium] {icon-image: "medium-minimal-16.png"}
node[damage=significant][damage:structure=medium] {icon-image: "medium-significant-16.png"}
node[damage=complete][damage:structure=medium] {icon-image: "medium-complete-16.png"}
node[damage=none][damage:structure=heavy] {icon-image: "heavy-none-16.png"}
node[damage=minimal][damage:structure=heavy] {icon-image: "heavy-minimal-16.png"}
node[damage=significant][damage:structure=heavy] {icon-image: "heavy-significant-16.png"}
node[damage=complete][damage:structure=heavy] {icon-image: "heavy-complete-16.png"}

area[damage=none][damage:structure=light]:closed {fill-image: "light-none-16.png"}
area[damage=minimal][damage:structure=light]:closed {fill-image: "light-minimal-16.png"}
area[damage=significant][damage:structure=light]:closed {fill-image: "light-significant-16.png"}
area[damage=complete][damage:structure=light]:closed {fill-image: "light-complete-16.png"}
area[damage=none][damage:structure=medium]:closed {fill-image: "medium-none-16.png"}
area[damage=minimal][damage:structure=medium]:closed {fill-image: "medium-minimal-16.png"}
area[damage=significant][damage:structure=medium]:closed {fill-image: "medium-significant-16.png"}
area[damage=complete][damage:structure=medium]:closed {fill-image: "medium-complete-16.png"}
area[damage=complete][damage:structure=medium]:closed {fill-image: "medium-complete-16.png"}
area[damage=none][damage:structure=heavy]:closed {fill-image: "heavy-none-16.png"}
area[damage=minimal][damage:structure=heavy]:closed {fill-image: "heavy-minimal-16.png"}
area[damage=significant][damage:structure=heavy]:closed {fill-image: "heavy-significant-16.png"}
area[damage=complete][damage:structure=heavy]:closed {fill-image: "heavy-complete-16.png"}


/* Kept from PierZen's JP-Tsunami: */
/* control node size to help vizualise damaged zones at lower zoom levels */
node[note] { icon-size:4; z-index: 1;}
node|z1-17 { symbol-shape: square; symbol-stroke-color: rosybrown; symbol-fill-color: rosybrown; symbol-size: 1; z-index:1}
node|z18 { symbol-shape: square; symbol-stroke-color: navy; symbol-fill-color: rosybrown; symbol-size:5;  z-index:1}
node|z19- { symbol-shape: square; symbol-stroke-color: navy; symbol-fill-color: rosybrown; symbol-size:6;  z-index:1}

