[ios] Disable region monitoring when stopping location monitoring (#7833)
This commit is contained in:
committed by
Jesse Bounds
parent
655b7c035c
commit
d4c569a018
@@ -46,6 +46,7 @@ Mapbox welcomes participation and contributions from everyone. Please read [CONT
|
||||
* Fixed an issue where translucent, non-view-backed point annotations along tile boundaries would be drawn darker than expected. ([#6832](https://github.com/mapbox/mapbox-gl-native/pull/6832))
|
||||
* Fixed flickering that occurred when panning past the antimeridian. ([#7574](https://github.com/mapbox/mapbox-gl-native/pull/7574))
|
||||
* Added a `MGLDistanceFormatter` class for formatting geographic distances. ([#7888](https://github.com/mapbox/mapbox-gl-native/pull/7888))
|
||||
* Fixed an issue that was causing the system location indicator to stay on in background after telemetry was disabled. ([#7833](https://github.com/mapbox/mapbox-gl-native/pull/7833))
|
||||
|
||||
## 3.4.1 - January 25, 2017
|
||||
|
||||
|
||||
@@ -46,6 +46,13 @@ static NSString * const MGLLocationManagerRegionIdentifier = @"MGLLocationManage
|
||||
[self.delegate locationManagerDidStopLocationUpdates:self];
|
||||
}
|
||||
}
|
||||
if(self.standardLocationManager.monitoredRegions.count > 0) {
|
||||
for(CLRegion *region in self.standardLocationManager.monitoredRegions) {
|
||||
if([region.identifier isEqualToString:MGLLocationManagerRegionIdentifier]) {
|
||||
[self.standardLocationManager stopMonitoringForRegion:region];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#pragma mark - Utilities
|
||||
|
||||
Reference in New Issue
Block a user