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

Reduce zoom delta in LayeredMap #40

Closed
HansKallekleiv opened this issue Sep 11, 2019 · 2 comments
Closed

Reduce zoom delta in LayeredMap #40

HansKallekleiv opened this issue Sep 11, 2019 · 2 comments
Labels
enhancement New feature or request
Projects

Comments

@HansKallekleiv
Copy link
Collaborator

We are currently using integer only zoom in LayeredMap.
This gives quite large jump in zoom levels when zooming in the view.
It would be useful if the zoom levels could be more flexible.

Per https://leafletjs.com/examples/zoom-levels/ (Fractional zoom) it is possible to have much smaller zoom increments by using the props zoomDelta and zoomSnap.

zoomDelta controls how much the view zooms in when using the buttons, while
zoomSnapwill snap the zoom to a nearest accepted value.

Perhaps add these as props with a default:
zoomDelta : 0.25
zoomSnap: 0 ?

@HansKallekleiv HansKallekleiv added this to Being Planned in Webviz via automation Sep 11, 2019
@HansKallekleiv HansKallekleiv added the enhancement New feature or request label Sep 11, 2019
@thor85
Copy link

thor85 commented Jan 24, 2020

wheelPxPerZoomLevel controls zoom delta when using mouse wheel. Higher value is same as lower ZoomDelta. Set it to a high value and it will use zoomSnap.

@anders-kiaer
Copy link
Collaborator

Moved to #110 for better overview. Closing this.

Webviz automation moved this from Backlog to Done Feb 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Archived in project
Webviz
  
Done 🏁
Development

No branches or pull requests

3 participants