summaryrefslogtreecommitdiff
path: root/platform/ios/src/MGLUserLocation.h
diff options
context:
space:
mode:
authorJason Wray <jason@mapbox.com>2017-07-31 16:18:24 -0400
committerJason Wray <jason@mapbox.com>2017-07-31 17:55:49 -0400
commitc36e08b97658c07bb74cd950942ff6bcd98fdb06 (patch)
tree88b665b2fd7f10c5e16c2284b0e2bf490787775c /platform/ios/src/MGLUserLocation.h
parent9c01cbc537f17f886bce45ce5927bef8a6c50d63 (diff)
downloadqtlocation-mapboxgl-c36e08b97658c07bb74cd950942ff6bcd98fdb06.tar.gz
Return an invalid `coordinate` when `location` is nilupstream/9639-ianthetechie-cllocation-nil
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/src/MGLUserLocation.h')
-rw-r--r--platform/ios/src/MGLUserLocation.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/platform/ios/src/MGLUserLocation.h b/platform/ios/src/MGLUserLocation.h
index 8c6fe46136..91abadbcb7 100644
--- a/platform/ios/src/MGLUserLocation.h
+++ b/platform/ios/src/MGLUserLocation.h
@@ -20,8 +20,7 @@ MGL_EXPORT
/**
The current location of the device. (read-only)
- 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.
+ This property returns `nil` if the user’s location has not yet been determined.
*/
@property (nonatomic, readonly, nullable) CLLocation *location;