Changes between Version 2 and Version 3 of Styles/PublicTransport


Ignore:
Timestamp:
2017-07-29T12:15:28+02:00 (8 years ago)
Author:
Polyglot
Comment:

change offsets and font-sizes to better work together with PT_Assistant

Legend:

Unmodified
Added
Removed
Modified
  • Styles/PublicTransport

    v2 v3  
    66    title: "Public Transport";
    77    description: "Highlight important information regarding Public Transport";
    8     version: "1.[[revision]]_[[date]]";
     8    version: "1.3_2017-07-30";
    99    author: "Polyglot";
    1010    link: "http://josm.openstreetmap.de/wiki/Styles/PublicTransport";
     
    2626  linecap: none;
    2727  text-color: red;
    28   font-size: 19;
    29   text: parent_tag(ref);
    30   text-position: line;
    31   text-offset-y: 16;}
     28  font-size: 32;
     29  text: parent_tag(ref);
     30  text-position: line;
     31  text-offset-y: 32;}
    3232*/
    3333
     
    3939  linecap: none;
    4040  text-color: red;
    41   font-size: 19;
    42   text: parent_tag(ref);
    43   text-position: line;
    44   text-offset-y: 16;}
     41  font-size: 32;
     42  text: parent_tag(ref);
     43  text-position: line;
     44  text-offset-y: 32;}
    4545 
    4646relation[type=route][route=bus] > way::relation_underlay
     
    5151  linecap: none;
    5252  text-color: red;
    53   font-size: 19;
    54   text: parent_tag(ref);
    55   text-position: line;
    56   text-offset-y: 16;}
    57  
    58 node|z15-[highway=bus_stop]::zone,
    59 node|z15-[railway=tram_stop]::zone,
    60 node|z15-[public_transport=platform]::zone
     53  font-size: 32;
     54  text: parent_tag(ref);
     55  text-position: line;
     56  text-offset-y: 32;}
     57 
     58node|z18-[highway=bus_stop]::zone,
     59node|z18-[railway=tram_stop]::zone,
     60node|z18-[public_transport=platform]::zone
    6161 {text-color: pink;
    6262  font-size: 20;
     
    7878  z-index:2.0;}
    7979
    80 node|z18-[public_transport=platform][network*=";"]::network
     80node|z20-[public_transport=platform][network*=";"]::network
    8181 {text-color: cyan;
    8282  font-size: 16;
     
    8484  text-halo-radius: 2;
    8585  text-offset-x: -5;
    86   text-offset-y: 5;
     86  text-offset-y: 70;
    8787  z-index:2.0;}
    8888
    89 node|z18-[highway=bus_stop]::name,
    90 node|z18-[railway=tram_stop]::name,
    91 node|z18-[public_transport=platform]::name
     89node|z20-[highway=bus_stop]::name,
     90node|z20-[railway=tram_stop]::name,
     91node|z20-[public_transport=platform]::name
    9292 {text-color: purple;
    9393  font-size: 24;
    94   text:  tag(name);
    95   text-halo-radius: 2;
    96   text-offset-y: 15;}
    97 
    98 node|z14-["ref:De_Lijn"]::ref
     94  text: tag(name);
     95  text-halo-radius: 2;
     96  text-offset-x: 10;
     97  text-offset-y: 6;}
     98
     99node|z16-["ref:De_Lijn"]::ref
    99100  {text-color: blue;
    100101  font-size: 17;
    101102  text: tag("ref:De_Lijn");
    102103  text-halo-radius: 2;
    103   text-offset-x: -60;
     104  text-offset-x: -80;
    104105  text-offset-y: -20;
    105106  z-index:3.0;}
    106107
    107 node|z14-["ref:TECB"]::refb
     108node|z16-["ref:TECB"]::refb
    108109  {text-color: red;
    109110  font-size: 17;
     
    114115  z-index:3.0;}
    115116 
    116  node|z14-["ref:TECH"]::refh
     117 node|z16-["ref:TECH"]::refh
    117118  {text-color: orange;
    118119  font-size: 17;
     
    123124  z-index:3.0;}
    124125 
    125  node|z14-["ref:TECC"]::refc
     126 node|z16-["ref:TECC"]::refc
    126127  {text-color: cyan;
    127128  font-size: 17;
     
    132133  z-index:3.0;}
    133134 
    134  node|z14-["ref:TECN"]::refn
     135 node|z16-["ref:TECN"]::refn
    135136  {text-color: white;
    136137  font-size: 17;
     
    141142  z-index:3.0;}
    142143 
    143  node|z14-["ref:TECL"]::refl
     144 node|z16-["ref:TECL"]::refl
    144145  {text-color: black;
    145146  font-size: 17;
     
    150151  z-index:3.0;}
    151152 
    152  node|z14-["ref:TECX"]::refx
     153 node|z16-["ref:TECX"]::refx
    153154  {text-color: yellow;
    154155  font-size: 17;
     
    159160  z-index:3.0;}
    160161
    161 node|z17-[highway=bus_stop]::route_ref,
    162 node|z17-[railway=tram_stop]::route_ref,
    163 node|z17-[public_transport=platform]::route_ref
     162node|z18-[highway=bus_stop]::route_ref,
     163node|z18-[railway=tram_stop]::route_ref,
     164node|z18-[public_transport=platform]::route_ref
    164165 {text-color: black;
    165   font-size: 19;
     166  font-size: 21;
    166167  text: concat(tag(route_ref),
    167168  cond(has_tag_key("route_ref:De_Lijn"), concat(" | ", tag("route_ref:De_Lijn")),""),
     
    173174  cond(has_tag_key("route_ref:TECX"), concat(" | ", tag("route_ref:TECX")),""));
    174175  text-halo-radius: 2;
    175   text-offset-y: -20;
     176  text-offset-y: -40;
    176177  z-index:4.0;}
    177178
    178 relation[route=bus] > node|z16-::parent_ref
    179  {text-color: pink;
    180   font-size: 19;
    181   text: parent_tag(ref);
    182   text-halo-radius: 2;
    183   text-offset-y: -40;
    184   z-index:5.0;}
    185 
    186 relation[public_transport=stop_area] > node|z12-::parent_name
     179relation[public_transport=stop_area] > node|z18-::parent_name
    187180 {text-color: yellow;
    188181  font-size: 16;
    189182  text: parent_tag(name);
    190183  text-halo-radius: 2;
    191   text-offset-y: -40;
    192   z-index:5.0;}
    193 
    194 relation[public_transport=stop_area] > way|z16-::parent_name
     184  text-offset-y: -60;
     185  z-index:1.0;}
     186
     187relation[public_transport=stop_area] > way|z21-::parent_name
    195188 {text-color: yellow;
    196189  font-size: 10;
    197190  text: parent_tag(name);
    198191  text-halo-radius: 2;
    199   z-index:5.0;}
     192  z-index:1.0;}
    200193
    201194relation[route=bus][odbl=new] > node::relation_underlay,
     
    220213  text-offset-y: 16;}
    221214
     215
    222216}}}