summaryrefslogtreecommitdiff
path: root/platform/ios/src/MGLMapViewDelegate.h
diff options
context:
space:
mode:
authorFredrik Karlsson <bjorn.fredrik.karlsson@gmail.com>2016-06-27 17:19:58 +0200
committerGitHub <noreply@github.com>2016-06-27 17:19:58 +0200
commit72c342284c13a8f524b5f1aef3bf452f85dd8eee (patch)
tree82acb2a83d1b1118656a6765099f86c1c00c8b2b /platform/ios/src/MGLMapViewDelegate.h
parent2d9ffcbadbfa0d6f2ecf16e0a33457a17017f583 (diff)
downloadqtlocation-mapboxgl-72c342284c13a8f524b5f1aef3bf452f85dd8eee.tar.gz
[ios] map view now calls -didAddAnnotationViews (#5466)
Diffstat (limited to 'platform/ios/src/MGLMapViewDelegate.h')
-rw-r--r--platform/ios/src/MGLMapViewDelegate.h31
1 files changed, 21 insertions, 10 deletions
diff --git a/platform/ios/src/MGLMapViewDelegate.h b/platform/ios/src/MGLMapViewDelegate.h
index 173b40f93f..f425964e97 100644
--- a/platform/ios/src/MGLMapViewDelegate.h
+++ b/platform/ios/src/MGLMapViewDelegate.h
@@ -131,15 +131,6 @@ NS_ASSUME_NONNULL_BEGIN
#pragma mark Managing the Display of Annotations
/**
- Returns a view object to use for the marker for the specified point annotation object.
-
- @param mapView The map view that requested the annotation view.
- @param annotation The object representing the annotation that is about to be displayed.
- @return The view object to display for the specified annotation or `nil` if you want to display the default marker image.
- */
-- (nullable MGLAnnotationView *)mapView:(MGLMapView *)mapView viewForAnnotation:(id <MGLAnnotation>)annotation;
-
-/**
Returns an image object to use for the marker for the specified point annotation object.
@param mapView The map view that requested the annotation image.
@@ -279,7 +270,6 @@ NS_ASSUME_NONNULL_BEGIN
*/
- (void)mapView:(MGLMapView *)mapView didDeselectAnnotation:(id <MGLAnnotation>)annotation;
-
/**
Tells the delegate that one of its annotation views was selected.
@@ -300,6 +290,27 @@ NS_ASSUME_NONNULL_BEGIN
*/
- (void)mapView:(MGLMapView *)mapView didDeselectAnnotationView:(MGLAnnotationView *)annotationView;
+#pragma mark Managing annotation views
+
+/**
+ Returns a view object to use for the marker for the specified point annotation object.
+
+ @param mapView The map view that requested the annotation view.
+ @param annotation The object representing the annotation that is about to be displayed.
+ @return The view object to display for the specified annotation or `nil` if you want to display the default marker image.
+ */
+- (nullable MGLAnnotationView *)mapView:(MGLMapView *)mapView viewForAnnotation:(id <MGLAnnotation>)annotation;
+
+/**
+ Tells the delegate that new annotation views have been added and positioned on the map.
+
+ You can use this method to animate the adding of the annotation views.
+
+ @param mapView The map view containing the annotation views.
+ @param annotationViews The annotation views that was added.
+ */
+- (void)mapView:(MGLMapView *)mapView didAddAnnotationViews:(NS_ARRAY_OF(MGLAnnotationView *) *)annotationViews;
+
/**
Tells the delegate that one if its annotation views was dragged to a new coordinate.