summaryrefslogtreecommitdiff
path: root/platform/ios/app/MBXUserLocationAnnotationView.h
diff options
context:
space:
mode:
authorJason Wray <friedbunny@users.noreply.github.com>2016-08-16 15:16:59 -0400
committerGitHub <noreply@github.com>2016-08-16 15:16:59 -0400
commitf489ec2ee131725b42162edf0414241f9c6310d1 (patch)
tree87d1621831a3386f49a6d4a47362c59e9a338d21 /platform/ios/app/MBXUserLocationAnnotationView.h
parent01b94de107de875a6889258e72e5e060c0de0881 (diff)
downloadqtlocation-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/app/MBXUserLocationAnnotationView.h')
-rw-r--r--platform/ios/app/MBXUserLocationAnnotationView.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/platform/ios/app/MBXUserLocationAnnotationView.h b/platform/ios/app/MBXUserLocationAnnotationView.h
new file mode 100644
index 0000000000..39ed729d2b
--- /dev/null
+++ b/platform/ios/app/MBXUserLocationAnnotationView.h
@@ -0,0 +1,5 @@
+#import <Mapbox/Mapbox.h>
+
+@interface MBXUserLocationAnnotationView : MGLUserLocationAnnotationView
+
+@end