Changes between Version 2 and Version 3 of Styles/PriorityRoad


Ignore:
Timestamp:
2016-04-04T18:41:37+02:00 (10 years ago)
Author:
Klumbumbus
Comment:

update to version 1.1 some fixes and enhancements

Legend:

Unmodified
Added
Removed
Modified
  • Styles/PriorityRoad

    v2 v3  
    2121* enhance this docu
    2222* add example images
    23 * display error if used on node
    24 * display `end` with higher priority than `designated`, so it is visible on low zoom
    2523
    2624
     
    3129meta {
    3230    title: "Priority Road";
    33     version: "1.0[[revision]]_[[date]]";
     31    version: "1.1[[revision]]_[[date]]";
    3432    description: "Displays priority_road=* coloured.";
    3533    icon: "priority_road_icon.svg";
     
    8886    left-casing-width: 10;
    8987    right-casing-width: 10;
     88    z-index: 0.1;
    9089}
    9190way["priority_road:forward"="yes_unposted"]:righthandtraffic::priority_road_layer {
     
    9392    set correct_fw_priority_road_value;
    9493    right-casing-width: 10;
     94    z-index: 0.1;
    9595}
    9696way["priority_road:backward"="yes_unposted"]:righthandtraffic::priority_road_layer {
     
    9898    set correct_bw_priority_road_value;
    9999    left-casing-width: 10;
     100    z-index: 0.1;
    100101}
    101102way["priority_road:forward"="yes_unposted"]!:righthandtraffic::priority_road_layer {
     
    103104    set correct_fw_priority_road_value;
    104105    left-casing-width: 10;
     106    z-index: 0.1;
    105107}
    106108way["priority_road:backward"="yes_unposted"]!:righthandtraffic::priority_road_layer {
     
    108110    set correct_bw_priority_road_value;
    109111    right-casing-width: 10;
     112    z-index: 0.1;
    110113}
    111114    /* end */
     
    116119    left-casing-width: 10;
    117120    right-casing-width: 10;
     121    z-index: 0.2;
    118122}
    119123way["priority_road:forward"="end"]:righthandtraffic::priority_road_layer {
     
    121125    set correct_fw_priority_road_value;
    122126    right-casing-width: 10;
     127    z-index: 0.2;
    123128}
    124129way["priority_road:backward"="end"]:righthandtraffic::priority_road_layer {
     
    126131    set correct_bw_priority_road_value;
    127132    left-casing-width: 10;
     133    z-index: 0.2;
    128134}
    129135way["priority_road:forward"="end"]!:righthandtraffic::priority_road_layer {
     
    131137    set correct_fw_priority_road_value;
    132138    left-casing-width: 10;
     139    z-index: 0.2;
    133140}
    134141way["priority_road:backward"="end"]!:righthandtraffic::priority_road_layer {
     
    136143    set correct_bw_priority_road_value;
    137144    right-casing-width: 10;
     145    z-index: 0.2;
    138146}
    139147
    140148/* zoom dependency */
    141149way|z17.correct_priority_road_value::priority_road_layer,
    142 way|z17.correct_fw_priority_road_value::priority_road_layer,
    143 way|z17.correct_bw_priority_road_value::priority_road_layer {
     150way|z17.correct_fw_priority_road_value:righthandtraffic::priority_road_layer,
     151way|z17.correct_bw_priority_road_value!:righthandtraffic::priority_road_layer {
     152    right-casing-width: 8;
     153}
     154way|z17.correct_priority_road_value::priority_road_layer,
     155way|z17.correct_fw_priority_road_value!:righthandtraffic::priority_road_layer,
     156way|z17.correct_bw_priority_road_value:righthandtraffic::priority_road_layer {
    144157    left-casing-width: 8;
    145     right-casing-width: 8;
    146158}
    147159way|z-16.correct_priority_road_value::priority_road_layer,
    148 way|z-16.correct_fw_priority_road_value::priority_road_layer,
    149 way|z-16.correct_bw_priority_road_value::priority_road_layer {
     160way|z-16.correct_fw_priority_road_value:righthandtraffic::priority_road_layer,
     161way|z-16.correct_bw_priority_road_value!:righthandtraffic::priority_road_layer {
     162    right-casing-width: 6;
     163}
     164way|z-16.correct_priority_road_value::priority_road_layer,
     165way|z-16.correct_fw_priority_road_value!:righthandtraffic::priority_road_layer,
     166way|z-16.correct_bw_priority_road_value:righthandtraffic::priority_road_layer {
    150167    left-casing-width: 6;
    151     right-casing-width: 6;
    152 }
     168}
     169
     170/* z index */
     171way.correct_priority_road_value::priority_road_layer,
     172way.correct_fw_priority_road_value::priority_road_layer,
     173way.correct_bw_priority_road_value::priority_road_layer {
     174    major-z-index: 1.9; /* below bridge layer of default style, to see the bridge */
     175}
     176
    153177
    154178/* report wrong value of priority_road */
     
    199223way["priority_road:forward"][oneway=-1]
    200224{
    201         color: yellow;
    202         dashes-background-color: red;
    203         dashes: 4,24;
    204         opacity: 1;
    205         width: 5;
    206         text: tr("priority_road opposed to oneway direction!");
    207         text-color: black;
    208         font-size: 11;
    209         text-halo-color: red;
    210         text-halo-radius: 2;
    211         casing-width: 1;
    212         casing-color: yellow;
     225    color: yellow;
     226    dashes-background-color: red;
     227    dashes: 4,24;
     228    opacity: 1;
     229    width: 5;
     230    text: tr("priority_road opposed to oneway direction!");
     231    text-color: black;
     232    font-size: 11;
     233    text-halo-color: red;
     234    text-halo-radius: 2;
     235    casing-width: 1;
     236    casing-color: yellow;
     237}
     238node["priority_road"]::priority_road_layer,
     239node["priority_road:forward"]::priority_road_layer,
     240node["priority_road:backward"]::priority_road_layer {
     241    symbol-shape: triangle;
     242    symbol-fill-color: red;
     243    symbol-size: 30;
     244    symbol-stroke-color: yellow;
     245    text: tr("priority_road on a node. Use traffic_sign=* instead.");
     246    font-size: 10;
    213247}
    214248}}}