defaultAttributionSettings

fun defaultAttributionSettings(context: Context, pixelRatio: Float = context.resources.displayMetrics.density): AttributionSettings

Create a default AttributionSettings.

Parameters

context

must be the context closest to the map view. This is specially important in dual display hardware. Otherwise, we might get the wrong pixel ratio.

pixelRatio

the pixel ratio to be applied to the margins