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?

    Return Value

    The custom annotation that should be sent.