MaplyLocationTracker
Undocumented
-
Exposes MaplyLocationTracker’s location manager for use elsewhere
Declaration
Objective-C
@property (readonly, nonatomic, nullable) CLLocationManager *locationManager;Swift
var locationManager: CLLocationManager? { get } -
MaplyLocationTracker constructor
Declaration
Objective-C
- (nonnull instancetype) initWithViewC:(MaplyBaseViewController *_Nullable)viewC delegate:(NSObject<MaplyLocationTrackerDelegate> *_Nullable)delegate useHeading:(_Bool)useHeading useCourse:(_Bool)useCourse simulate:(_Bool)simulate;Swift
init(viewC: MaplyBaseViewController?, delegate: (NSObjectProtocolParameters
viewCThe globe or map view controller
delegateThe MaplyLocationTrackerDelegate for receiving location event callbacks
useHeadingUse location services heading information (requires physical magnetometer)
useCourseUse location services course information as fallback if heading unavailable
-
Change lock type
Declaration
Objective-C
- (void)changeLockType:(MaplyLocationLockType)lockType forwardTrackOffset:(int)forwardTrackOffset;Swift
func change(_ lockType: MaplyLocationLockType, forwardTrackOffset: Int32)Parameters
lockTypeThe MaplyLocationLockType value for lock behavior
forwardTrackOffsetThe vertical offset if using MaplyLocationLockHeadingUpOffset (positive values are below the view center)
-
Stop the MaplyLocationTracker behavior and shut it down.
Declaration
Objective-C
- (void)teardown;Swift
func teardown() -
Get the current device location
Return Value
The coordinate if valid, else kMaplyNullCoordinate
View on GitHub
MaplyLocationTracker Class Reference