summaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorJustin R. Miller <incanus@codesorcery.net>2015-10-23 12:09:20 -0700
committerJustin R. Miller <incanus@codesorcery.net>2015-10-27 10:43:20 -0700
commit48d6d039ed8a42891bd591d7eab34de7e1d3dec4 (patch)
treea7a4b4b2db0cdd1a092fc47df0545fc7fec3680f /platform
parent2d8e29294cc87f3aad125ef0c3f96f3b6864dd22 (diff)
downloadqtlocation-mapboxgl-48d6d039ed8a42891bd591d7eab34de7e1d3dec4.tar.gz
remove heading tests as unreliable
Diffstat (limited to 'platform')
-rw-r--r--platform/ios/MGLMapView.mm6
1 files changed, 5 insertions, 1 deletions
diff --git a/platform/ios/MGLMapView.mm b/platform/ios/MGLMapView.mm
index bf4264e32a..45c95de090 100644
--- a/platform/ios/MGLMapView.mm
+++ b/platform/ios/MGLMapView.mm
@@ -2648,7 +2648,11 @@ CLLocationCoordinate2D MGLLocationCoordinate2DFromLatLng(mbgl::LatLng latLng)
{
self.showsUserLocation = YES;
- if (self.zoomLevel < self.currentMinimumZoom) [self setZoomLevel:self.currentMinimumZoom animated:YES];
+ if (self.zoomLevel < self.currentMinimumZoom)
+ {
+ [self setZoomLevel:self.currentMinimumZoom animated:YES];
+ _userTrackingMode = MGLUserTrackingModeFollowWithHeading; // reapply
+ }
if (self.userLocationAnnotationView)
{