Camera

public interface Camera

Provides methods for modifying the viewport of the navigation map. All calls to Camera should be performed on the UI thread.

Nested Class Summary

@interface Camera.Perspective A Perspective is a parameter given to the Camera object to specify the location and orientation of the camera. 

Public Method Summary

abstract void
followMyLocation(int perspective)
Sets the Camera to follow the location of the user.
abstract void
setLocation(CameraPosition cameraPosition, boolean animate)
Pans and zooms the map to the specified position.
abstract void
showRouteOverview()
Pans and zooms the map to show an overview of the remaining route.

Public Methods

public abstract void followMyLocation (int perspective)

Sets the Camera to follow the location of the user. This is typically called when starting turn-by-turn guidance to enter a "tilted" driving view.

Parameters
perspective the Camera.Perspective the camera should use when following

public abstract void setLocation (CameraPosition cameraPosition, boolean animate)

Pans and zooms the map to the specified position. This will temporarily prevent the camera from following the user's location. The camera can be reset to follow using followMyLocation(int).

Parameters
cameraPosition the position that the camera will move to. This position must have the center location set, however if the zoom or bearing are unspecified, then these attributes will remain unchanged from the current camera position.
animate whether to perform an animated transition to the new camera position

public abstract void showRouteOverview ()

Pans and zooms the map to show an overview of the remaining route. This will temporarily prevent the camera from following the user's position.

The camera can be reset to follow the user using followMyLocation(int).