MapboxMapOptions

Defines configuration MapboxMapOptions for a MapboxMap. These options can be used when adding a map to your application programmatically (as opposed to via XML). If you are using a MapFragment, you can pass these options in using the static factory method newInstance(MapboxMapOptions). If you are using a MapView, you can pass these options in using the constructor MapView(Context, MapboxMapOptions). If you add a map using XML, then you can apply these options using custom XML tags.

data class MapboxMapOptions(context: Context, pixelRatio: Float, attrs: AttributeSet?)

Constructors

MapboxMapOptions
Link copied to clipboard
fun MapboxMapOptions(context: Context, pixelRatio: Float, attrs: AttributeSet?)

Functions

component1
Link copied to clipboard
operator fun component1(): Context
component2
Link copied to clipboard
operator fun component2(): Float
component3
Link copied to clipboard
operator fun component3(): AttributeSet?
copy
Link copied to clipboard
fun copy(context: Context, pixelRatio: Float, attrs: AttributeSet?): MapboxMapOptions
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open override fun hashCode(): Int
toString
Link copied to clipboard
open override fun toString(): String

Properties

attrs
Link copied to clipboard

the optional AttributeSet to derive configurations from.

val attrs: AttributeSet?
cameraOptions
Link copied to clipboard

Camera options when using a MapView.

var cameraOptions: CameraOptions?
context
Link copied to clipboard

the context hosting the MapView.

val context: Context
mapOptions
Link copied to clipboard

Describes the map options value when using a MapView.

var mapOptions: MapOptions
pixelRatio
Link copied to clipboard

the pixel ratio for the map to be rendered on.

val pixelRatio: Float
resourceOptions
Link copied to clipboard

Resource options when using a MapView.

Access token required when using a Mapbox service.

Please see https://www.mapbox.com/help/create-api-access-token/ to learn how to create one.

More information in this guide https://www.mapbox.com/help/first-steps-android-sdk/#access-tokens.

var resourceOptions: ResourceOptions
textureView
Link copied to clipboard

Flag indicating to use a TextureView as render surface for the MapView

var textureView: Boolean