diff options
author | Minh Nguyễn <mxn@1ec5.org> | 2016-01-22 14:23:42 -0800 |
---|---|---|
committer | Minh Nguyễn <mxn@1ec5.org> | 2016-01-22 15:35:58 -0800 |
commit | c062494536ca4556f6baec8c9b074afe7b04c63a (patch) | |
tree | 4c139405c4b0e7ac994405299bc2d88a87f236bf /platform | |
parent | 31120ea41b86a477c70d26ca1ccaf896b6e0046d (diff) | |
download | qtlocation-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.mm | 1 |
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 |