Advertisement
Guest User

Untitled

a guest
Aug 11th, 2014
1,509
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.35 KB | None | 0 0
  1. LatLngBounds.Builder builder = new LatLngBounds.Builder();
  2. builder.include(northeast);
  3. builder.include(southwest);
  4. final LatLngBounds bounds = builder.build();
  5.                
  6. map.setOnMapLoadedCallback(new GoogleMap.OnMapLoadedCallback() {
  7.     @Override
  8.     public void onMapLoaded() {
  9.         map.moveCamera(CameraUpdateFactory.newLatLngBounds(bounds, 5));
  10.     }
  11. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement