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

Add 'boundsFitting' prop to manage camera manipulation via zoomToGeoJSON method #803

Merged
merged 4 commits into from
Dec 26, 2024

Conversation

lightsage88
Copy link
Contributor

This pull request addresses a need for Trimet's instance of the maplibre map to not get the camera's placement hijacked by the zoomToGeoJSON method which is causing some issues with how we want to frame the transitive-overlay with respect to the side-panel we house much of our tools in.

Essentially, we pass in boundsFitting from the client and into packages/transitive-overlay/src/index.tsx. If it happens to be false then when zoomToGeoJSON is called then it returns immediately with no effect on the map. Since this was set up to be active by default, I made the boundsFitting prop be defaultly true.

@miles-grant-ibigroup miles-grant-ibigroup self-assigned this Dec 19, 2024
@miles-grant-ibigroup
Copy link
Collaborator

Blocked by #804. I'll review once that's merged. I have a feeling snapshots might have to get updated

@miles-grant-ibigroup miles-grant-ibigroup added the BLOCKERS Blockers exist outside of otp-ui (e.g., backend, service, etc...) label Dec 20, 2024
@miles-grant-ibigroup miles-grant-ibigroup merged commit d1f88e8 into master Dec 26, 2024
2 checks passed
@miles-grant-ibigroup miles-grant-ibigroup deleted the PRJ77-490 branch December 26, 2024 19:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BLOCKERS Blockers exist outside of otp-ui (e.g., backend, service, etc...)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants