-
public interface IMapControllerAn interface that resembles the Google Maps API MapController class and is implemented by the osmdroid org.osmdroid.views.MapController class.
-
-
Method Summary
Modifier and Type Method Description abstract voidanimateTo(IGeoPoint geoPoint)abstract voidanimateTo(int x, int y)abstract voidscrollBy(int x, int y)abstract voidsetCenter(IGeoPoint point)abstract intsetZoom(int zoomLevel)abstract doublesetZoom(double pZoomLevel)abstract voidstopAnimation(boolean jumpToFinish)abstract voidstopPanning()abstract booleanzoomIn()zooms in 1 whole map zoom level abstract booleanzoomIn(Long animationSpeed)zooms in 1 whole map zoom level with an adjustable zoom in animation speed abstract booleanzoomInFixing(int xPixel, int yPixel, Long zoomAnimation)abstract booleanzoomInFixing(int xPixel, int yPixel)zooms in and centers the map to the given canvas coordinates abstract booleanzoomOut(Long animationSpeed)zooms out 1 whole map zoom level with adjustable zoom speed abstract booleanzoomOut()zooms out 1 whole map zoom level abstract booleanzoomOutFixing(int xPixel, int yPixel)zooms out while centering the map canvas coordinates abstract booleanzoomTo(int zoomLevel)zooms to the given zoom level (whole number) and animates the zoom motion abstract booleanzoomTo(int zoomLevel, Long animationSpeed)zooms to the given zoom level (whole number) and animates the zoom motion with adjustable zoom speed abstract booleanzoomToFixing(int zoomLevel, int xPixel, int yPixel, Long zoomAnimationSpeed)abstract booleanzoomTo(double pZoomLevel, Long animationSpeed)abstract booleanzoomTo(double pZoomLevel)zooms to the given zoom level abstract booleanzoomToFixing(int zoomLevel, int xPixel, int yPixel)abstract booleanzoomToFixing(double zoomLevel, int xPixel, int yPixel, Long zoomAnimationSpeed)abstract booleanzoomToFixing(double pZoomLevel, int pXPixel, int pYPixel)abstract voidzoomToSpan(int latSpanE6, int lonSpanE6)abstract voidzoomToSpan(double latSpan, double lonSpan)abstract voidanimateTo(IGeoPoint point, Double pZoom, Long pSpeed)abstract voidanimateTo(IGeoPoint point, Double pZoom, Long pSpeed, Float pOrientation)abstract voidanimateTo(IGeoPoint point, Double pZoom, Long pSpeed, Float pOrientation, Boolean pClockwise)-
-
Method Detail
-
animateTo
abstract void animateTo(int x, int y)
-
scrollBy
abstract void scrollBy(int x, int y)
-
setZoom
@Deprecated() abstract int setZoom(int zoomLevel)
-
setZoom
abstract double setZoom(double pZoomLevel)
-
stopAnimation
abstract void stopAnimation(boolean jumpToFinish)
-
stopPanning
abstract void stopPanning()
-
zoomIn
abstract boolean zoomIn()
zooms in 1 whole map zoom level
-
zoomIn
abstract boolean zoomIn(Long animationSpeed)
zooms in 1 whole map zoom level with an adjustable zoom in animation speed
- Parameters:
animationSpeed- in ms, if null the default is used
-
zoomInFixing
abstract boolean zoomInFixing(int xPixel, int yPixel, Long zoomAnimation)
-
zoomInFixing
abstract boolean zoomInFixing(int xPixel, int yPixel)
zooms in and centers the map to the given canvas coordinates
-
zoomOut
abstract boolean zoomOut(Long animationSpeed)
zooms out 1 whole map zoom level with adjustable zoom speed
- Parameters:
animationSpeed- in ms, if null the default is used
-
zoomOut
abstract boolean zoomOut()
zooms out 1 whole map zoom level
-
zoomOutFixing
abstract boolean zoomOutFixing(int xPixel, int yPixel)
zooms out while centering the map canvas coordinates
-
zoomTo
@Deprecated() abstract boolean zoomTo(int zoomLevel)
zooms to the given zoom level (whole number) and animates the zoom motion
- Parameters:
zoomLevel- 0-Max zoom of the current map tile source, typically 22 or less
-
zoomTo
abstract boolean zoomTo(int zoomLevel, Long animationSpeed)
zooms to the given zoom level (whole number) and animates the zoom motion with adjustable zoom speed
- Parameters:
zoomLevel- 0-Max zoom of the current map tile source, typically 22 or lessanimationSpeed- if null, the default is used
-
zoomToFixing
abstract boolean zoomToFixing(int zoomLevel, int xPixel, int yPixel, Long zoomAnimationSpeed)
-
zoomTo
abstract boolean zoomTo(double pZoomLevel)
zooms to the given zoom level
- Parameters:
pZoomLevel- any real number between 0 and max zoom of the current tile source, typically 22 or less
-
zoomToFixing
@Deprecated() abstract boolean zoomToFixing(int zoomLevel, int xPixel, int yPixel)
-
zoomToFixing
abstract boolean zoomToFixing(double zoomLevel, int xPixel, int yPixel, Long zoomAnimationSpeed)
-
zoomToFixing
abstract boolean zoomToFixing(double pZoomLevel, int pXPixel, int pYPixel)
-
zoomToSpan
@Deprecated() abstract void zoomToSpan(int latSpanE6, int lonSpanE6)
-
zoomToSpan
abstract void zoomToSpan(double latSpan, double lonSpan)
-
-
-
-