A new class, `MGLUserLocationAnnotationView`, has been added that inherits from `MGLAnnotationView`. Use a subclass of `MGLUserLocationAnnotationView` to customize the appearance of the user location annotation. Use your custom view with the `MGLMapView.userLocation` annotation via the `-mapView:viewForAnnotation:` delegate method.
16 lines
325 B
Objective-C
16 lines
325 B
Objective-C
#import "MGLUserLocationAnnotationView.h"
|
|
#import "MGLUserLocation.h"
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
@class MGLMapView;
|
|
|
|
@interface MGLUserLocationAnnotationView (Private)
|
|
|
|
@property (nonatomic, weak, nullable) MGLUserLocation *userLocation;
|
|
@property (nonatomic, weak, nullable) MGLMapView *mapView;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|