Advertisement
Guest User

Untitled

a guest
Feb 21st, 2019
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. public void moveCameraTo(Location location){
  2. moveCameraTo(location.getLatitude(), location.getLongitude());
  3. }
  4.  
  5. public void moveCameraTo(double latitude, double longitude){
  6. LatLng latLng = new LatLng(latitude, longitude);
  7. moveCameraTo(latLng);
  8. }
  9.  
  10. public void moveCameraTo(LatLng latLng){
  11. GoogleMap googleMap = getGoogleMap();
  12. cameraUpdate = CameraUpdateFactory.newLatLngZoom(latLng, INITIAL_MAP_ZOOM_LEVEL);
  13. googleMap.moveCamera(cameraUpdate);
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement