Changes between Initial Version and Version 1 of Styles/DisasterDamageAssessmentForColorBlind


Ignore:
Timestamp:
2025-04-25T22:15:02+02:00 (9 months ago)
Author:
severin.menard
Comment:

Style creation

Legend:

Unmodified
Added
Removed
Modified
  • Styles/DisasterDamageAssessmentForColorBlind

    v1 v1  
     1== Disaster damage assessment for color-blind people style ==
     2
     3Displays 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].
     4You can contact me via [osmwww:message/new/SeverinGeo my OSM username]
     5
     6{{{
     7#!style type="mapcss"
     8meta
     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
     25node[damage=none] {icon-image: "colorblind-none-16.png"; icon-opacity: 0.7; icon-width:14;}
     26node[damage=minimal] {icon-image: "colorblind-minimal-16.png"; icon-opacity: 0.7; icon-width:14;}
     27node[damage=significant] {icon-image: "colorblind-significant-16.png"; icon-opacity: 0.7; icon-width:14;}
     28node[damage=complete] {icon-image: "colorblind-complete-16.png"; icon-opacity: 0.7; icon-width:14;}
     29
     30area[damage=none]:closed {fill-opacity:0.3; width: 1.2; fill-color: #00e800;}
     31area[damage=minimal]:closed {fill-opacity:0.3; width: 1.2; fill-color: #fde600;}
     32area[damage=significant]:closed {fill-opacity:0.3; width: 1.2; fill-color: #fd9100;}
     33area[damage=complete] {fill-opacity:0.3; fill-color: #fd0000; z-index: 1;}
     34
     35node[damage:Chido=none] {icon-image: "medium-none-16.png"; icon-opacity: 0.7; icon-width:14;}
     36node[damage:Chido=minimal] {icon-image: "medium-minimal-16.png"; icon-opacity: 0.7; icon-width:14;}
     37node[damage:Chido=significant] {icon-image: "medium-significant-16.png"; icon-opacity: 0.7; icon-width:14;}
     38node[damage:Chido=complete] {icon-image: "medium-complete-16.png"; icon-opacity: 0.7; icon-width:14;}
     39
     40area[damage:Chido=none]:closed {fill-opacity:0.3; width: 1.2; fill-color: #00e800;}
     41area[damage:Chido=minimal]:closed {fill-opacity:0.3; width: 1.2; fill-color: #fde600;}
     42area[damage:Chido=significant]:closed {fill-opacity:0.3; width: 1.2; fill-color: #fd9100;}
     43area[damage:Chido=complete] {fill-opacity:0.3; fill-color: #fd0000; z-index: 1;}
     44
     45way[roof:material=metal]:closed,
     46way[roof:material=metal_sheet]:closed
     47{ width: 1.5; color: black; dashes: 6,6;  }
     48
     49way[roof:material=copper]:closed,
     50way[roof:material=eternit]:closed,
     51way[roof:material=glass]:closed,
     52way[roof:material=grass]:closed,
     53way[roof:material=gravel]:closed,
     54way[roof:material=roof_tiles]:closed,
     55way[roof:material=slate]:closed,
     56way[roof:material=stones]:closed,
     57way[roof:material=tar_paper]:closed,
     58way[roof:material=thatch]:closed,
     59way[roof:material=wood]:closed
     60{ width: 1.5; color: black; dashes: 20,5;  }
     61
     62way[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; }*/
     66way[!roof:material][building!=construction][roof!=no][damage] { text: eval("Roof material ?"); text-color: #f30122; text-halo-color: white; font-size: 11; text-position: center; }
     67way[!roof:material][!damage][building] { width: 1.5; color: white; }
     68way[!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; }
     69way[!roof:material][!damage:Chido][building] { width: 1.5; color: white; }
     70
     71node|z1-19 { symbol-shape: square; symbol-stroke-color: rosybrown; symbol-fill-color: rosybrown; symbol-size: 1; z-index:1}
     72}}}