Changeset 7383 in josm for trunk/styles
- Timestamp:
- 2014-08-13T16:42:17+02:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/styles/standard/elemstyles.mapcss
r7378 r7383 272 272 node[maxlength] { 273 273 icon-image: "vehicle/restriction/maxlength.png"; 274 }275 node[maxspeed] {276 icon-image: "vehicle/restriction/speed.png";277 274 } 278 275 node[minspeed] { … … 3546 3543 } 3547 3544 3545 /******************/ 3546 /* maxspeed nodes */ 3547 /******************/ 3548 node[maxspeed=none] { 3549 icon-image: "vehicle/restriction/maxspeed_none.svg"; 3550 } 3551 node[maxspeed=~/^[0-9]+$/] { 3552 maxspeedprop: tag(maxspeed); 3553 set maxspeedclass; 3554 } 3555 node[maxspeed=signals] { 3556 maxspeedprop: " ?"; 3557 set maxspeedclass; 3558 } 3559 node[maxspeed=~/^[0-9]+ mph/] { 3560 maxspeedprop: get(split(" mph",tag(maxspeed)),0); 3561 set maxspeedclass; 3562 } 3563 node[maxspeed=~/[0-9]+ km\/h/] { 3564 maxspeedprop: get(split(" km/h",tag(maxspeed)),0); 3565 set maxspeedclass; 3566 } 3567 node[maxspeed=~/[0-9]+ knots/] { 3568 maxspeedprop: get(split(" knots",tag(maxspeed)),0); 3569 set maxspeedclass; 3570 } 3571 node[prop(maxspeedclass, default)][!is_prop_set(icon-image, default)]::core_maxnodebg { 3572 /* background (white) */ 3573 symbol-shape: circle; 3574 symbol-size: 17; 3575 symbol-fill-color: white; 3576 major-z-index: 4.2; 3577 } 3578 node[maxspeed]["maxspeed:variable"]["maxspeed:variable"!="no"][!is_prop_set(icon-image, default)]::core_maxnodebg, 3579 node[maxspeed=signals][!is_prop_set(icon-image, default)]::core_maxnodebg { 3580 /* background (black) */ 3581 symbol-fill-color: black; 3582 } 3583 node[prop(maxspeedclass, default)][!is_prop_set(icon-image, default)]::core_maxnodefg { 3584 /* foreground (black text and red circle) */ 3585 symbol-shape: circle; 3586 symbol-size: 15; 3587 symbol-stroke-color: crimson; 3588 symbol-stroke-width: 2; 3589 text: prop(maxspeedprop, default); 3590 font-size: 8; 3591 font-weight: bold; 3592 font-family: "Droid Sans"; 3593 text-color: black; 3594 text-anchor-horizontal: center; 3595 text-anchor-vertical: center; 3596 text-offset-x: 0; 3597 text-offset-y: -1; 3598 major-z-index: 4.2; 3599 } 3600 node[maxspeed]["maxspeed:variable"]["maxspeed:variable"!="no"][!is_prop_set(icon-image, default)]::core_maxnodefg, 3601 node[maxspeed=signals][!is_prop_set(icon-image, default)]::core_maxnodefg { 3602 /* foreground (white text) */ 3603 text-color: white; 3604 } 3605 3548 3606 /***************/ 3549 3607 /* zoom levels */ … … 3590 3648 } 3591 3649 3592 node|z20,area|z20 { font-size: 9; } 3593 node|z21,area|z21 { font-size: 10; } 3594 node|z22-,area|z22- { font-size: 11; } 3650 node|z19,area|z19 { font-size: 9; } 3651 node|z20-,area|z20- { font-size: 10; } 3595 3652 3596 3653 /**************/
Note:
See TracChangeset
for help on using the changeset viewer.