Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Tilt gesture with padding and user location tracking #3947

Closed

Description

@tobrun

Map padding with user location tracking landed with #3942.
We currently support all gestures except for tilt.

The java api is currently only using the following code for tilt:

void Map::setPitch(double pitch, const Duration& duration) {
    setPitch(pitch, {NAN, NAN}, duration);
}

I tried using the following method instead:

void Map::setPitch(double pitch, const PrecisionPoint& anchor, const Duration& duration) {
    transform->setPitch(pitch * M_PI / 180, anchor, duration);
    update(Update::Repaint);
}

For precision point I used the UserLocationView coordinates but this is not giving the desired result.

Need to find out how to correctly tilt over the UserLocationView.

Activity

  1. added
    Android
    on Feb 15, 2016
  2. added this to the android-v4.0.0 milestone on Feb 15, 2016
  3. modified the milestone: android-v4.1.0 on Mar 18, 2016
  4. added this to the android-v4.1.0 milestone on Apr 25, 2016
  5. tobrun commented on Apr 25, 2016

    @tobrun
    MemberAuthor

    Landed in #4695

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Androidbug

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions