| 14 | | * Because it is currently impossible to get the parent's `osm id` within MapCSS, the style is using the parent's name for coloring its members. So, all `public_transport=stop_area` relations with the same name will have the same coloring. Zooming out should help to see if you are dealing with one stop area (the name will only be shown once) or more (the name will be shown more times). |
| 15 | | |
| | 14 | * Because it is currently impossible to get the parent's `osm id` within MapCSS (see [https://josm.openstreetmap.de/ticket/15525]), the style is using the parent's name for coloring its members. So, all `public_transport=stop_area` relations with the same name will have the same coloring. Zooming out should help to see if you are dealing with one stop area (the name will only be shown once) or more (the name will be shown more times). |
| | 15 | |
| | 16 | == Changes == |
| | 17 | |
| | 18 | === version 1.5 === |
| | 19 | * bugfix: selected ways should be shown with red color |
| | 20 | * bugfix: routes are now colored following their `colour` tag |
| | 21 | * added: properly show `stop_area` names if first child is area |
| | 22 | * added: routes are only colored for zoom level >= 13 |
| 159 | | relation[public_transport=stop_area] > node|z21-[public_transport=stop_position], |
| 160 | | relation[public_transport=stop_area] > area|z16- { |
| 161 | | text: cond(tag(name)==parent_tag(name),tag(name),concat(tag(name), " | ", parent_tag(name))); |
| | 177 | relation[public_transport=stop_area] > node|z21-[public_transport=stop_position] { |
| | 178 | text: cond(tag(name)==parent_tag(name),tag(name),concat(tag(name), " / ", parent_tag(name))); |
| 210 | | relation[type=route][route=bus] > way::halo, |
| 211 | | relation[type=route][route=tram] > way::halo, |
| 212 | | relation[type=route][route=light_rail] > way::halo, |
| 213 | | relation[type=route][route=subway] > way::halo, |
| 214 | | relation[type=route][route=train] > way::halo { |
| | 227 | relation[type=route][route=bus] > way|z13-::halo, |
| | 228 | relation[type=route][route=tram] > way|z13-::halo, |
| | 229 | relation[type=route][route=light_rail] > way|z13-::halo, |
| | 230 | relation[type=route][route=subway] > way|z13-::halo, |
| | 231 | relation[type=route][route=train] > way|z13-::halo { |
| 227 | | relation[type=route] > way:selected::halo, |
| 228 | | relation[type=route][route=tram] > way:selected::halo, |
| 229 | | relation[type=route][route=light_rail] > way:selected::halo, |
| 230 | | relation[type=route][route=subway] > way:selected::halo, |
| 231 | | relation[type=route][route=train] > way:selected::halo { |
| 232 | | color: hsb_color(CRC32_checksum(parent_tag("name"))/4294967296.0, 0.9, 0.5); |
| 233 | | text-color: hsb_color(CRC32_checksum(parent_tag("name"))/4294967296.0, 0.9, 0.5); |
| | 244 | relation[type=route] > way:selected, |
| | 245 | relation[type=route][route=tram] > way:selected, |
| | 246 | relation[type=route][route=light_rail] > way:selected, |
| | 247 | relation[type=route][route=subway] > way:selected, |
| | 248 | relation[type=route][route=train] > way:selected { |
| | 249 | color: red; |