GoogleMap

fun GoogleMap(mergeDescendants: Boolean = false, modifier: Modifier = Modifier, cameraPositionState: CameraPositionState = rememberCameraPositionState(), contentDescription: String? = null, googleMapOptionsFactory: () -> GoogleMapOptions = { GoogleMapOptions() }, properties: MapProperties = DefaultMapProperties, locationSource: LocationSource? = null, uiSettings: MapUiSettings = DefaultMapUiSettings, indoorStateChangeListener: IndoorStateChangeListener = DefaultIndoorStateChangeListener, onMapClick: (LatLng) -> Unit? = null, onMapLongClick: (LatLng) -> Unit? = null, onMapLoaded: () -> Unit? = null, onMyLocationButtonClick: () -> Boolean? = null, onMyLocationClick: (Location) -> Unit? = null, onPOIClick: (PointOfInterest) -> Unit? = null, contentPadding: PaddingValues = NoPadding, content: @Composable () -> Unit? = null)

A compose container for a MapView.

Parameters

mergeDescendants

deactivates the map for accessibility purposes

modifier

Modifier to be applied to the GoogleMap

cameraPositionState

the CameraPositionState to be used to control or observe the map's camera state

contentDescription

the content description for the map used by accessibility services to describe the map. If none is specified, the default is "Google Map".

googleMapOptionsFactory

the block for creating the GoogleMapOptions provided when the map is created

properties

the properties for the map

locationSource

the LocationSource to be used to provide location data

uiSettings

the MapUiSettings to be used for UI-specific settings on the map

indoorStateChangeListener

listener for indoor building state changes

onMapClick

lambda invoked when the map is clicked

onMapLoaded

lambda invoked when the map is finished loading

onMyLocationButtonClick

lambda invoked when the my location button is clicked

onMyLocationClick

lambda invoked when the my location dot is clicked

onPOIClick

lambda invoked when a POI is clicked

contentPadding

the padding values used to signal that portions of the map around the edges may be obscured. The map will move the Google logo, etc. to avoid overlapping the padding.

content

the content of the map