You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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 that10
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.
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.
The text was updated successfully, but these errors were encountered: