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

calling start() respects initialZoomLevel #295

Merged
merged 4 commits into from Nov 2, 2021

Conversation

edfungus
Copy link
Contributor

I noticed that when calling start() manually, it does not respect initialZoomLevel and goes to max zoom. Only clicking on the button will respect initialZoomLevel. This means if I want the map to go to the user's location page load, it will be zoomed it too far.

This change will take initialZoomLevel if available or fallback to maxZoom

@domoritz domoritz merged commit 6dfbfeb into domoritz:gh-pages Nov 2, 2021
@edfungus edfungus deleted the patch-1 branch November 3, 2021 01:54
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