diff options
author | Jason Wray <jason@mapbox.com> | 2017-09-29 12:14:05 -0400 |
---|---|---|
committer | Jason Wray <jason@mapbox.com> | 2017-09-29 12:14:05 -0400 |
commit | 201b7d4811a5370ea18518040aeca07fbb7e7b72 (patch) | |
tree | 8f83672295983d41d5ea2356ee5054de8de07e99 /platform | |
parent | cef386ca471ac703aaf97b9bad9b0505eb1dd37f (diff) | |
download | qtlocation-mapboxgl-201b7d4811a5370ea18518040aeca07fbb7e7b72.tar.gz |
[ios] Don't disable user tracking when selecting an annotation
Diffstat (limited to 'platform')
-rw-r--r-- | platform/ios/CHANGELOG.md | 1 | ||||
-rw-r--r-- | platform/ios/src/MGLMapView.mm | 5 |
2 files changed, 1 insertions, 5 deletions
diff --git a/platform/ios/CHANGELOG.md b/platform/ios/CHANGELOG.md index 8dd1c5d8c7..93ca6d9b7b 100644 --- a/platform/ios/CHANGELOG.md +++ b/platform/ios/CHANGELOG.md @@ -28,6 +28,7 @@ Mapbox welcomes participation and contributions from everyone. Please read [CONT * Fixed several bugs and performance issues related to the use of annotations backed by `MGLAnnotationImage`. The limits on the number and size of images and glyphs has been effectively eliminated and should now depend on hardware constraints. These fixes also apply to images used to represent icons in `MGLSymbolStyleLayer`. ([#9213](https://github.com/mapbox/mapbox-gl-native/pull/9213)) * Increased the default maximum zoom level from 20 to 22. ([#9835](https://github.com/mapbox/mapbox-gl-native/pull/9835)) * Added an `overlays` property to `MGLMapView`. ([#8617](https://github.com/mapbox/mapbox-gl-native/pull/8617)) +* Selecting an annotation no longer sets the user tracking mode to `MGLUserTrackingModeNone`. ([#10094](https://github.com/mapbox/mapbox-gl-native/pull/10094)) ### Other changes diff --git a/platform/ios/src/MGLMapView.mm b/platform/ios/src/MGLMapView.mm index a03a5ad357..006792f4bf 100644 --- a/platform/ios/src/MGLMapView.mm +++ b/platform/ios/src/MGLMapView.mm @@ -3943,11 +3943,6 @@ public: if (annotation == self.selectedAnnotation) return; - if (annotation != self.userLocation) - { - self.userTrackingMode = MGLUserTrackingModeNone; - } - [self deselectAnnotation:self.selectedAnnotation animated:NO]; // Add the annotation to the map if it hasn’t been added yet. |