Skip to content

Instantly share code, notes, and snippets.

@carolinemusyoka
Created January 11, 2022 08:51
Show Gist options
  • Save carolinemusyoka/bb857e4ae97ee13c95737b40fab3cc9d to your computer and use it in GitHub Desktop.
Save carolinemusyoka/bb857e4ae97ee13c95737b40fab3cc9d to your computer and use it in GitHub Desktop.
val builder = LatLngBounds.Builder()
val locBounds = LatLngBounds(LatLng(53.394655, 10.09989), LatLng(53.694865, 9.75758))
builder.include(locBounds.southwest)
builder.include(locBounds.northeast)
googleMap.animateCamera(CameraUpdateFactory.newLatLngBounds(builder.build(), 100))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment