setCalloutAdapter
Set a new adapter and associated viewAnnotationManager to provide route callout views on demand. DefaultRouteCalloutAdapter can be used as a default implementation.
You need to set your adapter again after calling cancel
Note that corresponding MapboxRouteLineApiOptions.isRouteCalloutsEnabled should be set to true
Deprecated
Use setCalloutAdapter(map, viewAnnotationManager, adapter). Without a MapboxMap the callouts may stay invisible in some cases.
Replace with
setCalloutAdapter(map, viewAnnotationManager, adapter)Set a new adapter and associated viewAnnotationManager to provide route callout views on demand. DefaultRouteCalloutAdapter can be used as a default implementation.
You need to set your adapter again after calling cancel
Note that corresponding MapboxRouteLineApiOptions.isRouteCalloutsEnabled should be set to true