diff --git a/platform/ios/CHANGELOG.md b/platform/ios/CHANGELOG.md index d86a19f6420..a0281b3f02f 100644 --- a/platform/ios/CHANGELOG.md +++ b/platform/ios/CHANGELOG.md @@ -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 diff --git a/platform/ios/src/MGLLocationManager.m b/platform/ios/src/MGLLocationManager.m index d9c3d0e1243..b0d2e17d5d9 100644 --- a/platform/ios/src/MGLLocationManager.m +++ b/platform/ios/src/MGLLocationManager.m @@ -46,6 +46,13 @@ - (void)stopUpdatingLocation { [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