public class MapController extends Object implements IMapController, MapViewConstants, MapView.OnFirstLayoutListener
Modifier and Type | Class and Description |
---|---|
protected class |
MapController.MyZoomAnimationListener |
protected class |
MapController.MyZoomAnimatorListener |
protected class |
MapController.MyZoomAnimatorUpdateListener |
Modifier and Type | Field and Description |
---|---|
protected MapView |
mMapView |
ANIMATION_DURATION_DEFAULT, ANIMATION_DURATION_LONG, ANIMATION_DURATION_SHORT, ANIMATION_SMOOTHNESS_DEFAULT, ANIMATION_SMOOTHNESS_HIGH, ANIMATION_SMOOTHNESS_LOW, DEBUGMODE, MINIMUM_ZOOMLEVEL, NOT_SET
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.
|
boolean |
isInvertedTiles()
returns true if we're in image/color inverted mode, useful for night time
This is an Osmdroid specific feature
|
protected void |
onAnimationEnd() |
protected void |
onAnimationStart() |
void |
onFirstLayout(android.view.View v,
int left,
int top,
int right,
int bottom) |
void |
scrollBy(int x,
int y) |
void |
setCenter(IGeoPoint point)
Set the map view to the given center.
|
void |
setInvertedTiles(boolean value)
sets inverted tile mode.
|
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) |
void |
zoomToSpan(BoundingBoxE6 bb) |
void |
zoomToSpan(int latSpanE6,
int lonSpanE6) |
protected final MapView mMapView
public MapController(MapView mapView)
public void onFirstLayout(android.view.View v, int left, int top, int right, int bottom)
onFirstLayout
in interface MapView.OnFirstLayoutListener
public void zoomToSpan(BoundingBoxE6 bb)
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
protected void onAnimationStart()
protected void onAnimationEnd()
public boolean isInvertedTiles()
isInvertedTiles
in interface IMapController
public void setInvertedTiles(boolean value)
setInvertedTiles
in interface IMapController
b
- Copyright © 2015. All Rights Reserved.