TomTomMapDataSource
public protocol TomTomMapDataSource : AnyObject
The methods that an object adopts to manage callout views for a TomTomMapView.
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 tomTomMap(_ map: TomTomMap, viewForSelected marker: Annotation) -> UIView?Parameters
mapThe instance of TomTomMap where the event occurred.
markerThe annotation of the tap.
TomTomMapDataSource Protocol Reference