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

Option 'initialZoomLevel': zoom to specified zoom level after click #263

Merged
merged 1 commit into from Mar 23, 2020

Conversation

plepe
Copy link
Contributor

@plepe plepe commented Mar 21, 2020

This pull requests adds an option 'initialZoomLevel', which will zoom to the specified zoom level to zoom to after clicking on the icon (even when keepCurrentZoomLevel is true).

In my app I want to zoom to a specified zoom level when acquiring a position, but when the user changes the zoom while the plugin is active, it should not change zoom any more.

plepe added a commit to plepe/OpenStreetBrowser that referenced this pull request Mar 21, 2020
- Temporarily use L.Control.Locate source code until pull request domoritz/leaflet-locatecontrol#263 is merged
@domoritz
Copy link
Owner

Thank you for the pull request. Can you update the readme as well?

@plepe
Copy link
Contributor Author

plepe commented Mar 21, 2020

You are welcome :-) I just updated the README and force-pushed the commit. Any comments / thoughts?

@plepe
Copy link
Contributor Author

plepe commented Mar 22, 2020

The change is already used by https://www.openstreetbrowser.org/ :-)

@domoritz domoritz merged commit 8b3702a into domoritz:gh-pages Mar 23, 2020
@domoritz
Copy link
Owner

Awesome, thank you for the code and using the plugin.

@plepe plepe deleted the initialZoomLevel branch May 4, 2020 07:41
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