Package-level declarations

Types

Link copied to clipboard
class Layer

A Layer is an overlay that is added to the map. Each layer references a data source that defines the features that should appear when the layer is rendered, and provides styling instructions for describe the visual properties that should be applied to those features when the layer is rendering those features.

Link copied to clipboard

Exception thrown when a Layer with the given id cannot be found on the map.

Link copied to clipboard

Exception related to loading the style from the URL. It contains information about the cause of the failure.

Link copied to clipboard

Callback used to notify result of style change operation.

Link copied to clipboard

Defines a set of standard styles that can be used in the GO SDK.

Link copied to clipboard
interface StyleController

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

Link copied to clipboard
data class StyleDescriptor(val uri: URI, val darkUri: URI? = null, val layerMappingUri: URI? = null, val darkLayerMappingUri: URI? = null) : Parcelable

Represents all the necessary information to identify and load a style.

Link copied to clipboard

Enum representing the style mode.

Functions

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.