diff options
author | Fabian Guerra <fabian.guerra@mapbox.com> | 2018-07-03 14:45:19 -0700 |
---|---|---|
committer | Fabian Guerra <fabian.guerra@mapbox.com> | 2018-07-20 09:46:38 -0700 |
commit | 56ca8d46f1d46e6f0fd96f634f97c238ae6d7f60 (patch) | |
tree | 1ae20b51fde777db6fce4d4719c82be8fa001fe0 | |
parent | dbd2cb0b925634b4c044ee8867830abe3cb39077 (diff) | |
download | qtlocation-mapboxgl-56ca8d46f1d46e6f0fd96f634f97c238ae6d7f60.tar.gz |
[ios] Fix resetting the location manager blocks updates.
-rw-r--r-- | platform/ios/src/MGLMapView.mm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/platform/ios/src/MGLMapView.mm b/platform/ios/src/MGLMapView.mm index 586e59c9f5..38ad0c9552 100644 --- a/platform/ios/src/MGLMapView.mm +++ b/platform/ios/src/MGLMapView.mm @@ -4692,6 +4692,9 @@ public: _locationManager = locationManager; _locationManager.delegate = self; + if (!locationManager) { + _showsUserLocation = NO; + } } - (void)validateLocationServices |