diff options
author | Jason Wray <friedbunny@users.noreply.github.com> | 2016-08-16 15:16:59 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-16 15:16:59 -0400 |
commit | f489ec2ee131725b42162edf0414241f9c6310d1 (patch) | |
tree | 87d1621831a3386f49a6d4a47362c59e9a338d21 /platform/ios/src/MGLUserLocationAnnotationView_Private.h | |
parent | 01b94de107de875a6889258e72e5e060c0de0881 (diff) | |
download | qtlocation-mapboxgl-f489ec2ee131725b42162edf0414241f9c6310d1.tar.gz |
[ios] Refactored user location annotation into a customizable class (#5882)
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.
Diffstat (limited to 'platform/ios/src/MGLUserLocationAnnotationView_Private.h')
-rw-r--r-- | platform/ios/src/MGLUserLocationAnnotationView_Private.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/platform/ios/src/MGLUserLocationAnnotationView_Private.h b/platform/ios/src/MGLUserLocationAnnotationView_Private.h new file mode 100644 index 0000000000..3e12beab34 --- /dev/null +++ b/platform/ios/src/MGLUserLocationAnnotationView_Private.h @@ -0,0 +1,15 @@ +#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 |