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

Commit bf2b84b

Browse files
committed
[ios] persistent user tracking mode
1 parent 164d156 commit bf2b84b

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

platform/ios/CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ Mapbox welcomes participation and contributions from everyone. Please read [CONT
2727
* Fixed an issue where translucent, non-view-backed point annotations along tile boundaries would be drawn darker than expected. ([#6832](https://github.com/mapbox/mapbox-gl-native/pull/6832))
2828
* Fixed flickering that occurred when panning past the antimeridian. ([#7574](https://github.com/mapbox/mapbox-gl-native/pull/7574))
2929
* Fixed an issue that could prevent a cached style from appearing while the device is offline. ([#7770](https://github.com/mapbox/mapbox-gl-native/pull/7770))
30+
* Programmatic camera changes no longer resets user tracking mode. ([#7856](https://github.com/mapbox/mapbox-gl-native/pull/7856))
3031

3132
## 3.4.0
3233

platform/ios/src/MGLMapView.mm

-3
Original file line numberDiff line numberDiff line change
@@ -2537,7 +2537,6 @@ - (void)setCamera:(MGLMapCamera *)camera withDuration:(NSTimeInterval)duration a
25372537

25382538
- (void)setCamera:(MGLMapCamera *)camera withDuration:(NSTimeInterval)duration animationTimingFunction:(nullable CAMediaTimingFunction *)function completionHandler:(nullable void (^)(void))completion
25392539
{
2540-
self.userTrackingMode = MGLUserTrackingModeNone;
25412540
_mbglMap->cancelTransitions();
25422541
if ([self.camera isEqual:camera])
25432542
{
@@ -2577,8 +2576,6 @@ - (void)flyToCamera:(MGLMapCamera *)camera withDuration:(NSTimeInterval)duration
25772576

25782577
- (void)flyToCamera:(MGLMapCamera *)camera withDuration:(NSTimeInterval)duration peakAltitude:(CLLocationDistance)peakAltitude completionHandler:(nullable void (^)(void))completion
25792578
{
2580-
self.userTrackingMode = MGLUserTrackingModeNone;
2581-
25822579
[self _flyToCamera:camera edgePadding:self.contentInset withDuration:duration peakAltitude:peakAltitude completionHandler:completion];
25832580
}
25842581

0 commit comments

Comments
 (0)