public final class Transform extends java.lang.Object implements MapView.OnCameraDidChangeListener
Resembles the current Map transformation.
Responsible for synchronising CameraPosition
state and notifying camera change listeners.
Modifier and Type | Method and Description |
---|---|
void |
animateCamera(MapboxMap mapboxMap,
CameraUpdate update,
int durationMs,
MapboxMap.CancelableCallback callback)
Internal use.
|
CameraPosition |
getCameraPosition() |
void |
moveCamera(MapboxMap mapboxMap,
CameraUpdate update,
MapboxMap.CancelableCallback callback)
Internal use.
|
void |
onCameraDidChange(boolean animated)
Called when the camera did change.
|
public final CameraPosition getCameraPosition()
public void onCameraDidChange(boolean animated)
MapView.OnCameraDidChangeListener
onCameraDidChange
in interface MapView.OnCameraDidChangeListener
public final void moveCamera(MapboxMap mapboxMap, CameraUpdate update, MapboxMap.CancelableCallback callback)
public final void animateCamera(MapboxMap mapboxMap, CameraUpdate update, int durationMs, MapboxMap.CancelableCallback callback)
© 2015–2019 Mapbox. All rights reserved.