-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
ui for changing pitch #1063
Comments
One vote for a button, at least at first, for normal pitch and some nice 45° or something. |
My first instinct is How would we handle touchscreens? |
On second thought, we already rotate around the Z axis with right-click and drag. Let's make the right mouse button the center of all rotations: drag to rotate around Z axis, shift-drag to rotate around the X axis (adjusting pitch). |
Hi guys, i wanted a way to illustrate the pitch change, so I went ahead and made a (rater rudimentary) button added to the navigation control, inspired by Google Earth, If it's of any interest check out https://github.com/Norkart/mapbox-gl-js/tree/tilt-control2 and let me know if you want a pull request on this |
Use shift-up-arrow and shift-down-arrow to control the pitch. Clicking on the rotation button will reset the pitch to 0. This change exposes pitch for power users, but leaves the current UI unchanged. More advanced UIs can still be built on top of this behavior. Issue: #1063
We should support two finger swipe up/down for adjusting pitch, this has become a standard.
We really should just name that handler |
We have a keyboard shortcut for changing pitch. If we decide to add additional interactions or a UI element, let's ticket out that separately. |
@bhousel Did your suggestion of "two finger swipe up/down for adjusting pitch" ever make it live? I do not see an easy way to tilt the map on mapboxgl-js mobile. Is there a way to tilt using finger gestures? |
Sorry @fedex1 - I am not working on mapbox-gl-js these days. |
How can a user change the pitch of a map? A button? or mouse action?
The text was updated successfully, but these errors were encountered: