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

call setZoom before setCenter #127

Merged
merged 1 commit into from
Nov 14, 2024
Merged

Conversation

iskandari
Copy link

@iskandari iskandari commented Nov 5, 2024

Addresses unexpected behavior:

changing the latitude value in setCenter() has no effect on the map view if setZoom() is called after it, so the order of operations should be inverted

Copy link

vercel bot commented Nov 5, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

2 Skipped Deployments
Name Status Preview Comments Updated (UTC)
maps-demo ⬜️ Ignored (Inspect) Visit Preview Nov 5, 2024 9:34pm
maps-docs ⬜️ Ignored (Inspect) Visit Preview Nov 5, 2024 9:34pm

@Shane98c Shane98c self-requested a review November 14, 2024 16:34
Copy link
Member

@Shane98c Shane98c left a comment

Choose a reason for hiding this comment

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

Good catch on this - someone on our team just ran into this bug last week! Thanks for the PR!

@Shane98c Shane98c merged commit cf28606 into carbonplan:main Nov 14, 2024
7 checks passed
@Shane98c
Copy link
Member

released in 3.4.1

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.

2 participants