MapDataSource
public protocol MapDataSource : AnyObject
The methods that an object adopts to manage callout views for a MapView.
Important
This is a Public Preview API. It may be changed or removed at any time.-
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.