|
13 | 13 | @interface MFMarker: MFOverlay |
14 | 14 | @property(nonatomic) CLLocationCoordinate2D position; |
15 | 15 | @property(nonatomic) CGPoint groundAnchor; |
16 | | - @property(nonatomic, strong, setter=setIconView:) UIView *iconView; |
| 16 | + @property(nonatomic, strong, setter=setIconView:) UIView * _Nullable iconView; |
17 | 17 | @property(nonatomic) double elevation; |
18 | | - @property(nonatomic, strong) UIImage *icon; |
| 18 | + @property(nonatomic, strong) UIImage * _Nullable icon; |
19 | 19 | @property(nonatomic, assign, setter=setVisible:) bool isVisible; |
| 20 | + |
| 21 | + /** |
| 22 | + * Title, a short description of the overlay. Some overlays, such as markers, will display the title |
| 23 | + * on the map. The title is also the default accessibility text. |
| 24 | + */ |
| 25 | + @property(nonatomic, strong, nullable) NSString *title; |
| 26 | + |
| 27 | + /** Snippet text, shown beneath the title in the info window when selected. */ |
| 28 | + @property(nonatomic, copy, nullable) NSString *snippet; |
| 29 | + |
| 30 | + /** |
| 31 | + * The info window anchor specifies the point in the icon image at which to anchor the info window, |
| 32 | + * which will be displayed directly above this point. This point is specified within the same space |
| 33 | + * as groundAnchor. |
| 34 | + */ |
| 35 | + @property(nonatomic, assign) CGPoint infoWindowAnchor; |
| 36 | + |
| 37 | + /** |
| 38 | + * Higher |zIndex| value overlays will be drawn on top of lower |zIndex| value tile layers and |
| 39 | + * overlays. Equal values result in undefined draw ordering. Markers are an exception that |
| 40 | + * regardless of |zIndex|, they will always be drawn above tile layers and other non-marker |
| 41 | + * overlays; they are effectively considered to be in a separate z-index group compared to other |
| 42 | + * overlays. |
| 43 | + */ |
| 44 | + @property(nonatomic, assign) float zIndex; |
20 | 45 | @end |
21 | 46 |
|
22 | 47 | #endif /* MFMarker_h */ |
0 commit comments