Skip to content

Instantly share code, notes, and snippets.

@ricdex
Created March 18, 2016 14:48
Show Gist options
  • Save ricdex/47c672a726ed017dbe25 to your computer and use it in GitHub Desktop.
Save ricdex/47c672a726ed017dbe25 to your computer and use it in GitHub Desktop.
int padding = 0; // offset from edges of the map in pixels
CameraUpdate cu = CameraUpdateFactory.newLatLngBounds(mGroundOverlay.getBounds(), padding);
mMap.animateCamera(cu);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment