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

[BUG] Pinch zooming on mobile causes the topological map to turn white #3

Open
mgkollander opened this issue Aug 3, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@mgkollander
Copy link
Owner

Describe the bug
Pinch zooming on mobile can go past the normal zoom limit. The topological tile layer (OpenTopoMap) doesn't display past a certain point, so it switches to the plain white OpenStreetMap tiles by default. This seems to only be an issue with pinch zooming.

Expected behavior
Users shouldn't be able to zoom in close enough for the OpenStreetMap tiles to generate.

Smartphone:

  • Device: iPhone 12 Mini
  • Browser: Safari

Additional context
Maximum zoom-in value ('maxZoom') does not account for pinch zoom. We have some options:

  1. Disable snapping back when at maxZoom
  2. Disable pinch zooming-in at maxZoom
  3. Push back maxZoom so this can't happen unless someone tries really, really hard
@mgkollander mgkollander added the bug Something isn't working label Aug 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant