sdk-maps / com.tomtom.online.sdk.map / MapProperties / Builder

Builder

open class Builder

Builder for the initial map configuration.

Constructors

<init>

Builder()

Empty builder constructor.

Functions

backgroundColor

open fun backgroundColor(backgroundColor: Int): MapProperties.Builder!

Set the custom background color.

build

open fun build(): MapProperties!

Build Initial Map Configuration.

cameraFocusArea

open fun cameraFocusArea(cameraFocusArea: CameraFocusArea!): MapProperties.Builder!

Set initial focus area of the camera of the map with no additional animation. Has priority over CameraPosition if both CameraFocusArea and CameraPosition are set.

cameraPosition

open fun cameraPosition(position: CameraPosition!): MapProperties.Builder!

Set initial CameraPosition of the map with no additional animation.

customStyleUri

open fun customStyleUri(customStyleUri: String!): MapProperties.Builder!

Set the URI for custom style.

keys

open fun keys(keys: MutableMap<ApiKeyType!, String!>!): MapProperties.Builder!

Set API Keys for TomTom Services.

layerSetConfiguration

open fun layerSetConfiguration(layerSetConfiguration: LayerSetConfiguration!): MapProperties.Builder!

Set if LayerSet requires a custom source name.

mapStyleSource

open fun mapStyleSource(mapStyleSource: MapStyleSource!): MapProperties.Builder!

Set if the map should be initialized with legacy styles.

padding

open fun padding(padding: MapPadding!): MapProperties.Builder!

Set initial padding of the map in pixels.