TTAnnotationDelegate Protocol Reference

Conforms to NSObject
Declared in TTAnnotationManager.h

Overview

TTAnnotationDelegate uses methods to annotation and overlay views to manage interactions with those views.

– annotationManager:annotationSelected:

Called when one of annotation on the map is selected

- (void)annotationManager:(id<TTAnnotationManager> _Nonnull)manager annotationSelected:(TTAnnotation *_Nonnull)annotation

Parameters

manager

TTAnnotationManager

annotation

TTAnnotation

Discussion

Called when one of annotation on the map is selected

Declared In

TTAnnotationManager.h

– annotationManager:annotationDeselected:

Called when selected annotation was deselected by selecting another or by deselecting all

- (void)annotationManager:(id<TTAnnotationManager> _Nonnull)manager annotationDeselected:(TTAnnotation *_Nonnull)annotation

Parameters

manager

TTAnnotationManager

annotation

annotation that was deselected

Discussion

Called when selected annotation was deselected by selecting another or by deselecting all

Declared In

TTAnnotationManager.h

– annotationManager:touchUpPolyline:

Called when touch up event occurs on polyline

- (void)annotationManager:(id<TTAnnotationManager> _Nonnull)manager touchUpPolyline:(TTPolyline *_Nonnull)polyline

Parameters

manager

TTAnnotationManager

polyline

polyline that was clicked

Discussion

Called when touch up event occurs on polyline

Declared In

TTAnnotationManager.h

– annotationManager:touchUpPolygon:

Called when touch up event occurs on polygon

- (void)annotationManager:(id<TTAnnotationManager> _Nonnull)manager touchUpPolygon:(TTPolygon *_Nonnull)polygon

Parameters

manager

TTAnnotationManager

polygon

polygon that was clicked

Discussion

Called when touch up event occurs on polygon

Declared In

TTAnnotationManager.h

– annotationManager:touchUpCircle:

Called when touch up event occurs on circle

- (void)annotationManager:(id<TTAnnotationManager> _Nonnull)manager touchUpCircle:(TTCircle *_Nonnull)circle

Parameters

manager

TTAnnotationManager

circle

circle that was clicked

Discussion

Called when touch up event occurs on circle

Declared In

TTAnnotationManager.h

– annotationManager:viewForSelectedAnnotation:

Called when one of annotation on the map becomes selected and callout is needed to display. By default map displays callout with coordinate.

- (UIView<TTCalloutView> *_Nonnull)annotationManager:(id<TTAnnotationManager> _Nonnull)manager viewForSelectedAnnotation:(TTAnnotation *_Nonnull)selectedAnnotation

Parameters

manager

TTAnnotationManager

selectedAnnotation

selectedAnnotation that requires callout

Return Value

UIViewTTCalloutView *

Discussion

Called when one of annotation on the map becomes selected and callout is needed to display. By default map displays callout with coordinate.

Declared In

TTAnnotationManager.h

– annotationManager:draggingAnnotation:stateDrag:

Called when the dragging state of an annotation changes.

- (void)annotationManager:(id<TTAnnotationManager> _Nonnull)manager draggingAnnotation:(TTAnnotation *_Nonnull)annotation stateDrag:(TTAnnotationDragState)state

Parameters

manager

TTAnnotationManager

annotation

the annotation being dragged

state

current drag state for TTAnnotation.

Discussion

Called when the dragging state of an annotation changes.

Declared In

TTAnnotationManager.h

– annotationSelected:

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’)

- (void)annotationSelected:(TTAnnotation *_Nonnull)annotation

Parameters

annotation

TTAnnotation

Discussion

Called when one of annotation on the map is selected

Declared In

TTAnnotationManager.h

– annotationDeselected:

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’)

- (void)annotationDeselected:(TTAnnotation *_Nonnull)annotation

Parameters

annotation

annotation that was deselected

Discussion

Called when selected annotation was deselected by selecting another or by deselecting all

Declared In

TTAnnotationManager.h

– touchUpPolyline:

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’)

- (void)touchUpPolyline:(TTPolyline *_Nonnull)polyline

Parameters

polyline

polyline that was clicked

Discussion

Called when touch up event occurs on polyline

Declared In

TTAnnotationManager.h

– touchUpPolygon:

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’)

- (void)touchUpPolygon:(TTPolygon *_Nonnull)polygon

Parameters

polygon

polygon that was clicked

Discussion

Called when touch up event occurs on polygon

Declared In

TTAnnotationManager.h

– touchUpCircle:

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’)

- (void)touchUpCircle:(TTCircle *_Nonnull)circle

Parameters

circle

circle that was clicked

Discussion

Called when touch up event occurs on circle

Declared In

TTAnnotationManager.h

– viewForSelectedAnnotation:

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’)

- (UIView<TTCalloutView> *_Nonnull)viewForSelectedAnnotation:(TTAnnotation *_Nonnull)selectedAnnotation

Parameters

selectedAnnotation

selectedAnnotation that requires callout

Return Value

UIViewTTCalloutView *

Discussion

Called when one of annotation on the map becomes selected and callout is needed to display. By default map displays callout with coordinate.

Declared In

TTAnnotationManager.h