-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Tilting compass as map tilted #8208
Comments
That's a cool idea! Want to make a PR with the change? |
@mourner Could you share your idea for the options? |
I'm not sure, both seem good... @samanpwbb what do you think? |
I think one click to reset both is simpler. |
This is basically closed by #8226 The only thing not implemented in that PR is reseting the pitch when the compass button is clicked |
I checked Apple and Google maps for precedent and looks like neither use the compass to control pitch. The compass's sole purpose in both those apps is to communicate the cardinal directions and to allow user to reset direction. Pitching the compass makes directionality less clear. Therefore, I am actually not sure a pitching compass control is a good idea. At the very least, this should be an optional feature. If we do implement it, one click to reset would likely match user expectations most closely (double-click interactions like this are rare on the web). |
#8226 does implement pitching on the compass control but we could make the functionality optional in an additional PR that implements the on-click pitch reset. |
What would you suggest for the name of the pitching setting? |
Hmm.. but it already controls the pitch by default, so wouldn't make much sense 😂 Maybe |
@samanpwbb You're saying that the compass icon shouldn't move at all by default right? That both pitch and bearing visualization should be optional. |
I think he meant:
|
Motivation
When you rotate a map, compass on the navigation control rotates as much as the degree map rotated. but when you tilt the map, the compass doesn't interact for the pitch.
Also, when you click the compass, it makes the map degree to 0 as its default value but pitch would never be back to default even when you click the compass again.
I think when it interacts with both its bearing and pitch, will give better UX.
Implementation would look like(drag mouse on the MAP labeled element, and see compass below. and click the compass):
https://jsfiddle.net/cs09g/5an14p6r/
The text was updated successfully, but these errors were encountered: