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

TouchRotate is seems too sensitive. Difficult to only PinchZoom the map. #4970

Closed
dagjomar opened this issue Jul 11, 2017 · 0 comments
Closed

Comments

@dagjomar
Copy link
Contributor

After a lot of testing and feedback from people using our Mapbox map on mobile, everyone says that the rotation is too sensitive. People want to be able to pinch zoom the map without rotating the map unless they really mean to do it.

I have found that the implementation in the TouchZoomRotate handler is fairly good, and the only thing that needs to be fixed is to increase the significantRotateThreshold value a bit.

It is currently set to 4 degrees, which is very little. After experimenting, I have found that 10 is a more sensible default value.

Preferably, developers would want to customize this value, as there might be cases where you want to precisely always rotate a map, but I believe in most cases it is better to up this value a bit.

  • Google Maps for iOS seem to have a threshold similar to 10.
  • Apple Maps for iOS seem to have a low threshold similar to 4 or a bit higher.

However, Apple Maps will automatically rotate the map BACK to north, if the total rotation change after pinchZoom is less than some extra threshold value. So that is an extra piece of logic that keeps the map from rotating away from north when the user don't want to rotate.

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

No branches or pull requests

2 participants