You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Should there be a separate layer specifically for routes, or should the attributes from the route relation be copied onto the features corresponding to the member ways, as requested in #705? A separate layer could facilitate certain style treatments, such as a highlighter-like translucent overlay (as seen on CyclOSM and OpenCycleMap) or labels and shields (as seen on OSM Americana). On the other hand, #439 expresses a desire to shift as many tags as possible from the member ways to multilinestring relations and presumably route relations, implying completely separate features in the tiles, similar to the bloat we currently see with boundaries (#701).
I rather like OpenMapTiles’ approach of a separate layer for labels and shields that can draw from either the member ways or the route relations. This layer can also serve the highlighter use case more or less well. openmaptiles/openmaptiles#1620 recently landed in OpenMapTiles, creating an extensible schema for many-to-one relationships with member ways. A road that carries multiple routes results in a LineString feature with properties including route_1:ref, route_1:network, route_2:ref, etc.
@flha127 - does our current route_lines vector tile layer meet your needs here? Did you have any additional thoughts about @1ec5's questions?
@1ec5 - are we on track to have a setup like you mentioned? (I think so, but wanted to double-check)
Hi,
It was however since a few weeks the type=bus/tram/trolleybus and class=route have disappeared and were replaced with a weird "route_tram_1_name"/"route_tram_1_ref" tagging scheme.
Yes, the new properties are in support of rendering routes that traverse physical infrastructure, especially routes that share the same infrastructure concurrently during the same time period. Instead of multiple overlapping line features, you get a single line feature that explicitly indicates the overlap, which MapLibre can then symbolize more reliably. This highlights the fact that route relations aren’t a replacement for physical infrastructure (other than maybe route=railway if we accept that OSM tagging scheme).
The new route_*_#_* properties are stable and consistent with OpenMapTiles (and soon Shortbread). If for example you only care about tram routes and don’t want to worry about concurrencies, your stylesheet can hardcode route_tram_1_network and route_tram_1_ref. #538 tracks another stylesheet that’ll depend on this scheme. Please open another issue if you see a detail that needs adjusting.
other than maybe route=railway if we accept that OSM tagging scheme
Activity
jeffreyameyer commentedon Feb 28, 2024
@flha127 - you're suggesting a vector tile layer & not a layer like these, correct?
tsinn commentedon Mar 6, 2024
type=routewill need to be added to the vector tiles, so these map objects can be styled:https://openhistoricalmap.github.io/overpass-turbo/?q=LyoKVGhpcyBxdWVyeSBsb29rxIZmb3Igbm9kZXMsIHdhecSGYW5kIHJlbGF0aW9uxIYKd2l0aCDEsmUgZ2l2ZW4ga2V5L3ZhbMSJIGNvbWJpbsSpxKtuLgpDaMSPc8S2eW91xJXEpsS4xKwgxKLEpMSEdMS0aMS2UnXEvGJ1dHTFnWFib8S6IQoqLwpbxZh0OmpzxKxdW8SqbWXFuDoyNV07Ci8vxLfEqcWkxZrEmnVsdHMKKAogIMaKxIfEicSLIHBhcsWixJNyOiDDosKAwpx0eXBlPXLFuGXGp8KdxpfElsSYZVsixqrGrCI9IsavxaplIl0oe3tixa94fX0pxojGmMSeeca4xrrHgca9xr90x4HHg8eFx4dvx4nHi8eNxKXEp8WNxKzHkcarx5PGvsawx4LHhMeGx4jHiseMCsetxppwcsWLxaLEpnPGkcaTCsW4IMWvZHnGiD7GiMe6c8S-bMSHdDs&c=BLM7qZVPqN
1ec5 commentedon Mar 12, 2024
Should there be a separate layer specifically for routes, or should the attributes from the route relation be copied onto the features corresponding to the member ways, as requested in #705? A separate layer could facilitate certain style treatments, such as a highlighter-like translucent overlay (as seen on CyclOSM and OpenCycleMap) or labels and shields (as seen on OSM Americana). On the other hand, #439 expresses a desire to shift as many tags as possible from the member ways to
multilinestringrelations and presumablyrouterelations, implying completely separate features in the tiles, similar to the bloat we currently see with boundaries (#701).I rather like OpenMapTiles’ approach of a separate layer for labels and shields that can draw from either the member ways or the route relations. This layer can also serve the highlighter use case more or less well. openmaptiles/openmaptiles#1620 recently landed in OpenMapTiles, creating an extensible schema for many-to-one relationships with member ways. A road that carries multiple routes results in a LineString feature with properties including
route_1:ref,route_1:network,route_2:ref, etc.flha127 commentedon Mar 12, 2024
Yes.
jeffreyameyer commentedon Nov 1, 2025
@flha127 - does our current
route_linesvector tile layer meet your needs here? Did you have any additional thoughts about @1ec5's questions?@1ec5 - are we on track to have a setup like you mentioned? (I think so, but wanted to double-check)
flha127 commentedon Nov 3, 2025
Hi,
It was however since a few weeks the type=bus/tram/trolleybus and class=route have disappeared and were replaced with a weird "route_tram_1_name"/"route_tram_1_ref" tagging scheme.
1ec5 commentedon Nov 3, 2025
Yes, the new properties are in support of rendering routes that traverse physical infrastructure, especially routes that share the same infrastructure concurrently during the same time period. Instead of multiple overlapping line features, you get a single line feature that explicitly indicates the overlap, which MapLibre can then symbolize more reliably. This highlights the fact that route relations aren’t a replacement for physical infrastructure (other than maybe
route=railwayif we accept that OSM tagging scheme).1ec5 commentedon Dec 30, 2025
The new
route_*_#_*properties are stable and consistent with OpenMapTiles (and soon Shortbread). If for example you only care about tram routes and don’t want to worry about concurrencies, your stylesheet can hardcoderoute_tram_1_networkandroute_tram_1_ref. #538 tracks another stylesheet that’ll depend on this scheme. Please open another issue if you see a detail that needs adjusting.#1248
flha127 commentedon Jan 20, 2026
Hello @1ec5 ,
I didn't see the reply in November; it's fantastic and solves a major problem.
Chapeau bas !