Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
[ios] Fix resetting the location manager blocks updates.
Browse files Browse the repository at this point in the history
  • Loading branch information
fabian-guerra committed Jul 3, 2018
1 parent f2d0962 commit ba13806
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions platform/ios/src/MGLMapView.mm
Original file line number Diff line number Diff line change
Expand Up @@ -4700,6 +4700,9 @@ - (void)setLocationManager:(id<MGLLocationManager>)locationManager
_locationManager = locationManager;
_locationManager.delegate = self;

if (!locationManager) {
_showsUserLocation = NO;
}
}

- (void)validateLocationServices
Expand Down

0 comments on commit ba13806

Please sign in to comment.