Ticket #10301: maxspeednodes2.diff

File maxspeednodes2.diff, 2.5 KB (added by Klumbumbus, 11 years ago)
  • styles/standard/elemstyles.mapcss

     
    273273node[maxlength] {
    274274    icon-image: "vehicle/restriction/maxlength.png";
    275275}
    276 node[maxspeed] {
    277     icon-image: "vehicle/restriction/speed.png";
    278 }
     276/* maxspeed see end of this file */
    279277node[minspeed] {
    280278    icon-image: "vehicle/restriction/minspeed.png";
    281279}
     
    36753673    icon-image: "misc/deprecated.png";
    36763674    text: auto;
    36773675}
     3676
     3677/******************/
     3678/* maxspeed nodes */
     3679/******************/
     3680node[maxspeed=none] {
     3681    icon-image: "vehicle/restriction/maxspeed_none.svg";
     3682}
     3683node[maxspeed=~/^[0-9]+$/] {
     3684    maxspeedprop: tag(maxspeed);
     3685    set maxspeedclass;
     3686}
     3687node[maxspeed=signals] {
     3688    maxspeedprop: " ?";
     3689    set maxspeedclass;
     3690}
     3691node[maxspeed=~/^[0-9]+ mph/] {
     3692    maxspeedprop: get(split(" mph",tag(maxspeed)),0);
     3693    set maxspeedclass;
     3694}
     3695node[maxspeed=~/[0-9]+ km\/h/] {
     3696    maxspeedprop: get(split(" km/h",tag(maxspeed)),0);
     3697    set maxspeedclass;
     3698}
     3699node[maxspeed=~/[0-9]+ knots/] {
     3700    maxspeedprop: get(split(" knots",tag(maxspeed)),0);
     3701    set maxspeedclass;
     3702}
     3703node[prop(maxspeedclass, default)][!is_prop_set(icon-image, default)]::core_maxnodebg {
     3704    /* background (white) */
     3705    symbol-shape: circle;
     3706    symbol-size: 17;
     3707    symbol-fill-color: white;
     3708    major-z-index: 4.2;
     3709}
     3710node[maxspeed]["maxspeed:variable"]["maxspeed:variable"!="no"][!is_prop_set(icon-image, default)]::core_maxnodebg,
     3711node[maxspeed=signals][!is_prop_set(icon-image, default)]::core_maxnodebg {
     3712    /* background (black) */
     3713    symbol-fill-color: black;
     3714}
     3715node[prop(maxspeedclass, default)][!is_prop_set(icon-image, default)]::core_maxnodefg {
     3716    /* foreground (black text and red circle) */
     3717    symbol-shape: circle;
     3718    symbol-size: 15;
     3719    symbol-stroke-color: crimson;
     3720    symbol-stroke-width: 2;
     3721    text: prop(maxspeedprop, default);
     3722    font-size: 8;
     3723    font-weight: bold;
     3724    text-color: black;
     3725    text-anchor-horizontal: center;
     3726    text-anchor-vertical: center;
     3727    text-offset-x: 0;
     3728    text-offset-y: -1;
     3729    major-z-index: 4.2;
     3730}
     3731node[maxspeed]["maxspeed:variable"]["maxspeed:variable"!="no"][!is_prop_set(icon-image, default)]::core_maxnodefg,
     3732node[maxspeed=signals][!is_prop_set(icon-image, default)]::core_maxnodefg {
     3733    /* foreground (white text) */
     3734    text-color: white;
     3735}
     3736
    36783737/* "deprecated" tags
    36793738     historic=museum -> tourism=museum
    36803739     man_made=power_wind -> power=generator and power_source=wind