Changes between Version 24 and Version 25 of Styles/Lane_and_Road_Attributes


Ignore:
Timestamp:
2013-03-06T11:51:36+01:00 (13 years ago)
Author:
imagic
Comment:

Now only one cycletrack will be displayed on a one-way, except if oneway:bicycle=no is specified

Legend:

Unmodified
Added
Removed
Modified
  • Styles/Lane_and_Road_Attributes

    v24 v25  
    14641464way|z17-[is_prop_set(ok)][is_prop_set(lanes_all)]::Ground
    14651465{
    1466     templ:  eval((has_tag_key(sidewalk) && ((tag(sidewalk)="both") || (tag(sidewalk)="left")))?1:0);
    1467     templ:  eval(prop(templ)+((((has_tag_key(cycleway) && ((tag(cycleway)="track") && (!(has_tag_key("cycleway:left") && (tag("cycleway:left")="no"))))) ||
     1466    /* Cycletrack in an one-way on the left side? */
     1467    temp_allow_cycleway_left: eval(!(
     1468                                      ((prop(oneway_type,"default")=1) && prop(style_right_hand_traffic,"default")) ||
     1469                                      ((prop(oneway_type,"default")=(-1)) && (!prop(style_right_hand_traffic,"default")))
     1470                                    ));
     1471
     1472    temp_allow_cycleway_left: eval(prop(temp_allow_cycleway_left) || (has_tag_key("oneway:bicycle") && (tag("oneway:bicycle")="no")));
     1473    /* Explicitely no cycletrack on the left side? */
     1474    temp_allow_cycleway_left: eval((has_tag_key("cycleway:left") && (tag("cycleway:left")="no"))?false:prop(temp_allow_cycleway_left));
     1475    /* Cycletrack on the left side */
     1476    temp_cycleway_left: eval(((has_tag_key(cycleway) && ((tag(cycleway)="track") && prop(temp_allow_cycleway_left))) ||
    14681477                                (has_tag_key("cycleway:left") && (tag("cycleway:left")="track"))) ||
    14691478                                (has_tag_key("cycleway:both") && (tag("cycleway:both")="track"))
    1470                               )?2:0));
    1471     tempr:  eval((has_tag_key(sidewalk) && ((tag(sidewalk)="both") || (tag(sidewalk)="right")))?1:0);
    1472     tempr:  eval(prop(tempr)+((((has_tag_key(cycleway) && ((tag(cycleway)="track") && (!(has_tag_key("cycleway:right") && (tag("cycleway:right")="no"))))) ||
     1479                            );
     1480
     1481    /* Sidewalk on the left side? */
     1482    templ:  eval((has_tag_key(sidewalk) && ((tag(sidewalk)="both") || (tag(sidewalk)="left")))?1:0);
     1483
     1484    /* Combine  sidewalk and cycletrack: 0=none; 1=sidewalk; 2=cycletrack; 3=sidewalk and cycletrack */
     1485    templ: eval(prop(templ)+(prop(temp_cycleway_left)?2:0));
     1486
     1487
     1488    /* Cycletrack in an one-way on the right side? */
     1489    temp_allow_cycleway_right: eval(!(
     1490                                      ((prop(oneway_type,"default")=(-1)) && prop(style_right_hand_traffic,"default")) ||
     1491                                      ((prop(oneway_type,"default")=1) && (!prop(style_right_hand_traffic,"default")))
     1492                                    ));
     1493
     1494    temp_allow_cycleway_right: eval(prop(temp_allow_cycleway_right) || (has_tag_key("oneway:bicycle") && (tag("oneway:bicycle")="no")));
     1495    /* Explicitely no cycletrack on the right side? */
     1496    temp_allow_cycleway_right: eval((has_tag_key("cycleway:right") && (tag("cycleway:right")="no"))?false:prop(temp_allow_cycleway_right));
     1497    /* Cycletrack on the right side */
     1498    temp_cycleway_right: eval(((has_tag_key(cycleway) && ((tag(cycleway)="track") && prop(temp_allow_cycleway_right))) ||
    14731499                                (has_tag_key("cycleway:right") && (tag("cycleway:right")="track"))) ||
    14741500                                (has_tag_key("cycleway:both") && (tag("cycleway:both")="track"))
    1475                               )?2:0));
     1501                            );
     1502
     1503    /* Sidewalk on the right side? */
     1504    tempr:  eval((has_tag_key(sidewalk) && ((tag(sidewalk)="both") || (tag(sidewalk)="right")))?1:0);
     1505
     1506    /* Combine  sidewalk and cycletrack: 0=none; 1=sidewalk; 2=cycletrack; 3=sidewalk and cycletrack */
     1507    tempr: eval(prop(tempr)+(prop(temp_cycleway_right)?2:0));
     1508
    14761509
    14771510    left-casing-linecap: none;