OrnamentSettings

data class OrnamentSettings(val padding: PaddingValues = PaddingValues(0.dp), val isLogoEnabled: Boolean = true, val logoAlignment: Alignment = Alignment.BottomStart, val isAttributionEnabled: Boolean = true, val attributionAlignment: Alignment = Alignment.BottomEnd, val isCompassEnabled: Boolean = true, val compassAlignment: Alignment = Alignment.TopEnd)(source)

Defines which additional UI elements are displayed on top of the map.

Parameters

padding

padding of the ornaments to the edge of the map

isLogoEnabled

whether to display the MapLibre logo

logoAlignment

where to place the MapLibre logo

isAttributionEnabled

whether to display copyright attribution information. If true, all attribution for all sources used is displayed. If there is not enough space to conveniently display those, a small button in the shape of an ⓘ will be displayed instead. Tapping on it opens the attribution information in a dialog.

attributionAlignment

where to place the attribution information

isCompassEnabled

whether to display a compass that shows which direction is north. Tapping on the compass will reset the camera rotations to zero.

compassAlignment

where to place the compass

Constructors

Link copied to clipboard
constructor(padding: PaddingValues = PaddingValues(0.dp), isLogoEnabled: Boolean = true, logoAlignment: Alignment = Alignment.BottomStart, isAttributionEnabled: Boolean = true, attributionAlignment: Alignment = Alignment.BottomEnd, isCompassEnabled: Boolean = true, compassAlignment: Alignment = Alignment.TopEnd)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard