| | 1 | |
| | 2 | |
| | 3 | meta |
| | 4 | { |
| | 5 | title: "Public Transport"; |
| | 6 | description: "Highlight important information regarding Public Transport"; |
| | 7 | version: "1.[[revision]]_[[date]]"; |
| | 8 | author: "Polyglot"; |
| | 9 | link: "http://josm.openstreetmap.de/wiki/Styles/PublicTransport"; |
| | 10 | min-josm-version: "5198"; |
| | 11 | } |
| | 12 | |
| | 13 | meta[lang=nl] |
| | 14 | { |
| | 15 | title: "Openbaar vervoer"; |
| | 16 | description: "Zet interessante info van bus- en tramlijnen en -haltes in de kijker"; |
| | 17 | } |
| | 18 | |
| | 19 | /* |
| | 20 | relation[type=route][route=bus] > way::relation_underlay |
| | 21 | {z-index: -1; |
| | 22 | width: 16; |
| | 23 | color: teal; |
| | 24 | opacity: 0.4; |
| | 25 | linecap: none; |
| | 26 | text-color: red; |
| | 27 | font-size: 19; |
| | 28 | text: parent_tag(ref); |
| | 29 | text-position: line; |
| | 30 | text-offset-y: 16;} |
| | 31 | */ |
| | 32 | |
| | 33 | relation[type=route][route=tram] > way::relation_underlay |
| | 34 | {z-index: -1; |
| | 35 | width: 16; |
| | 36 | color: blue; |
| | 37 | opacity: 0.25; |
| | 38 | linecap: none; |
| | 39 | text-color: red; |
| | 40 | font-size: 19; |
| | 41 | text: parent_tag(ref); |
| | 42 | text-position: line; |
| | 43 | text-offset-y: 16;} |
| | 44 | |
| | 45 | relation[type=route][route=bus] > way::relation_underlay |
| | 46 | {z-index: -1; |
| | 47 | width: 16; |
| | 48 | color: cyan; |
| | 49 | opacity: 0.25; |
| | 50 | linecap: none; |
| | 51 | text-color: red; |
| | 52 | font-size: 19; |
| | 53 | text: parent_tag(ref); |
| | 54 | text-position: line; |
| | 55 | text-offset-y: 16;} |
| | 56 | |
| | 57 | node|z15-[highway=bus_stop]::zone, |
| | 58 | node|z15-[railway=tram_stop]::zone, |
| | 59 | node|z15-[public_transport=platform]::zone |
| | 60 | {text-color: pink; |
| | 61 | font-size: 20; |
| | 62 | text: concat(tag("zone:De_Lijn"),tag("zone:TEC")); |
| | 63 | text-halo-radius: 2; |
| | 64 | text-offset-x: -45; |
| | 65 | text-offset-y: 15; |
| | 66 | z-index:1.0;} |
| | 67 | |
| | 68 | node|z15-[odbl=new][highway=bus_stop]::zone2, |
| | 69 | node|z15-[odbl=new][railway=tram_stop]::zone2, |
| | 70 | node|z15-[odbl=new][public_transport=platform]::zone2 |
| | 71 | {text-color: eval(rgb(abs(cos(concat(tag("zone:De_Lijn"),tag("zone:TEC"))*18)), abs(sin(concat(tag("zone:De_Lijn"),tag("zone:TEC"))*72)), abs(cos(concat(tag("zone:De_Lijn"),tag("zone:TEC"))*24)))); |
| | 72 | font-size: 40; |
| | 73 | text: concat(tag("zone:De_Lijn"),tag("zone:TEC")); |
| | 74 | text-halo-radius: 2; |
| | 75 | text-offset-x: -85; |
| | 76 | text-offset-y: 15; |
| | 77 | z-index:2.0;} |
| | 78 | |
| | 79 | node|z18-[public_transport=platform][network*=";"]::network |
| | 80 | {text-color: cyan; |
| | 81 | font-size: 16; |
| | 82 | text: tag("network"); |
| | 83 | text-halo-radius: 2; |
| | 84 | text-offset-x: -5; |
| | 85 | text-offset-y: 5; |
| | 86 | z-index:2.0;} |
| | 87 | |
| | 88 | node|z18-[highway=bus_stop]::name, |
| | 89 | node|z18-[railway=tram_stop]::name, |
| | 90 | node|z18-[public_transport=platform]::name |
| | 91 | {text-color: purple; |
| | 92 | font-size: 24; |
| | 93 | text: tag(name); |
| | 94 | text-halo-radius: 2; |
| | 95 | text-offset-y: 15;} |
| | 96 | |
| | 97 | node|z14-["ref:De_Lijn"]::ref |
| | 98 | {text-color: blue; |
| | 99 | font-size: 17; |
| | 100 | text: tag("ref:De_Lijn"); |
| | 101 | text-halo-radius: 2; |
| | 102 | text-offset-x: -60; |
| | 103 | text-offset-y: -20; |
| | 104 | z-index:3.0;} |
| | 105 | |
| | 106 | node|z14-["ref:TECB"]::refb |
| | 107 | {text-color: red; |
| | 108 | font-size: 17; |
| | 109 | text: tag("ref:TECB"); |
| | 110 | text-halo-radius: 2; |
| | 111 | text-offset-x: -80; |
| | 112 | text-offset-y: -40; |
| | 113 | z-index:3.0;} |
| | 114 | |
| | 115 | node|z14-["ref:TECH"]::refh |
| | 116 | {text-color: orange; |
| | 117 | font-size: 17; |
| | 118 | text: tag("ref:TECH"); |
| | 119 | text-halo-radius: 2; |
| | 120 | text-offset-x: -80; |
| | 121 | text-offset-y: -60; |
| | 122 | z-index:3.0;} |
| | 123 | |
| | 124 | node|z14-["ref:TECC"]::refc |
| | 125 | {text-color: cyan; |
| | 126 | font-size: 17; |
| | 127 | text: tag("ref:TECC"); |
| | 128 | text-halo-radius: 2; |
| | 129 | text-offset-x: -80; |
| | 130 | text-offset-y: -20; |
| | 131 | z-index:3.0;} |
| | 132 | |
| | 133 | node|z14-["ref:TECN"]::refn |
| | 134 | {text-color: white; |
| | 135 | font-size: 17; |
| | 136 | text: tag("ref:TECN"); |
| | 137 | text-halo-radius: 2; |
| | 138 | text-offset-x: -80; |
| | 139 | text-offset-y: -80; |
| | 140 | z-index:3.0;} |
| | 141 | |
| | 142 | node|z14-["ref:TECL"]::refl |
| | 143 | {text-color: black; |
| | 144 | font-size: 17; |
| | 145 | text: tag("ref:TECL"); |
| | 146 | text-halo-radius: 2; |
| | 147 | text-offset-x: -80; |
| | 148 | text-offset-y: -60; |
| | 149 | z-index:3.0;} |
| | 150 | |
| | 151 | node|z14-["ref:TECX"]::refx |
| | 152 | {text-color: yellow; |
| | 153 | font-size: 17; |
| | 154 | text: tag("ref:TECX"); |
| | 155 | text-halo-radius: 2; |
| | 156 | text-offset-x: -80; |
| | 157 | text-offset-y: -20; |
| | 158 | z-index:3.0;} |
| | 159 | |
| | 160 | node|z17-[highway=bus_stop]::route_ref, |
| | 161 | node|z17-[railway=tram_stop]::route_ref, |
| | 162 | node|z17-[public_transport=platform]::route_ref |
| | 163 | {text-color: black; |
| | 164 | font-size: 19; |
| | 165 | text: concat(tag(route_ref), |
| | 166 | cond(has_tag_key("route_ref:De_Lijn"), concat(" | ", tag("route_ref:De_Lijn")),""), |
| | 167 | cond(has_tag_key("route_ref:TECB"), concat(" | ", tag("route_ref:TECB")),""), |
| | 168 | cond(has_tag_key("route_ref:TECH"), concat(" | ", tag("route_ref:TECH")),""), |
| | 169 | cond(has_tag_key("route_ref:TECC"), concat(" | ", tag("route_ref:TECC")),""), |
| | 170 | cond(has_tag_key("route_ref:TECN"), concat(" | ", tag("route_ref:TECN")),""), |
| | 171 | cond(has_tag_key("route_ref:TECL"), concat(" | ", tag("route_ref:TECL")),""), |
| | 172 | cond(has_tag_key("route_ref:TECX"), concat(" | ", tag("route_ref:TECX")),"")); |
| | 173 | text-halo-radius: 2; |
| | 174 | text-offset-y: -20; |
| | 175 | z-index:4.0;} |
| | 176 | |
| | 177 | relation[route=bus] > node|z16-::parent_ref |
| | 178 | {text-color: pink; |
| | 179 | font-size: 19; |
| | 180 | text: parent_tag(ref); |
| | 181 | text-halo-radius: 2; |
| | 182 | text-offset-y: -40; |
| | 183 | z-index:5.0;} |
| | 184 | |
| | 185 | relation[public_transport=stop_area] > node|z12-::parent_name |
| | 186 | {text-color: yellow; |
| | 187 | font-size: 16; |
| | 188 | text: parent_tag(name); |
| | 189 | text-halo-radius: 2; |
| | 190 | text-offset-y: -40; |
| | 191 | z-index:5.0;} |
| | 192 | |
| | 193 | relation[public_transport=stop_area] > way|z16-::parent_name |
| | 194 | {text-color: yellow; |
| | 195 | font-size: 10; |
| | 196 | text: parent_tag(name); |
| | 197 | text-halo-radius: 2; |
| | 198 | z-index:5.0;} |
| | 199 | |
| | 200 | relation[route=bus][odbl=new] > node::relation_underlay, |
| | 201 | relation[route=tram][odbl=new] > node::relation_underlay |
| | 202 | {text-color: orange; |
| | 203 | font-size: 32; |
| | 204 | text: parent_tag(ref); |
| | 205 | text-halo-radius: 7; |
| | 206 | z-index:9.0;} |
| | 207 | |
| | 208 | relation[type=route][route=bus][odbl=new] > way::relation_underlay, |
| | 209 | relation[type=route][route=tram][odbl=new] > way::relation_underlay |
| | 210 | {z-index: 1; |
| | 211 | width: 19; |
| | 212 | color: purple; |
| | 213 | opacity: 0.7; |
| | 214 | linecap: none; |
| | 215 | text-color: red; |
| | 216 | font-size: 25; |
| | 217 | text: parent_tag(ref); |
| | 218 | text-position: line; |
| | 219 | text-offset-y: 16;} |
| | 220 | |