Changeset 7744 in josm


Ignore:
Timestamp:
2014-11-24T15:36:37+01:00 (9 years ago)
Author:
Klumbumbus
Message:

fix #10769 - drop support of restriction=* on nodes

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/data/validator/geometry.mapcss

    r7737 r7744  
    3737node[source:outline] {
    3838  throwWarning: tr("{0} on a node. Should be drawn as an area.", "{0.tag}");
     39}
     40
     41/* {0} on a node, should be a relation; see #10252, #10769 */
     42node[route],
     43node[restriction] {
     44  throwWarning: tr("{0}=* on a node. Should be used in a relation", "{0.key}");
     45}
     46
     47/* {0} on a way, should be a relation; see #10252 */
     48way[route=bus] {
     49  throwWarning: tr("{0} on a way. Should be used in a relation", "{0.tag}");
    3950}
    4051
     
    96107  throwWarning: tr("{0} inside {1}", concat("power=", tag("power")), concat("power=", tag("power")));
    97108}
    98 
    99 /* see #10252 */
    100 way[route=bus] {
    101   throwWarning: tr("{0} on a way. Should be used in a relation", "{0.tag}");
    102 }
    103 node[route] {
    104   throwWarning: tr("{0}=* on a node. Should be used in a relation", "{0.key}");
    105 }
  • trunk/styles/standard/elemstyles.mapcss

    r7740 r7744  
    4343/*********************/
    4444
    45 relation[restriction=no_left_turn],
    46 node[restriction=no_left_turn] {
     45relation[restriction=no_left_turn] {
    4746    icon-image: "vehicle/restriction/turn_restrictions/no_left_turn.png";
    4847    set icon_z17;
    4948    text: auto;
    5049}
    51 relation[restriction=no_right_turn],
    52 node[restriction=no_right_turn] {
     50relation[restriction=no_right_turn] {
    5351    icon-image: "vehicle/restriction/turn_restrictions/no_right_turn.png";
    5452    set icon_z17;
    5553    text: auto;
    5654}
    57 relation[restriction=no_straight_on],
    58 node[restriction=no_straight_on] {
     55relation[restriction=no_straight_on] {
    5956    icon-image: "vehicle/restriction/turn_restrictions/no_straight_on.png";
    6057    set icon_z17;
    6158    text: auto;
    6259}
    63 relation[restriction=no_u_turn],
    64 node[restriction=no_u_turn] {
     60relation[restriction=no_u_turn] {
    6561    icon-image: "vehicle/restriction/turn_restrictions/no_u_turn.png";
    6662    set icon_z17;
    6763    text: auto;
    6864}
    69 relation[restriction=only_left_turn],
    70 node[restriction=only_left_turn] {
     65relation[restriction=only_left_turn] {
    7166    icon-image: "vehicle/restriction/turn_restrictions/only_left_turn.png";
    7267    set icon_z17;
    7368    text: auto;
    7469}
    75 relation[restriction=only_right_turn],
    76 node[restriction=only_right_turn] {
     70relation[restriction=only_right_turn] {
    7771    icon-image: "vehicle/restriction/turn_restrictions/only_right_turn.png";
    7872    set icon_z17;
    7973    text: auto;
    8074}
    81 relation[restriction=only_straight_on],
    82 node[restriction=only_straight_on] {
     75relation[restriction=only_straight_on] {
    8376    icon-image: "vehicle/restriction/turn_restrictions/only_straight_on.png";
     77    set icon_z17;
     78    text: auto;
     79}
     80node[restriction] {
     81    icon-image: "misc/deprecated.png";
    8482    set icon_z17;
    8583    text: auto;
Note: See TracChangeset for help on using the changeset viewer.