withRouteClickPadding

open fun withRouteClickPadding(padding: Float): NavigationMapRoute.Builder

Indicates the size of the bounding box used to determine which route line was clicked. Upona map click an attempt will be made to find a route line intersecting the bounding box. Thisis used to select alternative route lines on the map.Larger values result in a larger bounding box requiring less accuracy on the part of theuser.You should use the device's screen density in determining what value to use here rather thana single value for all devices.

Return

the builder

Parameters

padding

value in pixels