diff options
author | Justin R. Miller <incanus@codesorcery.net> | 2015-03-25 17:48:22 -0700 |
---|---|---|
committer | Justin R. Miller <incanus@codesorcery.net> | 2015-03-25 17:48:22 -0700 |
commit | f3058dbc9ad37b498fc96c748d04c678c8b16726 (patch) | |
tree | 261194afc895402b6bfe2770bd26ea63f98d5c1f /include/mbgl/ios/MGLUserLocation.h | |
parent | c7b8cb1477139da834a5ceef051d9df375bfeb03 (diff) | |
download | qtlocation-mapboxgl-f3058dbc9ad37b498fc96c748d04c678c8b16726.tar.gz |
closes #1082, refs #756: user dot on map in iOS
Diffstat (limited to 'include/mbgl/ios/MGLUserLocation.h')
-rw-r--r-- | include/mbgl/ios/MGLUserLocation.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/include/mbgl/ios/MGLUserLocation.h b/include/mbgl/ios/MGLUserLocation.h new file mode 100644 index 0000000000..fee3368889 --- /dev/null +++ b/include/mbgl/ios/MGLUserLocation.h @@ -0,0 +1,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 |