MapViewBinder

abstract class MapViewBinder : UIBinder

Base Binder class used for inflating and binding Map View. Use MapViewBinder.defaultBinder to access default implementation.

Constructors

Link copied to clipboard
fun MapViewBinder()

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun bind(viewGroup: ViewGroup): MapboxNavigationObserver

Triggered when this view binder instance is attached. The viewGroup returns a MapboxNavigationObserver which gives this view a simple lifecycle.

Link copied to clipboard
abstract fun getMapView(context: Context): MapView

Create MapView. NOTE: you shouldn't attach MapView to any parent: Navigation SDK will do that under the hood.

Properties

Link copied to clipboard
open val shouldLoadMapStyle: Boolean = false

True if Mapbox should load map style, false if it will be loaded by the user or handled in any other way.