-
public final class GoogleMapKt
-
-
Method Summary
Modifier and Type Method Description final static UnitGoogleMap(Modifier modifier, Boolean mergeDescendants, CameraPositionState cameraPositionState, String contentDescription, Function0<GoogleMapOptions> googleMapOptionsFactory, MapProperties properties, LocationSource locationSource, MapUiSettings uiSettings, IndoorStateChangeListener indoorStateChangeListener, Function1<LatLng, Unit> onMapClick, Function1<LatLng, Unit> onMapLongClick, Function0<Unit> onMapLoaded, Function0<Boolean> onMyLocationButtonClick, Function1<Location, Unit> onMyLocationClick, Function1<PointOfInterest, Unit> onPOIClick, PaddingValues contentPadding, ComposeMapColorScheme mapColorScheme, Function0<Unit> content)A compose container for a MapView. final static Function0<Unit>googleMapFactory(Modifier modifier, CameraPositionState cameraPositionState, Function0<Unit> onMapLoaded, Function0<Unit> content)This method provides a factory pattern for GoogleMap. -
-
Method Detail
-
GoogleMap
@Composable() final static Unit GoogleMap(Modifier modifier, Boolean mergeDescendants, CameraPositionState cameraPositionState, String contentDescription, Function0<GoogleMapOptions> googleMapOptionsFactory, MapProperties properties, LocationSource locationSource, MapUiSettings uiSettings, IndoorStateChangeListener indoorStateChangeListener, Function1<LatLng, Unit> onMapClick, Function1<LatLng, Unit> onMapLongClick, Function0<Unit> onMapLoaded, Function0<Boolean> onMyLocationButtonClick, Function1<Location, Unit> onMyLocationClick, Function1<PointOfInterest, Unit> onPOIClick, PaddingValues contentPadding, ComposeMapColorScheme mapColorScheme, Function0<Unit> content)
A compose container for a MapView.
- Parameters:
modifier- Modifier to be applied to the GoogleMapmergeDescendants- deactivates the map for accessibility purposescameraPositionState- the CameraPositionState to be used to control or observe the map's camera statecontentDescription- the content description for the map used by accessibility services to describe the map.googleMapOptionsFactory- the block for creating the GoogleMapOptions provided when the map is createdproperties- the properties for the maplocationSource- the LocationSource to be used to provide location datauiSettings- the MapUiSettings to be used for UI-specific settings on the mapindoorStateChangeListener- listener for indoor building state changesonMapClick- lambda invoked when the map is clickedonMapLoaded- lambda invoked when the map is finished loadingonMyLocationButtonClick- lambda invoked when the my location button is clickedonMyLocationClick- lambda invoked when the my location dot is clickedonPOIClick- lambda invoked when a POI is clickedcontentPadding- the padding values used to signal that portions of the map around the edges may be obscured.mapColorScheme- Defines the color scheme for the Map.content- the content of the map
-
googleMapFactory
@Composable() final static Function0<Unit> googleMapFactory(Modifier modifier, CameraPositionState cameraPositionState, Function0<Unit> onMapLoaded, Function0<Unit> content)
This method provides a factory pattern for GoogleMap. It can typically be used in tests to provide a default Composable of type GoogleMapFactory.
- Parameters:
modifier- Any modifier to be applied.cameraPositionState- The position for the map.onMapLoaded- Listener for the map loaded.content- Any content to be added.
-
-
-
-