| | 282 | } |
| | 283 | |
| | 284 | /******************/ |
| | 285 | /* maxspeed nodes */ |
| | 286 | /******************/ |
| | 287 | node[maxspeed=none] { |
| | 288 | icon-image: "vehicle/restriction/maxspeed_none.svg"; |
| | 289 | } |
| | 290 | node[maxspeed=~/^[0-9]+$/] { |
| | 291 | maxspeedprop: tag(maxspeed); |
| | 292 | set maxspeedclass; |
| | 293 | } |
| | 294 | node[maxspeed=signals] { |
| | 295 | maxspeedprop: "▒"; |
| | 296 | set maxspeedclass; |
| | 297 | } |
| | 298 | node[maxspeed=~/^[0-9]+ mph/] { |
| | 299 | maxspeedprop: get(split(" mph",tag(maxspeed)),0); |
| | 300 | set maxspeedclass; |
| | 301 | } |
| | 302 | node[maxspeed=~/[0-9]+ km\/h/] { |
| | 303 | maxspeedprop: get(split(" km/h",tag(maxspeed)),0); |
| | 304 | set maxspeedclass; |
| | 305 | } |
| | 306 | node[maxspeed=~/[0-9]+ knots/] { |
| | 307 | maxspeedprop: get(split(" knots",tag(maxspeed)),0); |
| | 308 | set maxspeedclass; |
| | 309 | } |
| | 310 | node[prop(maxspeedclass, default)]::core_maxnodebg { |
| | 311 | /* background (white) */ |
| | 312 | symbol-shape: circle; |
| | 313 | symbol-size: 17; |
| | 314 | symbol-fill-color: white; |
| | 315 | major-z-index: 4.2; |
| | 316 | } |
| | 317 | node[maxspeed]["maxspeed:variable"]["maxspeed:variable"!="no"]::core_maxnodebg, |
| | 318 | node[maxspeed=signals]::core_maxnodebg { |
| | 319 | /* background (black) */ |
| | 320 | symbol-fill-color: black; |
| | 321 | } |
| | 322 | node[prop(maxspeedclass, default)]::core_maxnodefg { |
| | 323 | /* foreground (black text and red circle) */ |
| | 324 | symbol-shape: circle; |
| | 325 | symbol-size: 15; |
| | 326 | symbol-stroke-color: crimson; |
| | 327 | symbol-stroke-width: 2; |
| | 328 | text: prop(maxspeedprop, default); |
| | 329 | font-size: 8; |
| | 330 | font-weight: bold; |
| | 331 | text-color: black; |
| | 332 | text-anchor-horizontal: center; |
| | 333 | text-anchor-vertical: center; |
| | 334 | text-offset-x: 0; |
| | 335 | text-offset-y: 0; |
| | 336 | major-z-index: 4.2; |
| | 337 | } |
| | 338 | node[maxspeed]["maxspeed:variable"]["maxspeed:variable"!="no"]::core_maxnodefg, |
| | 339 | node[maxspeed=signals]::core_maxnodefg { |
| | 340 | /* foreground (white text) */ |
| | 341 | text-color: white; |