summaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorMinh Nguyễn <mxn@1ec5.org>2016-01-22 14:23:42 -0800
committerMinh Nguyễn <mxn@1ec5.org>2016-01-22 15:35:58 -0800
commitc062494536ca4556f6baec8c9b074afe7b04c63a (patch)
tree4c139405c4b0e7ac994405299bc2d88a87f236bf /platform
parent31120ea41b86a477c70d26ca1ccaf896b6e0046d (diff)
downloadqtlocation-mapboxgl-c062494536ca4556f6baec8c9b074afe7b04c63a.tar.gz
[ios] Disable user tracking in -setVisibleCoordinates:
Programmatic modification of the viewport should kick the user out of user tracking mode.
Diffstat (limited to 'platform')
-rw-r--r--platform/ios/src/MGLMapView.mm1
1 files changed, 1 insertions, 0 deletions
diff --git a/platform/ios/src/MGLMapView.mm b/platform/ios/src/MGLMapView.mm
index 8e5bdb96dd..241076e4c8 100644
--- a/platform/ios/src/MGLMapView.mm
+++ b/platform/ios/src/MGLMapView.mm
@@ -1813,6 +1813,7 @@ std::chrono::steady_clock::duration MGLDurationInSeconds(float duration)
- (void)setVisibleCoordinates:(CLLocationCoordinate2D *)coordinates count:(NSUInteger)count edgePadding:(UIEdgeInsets)insets direction:(CLLocationDirection)direction duration:(NSTimeInterval)duration animationTimingFunction:(nullable CAMediaTimingFunction *)function completionHandler:(nullable void (^)(void))completion
{
+ self.userTrackingMode = MGLUserTrackingModeNone;
_mbglMap->cancelTransitions();
// NOTE: does not disrupt tracking mode