diff options
author | Jason Wray <jason@mapbox.com> | 2017-08-29 17:42:38 -0400 |
---|---|---|
committer | Jason Wray <jason@mapbox.com> | 2017-09-07 19:23:29 -0400 |
commit | 218c720e9e8882e3d9070ce72ca3b4173c7835c8 (patch) | |
tree | 1af367075135c975eda786a627cc1dabb392a2d4 /platform/ios/src/MGLMapView.h | |
parent | 99616e662704f3c778d002fc711ec1288fd6d142 (diff) | |
download | qtlocation-mapboxgl-218c720e9e8882e3d9070ce72ca3b4173c7835c8.tar.gz |
[ios] Add setShowsUserHeadingIndicator and validateUserHeadingUpdating
Diffstat (limited to 'platform/ios/src/MGLMapView.h')
-rw-r--r-- | platform/ios/src/MGLMapView.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/platform/ios/src/MGLMapView.h b/platform/ios/src/MGLMapView.h index b475a21d2b..16a76ebcfe 100644 --- a/platform/ios/src/MGLMapView.h +++ b/platform/ios/src/MGLMapView.h @@ -358,6 +358,23 @@ MGL_EXPORT IB_DESIGNABLE - (void)setUserLocationVerticalAlignment:(MGLAnnotationVerticalAlignment)alignment animated:(BOOL)animated; /** + A Boolean value indicating whether the user location annotation may display a + permanent heading indicator. + + Setting this property to `YES` causes the default user location annotation to + always show an arrow-shaped heading indicator, if heading is available. This + property does not rotate the map; for that, see + `MGLUserTrackingModeFollowWithHeading`. + + This property has no effect when `userTrackingMode` is + `MGLUserTrackingModeFollowWithHeading` or + `MGLUserTrackingModeFollowWithCourse`. + + The default value of this property is `NO`. + */ +@property (nonatomic, assign) BOOL showsUserHeadingIndicator; + +/** Whether the map view should display a heading calibration alert when necessary. The default value is `YES`. */ |