Changes between Version 8 and Version 9 of Styles/HealthBoundary


Ignore:
Timestamp:
2021-05-28T21:01:44+02:00 (4 years ago)
Author:
pierzen
Comment:

revision selector nodes in health territories

Legend:

Unmodified
Added
Removed
Modified
  • Styles/HealthBoundary

    v8 v9  
    2525canvas {
    2626    fill-color: #ffffea;
     27        default-points: false;
     28        default-lines: false;
    2729}
    2830
     
    6163area {
    6264        z-index: -1;
    63         linecap: none;
    64     width: 0; fill-opacity: 0;
    65         text-opacity:0;
    66         color: #FFFFAA; casing-opacity:0;
     65        fill-color: #FFFFAA; fill-opacity:0;
     66        text-color: #FFBBAA; opacity: 0; text-opacity: 0;
    6767}
    6868way {
     
    8181 defines health boundaries pseudo-layer ::layer
    8282 + distinct colors for each health_level
     83 + set health_way_selected
    8384 ------------------------------------------------------------------------*/
    8485
    8586area[boundary][setting("allow_health_level_10")][health_level=10]::health_level,
    8687area[boundary][setting("allow_health_level_10")][health_level=10] >way::health_level
    87 {       set .health_level;
    88         z-index: 11;
    89   fill-color:green; fill-opacity:0.2;
     88{       
     89   set health_area_selected;
     90   z-index: 11;
     91   fill-color:green; fill-opacity:0.2;
    9092   font-size: 1;
    9193   text-color: white;
    9294   text: name;
    9395   text-position: center;
     96   font-size:1;
    9497   width:2;
    9598   color:green;
    96    opacity: 1;
     99   opacity: 1; text-opacity: 1;
    97100  } 
    98 area|z12-[health_level_10]::health_level {      font-size: 14;}
     101area|z12-[health_level=10]::health_level {      font-size: 14; opacity: 1;}
    99102
    100103area[boundary][setting("allow_health_level_8")][health_level=8]::health_level,
    101104area[boundary][setting("allow_health_level_8")][health_level=8] > way::health_level
    102 {set .health_level;
    103         z-index: 13;
    104   fill-color:blue; fill-opacity:0.2;
     105{
     106   set health_area_selected;
     107   z-index: 13;
     108   fill-color:blue; fill-opacity:0.2;
    105109   font-size: 1;
    106110   text-color: navy;
     
    109113   width:3;
    110114   color:navy;
    111     opacity: 1;
     115   opacity: 1; text-opacity: 1;
    112116 } 
    113 area|z10-.health_level[8]::health_level {       font-size: 14;}
     117area|z10-[health_layer=8]::health_level {       font-size: 14;}
    114118 
    115119area[boundary][setting("allow_health_level_6")][health_level=6]::health_level,
    116120area[boundary][setting("allow_health_level_6")][health_level=6] > way::health_level
    117 {set .health_level;
     121{
     122    set health_area_selected;
    118123        z-index: 15;
    119   fill-color:darkcyan; fill-opacity:0.2;
     124   fill-color:darkcyan; fill-opacity:0.2;
    120125   font-size: 15;
    121126   text-color: blue;
     
    124129   width: 3;
    125130   color:blue;
    126    opacity: 1;
     131   opacity: 1; text-opacity: 1;
    127132   }
    128133area[boundary][setting("allow_health_level_5")][health_level=5]::health_level,
    129134area[boundary][setting("allow_health_level_5")][health_level=5] > way::health_level
    130 {set .health_level;
    131   z-index: 16;
    132   fill-color:lightcoral; fill-opacity:0.2;
     135{
     136   set health_area_selected;
     137   z-index: 16;
     138   fill-color:lightcoral; fill-opacity:0.2;
    133139   font-size: 18;
    134140   text-color: brown;
     
    137143   width: 4;
    138144   color: brown;
    139    opacity:1;
     145   opacity: 1; text-opacity: 1;
    140146  }
    141147
    142148area[boundary][setting("allow_health_level_4")][health_level=4]::health_level,
    143149area[boundary][setting("allow_health_level_4")][health_level=4]> way::health_level
    144 {set .health_level;
     150{
     151   set health_area_selected;
    145152   z-index: 20;
    146153   fill-color:crimson; fill-opacity:0.2;
     
    151158   width:  5;
    152159   color: crimson;
    153    opacity: 1;
     160   opacity: 1; text-opacity: 1;
    154161}
    155162
     
    157164 ways - defines health boundaries pseudo-layer ::layer
    158165 + distinct colors for each health_level
     166 + set health_way_selected
    159167 ------------------------------------------------------------------------*/
    160168
    161169way[boundary][setting("allow_health_level_10")][health_level=10]::health_level {       
    162         set .health_level;
    163         /*z-index: 11;*/
     170   set health_way_selected;
    164171        width:2;
    165172        color:green;
     
    172179way[boundary][setting("allow_health_level_8")][health_level=8]::health_level
    173180{
    174         set .health_level;
    175         /*z-index: 13;*/
     181   set health_way_selected;
    176182        width:3;
    177183        color:navy;
     
    183189 
    184190way[boundary][setting("allow_health_level_6")][health_level=6]::health_level
    185 {set .health_level;
    186         /*z-index: 15;*/
     191{
     192   set health_way_selected;
    187193   text-position: center;
    188194   width: 3;
     
    196202way[boundary][setting("allow_health_level_5")][health_level=5]::health_level
    197203{
    198         set .health_level;
    199         /*z-index: 16;*/
     204   set health_way_selected;
    200205        width: 4;
    201206        color: brown;
     
    209214way[boundary][setting("allow_health_level_4")][health_level=4]::health_level
    210215{
    211         set .health_level;
    212         /*z-index: 20;*/
     216    set health_way_selected;
    213217        width:  5;
    214218        color: crimson;
     
    218222        casing-opacity: 0.7;
    219223}
     224
     225/*------------------------------------------------------------------------
     226 nodes - add to health boundaries pseudo-layer ::layer
     227 + set health_nodes_selected
     228 ------------------------------------------------------------------------*/
     229
     230area[boundary][setting("allow_health_level_10")][health_level=10] > node::health_level,
     231area[boundary][setting("allow_health_level_8")][health_level=8] > node::health_level,
     232area[boundary][setting("allow_health_level_6")][health_level=6] > node::health_level,
     233area[boundary][setting("allow_health_level_5")][health_level=5] > node::health_level,
     234area[boundary][setting("allow_health_level_4")][health_level=4] > node::health_level { 
     235   set health_nodes_selected;
     236  } 
    220237
    221238/*------------------------------------------------------------------------
     
    237254}       
    238255
    239 relation[boundary=health]:unclosed_multipolygon::health_level > way     
    240 {
    241   linecap: round;
     256
     257area|z12-[boundary=health]:unclosed_multipolygon::health_level
     258{
     259  text: name;
     260  text-halo-radius: 10;
     261  text-halo-color: yellow;
     262  text-halo-opacity: 0.3;
     263  font-size: 14;
     264  text-opacity: 1;
     265        }
     266
     267area[boundary=health]:unclosed_multipolygon::health_level > way
     268{
    242269  text:"";
    243270  casing-width:6;
    244271  casing-dashes: 10,10;
    245272  casing-color:yellow;
    246   casing-opacity:1;
    247   z-index: -3;
    248         symbol-stroke-width: 24;
    249         symbol-stroke-color: red;
    250         symbol-stroke-opacity: 0.8;
    251         symbol-shape: circle;
    252         symbol-size: 12;
     273  casing-opacity:1; 
    253274        }
    254275       
    255 area[boundary=health]:unclosed_multipolygon::health_level > node       
    256 {
    257   text:"";
    258   casing-width:6;
    259   casing-dashes: 10,10;
    260   casing-color:yellow;
    261   casing-opacity:1;
    262   z-index: 100;
    263         symbol-stroke-width: 24;
    264         symbol-stroke-color: red;
    265         symbol-stroke-opacity: 0.8;
    266         symbol-fill-opacity: 1;
    267         symbol-shape: circle;
    268         symbol-size: 12;
    269         }
    270 
    271 /*------------------------------------------------------------------------
    272  health boundaries pseudo-layer ::layer
    273  nodes  ------------------------------------------------------------------------*/
    274 
    275 area|z1-15[boundary=health]::health_layer > node,
    276 way|z1-15[boundary=health]::health_layer > node {
     276/*------------------------------------------------------------------------
     277 health boundaries
     278 colorize
     279 ------------------------------------------------------------------------*/
     280
     281area::health_layer > node|z1-13 {
    277282        symbol-size:0.01;
    278283        symbol-shape: square;
     
    284289}
    285290
    286 area|z16-[boundary=health]::health_layer > node,
    287 way|z16-[boundary=health]::health_layer > node {
    288         symbol-size:2;
     291node|z14-[(parent_tag(health_level))]::health_level
     292{
     293        symbol-size:4;
    289294        symbol-shape: square;
    290         symbol-stroke-color: navy;
    291         symbol-stroke-width: 2;
    292         symbol-stroke-opacity: 1;
    293         symbol-fill-color: #FFFFBB;
    294         symbol-fill-opacity:1;
    295 }
    296 
    297 /* connection nodes - closed areas */
    298 
    299 area|z13-[boundary=health]::health_layer  node:connection,
    300 way|z13-[boundary=health]::health_layer  node:connection {
     295        symbol-stroke-color: #00ffff;
     296        symbol-stroke-width: 1;
     297        symbol-fill-color: #FFAAFF;
     298        symbol-fill-opacity:0.8;
     299        symbol-stroke-opacity: 0.8;
     300}
     301
     302
     303node|z12-[(parent_tag(health_level))]:connection::health_level {
    301304        symbol-size:10;
    302305        symbol-shape: circle;
     
    311314/* connection nodes - unclosed areas */
    312315
    313 area|z11-[boundary=health]::health_level >[index=1] node!:connection,
    314 area|z11-[boundary=health]::health_level >[index=-1] node!:connection,
    315 way|z11-[boundary=health]::health_level >[index=1] node!:connection,
    316 way|z11-[boundary=health]::health_level >[index=-1] node!:connection {
     316area|z11-!:closed[boundary=health]::health_level >[index=1] node!:connection,
     317area|z11-!:closed[boundary=health]::health_level >[index=-1] node!:connection
     318{
    317319        symbol-fill-color: yellow;
    318320        symbol-stroke-color: crimson;
    319         symbol-stroke-width: 2;
     321        symbol-stroke-width: 4;
    320322        symbol-shape: triangle;
    321         symbol-size: 24;
     323        symbol-size: 30;
    322324        symbol-stroke-opacity:1;
    323325        symbol-fill-opacity:1;