Builder

open class Builder

Creates NavigationMapboxMap object.

Constructors

Builder
Link copied to clipboard
open fun Builder(mapView: MapView, mapboxMap: MapboxMap, lifecycleOwner: LifecycleOwner)

Functions

build
Link copied to clipboard
open fun build(): NavigationMapboxMap
routeBelowLayerId
Link copied to clipboard
open fun routeBelowLayerId(routeBelowLayerId: String): NavigationMapboxMap.Builder
optionally pass in a layer id to place the route line below
useSpecializedLocationLayer
Link copied to clipboard
open fun useSpecializedLocationLayer(useSpecializedLocationLayer: Boolean): NavigationMapboxMap.Builder
determines if the location puck should use a specialized render layer.
vanishingRouteLineUpdateIntervalNano
Link copied to clipboard
open fun vanishingRouteLineUpdateIntervalNano(vanishingRouteLineUpdateIntervalNano: Long): NavigationMapboxMap.Builder
Set minimum update interval (in nanoseconds) of the vanishing point when enabled.
vanishRouteLineEnabled
Link copied to clipboard
open fun vanishRouteLineEnabled(vanishRouteLineEnabled: Boolean): NavigationMapboxMap.Builder
determines if the route line should vanish behind the puck during navigation.
withRouteClickPadding
Link copied to clipboard
open fun withRouteClickPadding(padding: Float): NavigationMapboxMap.Builder
Indicates the size of the bounding box used to determine which route line was clicked.
withSourceMaxZoom
Link copied to clipboard
open fun withSourceMaxZoom(sourceMaxZoom: Int): NavigationMapboxMap.Builder
Maximum zoom level at which to route line tiles are created and over-zoomed otherwise(higher means greater detail at high zoom levels).Defaults to 16.
withSourceTolerance
Link copied to clipboard
open fun withSourceTolerance(sourceTolerance: Float): NavigationMapboxMap.Builder
Douglas-Peucker simplification tolerance (higher means simpler geometries and faster performance)for the GeoJsonSources created to display the route line.Defaults to 0.375.