summaryrefslogtreecommitdiff
path: root/include/mbgl/ios/MGLUserLocation.h
blob: fee33688893405565bd51c2ce234faff8251f9a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#import "MGLAnnotation.h"

@interface MGLUserLocation : NSObject <MGLAnnotation>

@property (nonatomic, readonly) CLLocationCoordinate2D coordinate;

/** @name Determining the User’s Position */

/** 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. */
@property (nonatomic, readonly) CLLocation *location;

/** A Boolean value indicating whether the user’s location is currently being updated. (read-only) */
@property (nonatomic, readonly, getter=isUpdating) BOOL updating; // FIXME

/** The heading of the user location. (read-only)
*
* This property is `nil` if the user location tracking mode is not `RMUserTrackingModeFollowWithHeading`. */
@property (nonatomic, readonly) CLHeading *heading;

@property (nonatomic, copy) NSString *title;

@property (nonatomic, copy) NSString *subtitle;

@end