forked from mapbox/mapbox-annotation-extension
-
Notifications
You must be signed in to change notification settings - Fork 4
/
MGLStyleAnnotation.h
59 lines (45 loc) · 1.74 KB
/
MGLStyleAnnotation.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#import <Foundation/Foundation.h>
@import Mapbox;
NS_ASSUME_NONNULL_BEGIN
/**
An `MGLStyleAnnotation` represents a single point, line, or polygon shape that can be displayed
on an `MGLMapView` within a geographical coordinate space.
Do not create instances of `MGLStyleAnnotation` directly. Instead, create an instance of
`MGLCircleStyleAnnotation`, `MGLLineStyleAnnotation`, `MGLPolygonStyleAnnotation`, or
`MGLSymbolStyleAnnotation` and use `-[MGLAnnotationController addShape:]` or
`-[MGLStyleAnnotationController addShapes:]` to add an `MGLStyleAnnotation` to a map view.
*/
@interface MGLStyleAnnotation : NSObject
/**
The universally unique identifier of the style annotation.
*/
@property (nonatomic, copy, readonly) NSString *identifier;
/**
If provided, the title string displayed if callouts are enabled.
*/
@property (nonatomic, nullable) NSString *title;
/**
If provided, the subtitle string displayed if callouts are enabled.
*/
@property (nonatomic, nullable) NSString *subtitle;
/**
:nodoc:
The `MGLFeature` associated with the style annotation.
*/
@property (nonatomic, strong) id<MGLFeature> feature;
/**
:nodoc:
The dictionary of values describing which style properties are enabled for the style annotation.
*/
@property (nonatomic, readonly) NSDictionary<NSString *, id> *geoJSONDictionary;
/**
A Boolean value indicating whether the annotation view is draggable.
If this property is set to `YES`, the user can drag the annotation after
pressing and holding the view. The default value of this property is
`NO`.
*/
@property (nonatomic, assign, getter=isDraggable) BOOL draggable;
//-(instancetype)initWithFeature:(id<MGLFeature>)feature;
//-(instancetype)initWithGeoJSON:(NSData *)data;
@end
NS_ASSUME_NONNULL_END