mapbox-gl-native icon indicating copy to clipboard operation
mapbox-gl-native copied to clipboard

Manipulate camera pitch without leaving .followWithCourse

Open bsudekum opened this issue 9 years ago • 3 comments

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 avatar Jan 19 '17 17:01 bsudekum

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: https://github.com/mapbox/mapbox-gl-native/issues/3625#issuecomment-173128298. 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 avatar Jan 19 '17 18:01 1ec5

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

1ec5 avatar Feb 06 '17 20:02 1ec5

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

CyntaxDotDev avatar Feb 04 '19 18:02 CyntaxDotDev