Changes between Version 8 and Version 9 of Styles/HealthBoundary
- Timestamp:
- 2021-05-28T21:01:44+02:00 (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Styles/HealthBoundary
v8 v9 25 25 canvas { 26 26 fill-color: #ffffea; 27 default-points: false; 28 default-lines: false; 27 29 } 28 30 … … 61 63 area { 62 64 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; 67 67 } 68 68 way { … … 81 81 defines health boundaries pseudo-layer ::layer 82 82 + distinct colors for each health_level 83 + set health_way_selected 83 84 ------------------------------------------------------------------------*/ 84 85 85 86 area[boundary][setting("allow_health_level_10")][health_level=10]::health_level, 86 87 area[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; 90 92 font-size: 1; 91 93 text-color: white; 92 94 text: name; 93 95 text-position: center; 96 font-size:1; 94 97 width:2; 95 98 color:green; 96 opacity: 1; 99 opacity: 1; text-opacity: 1; 97 100 } 98 area|z12-[health_level _10]::health_level { font-size: 14;}101 area|z12-[health_level=10]::health_level { font-size: 14; opacity: 1;} 99 102 100 103 area[boundary][setting("allow_health_level_8")][health_level=8]::health_level, 101 104 area[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; 105 109 font-size: 1; 106 110 text-color: navy; … … 109 113 width:3; 110 114 color:navy; 111 115 opacity: 1; text-opacity: 1; 112 116 } 113 area|z10- .health_level[8]::health_level { font-size: 14;}117 area|z10-[health_layer=8]::health_level { font-size: 14;} 114 118 115 119 area[boundary][setting("allow_health_level_6")][health_level=6]::health_level, 116 120 area[boundary][setting("allow_health_level_6")][health_level=6] > way::health_level 117 {set .health_level; 121 { 122 set health_area_selected; 118 123 z-index: 15; 119 fill-color:darkcyan; fill-opacity:0.2; 124 fill-color:darkcyan; fill-opacity:0.2; 120 125 font-size: 15; 121 126 text-color: blue; … … 124 129 width: 3; 125 130 color:blue; 126 opacity: 1; 131 opacity: 1; text-opacity: 1; 127 132 } 128 133 area[boundary][setting("allow_health_level_5")][health_level=5]::health_level, 129 134 area[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; 133 139 font-size: 18; 134 140 text-color: brown; … … 137 143 width: 4; 138 144 color: brown; 139 opacity:1; 145 opacity: 1; text-opacity: 1; 140 146 } 141 147 142 148 area[boundary][setting("allow_health_level_4")][health_level=4]::health_level, 143 149 area[boundary][setting("allow_health_level_4")][health_level=4]> way::health_level 144 {set .health_level; 150 { 151 set health_area_selected; 145 152 z-index: 20; 146 153 fill-color:crimson; fill-opacity:0.2; … … 151 158 width: 5; 152 159 color: crimson; 153 opacity: 1; 160 opacity: 1; text-opacity: 1; 154 161 } 155 162 … … 157 164 ways - defines health boundaries pseudo-layer ::layer 158 165 + distinct colors for each health_level 166 + set health_way_selected 159 167 ------------------------------------------------------------------------*/ 160 168 161 169 way[boundary][setting("allow_health_level_10")][health_level=10]::health_level { 162 set .health_level; 163 /*z-index: 11;*/ 170 set health_way_selected; 164 171 width:2; 165 172 color:green; … … 172 179 way[boundary][setting("allow_health_level_8")][health_level=8]::health_level 173 180 { 174 set .health_level; 175 /*z-index: 13;*/ 181 set health_way_selected; 176 182 width:3; 177 183 color:navy; … … 183 189 184 190 way[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; 187 193 text-position: center; 188 194 width: 3; … … 196 202 way[boundary][setting("allow_health_level_5")][health_level=5]::health_level 197 203 { 198 set .health_level; 199 /*z-index: 16;*/ 204 set health_way_selected; 200 205 width: 4; 201 206 color: brown; … … 209 214 way[boundary][setting("allow_health_level_4")][health_level=4]::health_level 210 215 { 211 set .health_level; 212 /*z-index: 20;*/ 216 set health_way_selected; 213 217 width: 5; 214 218 color: crimson; … … 218 222 casing-opacity: 0.7; 219 223 } 224 225 /*------------------------------------------------------------------------ 226 nodes - add to health boundaries pseudo-layer ::layer 227 + set health_nodes_selected 228 ------------------------------------------------------------------------*/ 229 230 area[boundary][setting("allow_health_level_10")][health_level=10] > node::health_level, 231 area[boundary][setting("allow_health_level_8")][health_level=8] > node::health_level, 232 area[boundary][setting("allow_health_level_6")][health_level=6] > node::health_level, 233 area[boundary][setting("allow_health_level_5")][health_level=5] > node::health_level, 234 area[boundary][setting("allow_health_level_4")][health_level=4] > node::health_level { 235 set health_nodes_selected; 236 } 220 237 221 238 /*------------------------------------------------------------------------ … … 237 254 } 238 255 239 relation[boundary=health]:unclosed_multipolygon::health_level > way 240 { 241 linecap: round; 256 257 area|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 267 area[boundary=health]:unclosed_multipolygon::health_level > way 268 { 242 269 text:""; 243 270 casing-width:6; 244 271 casing-dashes: 10,10; 245 272 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; 253 274 } 254 275 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 281 area::health_layer > node|z1-13 { 277 282 symbol-size:0.01; 278 283 symbol-shape: square; … … 284 289 } 285 290 286 area|z16-[boundary=health]::health_layer > node,287 way|z16-[boundary=health]::health_layer > node{288 symbol-size: 2;291 node|z14-[(parent_tag(health_level))]::health_level 292 { 293 symbol-size:4; 289 294 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 303 node|z12-[(parent_tag(health_level))]:connection::health_level { 301 304 symbol-size:10; 302 305 symbol-shape: circle; … … 311 314 /* connection nodes - unclosed areas */ 312 315 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 { 316 area|z11-!:closed[boundary=health]::health_level >[index=1] node!:connection, 317 area|z11-!:closed[boundary=health]::health_level >[index=-1] node!:connection 318 { 317 319 symbol-fill-color: yellow; 318 320 symbol-stroke-color: crimson; 319 symbol-stroke-width: 2;321 symbol-stroke-width: 4; 320 322 symbol-shape: triangle; 321 symbol-size: 24;323 symbol-size: 30; 322 324 symbol-stroke-opacity:1; 323 325 symbol-fill-opacity:1;