StyleDescriptor

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.

Supported Uris:

  • asset://... - specifies file located in apk assets directory.

  • http://... or https://... - specifies file located on web server.

  • file://... - specifies file located on file system. See java.io.File.toURI.

For easier uri building use com.tomtom.sdk.common.android.Uris.

For style file format see map style specification Map Styles V2 are supported.

Parameters

uri

RFC 2396-compliant Uri to the main map style file.

darkUri

RFC 2396-compliant Uri to the dark version of the map style file.

layerMappingUri

RFC 2396-compliant Uri to the layer mapping file used for the main style. If not supplied, the default mapping file is used.

darkLayerMappingUri

RFC 2396-compliant Uri to the layer mapping file used for the dark style variant. If not supplied, the default mapping file will be used.

Constructors

Link copied to clipboard
fun StyleDescriptor(uri: Uri, darkUri: Uri? = null, layerMappingUri: Uri? = null, darkLayerMappingUri: Uri? = null)

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

Optional RFC 2396-compliant Uri to the layer mapping file used for the dark style variant. If not supplied, the default mapping file will be used.

Link copied to clipboard
val darkUri: Uri? = null

Optional RFC 2396-compliant Uri to the dark version of the map style file.

Link copied to clipboard
val layerMappingUri: Uri? = null

Optional RFC 2396-compliant Uri to the layer mapping file used for the main style. If not supplied, the default mapping file is used.

Link copied to clipboard
val uri: Uri

RFC 2396-compliant Uri to the main map style file.