-
Notifications
You must be signed in to change notification settings - Fork 53
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
Move to Vector Tiles (MapLibreGL) #657
Conversation
BREAKING CHANGE: Leaflet is removed, some overlays are removed
…the entirely incorrect itinerary
…edux into vector-tiles
…-react-redux into vector-tiles pull miles changes
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.
Nice work figuring out the plumbing for MapLibre!
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.
Big PR! Quite a few comments, but I don't think any of these are too serious.
payload?.viewedRoute?.routeId === viewedRoute.routeId && | ||
payload?.viewedRoute?.patternId === viewedRoute.patternId | ||
) | ||
return |
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.
Not seeing braces.
` | ||
|
||
// Compute the elevation point marker, if activeLeg and elevation profile is enabled. | ||
let elevationPointMarker = null |
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.
Could you just return this variable inside the ifs and return null at the end of the function to eliminate this let
?
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.
This code is marked as new because it was typescripted, but this is all inherited code. I'm not sure about the edge cases that we need to maintain here, so am weary of making changes to it in this PR. We could add a new issue to do this in a new PR?
<BaseMapStyled.PopupTitle>{name}</BaseMapStyled.PopupTitle> | ||
<BaseMapStyled.PopupRow> | ||
<span> | ||
<b> |
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.
<b>
? 😳
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.
And nested inside a span 😱
This code is inherited and will be very strong
ly removed once we move to the nearby view.
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.
Looks good! Thanks for the changes!
Makes use of opentripplanner/otp-ui#420 to migrate to MapLibreGL. Also includes some css refreshes to match the major changes in the otp-ui updates.
Previously blocked by opentripplanner/otp-ui#436 waiting for all internal dependencies to be fully updated.
Blocked by opentripplanner/otp-ui#441 (for new gtfs-rt overlay). Tests will fail until this package is updated. The gtfs-rt overlay functionality will be hampered (bus emojis) until opentripplanner/otp-ui#441 is merged.