public class MapControllerOld extends Object implements IMapController, MapViewConstants
Modifier and Type | Class and Description |
---|---|
static class |
MapControllerOld.AnimationType
Deprecated.
Choose one of the Styles of approaching the target Coordinates.
|
protected class |
MapControllerOld.HalfCosinusalDeceleratingAnimationRunner
Deprecated.
|
protected class |
MapControllerOld.MiddlePeakSpeedAnimationRunner
Deprecated.
|
protected class |
MapControllerOld.QuarterCosinusalDeceleratingAnimationRunner
Deprecated.
|
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 |
---|
MapControllerOld(MapView osmv)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
animateTo(double latitude,
double longitude)
Deprecated.
Start animating the map towards the given point.
|
void |
animateTo(GeoPoint gp,
MapControllerOld.AnimationType aAnimationType)
Deprecated.
|
void |
animateTo(GeoPoint gp,
MapControllerOld.AnimationType aAnimationType,
int aSmoothness,
int aDuration)
Deprecated.
|
void |
animateTo(IGeoPoint point)
Deprecated.
Start animating the map towards the given point.
|
void |
animateTo(int aLatitudeE6,
int aLongitudeE6,
MapControllerOld.AnimationType aAnimationType)
Deprecated.
Animates the underlying
MapView that it centers the passed coordinates in the end. |
void |
animateTo(int aLatitudeE6,
int aLongitudeE6,
MapControllerOld.AnimationType aAnimationType,
int aSmoothness,
int aDuration)
Deprecated.
Animates the underlying
MapView that it centers the passed coordinates in the end. |
boolean |
isInvertedTiles()
Deprecated.
returns true if the map tiles are currently being color inverted
|
void |
scrollBy(int x,
int y)
Deprecated.
|
void |
setCenter(IGeoPoint point)
Deprecated.
Set the map view to the given center.
|
void |
setInvertedTiles(boolean value)
Deprecated.
|
int |
setZoom(int zoomlevel)
Deprecated.
|
void |
stopAnimation(boolean jumpToTarget)
Deprecated.
Stops a running animation.
|
void |
stopPanning()
Deprecated.
|
boolean |
zoomIn()
Deprecated.
Zoom in by one zoom level.
|
boolean |
zoomInFixing(GeoPoint point)
Deprecated.
|
boolean |
zoomInFixing(int xPixel,
int yPixel)
Deprecated.
|
boolean |
zoomOut()
Deprecated.
Zoom out by one zoom level.
|
boolean |
zoomOutFixing(GeoPoint point)
Deprecated.
|
boolean |
zoomOutFixing(int xPixel,
int yPixel)
Deprecated.
|
void |
zoomToSpan(BoundingBoxE6 bb)
Deprecated.
|
void |
zoomToSpan(int reqLatSpan,
int reqLonSpan)
Deprecated.
|
public MapControllerOld(MapView osmv)
public void zoomToSpan(BoundingBoxE6 bb)
public void zoomToSpan(int reqLatSpan, int reqLonSpan)
zoomToSpan
in interface IMapController
public void animateTo(IGeoPoint point)
animateTo
in interface IMapController
public void animateTo(double latitude, double longitude)
public void animateTo(GeoPoint gp, MapControllerOld.AnimationType aAnimationType)
MapView
that it centers the passed GeoPoint
in the
end. Uses: MapViewConstants.ANIMATION_SMOOTHNESS_DEFAULT
and
MapViewConstants.ANIMATION_DURATION_DEFAULT
.gp
- public void animateTo(GeoPoint gp, MapControllerOld.AnimationType aAnimationType, int aSmoothness, int aDuration)
gp
- GeoPoint to be centered in the end.aSmoothness
- steps made during animation. I.e.:
MapViewConstants.ANIMATION_SMOOTHNESS_LOW
,
MapViewConstants.ANIMATION_SMOOTHNESS_DEFAULT
,
MapViewConstants.ANIMATION_SMOOTHNESS_HIGH
aDuration
- in Milliseconds. I.e.: MapViewConstants.ANIMATION_DURATION_SHORT
,
MapViewConstants.ANIMATION_DURATION_DEFAULT
,
MapViewConstants.ANIMATION_DURATION_LONG
public void animateTo(int aLatitudeE6, int aLongitudeE6, MapControllerOld.AnimationType aAnimationType)
MapView
that it centers the passed coordinates in the end.
Uses: MapViewConstants.ANIMATION_SMOOTHNESS_DEFAULT
and
MapViewConstants.ANIMATION_DURATION_DEFAULT
.aLatitudeE6
- aLongitudeE6
- public void animateTo(int aLatitudeE6, int aLongitudeE6, MapControllerOld.AnimationType aAnimationType, int aSmoothness, int aDuration)
MapView
that it centers the passed coordinates in the end.aLatitudeE6
- aLongitudeE6
- aSmoothness
- steps made during animation. I.e.:
MapViewConstants.ANIMATION_SMOOTHNESS_LOW
,
MapViewConstants.ANIMATION_SMOOTHNESS_DEFAULT
,
MapViewConstants.ANIMATION_SMOOTHNESS_HIGH
aDuration
- in Milliseconds. I.e.: MapViewConstants.ANIMATION_DURATION_SHORT
,
MapViewConstants.ANIMATION_DURATION_DEFAULT
,
MapViewConstants.ANIMATION_DURATION_LONG
public void scrollBy(int x, int y)
scrollBy
in interface IMapController
public void setCenter(IGeoPoint point)
setCenter
in interface IMapController
public void stopAnimation(boolean jumpToTarget)
stopAnimation
in interface IMapController
jumpToTarget
- public void stopPanning()
stopPanning
in interface IMapController
public int setZoom(int zoomlevel)
setZoom
in interface IMapController
public boolean zoomIn()
zoomIn
in interface IMapController
public boolean zoomInFixing(GeoPoint point)
public boolean zoomInFixing(int xPixel, int yPixel)
zoomInFixing
in interface IMapController
public boolean zoomOut()
zoomOut
in interface IMapController
public boolean zoomOutFixing(GeoPoint point)
public boolean zoomOutFixing(int xPixel, int yPixel)
zoomOutFixing
in interface IMapController
public boolean isInvertedTiles()
IMapController
isInvertedTiles
in interface IMapController
public void setInvertedTiles(boolean value)
setInvertedTiles
in interface IMapController
Copyright © 2015. All Rights Reserved.