Changes between Initial Version and Version 1 of Styles/DigiRoadBusStops


Ignore:
Timestamp:
2018-11-01T15:01:12+01:00 (7 years ago)
Author:
Polyglot
Comment:

for visualising directionality of bus stops of Finnish DigiRoad import

Legend:

Unmodified
Added
Removed
Modified
  • Styles/DigiRoadBusStops

    v1 v1  
     1{{{
     2#!style type="mapcss"
     3
     4
     5meta
     6{
     7    title: "Public Transport";
     8    description: "Highlight DigiRoad bus stops with directional arrows";
     9    version: "1.0 2018-11-01";
     10    author: "Polyglot";
     11    link: "https://josm.openstreetmap.de/wiki/Styles/PublicTransport";
     12    min-josm-version: "8260";
     13}
     14
     15relation[type=route][route=tram] > way::relation_underlay
     16 {z-index: -1;
     17  width: 16;
     18  color: blue;
     19  opacity: 0.25;
     20  linecap: none;
     21  text-color: red;
     22  font-size: 18;
     23  text: parent_tag(ref);
     24  text-position: line;
     25  text-offset-y: 16;}
     26 
     27relation[type=route][route=bus] > way::relation_underlay
     28 {z-index: -1;
     29  width: 16;
     30  color: cyan;
     31  opacity: 0.25;
     32  linecap: none;
     33  text-color: red;
     34  font-size: 18;
     35  text: parent_tag(ref);
     36  text-position: line;
     37  text-offset-y: 16;}
     38
     39node|z12-[highway=bus_stop]::direction
     40 {icon-image: "https://upload.wikimedia.org/wikipedia/commons/0/04/Red_Arrow_Down.svg";
     41  icon-width: 10;
     42  icon-height: 20;
     43  icon-rotation: degree_to_radians(tag("direction")+180);
     44  z-index:1.0;}
     45
     46node|z18-[highway=bus_stop]::direction
     47 {icon-image: "https://upload.wikimedia.org/wikipedia/commons/0/04/Red_Arrow_Down.svg";
     48  icon-width: 30;
     49  icon-height: 60;
     50  icon-rotation: degree_to_radians(tag("direction")+180);
     51  z-index:1.0;}
     52
     53node|z18-[highway=bus_stop]::name,
     54node|z18-[railway=tram_stop]::name,
     55node|z18-[public_transport=platform]::name
     56 {text-color: purple;
     57  font-size: 24;
     58  text: tag(name);
     59  text-halo-radius: 2;
     60  text-offset-y: 15;}
     61
     62node|z14-["ref"]::ref
     63  {text-color: blue;
     64  font-size: 17;
     65  text: tag("ref");
     66  text-halo-radius: 2;
     67  text-offset-x: -60;
     68  text-offset-y: -20;
     69  z-index:3.0;}
     70
     71node|z14-["ref:findr"]::refFI
     72  {text-color: white;
     73  font-size: 17;
     74  text: tag("ref:findr");
     75  text-halo-radius: 2;
     76  text-offset-x: -60;
     77  text-offset-y: -40;
     78  z-index:3.0;}
     79
     80node|z18-[highway=bus_stop]::route_ref,
     81node|z18-[railway=tram_stop]::route_ref,
     82node|z18-[public_transport=platform]::route_ref
     83 {text-color: black;
     84  font-size: 21;
     85  text: tag(route_ref);
     86  text-halo-radius: 2;
     87  text-offset-y: -40;
     88  z-index:4.0;}
     89
     90relation[public_transport=stop_area] > node|z18-::parent_name
     91 {text-color: yellow;
     92  font-size: 16;
     93  text: parent_tag(name);
     94  text-halo-radius: 2;
     95  text-offset-y: -60;
     96  z-index:1.0;}
     97
     98relation[public_transport=stop_area] > way|z21-::parent_name
     99 {text-color: yellow;
     100  font-size: 10;
     101  text: parent_tag(name);
     102  text-halo-radius: 2;
     103  z-index:1.0;}
     104
     105way|z19-[bus_bay=~/both|right/]
     106{
     107        right-casing-width: 40;
     108        right-casing-color: #00FFA0;
     109        right-casing-offset: 2;
     110        right-casing-dashes: 1, 1;
     111}
     112
     113way|z19-[bus_bay=~/both|left/]
     114{
     115        left-casing-width: 40;
     116        left-casing-color: #00FFA0;
     117        left-casing-offset: 2;
     118        left-casing-dashes: 1, 1;
     119}
     120}}}