File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -56,6 +56,16 @@ export default {
5656 inUse : false ,
5757 } ,
5858 rtVehicleOffsetSeconds : 120 ,
59+ replacementBusRoutes : [
60+ 'HSL:1099V' ,
61+ 'HSL:6211U' ,
62+ 'HSL:6211E' ,
63+ 'HSL:6249Y' ,
64+ 'HSL:2213X' ,
65+ 'HSL:4699X' ,
66+ 'HSL:9969X' ,
67+ 'HSL:2015X' ,
68+ ] ,
5969 } ,
6070 jyvaskyla : {
6171 fonts : {
Original file line number Diff line number Diff line change @@ -357,13 +357,15 @@ const StopRoutesModal: FC<Props> = props => {
357357 < Icon
358358 img = {
359359 ! alternateIcon
360- ? getRouteMode ( route )
361- : getRouteMode ( route ) + alternateIcon
360+ ? getRouteMode ( route , config )
361+ : getRouteMode ( route , config ) + alternateIcon
362362 }
363363 width = { 24 }
364364 height = { 24 }
365365 color = {
366- config . modeIcons . colors [ `mode-${ getRouteMode ( route ) } ` ]
366+ config . modeIcons . colors [
367+ `mode-${ getRouteMode ( route , config ) } `
368+ ]
367369 }
368370 />
369371 </ div >
Original file line number Diff line number Diff line change @@ -40,7 +40,10 @@ export const getStopIcon = stop => {
4040 return mode ;
4141} ;
4242
43- export const getRouteMode = route => {
43+ export const getRouteMode = ( route , config ) => {
44+ if ( config . replacementBusRoutes ?. includes ( route . gtfsId ) ) {
45+ return 'replacement-bus' ;
46+ }
4447 switch ( route . type ) {
4548 case 702 :
4649 return 'bus-express' ;
You can’t perform that action at this time.
0 commit comments