zoomToAllMarkers

fun zoomToAllMarkers(zoom: Double = 12.0, padding: Dp = 0.dp)

Zooms to all markers added via Marker or Markers Composables. If this results in focusing on a single marker, the specified zoom level is used. Nothing happens if no markers are visible.

Parameters

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.