Changes between Version 58 and Version 59 of Styles/Lane_and_Road_Attributes


Ignore:
Timestamp:
2015-02-18T15:13:00+01:00 (11 years ago)
Author:
imagic
Comment:

Disabled the default rendering of traffic signs in case the style provides its own

Legend:

Unmodified
Added
Removed
Modified
  • Styles/Lane_and_Road_Attributes

    v58 v59  
    35843584
    35853585/* Now render the traffic sign */
    3586 node|z16-[!(prop(traffic_sign_svg)="")]
     3586node|z16-[!(prop(traffic_sign_svg,"default")="")]
    35873587{
    35883588    major-z-index: 5; /* JOSM added some default rendering, which interferes with this */
    35893589    icon-image: eval(concat("data:image/svg+xml,<svg width='100px' height='",prop(traffic_sign_top),"'>",prop(traffic_sign_svg),"</svg>"));
    35903590    icon-width: eval(max(12,prop(pixel_per_metre)));
     3591}
     3592
     3593/* Disable JOSMs default rendering (this is a hack and may fail at any time) */
     3594/* Make sure, that the selector is identical to the one that actually renders the traffic sign */
     3595node|z16-[!(prop(traffic_sign_svg,"default")="")]::core_maxnodebg
     3596{
     3597    symbol-shape: none;
     3598}
     3599node|z16-[!(prop(traffic_sign_svg,"default")="")]::core_maxnodefg
     3600{
     3601    text: none;
     3602    symbol-shape: none;
    35913603}
    35923604