Skip to content

Strict Mode: Transit Vehicle Overlay - #962

Open
daniel-heppner-ibigroup wants to merge 9 commits into
opentripplanner:masterfrom
ibi-group:strict-mode-transit-vehicle-overlay
Open

daniel-heppner-ibigroup wants to merge 9 commits into
opentripplanner:masterfrom
ibi-group:strict-mode-transit-vehicle-overlay

Conversation

@daniel-heppner-ibigroup

Copy link
Copy Markdown
Contributor

pretty straightforward one here

@daniel-heppner-ibigroup

Copy link
Copy Markdown
Contributor Author

gotta fix the type error here

@miles-grant-ibigroup miles-grant-ibigroup left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Seems to be working well

autoOffset={iconPixels / 2 + iconPadding + 4}
popupProps={{
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore why is this required? Is it some pnpm packaging issue?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Do we want to address this

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

good point... after playing with this in the storybook I think this parameter actually doesn't do anything at all. the typescript error was right

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I'm just gonna remove it

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

MarkerWithProps is defined in base-map and popupProps is definitely used...

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I saw that, but it's just passed through the the maplibre component which doesn't seem to consume it. I played with some of the options we pass into it and it doesn't seem to change the output at all.

@miles-grant-ibigroup miles-grant-ibigroup left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Not comfortable removing popupProps

@daniel-heppner-ibigroup

Copy link
Copy Markdown
Contributor Author

update here: the padding option was not supported in our version of maplibre, however the newer versions do support it. I updated maplibre and restored the padding option.

so I wonder if at some point we had been using a newer version, or maybe OTP-RR has a newer version? anyway, it's restored now.

@miles-grant-ibigroup miles-grant-ibigroup left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Lovely

@miles-grant-ibigroup miles-grant-ibigroup removed their assignment Sep 3, 2026

@binh-dam-ibigroup binh-dam-ibigroup left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Do we need a new major version for transit-vehicle-overlay?

Comment thread .changeset/legal-cooks-grow.md Outdated
Comment thread .changeset/legal-cooks-grow.md Outdated
vehicle.lon && (
<MarkerWithPopup
key={vehicle.vehicleId}
autoOffset={iconPixels / 2 + iconPadding + 4}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Nit - sort props

@binh-dam-ibigroup binh-dam-ibigroup left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Please advise regarding the breaking change, and address merge conflicts.

@daniel-heppner-ibigroup
daniel-heppner-ibigroup force-pushed the strict-mode-transit-vehicle-overlay branch from 33851dd to 875c651 Compare October 20, 2026 20:46

@binh-dam-ibigroup binh-dam-ibigroup left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thank you for the changes

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants