Working with camera positions

The position of the camera is based on the following parameters:

  • Target
  • Zoom
  • Bearing
  • Tilt

Let's discuss these parameters in detail.

Target

The target is a visible area on the map, which is specified by the latitude and longitude. Take a look at the following image:

Target

In the image, the target is (40.735188, -74.172414), which are the coordinates for Newark City. The target is centered in the map.

Zoom

As the zoom level increases, the level of detail increases. Zoom can be used to display more accurate information to the user.

The image given in the previous section is a camera view with zoom level 2. However, the level of detail ...

Get Learning Android Google Maps now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.