updateLocationAndCamera abstract method

void updateLocationAndCamera(
  1. Location location,
  2. MapCameraUpdate cameraUpdate
)

Updates the indicator to a new location and applies a camera update at the same time.

Does nothing if the indicator instance is not enabled. If accuracy visualized is set to true the field Location.horizontalAccuracyInMeters determines the size of the accuracy indicator halo.

The altitude of the location is ignored.

  • location The updated location of the user.

  • cameraUpdate The update to apply to the camera.

Implementation

void updateLocationAndCamera(Location location, MapCameraUpdate cameraUpdate);