MRAnnotationView Class Reference
Inherits from | UIView |
---|---|
Declared in | MRAnnotationView.h |
reuseIdentifier
A string that identifies this annotation view as reusable. (read-only)
@property (nonatomic, readonly, copy) NSString *reuseIdentifier
Declared In
MRAnnotationView.h
annotation
The annotation model object that this view represents.
@property (nonatomic, strong) id<MRAnnotation> annotation
Declared In
MRAnnotationView.h
centerOffset
The offset at which to display the view.
By default, the center of the annotation view is placed over the point of the annotation.
centerOffset
is the offset in screen points from the center of the annotation view.
@property (nonatomic) CGPoint centerOffset
Declared In
MRAnnotationView.h
calloutOffset
The offset at which to anchor the annotation callout.
calloutOffset
is the offset in screen points from the top-middle of the annotation view where the anchor of the callout should be shown.
@property (nonatomic) CGPoint calloutOffset
Declared In
MRAnnotationView.h
leftCalloutAccessoryView
The left accessory view to be used in the standard callout. If using the default bottom sheet annotation call out either the frame should be set or a height constraint constant on at least one of your visible accessory views.
@property (nullable, strong, nonatomic) UIView *leftCalloutAccessoryView
Declared In
MRAnnotationView.h
rightCalloutAccessoryView
The right accessory view to be used in the standard callout. If using the default bottom sheet annotation call out either the frame should be set or a height constraint constant on at least one of your visible accessory views.
@property (nullable, strong, nonatomic) UIView *rightCalloutAccessoryView
Declared In
MRAnnotationView.h
calloutContentView
A view to use as the content of the callout instead of the standard layout.
@property (nullable, strong, nonatomic) UIView *calloutContentView
Declared In
MRAnnotationView.h
calloutContentMargin
A margin value to use for calloutContentView
. If calloutContentView
isn’t set, this value will be ignored. The default is 12
.
@property (nonatomic) CGFloat calloutContentMargin
Declared In
MRAnnotationView.h
selected
The default is NO
. Becomes YES
when tapped/clicked in the map view.
@property (nonatomic, readonly, getter=isSelected) BOOL selected
Declared In
MRAnnotationView.h
preferredOpacity
Preferred Annotations opacity when added to the map. Defaults to 1.0
@property (nonatomic, assign) CGFloat preferredOpacity
Declared In
MRAnnotationView.h
– initWithAnnotation:reuseIdentifier:
Initializes a new annotation view. Use the same reuseIdentifier
for annotations that share the same kind of view, so that those
views can be recycled.
- (instancetype)initWithAnnotation:(id<MRAnnotation>)annotation reuseIdentifier:(NSString *)reuseIdentifier
Parameters
annotation |
The annotation to associate with this view. |
---|---|
reuseIdentifier |
A string to classify this view for recycling purposes. |
Declared In
MRAnnotationView.h
– setSelected:animated:
Sets the selected state for this annotation view, optionally animating the change.
- (void)setSelected:(BOOL)selected animated:(BOOL)animated
Parameters
selected |
|
---|---|
animated |
|
Declared In
MRAnnotationView.h