Skip to content

Commit

Permalink
Merge pull request #108 from Reveille-Rides/bwees/transparent-stops
Browse files Browse the repository at this point in the history
transparent stop markers when route is deselected. Fixes #106
  • Loading branch information
bwees authored Jan 30, 2024
2 parents 74b3b9b + d27bb63 commit 423d268
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions app/components/map/MapView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -236,8 +236,12 @@ const Map: React.FC = () => {
patternPath.patternPoints.map((patternPoint, index2) => {
const stop = patternPoint.stop

if (stop && patternPath.directionKey === selectedRouteDirection) {
const lineColor = selectedRoute?.directionList[0]?.lineColor ?? "#FFFF";
if (stop) {
var lineColor = selectedRoute?.directionList[0]?.lineColor ?? "#FFFF";

if (patternPath.directionKey !== selectedRouteDirection) {
lineColor = lineColor + "70";
}

return (
<StopMarker
Expand Down

0 comments on commit 423d268

Please sign in to comment.