defaultScaleBarSettings

fun defaultScaleBarSettings(context: Context, pixelRatio: Float = context.resources.displayMetrics.density): ScaleBarSettings

Create a default ScaleBarSettings.

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 and size of the scale bar.