Changeset 7421 in josm
- Timestamp:
- 2014-08-16T14:26:51+02:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/styles/standard/elemstyles.mapcss
r7415 r7421 3546 3546 /* maxspeed nodes */ 3547 3547 /******************/ 3548 node[maxspeed=none] {3548 node[maxspeed=none][!is_prop_set(icon-image)] { 3549 3549 icon-image: "vehicle/restriction/maxspeed_none.svg"; 3550 3550 } 3551 node|z17-[maxspeed=~/^[0-9]+$/] {3551 node|z17-[maxspeed=~/^[0-9]+$/][!is_prop_set(icon-image)] { 3552 3552 maxspeedprop: tag(maxspeed); 3553 3553 set maxspeedclass; 3554 3554 } 3555 node|z17-[maxspeed=signals] {3555 node|z17-[maxspeed=signals][!is_prop_set(icon-image)] { 3556 3556 maxspeedprop: " ?"; 3557 3557 set maxspeedclass; 3558 3558 } 3559 node|z17-[maxspeed=~/^[0-9]+ mph/] {3559 node|z17-[maxspeed=~/^[0-9]+ mph/][!is_prop_set(icon-image)] { 3560 3560 maxspeedprop: get(split(" mph",tag(maxspeed)),0); 3561 3561 set maxspeedclass; 3562 3562 } 3563 node|z17-[maxspeed=~/[0-9]+ km\/h/] {3563 node|z17-[maxspeed=~/[0-9]+ km\/h/][!is_prop_set(icon-image)] { 3564 3564 maxspeedprop: get(split(" km/h",tag(maxspeed)),0); 3565 3565 set maxspeedclass; 3566 3566 } 3567 node|z17-[maxspeed=~/[0-9]+ knots/] {3567 node|z17-[maxspeed=~/[0-9]+ knots/][!is_prop_set(icon-image)] { 3568 3568 maxspeedprop: get(split(" knots",tag(maxspeed)),0); 3569 3569 set maxspeedclass; … … 3576 3576 major-z-index: 4.2; 3577 3577 } 3578 node|z17-[maxspeed]["maxspeed:variable"]["maxspeed:variable"!="no"] [!is_prop_set(icon-image, default)]::core_maxnodebg,3579 node|z17-[maxspeed=signals] [!is_prop_set(icon-image, default)]::core_maxnodebg {3578 node|z17-[maxspeed]["maxspeed:variable"]["maxspeed:variable"!="no"]::core_maxnodebg, 3579 node|z17-[maxspeed=signals]::core_maxnodebg { 3580 3580 /* background (black) */ 3581 3581 symbol-fill-color: black; 3582 3582 } 3583 node|z17-[prop(maxspeedclass, default)] [!is_prop_set(icon-image, default)]::core_maxnodefg {3583 node|z17-[prop(maxspeedclass, default)]::core_maxnodefg { 3584 3584 /* foreground (black text and red circle) */ 3585 3585 symbol-shape: circle; … … 3597 3597 major-z-index: 4.2; 3598 3598 } 3599 node|z17-[maxspeed]["maxspeed:variable"]["maxspeed:variable"!="no"] [!is_prop_set(icon-image, default)]::core_maxnodefg,3600 node|z17-[maxspeed=signals] [!is_prop_set(icon-image, default)]::core_maxnodefg {3599 node|z17-[maxspeed]["maxspeed:variable"]["maxspeed:variable"!="no"]::core_maxnodefg, 3600 node|z17-[maxspeed=signals]::core_maxnodefg { 3601 3601 /* foreground (white text) */ 3602 3602 text-color: white; … … 3610 3610 text: auto; 3611 3611 } 3612 node|z16 -[!is_prop_set("icon-image")]!.maxspeedclass {3612 node|z16, node|z17-[!is_prop_set("icon-image")]!.maxspeedclass { 3613 3613 symbol-size:1; 3614 3614 symbol-shape: square;
Note:
See TracChangeset
for help on using the changeset viewer.