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

Setting default zoom level for search results #679

Closed
Aureuum opened this issue Mar 27, 2019 · 2 comments
Closed

Setting default zoom level for search results #679

Aureuum opened this issue Mar 27, 2019 · 2 comments
Labels

Comments

@Aureuum
Copy link

Aureuum commented Mar 27, 2019

Hello,
I'm setting the Default Zoom level for the map to 10, but when searching, the result still appears at a zoom level of 16. I would like to set default zoom level for search results individually for each map.
Is this possible?
Thank you!

@Binnette
Copy link
Collaborator

Hi, i don't think it is possible yet.

@yohanboniface
Copy link
Member

Yes, zoom when clicking on a search result is now hard coded: https://github.com/umap-project/umap/blob/master/umap/static/umap/js/umap.controls.js#L882

I guess to fix this, we'd also need to fix #419

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Development

No branches or pull requests

3 participants