public final class CameraUpdateFactory
extends java.lang.Object
Constructor and Description |
---|
CameraUpdateFactory() |
Modifier and Type | Method and Description |
---|---|
static CameraUpdate |
bearingTo(double bearing)
Returns a CameraUpdate that moves the camera viewpoint to a particular bearing.
|
static CameraUpdate |
newCameraPosition(CameraPosition cameraPosition)
Returns a CameraUpdate that moves the camera to a specified CameraPosition.
|
static CameraUpdate |
newLatLng(LatLng latLng)
Returns a CameraUpdate that moves the center of the screen to a latitude and longitude
specified by a LatLng object.
|
static CameraUpdate |
newLatLngBounds(LatLngBounds bounds,
double bearing,
double tilt,
int padding)
Returns a CameraUpdate that transforms the camera such that the specified
latitude/longitude bounds are centered on screen at the greatest possible zoom level while using
provided bearing and tilt values.
|
static CameraUpdate |
newLatLngBounds(LatLngBounds bounds,
double bearing,
double tilt,
int paddingLeft,
int paddingTop,
int paddingRight,
int paddingBottom)
Returns a CameraUpdate that transforms the camera such that the specified
latitude/longitude bounds are centered on screen at the greatest possible zoom level while using
provided bearing and tilt values.
|
static CameraUpdate |
newLatLngBounds(LatLngBounds bounds,
int padding)
Returns a CameraUpdate that transforms the camera such that the specified
latitude/longitude bounds are centered on screen at the greatest possible zoom level while maintaining
current camera position bearing and tilt values.
|
static CameraUpdate |
newLatLngBounds(LatLngBounds bounds,
int paddingLeft,
int paddingTop,
int paddingRight,
int paddingBottom)
Returns a CameraUpdate that transforms the camera such that the specified
latitude/longitude bounds are centered on screen at the greatest possible zoom level while maintaining
current camera position bearing and tilt values.
|
static CameraUpdate |
newLatLngPadding(LatLng latLng,
double left,
double top,
double right,
double bottom)
Returns a CameraUpdate that moves the center of the screen to a latitude and longitude
specified by a LatLng object, and moves to the given zoom level.
|
static CameraUpdate |
newLatLngZoom(LatLng latLng,
double zoom)
Returns a CameraUpdate that moves the center of the screen to a latitude and longitude
specified by a LatLng object taking the specified padding into account.
|
static CameraUpdate |
paddingTo(double[] padding)
Returns a CameraUpdate that when animated changes the camera padding.
|
static CameraUpdate |
paddingTo(double left,
double top,
double right,
double bottom)
Returns a CameraUpdate that when animated changes the camera padding.
|
static CameraUpdate |
tiltTo(double tilt)
Returns a CameraUpdate that moves the camera viewpoint to a particular tilt.
|
static CameraUpdate |
zoomBy(double amount)
Returns a CameraUpdate that shifts the zoom level of the current camera viewpoint.
|
static CameraUpdate |
zoomBy(double amount,
android.graphics.Point focus)
Returns a CameraUpdate that shifts the zoom level of the current camera viewpoint.
|
static CameraUpdate |
zoomIn()
Returns a CameraUpdate that zooms in on the map by moving the viewpoint's height closer to
the Earth's surface.
|
static CameraUpdate |
zoomOut()
Returns a CameraUpdate that zooms out on the map by moving the viewpoint's height farther
away from the Earth's surface.
|
static CameraUpdate |
zoomTo(double zoom)
Returns a CameraUpdate that moves the camera viewpoint to a particular zoom level.
|
public static CameraUpdate newCameraPosition(@NonNull CameraPosition cameraPosition)
cameraPosition
- Camera Position to change topublic static CameraUpdate newLatLng(@NonNull LatLng latLng)
latLng
- Target location to change topublic static CameraUpdate newLatLngBounds(@NonNull LatLngBounds bounds, int padding)
You can specify padding, in order to inset the bounding box from the map view's edges. The padding will not persist and impact following camera transformations.
bounds
- Bounds to match Camera position withpadding
- Padding added to the boundspublic static CameraUpdate newLatLngBounds(@NonNull LatLngBounds bounds, double bearing, double tilt, int padding)
You can specify padding, in order to inset the bounding box from the map view's edges. The padding will not persist and impact following camera transformations.
bounds
- Bounds to match Camera position withbearing
- Bearing to take in account when generating the boundstilt
- Tilt to take in account when generating the boundspadding
- Padding added to the boundspublic static CameraUpdate newLatLngBounds(@NonNull LatLngBounds bounds, int paddingLeft, int paddingTop, int paddingRight, int paddingBottom)
You can specify padding, in order to inset the bounding box from the map view's edges. The padding will not persist and impact following camera transformations.
bounds
- Bounds to base the Camera position out ofpaddingLeft
- Padding left of the boundspaddingTop
- Padding top of the boundspaddingRight
- Padding right of the boundspaddingBottom
- Padding bottom of the boundspublic static CameraUpdate newLatLngBounds(@NonNull LatLngBounds bounds, double bearing, double tilt, int paddingLeft, int paddingTop, int paddingRight, int paddingBottom)
You can specify padding, in order to inset the bounding box from the map view's edges. The padding will not persist and impact following camera transformations.
bounds
- Bounds to base the Camera position out ofbearing
- Bearing to take in account when generating the boundstilt
- Tilt to take in account when generating the boundspaddingLeft
- Padding left of the boundspaddingTop
- Padding top of the boundspaddingRight
- Padding right of the boundspaddingBottom
- Padding bottom of the boundspublic static CameraUpdate newLatLngZoom(@NonNull LatLng latLng, double zoom)
latLng
- Target location to change tozoom
- Zoom level to change topublic static CameraUpdate newLatLngPadding(@NonNull LatLng latLng, double left, double top, double right, double bottom)
latLng
- Target location to change toleft
- Left paddingtop
- Top paddingright
- Right paddingbottom
- Bottom paddingpublic static CameraUpdate zoomBy(double amount, android.graphics.Point focus)
amount
- Amount of zoom level to change withfocus
- Focus point of zoompublic static CameraUpdate zoomBy(double amount)
amount
- Amount of zoom level to change withpublic static CameraUpdate zoomIn()
public static CameraUpdate zoomOut()
public static CameraUpdate zoomTo(double zoom)
zoom
- Zoom level to change topublic static CameraUpdate bearingTo(double bearing)
bearing
- Bearing to change topublic static CameraUpdate tiltTo(double tilt)
tilt
- Tilt to change topublic static CameraUpdate paddingTo(double[] padding)
Specified in left, top, right, bottom order.
padding
- Padding to change topublic static CameraUpdate paddingTo(double left, double top, double right, double bottom)
Specified in left, top, right, bottom order.