In onMapReady, which call centres the map on a position at zoom 15?

  1. map.center = pos
  2. map.zoomTo(pos, 15)
  3. map.camera(15)
  4. map.moveCamera(CameraUpdateFactory.newLatLngZoom(pos, 15f))
Answer

D) map.moveCamera(CameraUpdateFactory.newLatLngZoom(pos, 15f))

CameraUpdateFactory creates the camera update.

Computer Science MCQ · More Lab: Showing a Location on Google Maps MCQs · Practise