Skip to content

Commit

Permalink
Merge pull request #6265 from leonardehrenfried/fallback-colours
Browse files Browse the repository at this point in the history
Improve visibility of map lines in debug UI
  • Loading branch information
leonardehrenfried authored Nov 22, 2024
2 parents 8e94bcc + 43861ef commit e886621
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
13 changes: 12 additions & 1 deletion client/src/components/MapView/LegLines.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,21 @@ export function LegLines({ tripPattern }: { tripPattern?: TripPattern }) {
'line-cap': 'round',
}}
paint={{
'line-color': getColorForLeg(leg),
'line-color': '#000',
'line-width': 5,
}}
/>
<Layer
type="line"
layout={{
'line-join': 'round',
'line-cap': 'round',
}}
paint={{
'line-color': getColorForLeg(leg),
'line-width': 4,
}}
/>
</Source>
),
)}
Expand Down
2 changes: 1 addition & 1 deletion client/src/util/getColorForLeg.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const getColorForMode = function (mode: Mode) {
if (mode === Mode.Rail) return '#86BF8B';
if (mode === Mode.Coach) return '#25642A';
if (mode === Mode.Metro) return '#D9B250';
if (mode === Mode.Bus) return '#25642A';
if (mode === Mode.Bus) return '#fe0000';
if (mode === Mode.Tram) return '#D9B250';
if (mode === Mode.Trolleybus) return '#25642A';
if (mode === Mode.Water) return '#81304C';
Expand Down

0 comments on commit e886621

Please sign in to comment.