Skip to content
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

Merged
merged 82 commits into from
Oct 11, 2022
Merged

Move to Vector Tiles (MapLibreGL) #657

merged 82 commits into from
Oct 11, 2022

Conversation

miles-grant-ibigroup
Copy link
Collaborator

@miles-grant-ibigroup miles-grant-ibigroup commented Sep 2, 2022

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.

miles-grant-ibigroup and others added 30 commits June 27, 2022 11:50
BREAKING CHANGE: Leaflet is removed, some overlays are removed
Copy link
Collaborator

@binh-dam-ibigroup binh-dam-ibigroup left a 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!

Copy link
Contributor

@daniel-heppner-ibigroup daniel-heppner-ibigroup left a 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
Copy link
Contributor

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
Copy link
Contributor

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?

Copy link
Collaborator Author

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>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

<b>? 😳

Copy link
Collaborator Author

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 strongly removed once we move to the nearby view.

Copy link
Contributor

@daniel-heppner-ibigroup daniel-heppner-ibigroup left a 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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants