public abstract class MapTracker extends java.lang.Object implements MapChangeEventBatcher.MapChangeListener
Modifier and Type | Class and Description |
---|---|
static interface |
MapTracker.MapExtentChangeListener |
Modifier and Type | Field and Description |
---|---|
protected LatLngExtent |
mExtent |
protected MapboxMap |
mMapboxMap |
protected MapChangeEventBatcher |
mMapChangeEventBatcher |
protected MapView |
mMapView |
Constructor and Description |
---|
MapTracker(MapboxMap mapboxMap,
MapView mapView,
MapTracker.MapExtentChangeListener mapExtentChangeListener,
java.lang.Long refreshDuration) |
Modifier and Type | Method and Description |
---|---|
LatLngExtent |
activate()
Activate the map tracker.
|
protected abstract LatLngExtent |
buildExtent() |
protected int |
convertPadding(int padding)
Helper method.
|
protected LatLngExtent |
convertRectToExtent(android.graphics.Rect rect) |
void |
deactivate()
Deactivate the map tracker.
|
LatLngExtent |
getCurrentExtent()
Gets the current map extent (visible area plus any padding).
|
void |
notifyHandler() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
handleMapMove, handleMapResize
protected MapView mMapView
protected MapboxMap mMapboxMap
protected MapChangeEventBatcher mMapChangeEventBatcher
protected LatLngExtent mExtent
public MapTracker(MapboxMap mapboxMap, MapView mapView, MapTracker.MapExtentChangeListener mapExtentChangeListener, java.lang.Long refreshDuration)
public LatLngExtent activate()
public void deactivate()
public LatLngExtent getCurrentExtent()
public void notifyHandler()
protected abstract LatLngExtent buildExtent()
protected int convertPadding(int padding)
protected LatLngExtent convertRectToExtent(android.graphics.Rect rect)