MapDataSource

public protocol MapDataSource : AnyObject

The methods that an object adopts to manage callout views for a MapView.

  • Method called when the user taps on a Marker. Can be used for to provide a custom annotation callout. If nil is returned, no annotation callout will be presented.

    Declaration

    Swift

    func map(_ map: TomTomMap, viewForSelected marker: Annotation) -> UIView?

    Parameters

    map

    The instance of the TomTomMap where the event occurred.

    marker

    The annotation of the tap.