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

Set map default center even if waiting for user location #1432

Merged
merged 1 commit into from Nov 26, 2023

Conversation

yohanboniface
Copy link
Member

There is an edge case when using "locate" a default view AND activating easing for transitions: in this case, Leaflet.locate needs a "starting view" to compute the easing to the new position (the user location).

I could have only set the default_view when easing is on, but I thought it was simpler to just set it anyway…

There is an edge case when using "locate" a default view AND
activating easing for transitions: in this case, Leaflet.locate needs
a  "starting view" to compute the easing to the new position (the
user location).

I could have only set the default_view when easing is on, but I
thought it was simpler to just set it anyway…
@yohanboniface yohanboniface merged commit 84d7c87 into master Nov 26, 2023
11 checks passed
@yohanboniface yohanboniface deleted the locate-easing branch November 26, 2023 20:58
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.

None yet

2 participants