diff options
author | Ian Wagner <ianthetechie@gmail.com> | 2017-07-27 22:28:41 -0400 |
---|---|---|
committer | Jason Wray <jason@mapbox.com> | 2017-08-28 16:41:55 -0400 |
commit | e78620c70567a995a6f02ae3ee85cc5dd7f3fade (patch) | |
tree | 118305aa043981d933474084fa73f44f2909d24a /platform/ios/CHANGELOG.md | |
parent | a7f06366d2c431bdf34fcfa14314be43ac09987b (diff) | |
download | qtlocation-mapboxgl-e78620c70567a995a6f02ae3ee85cc5dd7f3fade.tar.gz |
[ios] Set location to nil until the user's location is determined
The documentation for the `location` property states that "This property contains `nil` if the map view is not currently showing the user location or if the user’s location has not yet been determined." The iOS SDK presently returns a garbage value, which has some rather annoying consequences when the value should logically be nullable. This change should rectify the issue.
With _location no longer initialized to an invalid coordinate, trying to access `_location.coordinate` when `_location == nil` will return `0, 0`, which is a valid coordinate.
Diffstat (limited to 'platform/ios/CHANGELOG.md')
-rw-r--r-- | platform/ios/CHANGELOG.md | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/platform/ios/CHANGELOG.md b/platform/ios/CHANGELOG.md index d8267092df..a1d8808033 100644 --- a/platform/ios/CHANGELOG.md +++ b/platform/ios/CHANGELOG.md @@ -6,6 +6,7 @@ Mapbox welcomes participation and contributions from everyone. Please read [CONT * Fixed an issue where user heading tracking mode would update too frequently. ([#9845](https://github.com/mapbox/mapbox-gl-native/pull/9845)) * Added support for iOS 11 location usage descriptions. ([#9869](https://github.com/mapbox/mapbox-gl-native/pull/9869)) +* Fixed an issue where `MGLUserLocation.location` did not follow its documented initialization behavior. This property will now properly return `nil` until the user’s location has been determined. ([#9639](https://github.com/mapbox/mapbox-gl-native/pull/9639)) ## 3.6.2 - August 18, 2017 |