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

    @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 *