diff --git a/web/client/src/components/infrastructure/mapStyle.ts b/web/client/src/components/infrastructure/mapStyle.ts index d3fb859c..bc174850 100644 --- a/web/client/src/components/infrastructure/mapStyle.ts +++ b/web/client/src/components/infrastructure/mapStyle.ts @@ -55,7 +55,11 @@ export const infrastructureMapStyle = (() => { 'source-layer': 'rail', 'filter': ['==', 'rail', 'primary'], 'paint': { - 'line-color': '#444', + 'line-color': [ + 'case', + ['has', 'color'], ['get', 'color'], + '#444' + ], 'line-width': 2.0 } }, diff --git a/web/server/profile/profile.lua b/web/server/profile/profile.lua index b3e72e91..b794ec3f 100644 --- a/web/server/profile/profile.lua +++ b/web/server/profile/profile.lua @@ -101,6 +101,7 @@ function process_way(way) way:set_target_layer("rail") way:set_approved_min(5) way:add_string("rail", "primary") + way:add_tag_as_string("color") end elseif way:has_any_tag("waterway") then