-
Notifications
You must be signed in to change notification settings - Fork 103
fix: remove "Planned Route" label from Map by Vehicle #1123
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Remove "Planned Route" label from the map legend in "Map by Vehicle"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wander if we can make it more generic -
I mean, instead of having two arguments for planned and actual rides, and a flag to remove one of the
imgSrc={plannedRouteStopMarkerPath} | ||
title={t('plannedRoute')} | ||
/> | ||
{showPlannedRoute && ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you consider this option?
Can be cleaner :)
{showPlannedRoute && ( | |
{plannedRouteStops && ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're absolutely right – it's much cleaner this way.
Updated the code accordingly. Thanks for the suggestion!
Description
Remove "Planned Route" label from the map legend in "Map by Vehicle"
screenshots