Changeset 8050 in josm for trunk/styles


Ignore:
Timestamp:
2015-02-11T23:28:06+01:00 (10 years ago)
Author:
Klumbumbus
Message:

fix #4927 - add new turn restriction icon set which fits better to the used tags. You can switch back to the old icon set in the style settings of the stale. There is a new option.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/styles/standard/elemstyles.mapcss

    r8045 r8050  
    3939}
    4040
     41setting::alt_turn_icons {
     42  type: boolean;
     43  label: tr("Use alternative turn restriction icon set");
     44  default: false;
     45}
     46
    4147/*********************/
    4248/* turn restrictions */
    4349/*********************/
    4450
    45 relation[restriction=no_left_turn] {
     51relation[restriction=no_left_turn][!setting("alt_turn_icons")] {
     52    icon-image: "vehicle/restriction/turn_restrictions/no_left_turn_red.png";
     53    set icon_z17;
     54    text: auto;
     55}
     56relation[restriction=no_left_turn][setting("alt_turn_icons")] {
    4657    icon-image: "vehicle/restriction/turn_restrictions/no_left_turn.png";
    4758    set icon_z17;
    4859    text: auto;
    4960}
    50 relation[restriction=no_right_turn] {
     61relation[restriction=no_right_turn][!setting("alt_turn_icons")] {
     62    icon-image: "vehicle/restriction/turn_restrictions/no_right_turn_red.png";
     63    set icon_z17;
     64    text: auto;
     65}
     66relation[restriction=no_right_turn][setting("alt_turn_icons")] {
    5167    icon-image: "vehicle/restriction/turn_restrictions/no_right_turn.png";
    5268    set icon_z17;
    5369    text: auto;
    5470}
    55 relation[restriction=no_straight_on] {
     71relation[restriction=no_straight_on][!setting("alt_turn_icons")] {
     72    icon-image: "vehicle/restriction/turn_restrictions/no_straight_on_red.png";
     73    set icon_z17;
     74    text: auto;
     75}
     76relation[restriction=no_straight_on][setting("alt_turn_icons")] {
    5677    icon-image: "vehicle/restriction/turn_restrictions/no_straight_on.png";
    5778    set icon_z17;
Note: See TracChangeset for help on using the changeset viewer.