Ornament Settings
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
is Logo Enabled
whether to display the MapLibre logo
logo Alignment
where to place the MapLibre logo
is Attribution Enabled
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.
attribution Alignment
where to place the attribution information
is Compass Enabled
whether to display a compass that shows which direction is north. Tapping on the compass will reset the camera rotations to zero.
compass Alignment
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)