zoomToMarkers

fun zoomToMarkers(markersIds: List<MarkerId> = emptyList(), zoom: Double = 12.0, padding: Dp = 0.dp)

Zooms to the markers identified by markersIds. If this results in focusing on a single marker, the specified zoom level is used. Nothing happens if no markers are identified.

Parameters

markersIds

The marker IDs to zoom to. See MarkerState.markerId and MarkerEntry.markerId.

zoom

The zoom level of the camera when focusing on a single marker. Default is 12.0.

padding

The space (in dp) between the content and the border of the safe area when focusing on more than one marker. Default is 0 dp.