Navigation Mapbox Map
Wrapper class for MapboxMap.
This class initializes various map-related components and plugins that are useful for providing a navigation-driven map experience.
These APIs include drawing a route line, camera animations, and more.
Constructors
NavigationMapboxMap
Link copied to clipboard
@Deprecated()
Content copied to clipboard
Constructor that can be used once OnMapReadyCallback has been called via getMapAsync.
NavigationMapboxMap
Link copied to clipboard
@Deprecated()
Content copied to clipboard
Constructor that can be used once OnMapReadyCallback has been called via getMapAsync.
NavigationMapboxMap
Link copied to clipboard
@Deprecated()
Content copied to clipboard
Constructor that can be used once OnMapReadyCallback has been called via getMapAsync.
NavigationMapboxMap
Link copied to clipboard
@Deprecated()
Content copied to clipboard
Constructor that can be used once OnMapReadyCallback has been called via getMapAsync.
NavigationMapboxMap
Link copied to clipboard
@TestOnly()
Content copied to clipboard
NavigationMapboxMap
Link copied to clipboard
@TestOnly()
Content copied to clipboard
NavigationMapboxMap
Link copied to clipboard
NavigationMapboxMap
Link copied to clipboard
@TestOnly()
Content copied to clipboard
NavigationMapboxMap
Link copied to clipboard
@TestOnly()
Content copied to clipboard
NavigationMapboxMap
Link copied to clipboard
@TestOnly()
Content copied to clipboard
NavigationMapboxMap
Link copied to clipboard
@TestOnly()
Content copied to clipboard
NavigationMapboxMap
Link copied to clipboard
@TestOnly()
Content copied to clipboard
NavigationMapboxMap
Link copied to clipboard
@TestOnly()
Content copied to clipboard
Types
Builder
Link copied to clipboard
Functions
addCustomMarker
Link copied to clipboard
addDestinationMarker
Link copied to clipboard
addOnCameraTrackingChangedListener
Link copied to clipboard
open fun addOnCameraTrackingChangedListener(listener: OnCameraTrackingChangedListener)
Content copied to clipboard
addOnWayNameChangedListener
Link copied to clipboard
open fun addOnWayNameChangedListener(listener: OnWayNameChangedListener): Boolean
Content copied to clipboard
Add a OnWayNameChangedListener for listening to updatesto the way name shown on the map below the location icon.
addProgressChangeListener
Link copied to clipboard
@Deprecated()
Content copied to clipboard
Use addProgressChangeListener Can be used to automatically drive the map camera, puck and route updateswhen STARTED.
adjustLocationIconWith
Link copied to clipboard
clearMarkers
Link copied to clipboard
open fun clearMarkers()
Content copied to clipboard
clearMarkersWithIconImageProperty
Link copied to clipboard
open fun clearMarkersWithIconImageProperty(markerIconImageProperty: String)
Content copied to clipboard
clearMarkerWithId
Link copied to clipboard
disableVanishingRouteLine
Link copied to clipboard
open fun disableVanishingRouteLine()
Content copied to clipboard
drawIdentifiableRoute
Link copied to clipboard
drawIdentifiableRoutes
Link copied to clipboard
drawRoutes
Link copied to clipboard
enableVanishingRouteLine
Link copied to clipboard
open fun enableVanishingRouteLine()
Content copied to clipboard
isIncidentsVisible
Link copied to clipboard
isTrafficVisible
Link copied to clipboard
onNewRouteProgress
Link copied to clipboard
removeOnCameraTrackingChangedListener
Link copied to clipboard
open fun removeOnCameraTrackingChangedListener(listener: OnCameraTrackingChangedListener)
Content copied to clipboard
removeOnWayNameChangedListener
Link copied to clipboard
open fun removeOnWayNameChangedListener(listener: OnWayNameChangedListener): Boolean
Content copied to clipboard
Remove a OnWayNameChangedListener for listening to updatesto the way name shown on the map below the location icon.
removeProgressChangeListener
Link copied to clipboard
open fun removeProgressChangeListener()
Content copied to clipboard
resetCameraPositionWith
Link copied to clipboard
resetPadding
Link copied to clipboard
open fun resetPadding()
Content copied to clipboard
This method resets the map padding to the default padding that isgenerated when navigation begins (location icon moved to lower half of the screen) orthe custom padding that was last passed via adjustLocationIconWith.
restoreStateFrom
Link copied to clipboard
resumeCamera
Link copied to clipboard
retrieveCamera
Link copied to clipboard
retrieveMap
Link copied to clipboard
retrieveMapRoute
Link copied to clipboard
saveStateWith
Link copied to clipboard
setOnRouteSelectionChangeListener
Link copied to clipboard
open fun setOnRouteSelectionChangeListener(listener: OnRouteSelectionChangeListener)
Content copied to clipboard
Set a OnRouteSelectionChangeListener to know which route the user has currentlyselected as their primary route.
setPuckDrawableSupplier
Link copied to clipboard
showAlternativeRoutes
Link copied to clipboard
showRouteGeometryOverview
Link copied to clipboard
showRouteOverview
Link copied to clipboard
startCamera
Link copied to clipboard
takeScreenshot
Link copied to clipboard
open fun takeScreenshot(snapshotReadyCallback: MapboxMap.SnapshotReadyCallback)
Content copied to clipboard
updateCameraTrackingMode
Link copied to clipboard
updateIncidentsVisibility
Link copied to clipboard
updateLocation
Link copied to clipboard
open fun updateLocation(locations: List<Location>, animationDuration: Long)
Content copied to clipboard
open fun updateLocation(location: Location, intermediateLocations: List<Location>, animationDuration: Long)
Content copied to clipboard
updateLocationFpsThrottleEnabled
Link copied to clipboard
updateLocationLayerRenderMode
Link copied to clipboard
updateLocationVisibilityTo
Link copied to clipboard
updateMapFpsThrottle
Link copied to clipboard
updateMapFpsThrottleEnabled
Link copied to clipboard
updateTrafficVisibility
Link copied to clipboard
updateWaynameQueryMap
Link copied to clipboard
Properties
STREETS_LAYER_ID
Link copied to clipboard