AdministrativeUnitsGrid

fun AdministrativeUnitsGrid(administrativeUnits: List<AdministrativeUnitViewData>, columnCount: Int, onAdministrativeUnitPressedAt: (index: Int) -> Unit)

The grid of administrative units. Each unit is displayed as a Google Maps component with its geographical outline (cartographic boundary) plotted, if available.

Parameters

administrativeUnits

the administrative units view data to be considered.

columnCount

the number of columns to lay out the administrative units. This value is also used to calculate the size of each unit within the grid.

onAdministrativeUnitPressedAt

event triggered when a administrative unit is pressed. It contains its index as a param.