TTAnnotationDelegate
@protocol TTAnnotationDelegate <NSObject>
TTAnnotationDelegate uses methods to annotation and overlay views to manage interactions with those views.
-
Called when one of annotation on the map is selected
Declaration
Objective-C
- (void)annotationManager:(id<TTAnnotationManager> _Nonnull)manager annotationSelected:(TTAnnotation *_Nonnull)annotation;
Swift
optional func annotationManager(_ manager: TTAnnotationManager, annotationSelected annotation: TTAnnotation)
Parameters
manager
TTAnnotationManager
annotation
TTAnnotation
-
Called when selected annotation was deselected by selecting another or by deselecting all
Declaration
Objective-C
- (void)annotationManager:(id<TTAnnotationManager> _Nonnull)manager annotationDeselected:(TTAnnotation *_Nonnull)annotation;
Swift
optional func annotationManager(_ manager: TTAnnotationManager, annotationDeselected annotation: TTAnnotation)
Parameters
manager
TTAnnotationManager
annotation
annotation that was deselected
-
Called when selected annotation was clicked
Declaration
Objective-C
- (void)annotationManager:(id<TTAnnotationManager> _Nonnull)manager annotationClicked:(TTAnnotation *_Nonnull)annotation;
Swift
optional func annotationManager(_ manager: TTAnnotationManager, annotationClicked annotation: TTAnnotation)
Parameters
manager
TTAnnotationManager
annotation
annotation that was clicked
-
Called when touch up event occurs on polyline
Declaration
Objective-C
- (void)annotationManager:(id<TTAnnotationManager> _Nonnull)manager touchUpPolyline:(TTPolyline *_Nonnull)polyline;
Swift
optional func annotationManager(_ manager: TTAnnotationManager, touchUp polyline: TTPolyline)
Parameters
manager
TTAnnotationManager
polyline
polyline that was clicked
-
Called when touch up event occurs on polygon
Declaration
Objective-C
- (void)annotationManager:(id<TTAnnotationManager> _Nonnull)manager touchUpPolygon:(TTPolygon *_Nonnull)polygon;
Swift
optional func annotationManager(_ manager: TTAnnotationManager, touchUp polygon: TTPolygon)
Parameters
manager
TTAnnotationManager
polygon
polygon that was clicked
-
Called when touch up event occurs on circle
Declaration
Objective-C
- (void)annotationManager:(id<TTAnnotationManager> _Nonnull)manager touchUpCircle:(TTCircle *_Nonnull)circle;
Swift
optional func annotationManager(_ manager: TTAnnotationManager, touchUp circle: TTCircle)
Parameters
manager
TTAnnotationManager
circle
circle that was clicked
-
Called when one of annotation on the map becomes selected and callout is needed to display. By default map displays callout with coordinate.
Declaration
Objective-C
- (id)annotationManager:(id<TTAnnotationManager> _Nonnull)manager viewForSelectedAnnotation:(TTAnnotation *_Nonnull)selectedAnnotation;
Swift
optional func annotationManager(_ manager: TTAnnotationManager, viewForSelectedAnnotation selectedAnnotation: TTAnnotation) -> Any!
Parameters
manager
TTAnnotationManager
selectedAnnotation
selectedAnnotation that requires callout
Return Value
UIView
* -
Called when the dragging state of an annotation changes.
Declaration
Objective-C
- (void)annotationManager:(id<TTAnnotationManager> _Nonnull)manager draggingAnnotation:(TTAnnotation *_Nonnull)annotation stateDrag:(TTAnnotationDragState)state;
Swift
optional func annotationManager(_ manager: TTAnnotationManager, dragging annotation: TTAnnotation, stateDrag state: TTAnnotationDragState)
Parameters
manager
TTAnnotationManager
annotation
the annotation being dragged
state
current drag state for TTAnnotation.
-
Called when one of annotation on the map is selected
@deprecated This method is deprecated. Use the new method-based API instead. ‘- (void)annotationManager:(TTAnnotationManager * _Nonnull)annotationManager annotationSelected:(TTAnnotation * _Nonnull)annotation’
Declaration
Objective-C
- (void)annotationSelected:(TTAnnotation *_Nonnull)annotation;
Swift
optional func annotationSelected(_ annotation: TTAnnotation)
Parameters
annotation
TTAnnotation
-
Called when selected annotation was deselected by selecting another or by deselecting all
@deprecated This method is deprecated. Use the new method-based API instead. ‘- (void)annotationManager:(TTAnnotationManager * _Nonnull)annotationManager annotationDeselected:(TTAnnotation * _Nonnull)annotation’
Declaration
Objective-C
- (void)annotationDeselected:(TTAnnotation *_Nonnull)annotation;
Swift
optional func annotationDeselected(_ annotation: TTAnnotation)
Parameters
annotation
annotation that was deselected
-
Called when touch up event occurs on polyline
@deprecated This method is deprecated. Use the new method-based API instead. ‘- (void)annotationManager:(TTAnnotationManager * _Nonnull)annotationManager touchUpPolyline:(TTPolyline *_Nonnull)polyline’
Declaration
Objective-C
- (void)touchUpPolyline:(TTPolyline *_Nonnull)polyline;
Swift
optional func touchUp(_ polyline: TTPolyline)
Parameters
polyline
polyline that was clicked
-
Called when touch up event occurs on polygon
@deprecated This method is deprecated. Use the new method-based API instead. ‘- (void)annotationManager:(TTAnnotationManager * _Nonnull)annotationManager touchUpPolygon:(TTPolygon *_Nonnull)polygon’
Declaration
Objective-C
- (void)touchUpPolygon:(TTPolygon *_Nonnull)polygon;
Swift
optional func touchUp(_ polygon: TTPolygon)
Parameters
polygon
polygon that was clicked
-
Called when touch up event occurs on circle
@deprecated This method is deprecated. Use the new method-based API instead. ‘- (void)annotationManager:(TTAnnotationManager * _Nonnull)annotationManager touchUpCircle:(TTCircle *_Nonnull)circle’
Declaration
Objective-C
- (void)touchUpCircle:(TTCircle *_Nonnull)circle;
Swift
optional func touchUp(_ circle: TTCircle)
Parameters
circle
circle that was clicked
-
Called when one of annotation on the map becomes selected and callout is needed to display. By default map displays callout with coordinate.
@deprecated This method is deprecated. Use the new method-based API instead. ‘- (UIView
*_Nonnull)annotationManager:(TTAnnotationManager * _Nonnull)annotationManager viewForSelectedAnnotation:(TTAnnotation *_Nonnull)selectedAnnotation’ Declaration
Objective-C
- (id)viewForSelectedAnnotation:(TTAnnotation *_Nonnull)selectedAnnotation;
Swift
optional func view(forSelectedAnnotation selectedAnnotation: TTAnnotation) -> Any!
Parameters
selectedAnnotation
selectedAnnotation that requires callout
Return Value
UIView
*