Skip to content

ui for changing pitch #1063

Closed
Closed

Description

@ansis

How can a user change the pitch of a map? A button? or mouse action?

Activity

  1. tmcw commented on Mar 6, 2015

    @tmcw
    Contributor

    One vote for a button, at least at first, for normal pitch and some nice 45° or something.

  2. peterqliu commented on Mar 6, 2015

    @peterqliu
    Contributor

    My first instinct is shift + left click drag to tilt up and down, and a button to restore to a full 90 degrees.

    How would we handle touchscreens?

  3. peterqliu commented on Apr 16, 2015

    @peterqliu
    Contributor

    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).

  4. atlefren commented on Apr 16, 2015

    @atlefren

    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

  5. added a commit that references this issue on Oct 27, 2015
  6. bhousel commented on Jan 13, 2016

    @bhousel
    Contributor

    We should support two finger swipe up/down for adjusting pitch, this has become a standard.

    touch_zoom_rotate_pitch?

    We really should just name that handler touch.

  7. lucaswoj commented on Jul 28, 2016

    @lucaswoj
    Contributor

    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.

  8. fedex1 commented on Jul 31, 2018

    @fedex1

    @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?

  9. bhousel commented on Jul 31, 2018

    @bhousel
    Contributor

    Sorry @fedex1 - I am not working on mapbox-gl-js these days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions