summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMaciej Swic <maciej@swic.name>2015-09-08 12:11:55 +0200
committerJustin R. Miller <incanus@codesorcery.net>2015-10-12 10:54:53 -0700
commit1a5c452fe3d96be5ebdb21b3f06d8156242b9dfd (patch)
tree2441b39e293b58b519dbe4cddb24998b2ed9b3d7 /include
parente3d9fb171543c060aea53679dc1d298a156e656a (diff)
downloadqtlocation-mapboxgl-1a5c452fe3d96be5ebdb21b3f06d8156242b9dfd.tar.gz
Forwards the SMCalloutView tap delegate
Diffstat (limited to 'include')
-rw-r--r--include/mbgl/ios/MGLMapView.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/mbgl/ios/MGLMapView.h b/include/mbgl/ios/MGLMapView.h
index 713d577f21..ea08095450 100644
--- a/include/mbgl/ios/MGLMapView.h
+++ b/include/mbgl/ios/MGLMapView.h
@@ -570,6 +570,12 @@ IB_DESIGNABLE
/** @name Managing Annotations */
+/* Tells the delegate that the user tapped on the callout view itself.
+ *
+ * @param mapView The map view containing the specified annotation.
+ * @param annotation The annotation whose button was tapped.*/
+- (void)mapView:(MGLMapView *)mapView tapOnLabelForAnnotation:(id <MGLAnnotation>)annotation;
+
/** Tells the delegate that the user tapped one of the annotation's accessory buttons.
*
* Accessory views contain custom content and are positioned on either side of the annotation title text. If a view you specify is a descendant of the `UIControl` class, the map view calls this method as a convenience whenever the user taps your view. You can use this method to respond to taps and perform any actions associated with that control. For example, if your control displayed additional information about the annotation, you could use this method to present a modal panel with that information.