Scale Bar
Add a ScaleBar ornament to the map, the scale bar will update accordingly when the map's zoom level or latitude changes.
By default, the ScaleBar will be placed to the Alignment.TopStart of the map with padding of 4dp.
Parameters
Modifier to be applied to the ScaleBar.
The alignment of the ScaleBar within the Map.
Defines text color of the scale bar.
Defines primary color of the scale bar.
Defines secondary color of the scale bar.
Defines width of the border for the scale bar.
Defines height of the scale bar.
Defines margin of the text bar of the scale bar.
Defines text border width of the scale bar.
Defines text size of the scale bar.
Whether the scale bar is using metric unit. True if the scale bar is using metric system, false if the scale bar is using imperial units.
Configures minimum refresh interval, in millisecond, default is 15 milliseconds.
Configures whether to show the text border or not, default is true.
Configures ratio of scale bar max width compared with MapView width, default is 0.5.
If set to True scale bar will be triggering onDraw depending on refreshInterval even if actual data did not change. If set to False scale bar will redraw only on demand. Defaults to False and should not be changed explicitly in most cases. Could be set to True to produce correct GPU frame metrics when running gfxinfo command.