TTAnnotationManager Protocol Reference

Conforms to NSObject
Declared in TTAnnotationManager.h

Overview

TTAnnotationManager class to manage interactions with annotations.

  delegate required method

Register delegate to receive annotations releated callbacks.

@property (nonatomic, weak) id<TTAnnotationDelegate> _Nullable delegate

Discussion

Register delegate to receive annotations releated callbacks.

Declared In

TTAnnotationManager.h

  annotations required method

Contains array of all annotations that are attached to map.

@property (nonatomic, strong, readonly) NSArray<TTAnnotation*> *annotations

Discussion

Contains array of all annotations that are attached to map.

Declared In

TTAnnotationManager.h

  overlays required method

Contains array of all overlays that are attached to map.

@property (nonatomic, strong, readonly) NSArray<TTOverlay*> *overlays

Discussion

Contains array of all overlays that are attached to map.

Declared In

TTAnnotationManager.h

  clustering required method

Turn on / off markers clustering.

@property (nonatomic, assign) BOOL clustering

Discussion

Turn on / off markers clustering.

Declared In

TTAnnotationManager.h

– setClustering:withRadius:with: required method

  • Turn on / off markers clustering and provide custom parameters to customize the algorithm.
- (void)setClustering:(BOOL)custeringEnabled withRadius:(int)radius with:(int)maxZoom

Parameters

custeringEnabled

custeringEnabled

radius

radius

maxZoom

maxZoom

Discussion

  • Turn on / off markers clustering and provide custom parameters to customize the algorithm.

Declared In

TTAnnotationManager.h

– addAnnotation: required method

Display annotation on the map. If an annotation is already attached to map nothing happens. If you want to have two same annotations in one place you need to create a copy of given annotation.

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

Parameters

annotation

TTAnnotation

Discussion

Display annotation on the map. If an annotation is already attached to map nothing happens. If you want to have two same annotations in one place you need to create a copy of given annotation.

Declared In

TTAnnotationManager.h

– removeAnnotation: required method

Remove given annotation from a map and set its ID to MARKER_ID_UNDEFINED. If an annotation is not attached to map, throws the exception.

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

Parameters

annotation

TTAnnotation

Discussion

Remove given annotation from a map and set its ID to MARKER_ID_UNDEFINED. If an annotation is not attached to map, throws the exception.

Declared In

TTAnnotationManager.h

– removeAllAnnotations required method

Removes all annotations from the map.

- (void)removeAllAnnotations

Discussion

Removes all annotations from the map.

Declared In

TTAnnotationManager.h

– selectAnnotation: required method

Only one annotation on the map can be selected. Annotation can be selected by calling this method explicitly or by tapping on a marker on the map. You cant select annotation that has NO set of property selectable.

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

Parameters

annotation

TTAnnotation

Discussion

Only one annotation on the map can be selected. Annotation can be selected by calling this method explicitly or by tapping on a marker on the map. You cant select annotation that has NO set of property selectable.

Declared In

TTAnnotationManager.h

– deselectAnnotation required method

Deselect annotation if selected and remove callout if opened.

- (void)deselectAnnotation

Discussion

Deselect annotation if selected and remove callout if opened.

Declared In

TTAnnotationManager.h

  selectedAnnotation required method

Returns selected annotation if any otherwise nil is none is selected.

@property (nonatomic, strong, readonly) TTAnnotation *selectedAnnotation

Discussion

Returns selected annotation if any otherwise nil is none is selected.

Declared In

TTAnnotationManager.h

– addOverlay: required method

Adds the overlay object to the map.

- (void)addOverlay:(TTOverlay *_Nonnull)overlay

Parameters

overlay

An interface for associating content with a specific map region.

Discussion

Adds the overlay object to the map.

Declared In

TTAnnotationManager.h

– removeOverlay: required method

Removes an overlay object from the map.

- (void)removeOverlay:(TTOverlay *_Nonnull)overlay

Parameters

overlay

An interface for associating content with a specific map region.

Discussion

Removes an overlay object from the map.

Declared In

TTAnnotationManager.h

– removeAllOverlays required method

Removes all overlays from the map.

- (void)removeAllOverlays

Discussion

Removes all overlays from the map.

Declared In

TTAnnotationManager.h