Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- LatLngBounds.Builder builder = new LatLngBounds.Builder();
- builder.include(northeast);
- builder.include(southwest);
- final LatLngBounds bounds = builder.build();
- map.setOnMapLoadedCallback(new GoogleMap.OnMapLoadedCallback() {
- @Override
- public void onMapLoaded() {
- map.moveCamera(CameraUpdateFactory.newLatLngBounds(bounds, 5));
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement