AttributionSettings

data class AttributionSettings @JvmOverloads constructor(enabled: Boolean, iconColor: Int, position: Int, marginLeft: Float, marginTop: Float, marginRight: Float, marginBottom: Float, clickable: Boolean)

Shows the attribution icon on the map.

Constructors

AttributionSettings
Link copied to clipboard
fun AttributionSettings(enabled: Boolean = true, iconColor: Int = Color.parseColor("#FF1E8CAB"), position: Int = Gravity.BOTTOM or Gravity.START, marginLeft: Float = 92f, marginTop: Float = 4f, marginRight: Float = 4f, marginBottom: Float = 4f, clickable: Boolean = true)

Properties

clickable
Link copied to clipboard
var clickable: Boolean = true

Whether the attribution can be clicked and click events can be registered.

enabled
Link copied to clipboard
var enabled: Boolean = true

Whether the attribution icon is visible on the map.

iconColor
Link copied to clipboard
var iconColor: Int

Defines text color of the attribution icon.

marginBottom
Link copied to clipboard
var marginBottom: Float = 4f

Defines the margin to the bottom that the attribution icon honors. This property is specified in pixels.

marginLeft
Link copied to clipboard
var marginLeft: Float = 92f

Defines the margin to the left that the attribution icon honors. This property is specified in pixels.

marginRight
Link copied to clipboard
var marginRight: Float = 4f

Defines the margin to the right that the attribution icon honors. This property is specified in pixels.

marginTop
Link copied to clipboard
var marginTop: Float = 4f

Defines the margin to the top that the attribution icon honors. This property is specified in pixels.

position
Link copied to clipboard
var position: Int

Defines where the attribution icon is positioned on the map