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

flyTo doesn't reach integral zoom needed for cluster expansion #6191

Closed
tuukka opened this issue Feb 18, 2018 · 0 comments · Fixed by #6828
Closed

flyTo doesn't reach integral zoom needed for cluster expansion #6191

tuukka opened this issue Feb 18, 2018 · 0 comments · Fixed by #6828

Comments

@tuukka
Copy link

tuukka commented Feb 18, 2018

mapbox-gl-js version: 0.44.1

Steps to Trigger Behavior

  1. Start with a map with clusters and map.getZoom() == 3
  2. map.flyTo({zoom: 4})

Expected Behavior

  1. Some clusters expand.
  2. Math.floor(map.getZoom()) == 4

Actual Behavior

  1. Clusters remain the same after zoom.
  2. Math.floor(map.getZoom()) == 3
  3. map.getZoom() == 3.999999999999999
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants