MapOptions

data class MapOptions @JvmOverloads constructor(    val mapKey: String,     val cameraOptions: CameraOptions? = null,     val padding: Padding = Padding(),     val mapStyle: StyleDescriptor? = null,     val styleMode: StyleMode = StyleMode.MAIN,     val resourceCachePolicy: ResourceCachePolicy = DEFAULT_CACHE_POLICY,     val renderToTexture: Boolean = false) : Parcelable

Configures the map options.

Important: This is a Public Preview API. It may be changed or removed at any time.

Parameters

mapKey

Provides Maps API key.

cameraOptions

Provides CameraOptions associated with the current MapOptions.

padding

Provides Padding of the map view. By default, padding is set to 0 for all sides.

mapStyle

Provides custom StyleDescriptor with style that will be used as initial style.

styleMode

Defines StyleMode that will be used during the initialization.

resourceCachePolicy

Provides a custom ResourceCachePolicy that should be used for style caching.

Constructors

Link copied to clipboard
fun MapOptions(    mapKey: String,     cameraOptions: CameraOptions? = null,     padding: Padding = Padding(),     mapStyle: StyleDescriptor? = null,     styleMode: StyleMode = StyleMode.MAIN,     resourceCachePolicy: ResourceCachePolicy = DEFAULT_CACHE_POLICY,     renderToTexture: Boolean = false)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)

Properties

Link copied to clipboard
val cameraOptions: CameraOptions? = null
Link copied to clipboard
val mapKey: String
Link copied to clipboard
val mapStyle: StyleDescriptor? = null
Link copied to clipboard
val padding: Padding
Link copied to clipboard
val renderToTexture: Boolean = false
Link copied to clipboard
val resourceCachePolicy: ResourceCachePolicy
Link copied to clipboard
val styleMode: StyleMode