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

Manipulate camera pitch without leaving .followWithCourse #7789

Closed
bsudekum opened this issue Jan 19, 2017 · 3 comments
Closed

Manipulate camera pitch without leaving .followWithCourse #7789

bsudekum opened this issue Jan 19, 2017 · 3 comments
Assignees
Labels
feature iOS Mapbox Maps SDK for iOS MapKit parity For feature parity with MapKit on iOS or macOS navigation For the Mapbox Navigation SDK for Android or iOS or navigation use cases in general
Milestone

Comments

@bsudekum
Copy link

bsudekum commented Jan 19, 2017

Platform: iOS
Mapbox SDK version: 3.4.0-rc.1

Steps to trigger behavior

  1. Enter tracking mode .followWithCouse
  2. Change camera pitch

Expected behavior

Tracking mode remains in .followWithCourse

Actual behavior

Tracking mode enters .none


I'm open to extending this beyond manipulating pitch. I can think of use cases for heading as well.

/cc @frederoni @boundsj @1ec5 @pveugen

@bsudekum bsudekum added iOS Mapbox Maps SDK for iOS feature labels Jan 19, 2017
@1ec5
Copy link
Contributor

1ec5 commented Jan 19, 2017

In other words, we should avoid kicking the user out of user tracking mode due to a programmatic camera change, but still kick the user out of user tracking mode in response to a user gesture. This would fix #1490 as well.

Unfortunately, without concurrent animations (#3625), animated pitch changes would still cause an undesirable stuttering effect in user tracking mode: the usual animation due to user location updates would pause while the pitch animates, similar to the effect seen in heading tracking mode: #3625 (comment). I would consider #3625 to be a blocker for this feature, because you’d never want to animate the pitch in user tracking mode due to this issue.

@1ec5 1ec5 added navigation For the Mapbox Navigation SDK for Android or iOS or navigation use cases in general MapKit parity For feature parity with MapKit on iOS or macOS labels Jan 19, 2017
@1ec5 1ec5 modified the milestones: ios-v3.5.0, ios-v3.4.2 Jan 25, 2017
@1ec5
Copy link
Contributor

1ec5 commented Feb 6, 2017

Fixed in #7856 on the release-ios-v3.4.0 branch.

@1ec5 1ec5 closed this as completed Feb 6, 2017
@ReSpawN
Copy link

ReSpawN commented Feb 4, 2019

@1ec5 Can you share a Swift 4 implementation on how to achieve this? Manipulating the camera with a button has zero effect for me.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature iOS Mapbox Maps SDK for iOS MapKit parity For feature parity with MapKit on iOS or macOS navigation For the Mapbox Navigation SDK for Android or iOS or navigation use cases in general
Projects
None yet
Development

No branches or pull requests

4 participants