summaryrefslogtreecommitdiff
path: root/platform/ios/src
diff options
context:
space:
mode:
authorJason Wray <jason@mapbox.com>2016-08-25 17:43:42 -0400
committerJason Wray <jason@mapbox.com>2016-08-26 17:48:27 -0400
commit8dff7ab2f0fe1f2d1412e79c99285f1a389e6541 (patch)
treec66b9bb6f8c4722b7a842b4055dc1e8a71975171 /platform/ios/src
parent018f39544276d469b24f98e2709b43ad75d7536f (diff)
downloadqtlocation-mapboxgl-8dff7ab2f0fe1f2d1412e79c99285f1a389e6541.tar.gz
[ios] Improve user location annotation documentation
- Add note to mapView:viewForAnnotation: delegate method. - Edit docs in iosapp's implementation of that delegate method.
Diffstat (limited to 'platform/ios/src')
-rw-r--r--platform/ios/src/MGLMapViewDelegate.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/platform/ios/src/MGLMapViewDelegate.h b/platform/ios/src/MGLMapViewDelegate.h
index 3ec7d0d58b..ea9933f870 100644
--- a/platform/ios/src/MGLMapViewDelegate.h
+++ b/platform/ios/src/MGLMapViewDelegate.h
@@ -273,6 +273,11 @@ NS_ASSUME_NONNULL_BEGIN
Touch frameworks. On the other hand, static annotation images use less memory
and draw more quickly than annotation views.
+ The user location annotation view can also be customized via this method. When
+ `annotation` is an instance of `MGLUserLocation` (or equal to the map view’s
+ `userLocation` property), return an instance of `MGLUserLocationAnnotationView`
+ (or a subclass thereof).
+
@param mapView The map view that requested the annotation view.
@param annotation The object representing the annotation that is about to be
displayed.