GoogleMap.CameraPerspective

  • GoogleMap.CameraPerspective is used to define the camera's orientation when using GoogleMap.followMyLocation().

  • It offers three perspective options: TILTED, TOP_DOWN_HEADING_UP, and TOP_DOWN_NORTH_UP.

  • TILTED provides a tilted view aligned with the user's direction, commonly used in navigation.

  • TOP_DOWN_HEADING_UP offers a top-down view oriented with the camera's heading.

  • TOP_DOWN_NORTH_UP presents a top-down view with north at the top.

public static abstract @interface GoogleMap.CameraPerspective implements Annotation

A CameraPerspective is a parameter given to the GoogleMap.followMyLocation(int) to specify the orientation of the camera.

Constant Summary

int TILTED A tilted perspective facing in the same direction as the user.
int TOP_DOWN_HEADING_UP A heading-facing top-down perspective of the camera's target.
int TOP_DOWN_NORTH_UP A north-facing top-down perspective of the camera's target.

Inherited Method Summary

Constants

public static final int TILTED

A tilted perspective facing in the same direction as the user. Commonly used during driving navigation.

Constant Value: 0

public static final int TOP_DOWN_HEADING_UP

A heading-facing top-down perspective of the camera's target.

Constant Value: 2

public static final int TOP_DOWN_NORTH_UP

A north-facing top-down perspective of the camera's target.

Constant Value: 1