StyleController

interface StyleController

Controls the process of loading and applying a custom map style.

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

Functions

Link copied to clipboard
abstract fun loadStyle(style: StyleDescriptor, callback: OnStyleLoadedCallback): Cancellable

Loads new map style. Provided callback is called once operation finishes with either success or failure.

Link copied to clipboard
abstract fun setStyleMode(mode: StyleMode)

Configures style mode. See StyleMode for more info.

Properties

Link copied to clipboard
abstract val layers: List<Layer>

Returns all currently added Layer elements.

Inheritors

Link copied to clipboard

Extensions

Link copied to clipboard
fun StyleController.loadStyle(    style: StyleDescriptor,     onSuccess: () -> Unit,     onFailure: (LoadingStyleFailure) -> Unit): Cancellable

Loads and sets new map style. Calls onSuccess in case of success or onFailure in case of failure.