From ba138064ba6060d023b9f0f5672cd5dafdae0dcf Mon Sep 17 00:00:00 2001 From: Fabian Guerra Date: Tue, 3 Jul 2018 14:45:19 -0700 Subject: [PATCH] [ios] Fix resetting the location manager blocks updates. --- platform/ios/src/MGLMapView.mm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/platform/ios/src/MGLMapView.mm b/platform/ios/src/MGLMapView.mm index 6fc0a03b556..3a771c058c5 100644 --- a/platform/ios/src/MGLMapView.mm +++ b/platform/ios/src/MGLMapView.mm @@ -4700,6 +4700,9 @@ - (void)setLocationManager:(id)locationManager _locationManager = locationManager; _locationManager.delegate = self; + if (!locationManager) { + _showsUserLocation = NO; + } } - (void)validateLocationServices