MapOptions
data class MapOptions @JvmOverloads constructor( val mapKey: String, val tileDataProvider: TileDataProvider? = null, val cameraOptions: CameraOptions? = null, val padding: Padding = Padding(), val mapStyle: StyleDescriptor? = null, val styleMode: StyleMode = StyleMode.MAIN, val resourceCachePolicy: ResourceCachePolicy = DEFAULT_CACHE_POLICY) : Parcelable
Content copied to clipboard
Configures the map options.
Parameters
mapKey
Provides Maps API key.
tileDataProvider
Alternative source of map tile data.
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.
Important: This is a Public Preview API. It may be changed or removed at any time.
Constructors
Link copied to clipboard
fun MapOptions( mapKey: String, tileDataProvider: TileDataProvider? = null, cameraOptions: CameraOptions? = null, padding: Padding = Padding(), mapStyle: StyleDescriptor? = null, styleMode: StyleMode = StyleMode.MAIN, resourceCachePolicy: ResourceCachePolicy = DEFAULT_CACHE_POLICY)
Content copied to clipboard