| | 1 | == Disaster damage assessment for color-blind people style == |
| | 2 | |
| | 3 | Displays colored icons and fill colors, to show tagging of visible damage scale of structures and filled patterns for roofing materials. It is the same than [https://josm.openstreetmap.de/wiki/Styles/DisasterDamageAssessment this style], but with colors adapted for color-blind people. Designed for use with [https://josm.openstreetmap.de/wiki/Presets/DisasterDamageAssessment this preset]. |
| | 4 | You can contact me via [osmwww:message/new/SeverinGeo my OSM username] |
| | 5 | |
| | 6 | {{{ |
| | 7 | #!style type="mapcss" |
| | 8 | meta |
| | 9 | { |
| | 10 | title: "Disaster damage assessment"; |
| | 11 | description: "Displays colored icons and fill colors, to show tagging of visible damage scale of structures and filled patterns for roof materials."; |
| | 12 | /* fr.description: "Affiche des icônes colorées et des couleurs de remplissage, pour montrer l'étiquetage de l'échelle des dommages visibles des structures et des motifs pour les matériaux de toiture."; |
| | 13 | es.description: "Muestra iconos de colores y colores de relleno, para mostrar el etiquetado de la escala de daños visibles de las estructuras y patrones de relleno para los materiales del techo."; |
| | 14 | pt.description: "Apresenta ícones coloridos e cores de preenchimento, para mostrar a marcação da escala de danos visíveis das estruturas e padrões preenchidos para materiais de cobertura."; |
| | 15 | pt_BR.description: "Apresenta ícones coloridos e cores de preenchimento, para mostrar a marcação da escala de danos visíveis das estruturas e padrões preenchidos para materiais de cobertura."; |
| | 16 | */ |
| | 17 | version: "2.0.[[revision]]_[[date]]"; |
| | 18 | author: "SeverinGeo"; |
| | 19 | icon: "matrix-icons.png"; |
| | 20 | link: "https://josm.openstreetmap.de/wiki/Styles/DisasterDamageAssessment"; |
| | 21 | } |
| | 22 | /* Adapted from jgc's style for HHI BAR damage assessment methodology: 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) |
| | 23 | */ |
| | 24 | |
| | 25 | node[damage=none] {icon-image: "colorblind-none-16.png"; icon-opacity: 0.7; icon-width:14;} |
| | 26 | node[damage=minimal] {icon-image: "colorblind-minimal-16.png"; icon-opacity: 0.7; icon-width:14;} |
| | 27 | node[damage=significant] {icon-image: "colorblind-significant-16.png"; icon-opacity: 0.7; icon-width:14;} |
| | 28 | node[damage=complete] {icon-image: "colorblind-complete-16.png"; icon-opacity: 0.7; icon-width:14;} |
| | 29 | |
| | 30 | area[damage=none]:closed {fill-opacity:0.3; width: 1.2; fill-color: #00e800;} |
| | 31 | area[damage=minimal]:closed {fill-opacity:0.3; width: 1.2; fill-color: #fde600;} |
| | 32 | area[damage=significant]:closed {fill-opacity:0.3; width: 1.2; fill-color: #fd9100;} |
| | 33 | area[damage=complete] {fill-opacity:0.3; fill-color: #fd0000; z-index: 1;} |
| | 34 | |
| | 35 | node[damage:Chido=none] {icon-image: "medium-none-16.png"; icon-opacity: 0.7; icon-width:14;} |
| | 36 | node[damage:Chido=minimal] {icon-image: "medium-minimal-16.png"; icon-opacity: 0.7; icon-width:14;} |
| | 37 | node[damage:Chido=significant] {icon-image: "medium-significant-16.png"; icon-opacity: 0.7; icon-width:14;} |
| | 38 | node[damage:Chido=complete] {icon-image: "medium-complete-16.png"; icon-opacity: 0.7; icon-width:14;} |
| | 39 | |
| | 40 | area[damage:Chido=none]:closed {fill-opacity:0.3; width: 1.2; fill-color: #00e800;} |
| | 41 | area[damage:Chido=minimal]:closed {fill-opacity:0.3; width: 1.2; fill-color: #fde600;} |
| | 42 | area[damage:Chido=significant]:closed {fill-opacity:0.3; width: 1.2; fill-color: #fd9100;} |
| | 43 | area[damage:Chido=complete] {fill-opacity:0.3; fill-color: #fd0000; z-index: 1;} |
| | 44 | |
| | 45 | way[roof:material=metal]:closed, |
| | 46 | way[roof:material=metal_sheet]:closed |
| | 47 | { width: 1.5; color: black; dashes: 6,6; } |
| | 48 | |
| | 49 | way[roof:material=copper]:closed, |
| | 50 | way[roof:material=eternit]:closed, |
| | 51 | way[roof:material=glass]:closed, |
| | 52 | way[roof:material=grass]:closed, |
| | 53 | way[roof:material=gravel]:closed, |
| | 54 | way[roof:material=roof_tiles]:closed, |
| | 55 | way[roof:material=slate]:closed, |
| | 56 | way[roof:material=stones]:closed, |
| | 57 | way[roof:material=tar_paper]:closed, |
| | 58 | way[roof:material=thatch]:closed, |
| | 59 | way[roof:material=wood]:closed |
| | 60 | { width: 1.5; color: black; dashes: 20,5; } |
| | 61 | |
| | 62 | way[roof:material=concrete] |
| | 63 | { width: 2; color: black; } |
| | 64 | |
| | 65 | /*way[!damage][roof:material] { text: eval("Damage ?"); text-color: #f30122; text-halo-color: white; font-size: 11; text-position: center; }*/ |
| | 66 | way[!roof:material][building!=construction][roof!=no][damage] { text: eval("Roof material ?"); text-color: #f30122; text-halo-color: white; font-size: 11; text-position: center; } |
| | 67 | way[!roof:material][!damage][building] { width: 1.5; color: white; } |
| | 68 | way[!roof:material][building!=construction][roof!=no][damage:Chido] { text: eval("Roof material ?"); text-color: #f30122; text-halo-color: white; font-size: 11; text-position: center; } |
| | 69 | way[!roof:material][!damage:Chido][building] { width: 1.5; color: white; } |
| | 70 | |
| | 71 | node|z1-19 { symbol-shape: square; symbol-stroke-color: rosybrown; symbol-fill-color: rosybrown; symbol-size: 1; z-index:1} |
| | 72 | }}} |