diff options
author | Minh Nguyễn <mxn@1ec5.org> | 2016-01-17 22:52:44 -0800 |
---|---|---|
committer | Minh Nguyễn <mxn@1ec5.org> | 2016-01-20 11:02:31 -0800 |
commit | 35895af5d4b01b1f0f9a035359225554495f2786 (patch) | |
tree | 6a56fb845a4f34621ee2217e22fd6ef804c6cd5b | |
parent | 59f2c53c267ccb891b3eee12b91fd39df3b81d8a (diff) | |
download | qtlocation-mapboxgl-35895af5d4b01b1f0f9a035359225554495f2786.tar.gz |
[ios] Keep user dot callout open after user location change
Outside of user tracking mode, the user dot moves in spurts, so view synchronization performance isn’t an issue.
-rw-r--r-- | platform/ios/src/MGLMapView.mm | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/platform/ios/src/MGLMapView.mm b/platform/ios/src/MGLMapView.mm index 3dc06baabe..38f6d2ec65 100644 --- a/platform/ios/src/MGLMapView.mm +++ b/platform/ios/src/MGLMapView.mm @@ -3044,14 +3044,6 @@ std::chrono::steady_clock::duration MGLDurationInSeconds(float duration) self.userLocation.location = newLocation; } - // deselect user if applicable since we don't do callout tracking yet - if (self.selectedAnnotation == self.userLocation - && (self.userTrackingMode == MGLUserTrackingModeNone - || self.userTrackingState != MGLUserTrackingStateChanged)) - { - [self deselectAnnotation:self.userLocation animated:NO]; - } - if ([self.delegate respondsToSelector:@selector(mapView:didUpdateUserLocation:)]) { [self.delegate mapView:self didUpdateUserLocation:self.userLocation]; |