MRUserLocation Class Reference
Inherits from | NSObject |
---|---|
Conforms to | MRAnnotation |
Declared in | MRUserLocation.h |
Overview
A model object implementing the MRAnnotation
protocol, to be used to represent the user’s location on a map.
updating
Returns YES
if the user’s location is being updated.
@property (nonatomic, readonly) BOOL updating
Declared In
MRUserLocation.h
location
Returns nil if the owning MRMapView
’s showsUserLocation
is NO
or the user’s location has yet to be determined.
@property (nonatomic, readonly, nullable) MRLocation *location
Declared In
MRUserLocation.h
title
The title to be displayed for the user location annotation.
@property (nonatomic, copy, nonnull) NSString *title
Declared In
MRUserLocation.h
subtitle
The subtitle to be displayed for the user location annotation.
@property (nonatomic, copy, nullable) NSString *subtitle
Declared In
MRUserLocation.h
zPosition
The z-position of the user location annotation.
@property (nonatomic, assign) CGFloat zPosition
Declared In
MRUserLocation.h
collides
Whether the user location annotation collides with other annotation.
@property (nonatomic, assign) BOOL collides
Declared In
MRUserLocation.h
– setCustomColor:type:
Override the custom user location annotation color
- (void)setCustomColor:(nullable UIColor *)color type:(MRLocationProviderType)type
Parameters
color |
A color value for the user location annotation |
---|---|
type |
A constant for the associated location provider |
Declared In
MRUserLocation.h
– customColor:
The custom user location annotation color
- (nullable UIColor *)customColor:(MRLocationProviderType)type
Parameters
type |
The type a particular color is associated with. |
---|
Declared In
MRUserLocation.h