public class MapController extends Object implements IMapController, MapView.OnFirstLayoutListener
Modifier and Type | Class and Description |
---|---|
protected static class |
MapController.ZoomAnimationListener |
Constructor and Description |
---|
MapController(MapView mapView) |
Modifier and Type | Method and Description |
---|---|
void |
animateTo(IGeoPoint point)
Start animating the map towards the given point.
|
void |
animateTo(int x,
int y)
Start animating the map towards the given point.
|
protected void |
onAnimationEnd() |
protected void |
onAnimationStart() |
void |
onFirstLayout(View v,
int left,
int top,
int right,
int bottom)
this generally means that the map is ready to go
|
void |
scrollBy(int x,
int y) |
void |
setCenter(IGeoPoint point)
Set the map view to the given center.
|
int |
setZoom(int zoomlevel) |
void |
stopAnimation(boolean jumpToTarget)
Stops a running animation.
|
void |
stopPanning() |
boolean |
zoomIn()
Zoom in by one zoom level.
|
boolean |
zoomInFixing(int xPixel,
int yPixel) |
boolean |
zoomOut()
Zoom out by one zoom level.
|
boolean |
zoomOutFixing(int xPixel,
int yPixel) |
boolean |
zoomTo(int zoomLevel) |
boolean |
zoomToFixing(int zoomLevel,
int xPixel,
int yPixel) |
void |
zoomToSpan(BoundingBoxE6 bb)
Deprecated.
|
void |
zoomToSpan(double latSpan,
double lonSpan) |
void |
zoomToSpan(int latSpanE6,
int lonSpanE6) |
protected final MapView mMapView
public MapController(MapView mapView)
public void onFirstLayout(View v, int left, int top, int right, int bottom)
MapView.OnFirstLayoutListener
onFirstLayout
in interface MapView.OnFirstLayoutListener
@Deprecated public void zoomToSpan(BoundingBoxE6 bb)
public void zoomToSpan(double latSpan, double lonSpan)
zoomToSpan
in interface IMapController
public void zoomToSpan(int latSpanE6, int lonSpanE6)
zoomToSpan
in interface IMapController
public void animateTo(IGeoPoint point)
animateTo
in interface IMapController
public void animateTo(int x, int y)
public void scrollBy(int x, int y)
scrollBy
in interface IMapController
public void setCenter(IGeoPoint point)
setCenter
in interface IMapController
public void stopPanning()
stopPanning
in interface IMapController
public void stopAnimation(boolean jumpToTarget)
stopAnimation
in interface IMapController
jumpToTarget
- public int setZoom(int zoomlevel)
setZoom
in interface IMapController
public boolean zoomIn()
zoomIn
in interface IMapController
public boolean zoomInFixing(int xPixel, int yPixel)
zoomInFixing
in interface IMapController
public boolean zoomOut()
zoomOut
in interface IMapController
public boolean zoomOutFixing(int xPixel, int yPixel)
zoomOutFixing
in interface IMapController
public boolean zoomTo(int zoomLevel)
zoomTo
in interface IMapController
public boolean zoomToFixing(int zoomLevel, int xPixel, int yPixel)
zoomToFixing
in interface IMapController
protected void onAnimationStart()
protected void onAnimationEnd()