MRAnnotation Protocol Reference
| Conforms to | NSObject |
|---|---|
| Declared in | MRAnnotation.h |
Overview
The basic MRAnnotation class; defines a location in space and a title/subtitle for the selection UI.
point
required method
Center x and y of the annotation view. The implementation of this property must be KVO compliant.
@property (nonatomic, readonly) CGPoint pointDeclared In
MRAnnotation.h
title
Title for use by selection UI.
@property (nullable, nonatomic, readonly, copy) NSString *titleDeclared In
MRAnnotation.h
subtitle
Subtitle for use by selection UI.
@property (nullable, nonatomic, readonly, copy) NSString *subtitleDeclared In
MRAnnotation.h
minimumZoomLevel
Gets the minimum zoom level (inclusive) at which this annotation should be displayed. If not implemented, the annotation will be displayed at every zoom level. Return MRZoomLevelWorld to always display when map is zoomed all the way out
@property (nonatomic, readonly) MRZoomLevel minimumZoomLevelDeclared In
MRAnnotation.h
maximumZoomLevel
Gets the maximum zoom level (inclusive) at which this annotation should be displayed. If not implemented, the annotation will be displayed at every zoom level. Return MRZoomLevelAtom to always display when map is zoomed all the way in
@property (nonatomic, readonly) MRZoomLevel maximumZoomLevelDeclared In
MRAnnotation.h
zPosition
This property changes the the front-to-back ordering of annotations onscreen.
@property (nonatomic, readonly) CGFloat zPositionDeclared In
MRAnnotation.h
collides
Sets whether the annotation collides with other annotations. Default is NO if unimplemented.
@property (nonatomic, readonly) BOOL collidesDeclared In
MRAnnotation.h
preferredOpacity
Preferred Annotations opacity when added to the map. Defaults to 1.0
@property (nonatomic, readonly) CGFloat preferredOpacityDeclared In
MRAnnotation.h
– compareDisplayPriority:
Deprecated. Use zPosition and collides instead.
- (NSComparisonResult)compareDisplayPriority:(id<MRAnnotation>)annotationParameters
annotation |
The annotation with which to compare display priority. |
|---|
Discussion
Implement to support collision detection between annotations when displayed on a map. This method should return NSOrderedAscending if the receiver has “less priority” than the given annotation, NSOrderedDescending if the receiver has “more priority”, and NSOrderedSame if the receiver and the annotation are of equal priority. More priority means that given the choice of displaying one of two annotations occupying similar space on the map, the higher priority annotation will be displayed.
Declared In
MRAnnotation.h
isInflated
Used to signify the annotation should be inflated or enlarged. This helps show various states that the annotation can be represented in.
@property (nonatomic, assign) BOOL isInflatedDeclared In
MRAnnotation.h
userActivity
Optional User Activity to expose for the MRAnnotation
@property (nullable, nonatomic, readonly, strong) NSUserActivity *userActivityDeclared In
MRAnnotation.h
attributeSet
CoreSpotlight Searchable item Attribute Set for this MRAnnotation.
@property (nonatomic, nullable, strong) CSSearchableItemAttributeSet *attributeSetDeclared In
MRAnnotation.h
searchItem
CoreSpotlight Search item itself that can be indexed
@property (nonatomic, nullable, strong) CSSearchableItem *searchItemDeclared In
MRAnnotation.h