
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.OnFirstLayoutListeneronFirstLayout in interface MapView.OnFirstLayoutListener@Deprecated public void zoomToSpan(BoundingBoxE6 bb)
public void zoomToSpan(double latSpan,
double lonSpan)
zoomToSpan in interface IMapControllerpublic void zoomToSpan(int latSpanE6,
int lonSpanE6)
zoomToSpan in interface IMapControllerpublic void animateTo(IGeoPoint point)
animateTo in interface IMapControllerpublic void animateTo(int x,
int y)
public void scrollBy(int x,
int y)
scrollBy in interface IMapControllerpublic void setCenter(IGeoPoint point)
setCenter in interface IMapControllerpublic void stopPanning()
stopPanning in interface IMapControllerpublic void stopAnimation(boolean jumpToTarget)
stopAnimation in interface IMapControllerjumpToTarget - public int setZoom(int zoomlevel)
setZoom in interface IMapControllerpublic boolean zoomIn()
zoomIn in interface IMapControllerpublic boolean zoomInFixing(int xPixel,
int yPixel)
zoomInFixing in interface IMapControllerpublic boolean zoomOut()
zoomOut in interface IMapControllerpublic boolean zoomOutFixing(int xPixel,
int yPixel)
zoomOutFixing in interface IMapControllerpublic boolean zoomTo(int zoomLevel)
zoomTo in interface IMapControllerpublic boolean zoomToFixing(int zoomLevel,
int xPixel,
int yPixel)
zoomToFixing in interface IMapControllerprotected void onAnimationStart()
protected void onAnimationEnd()