ratio

var ratio: Float = 0.5f

configures ratio of scale bar max width compared with MapView width, default is 0.5.