summaryrefslogtreecommitdiff
path: root/platform/ios/MGLUserLocationAnnotationView.h
blob: c72d64ed8fd9b0b38b0600792785469f15c8413f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#import <UIKit/UIKit.h>
#import <CoreLocation/CoreLocation.h>

#import "MGLUserLocation.h"

@class MGLMapView;

/** The MGLUserLocationAnnotationView class defines a specific type of annotation that identifies the user’s current location. You do not create instances of this class directly. Instead, you retrieve an existing MGLUserLocationAnnotationView object from the userLocation property of the map view displayed in your application. */
@interface MGLUserLocationAnnotationView : UIView

@property (nonatomic, weak) MGLMapView *mapView;
@property (nonatomic) MGLUserLocation *annotation;
@property (nonatomic, readonly) CALayer *haloLayer;

- (instancetype)initInMapView:(MGLMapView *)mapView;
- (void)setupLayers;

@end