MGLAnnotationControllerDelegate
@protocol MGLAnnotationControllerDelegate <NSObject>
The MGLAnnotationControllerDelegate
protocol defines a set of optional methods that you
can use to receive updates to style annotation changes.
-
Called after the user has tapped and selected a style annotation.
Declaration
Objective-C
- (void)annotationController: (nonnull MGLAnnotationController *)annotationController didSelectStyleAnnotation:(nonnull MGLStyleAnnotation *)styleAnnotation;
Swift
optional func annotationController(_ annotationController: MGLAnnotationController, didSelect styleAnnotation: MGLStyleAnnotation)
Parameters
styleAnnotation
The annotation that was selected.
-
Called after the user has tapped and deselected a style annotation.
Declaration
Objective-C
- (void)annotationController: (nonnull MGLAnnotationController *)annotationController didDeselectStyleAnnotation:(nonnull MGLStyleAnnotation *)styleAnnotation;
Swift
optional func annotationController(_ annotationController: MGLAnnotationController, didDeselect styleAnnotation: MGLStyleAnnotation)
Parameters
styleAnnotation
The annotation that was deselected.