Commit 0f9bfa6
#1893 routed every vehicle selection through publishMapPresentation(), whose
new selected-trip branch always drew the exact trip in the route's GTFS color
(currentRouteColor()) over a generic direction underlay. Inside stop focus,
where the emphasized route is drawn in its adjacency color, tapping a vehicle
therefore reverted the route to its GTFS hue and layered the trip over the
generic route-direction geometry — reading as standalone route mode.
Resolve the selected trip's color from the adjacency palette
(routeColors[selected.routeDirection]) when the route is emphasized in stop
focus, falling back to the GTFS color only in whole-route mode where no
adjacency entry exists. In that emphasized case also drop the generic
direction underlay: the adjacency-colored trip already reads on its own, and
the underlay is what made it look like route mode. Whole-route standalone
selection is unchanged (GTFS trip + underlay).
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
1 parent f5c7df1 commit 0f9bfa6
1 file changed
Lines changed: 12 additions & 6 deletions
Lines changed: 12 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
598 | 598 | | |
599 | 599 | | |
600 | 600 | | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
601 | 605 | | |
602 | 606 | | |
603 | 607 | | |
604 | | - | |
| 608 | + | |
605 | 609 | | |
606 | | - | |
607 | | - | |
608 | | - | |
609 | | - | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
610 | 615 | | |
611 | 616 | | |
612 | 617 | | |
613 | 618 | | |
614 | 619 | | |
615 | | - | |
| 620 | + | |
| 621 | + | |
616 | 622 | | |
617 | 623 | | |
618 | 624 | | |
| |||
0 commit comments