OsmAnd
|
Inherits SurfaceView, IMapDownloaderCallback, and Callback.
Classes | |
class | MapTileViewMultiTouchZoomListener |
class | MapTileViewOnDoubleTapListener |
class | MapTileViewOnGestureListener |
interface | OnClickListener |
interface | OnLongClickListener |
interface | OnTrackBallListener |
Public Member Functions | |
OsmandMapTileView (Context context, AttributeSet attrs) | |
OsmandMapTileView (Context context) | |
void | initView () |
void | surfaceChanged (SurfaceHolder holder, int format, int width, int height) |
void | surfaceCreated (SurfaceHolder holder) |
void | surfaceDestroyed (SurfaceHolder holder) |
void | addLayer (OsmandMapLayer layer, float zOrder) |
void | removeLayer (OsmandMapLayer layer) |
List< OsmandMapLayer > | getLayers () |
OsmandApplication | getApplication () |
float | getTileSize () |
int | getSourceTileSize () |
float | getXTile () |
float | getYTile () |
float | getEllipticYTile () |
void | setZoom (float zoom) |
boolean | isMapRotateEnabled () |
void | setRotate (float rotate) |
boolean | isShowMapPosition () |
void | setShowMapPosition (boolean showMapPosition) |
float | getRotate () |
void | setLatLon (double latitude, double longitude) |
double | getLatitude () |
double | getLongitude () |
int | getZoom () |
boolean | isZooming () |
void | setMapLocationListener (IMapLocationListener l) |
IMapLocationListener | setMapLocationListener () |
BaseMapLayer | getMainLayer () |
void | setMainLayer (BaseMapLayer mainLayer) |
int | getCenterPointX () |
int | getCenterPointY () |
void | setMapPosition (int type) |
void | calculateTileRectangle (Rect pixRect, float cx, float cy, float ctilex, float ctiley, RectF tileRect) |
void | calculatePixelRectangle (Rect pixelRect, float cx, float cy, float ctilex, float ctiley, RectF tileRect) |
OsmandSettings | getSettings () |
boolean | mapIsRefreshing () |
boolean | mapIsAnimating () |
void | refreshMap () |
void | refreshMap (final boolean force) |
void | tileDownloaded (DownloadRequest request) |
float | calcDiffTileY (float dx, float dy) |
float | calcDiffTileX (float dx, float dy) |
float | calcDiffPixelY (float dTileX, float dTileY) |
float | calcDiffPixelX (float dTileX, float dTileY) |
int | getMapXForPoint (double longitude) |
int | getMapYForPoint (double latitude) |
int | getRotatedMapXForPoint (double latitude, double longitude) |
int | getRotatedMapYForPoint (double latitude, double longitude) |
boolean | isPointOnTheRotatedMap (double latitude, double longitude) |
void | moveTo (float dx, float dy) |
boolean | onTouchEvent (MotionEvent event) |
boolean | onTrackballEvent (MotionEvent event) |
void | setTrackBallDelegate (OnTrackBallListener trackBallDelegate) |
void | setOnLongClickListener (OnLongClickListener l) |
void | setOnClickListener (OnClickListener l) |
LatLon | getLatLonFromScreenPoint (float x, float y) |
AnimateDraggingMapThread | getAnimatedDraggingThread () |
Protected Member Functions | |
void | drawEmptyTile (Canvas cvs, float x, float y, float ftileSize, boolean nightMode) |
void | dragToAnimate (float fromX, float fromY, float toX, float toY, boolean notify) |
void | rotateToAnimate (float rotate) |
void | setLatLonAnimate (double latitude, double longitude, boolean notify) |
void | zoomToAnimate (float zoom, boolean notify) |
Protected Attributes | |
final int | emptyTileDivisor = 16 |
Handler | handler = new Handler() |
RectF | tilesRect = new RectF() |
RectF | latlonRect = new RectF() |
Rect | boundsRect = new Rect() |
RectF | bitmapToDraw = new RectF() |
Rect | bitmapToZoom = new Rect() |
OsmandSettings | settings = null |
Static Protected Attributes | |
static final int | LOWEST_ZOOM_TO_ROTATE = 10 |
static final Log | log = LogUtil.getLog(OsmandMapTileView.class) |
Package Attributes | |
Paint | paintGrayFill |
Paint | paintBlackFill |
Paint | paintWhiteFill |
Paint | paintCenter |
net.osmand.plus.views.OsmandMapTileView.OsmandMapTileView | ( | Context | context, |
AttributeSet | attrs | ||
) |
net.osmand.plus.views.OsmandMapTileView.OsmandMapTileView | ( | Context | context | ) |
void net.osmand.plus.views.OsmandMapTileView.addLayer | ( | OsmandMapLayer | layer, |
float | zOrder | ||
) |
float net.osmand.plus.views.OsmandMapTileView.calcDiffPixelX | ( | float | dTileX, |
float | dTileY | ||
) |
float net.osmand.plus.views.OsmandMapTileView.calcDiffPixelY | ( | float | dTileX, |
float | dTileY | ||
) |
float net.osmand.plus.views.OsmandMapTileView.calcDiffTileX | ( | float | dx, |
float | dy | ||
) |
float net.osmand.plus.views.OsmandMapTileView.calcDiffTileY | ( | float | dx, |
float | dy | ||
) |
void net.osmand.plus.views.OsmandMapTileView.calculatePixelRectangle | ( | Rect | pixelRect, |
float | cx, | ||
float | cy, | ||
float | ctilex, | ||
float | ctiley, | ||
RectF | tileRect | ||
) |
void net.osmand.plus.views.OsmandMapTileView.calculateTileRectangle | ( | Rect | pixRect, |
float | cx, | ||
float | cy, | ||
float | ctilex, | ||
float | ctiley, | ||
RectF | tileRect | ||
) |
void net.osmand.plus.views.OsmandMapTileView.dragToAnimate | ( | float | fromX, |
float | fromY, | ||
float | toX, | ||
float | toY, | ||
boolean | notify | ||
) | [protected] |
void net.osmand.plus.views.OsmandMapTileView.drawEmptyTile | ( | Canvas | cvs, |
float | x, | ||
float | y, | ||
float | ftileSize, | ||
boolean | nightMode | ||
) | [protected] |
LatLon net.osmand.plus.views.OsmandMapTileView.getLatLonFromScreenPoint | ( | float | x, |
float | y | ||
) |
int net.osmand.plus.views.OsmandMapTileView.getMapXForPoint | ( | double | longitude | ) |
These methods do not consider rotating
int net.osmand.plus.views.OsmandMapTileView.getMapYForPoint | ( | double | latitude | ) |
int net.osmand.plus.views.OsmandMapTileView.getRotatedMapXForPoint | ( | double | latitude, |
double | longitude | ||
) |
int net.osmand.plus.views.OsmandMapTileView.getRotatedMapYForPoint | ( | double | latitude, |
double | longitude | ||
) |
Returns real tile size in pixels for float zoom .
boolean net.osmand.plus.views.OsmandMapTileView.isPointOnTheRotatedMap | ( | double | latitude, |
double | longitude | ||
) |
void net.osmand.plus.views.OsmandMapTileView.moveTo | ( | float | dx, |
float | dy | ||
) |
boolean net.osmand.plus.views.OsmandMapTileView.onTouchEvent | ( | MotionEvent | event | ) |
boolean net.osmand.plus.views.OsmandMapTileView.onTrackballEvent | ( | MotionEvent | event | ) |
void net.osmand.plus.views.OsmandMapTileView.refreshMap | ( | final boolean | force | ) |
void net.osmand.plus.views.OsmandMapTileView.rotateToAnimate | ( | float | rotate | ) | [protected] |
void net.osmand.plus.views.OsmandMapTileView.setLatLon | ( | double | latitude, |
double | longitude | ||
) |
void net.osmand.plus.views.OsmandMapTileView.setLatLonAnimate | ( | double | latitude, |
double | longitude, | ||
boolean | notify | ||
) | [protected] |
void net.osmand.plus.views.OsmandMapTileView.setMainLayer | ( | BaseMapLayer | mainLayer | ) |
void net.osmand.plus.views.OsmandMapTileView.setMapLocationListener | ( | IMapLocationListener | l | ) |
IMapLocationListener net.osmand.plus.views.OsmandMapTileView.setMapLocationListener | ( | ) |
Adds listener to control when map is dragging
void net.osmand.plus.views.OsmandMapTileView.setMapPosition | ( | int | type | ) |
void net.osmand.plus.views.OsmandMapTileView.setRotate | ( | float | rotate | ) |
void net.osmand.plus.views.OsmandMapTileView.setShowMapPosition | ( | boolean | showMapPosition | ) |
void net.osmand.plus.views.OsmandMapTileView.setTrackBallDelegate | ( | OnTrackBallListener | trackBallDelegate | ) |
void net.osmand.plus.views.OsmandMapTileView.setZoom | ( | float | zoom | ) |
void net.osmand.plus.views.OsmandMapTileView.surfaceChanged | ( | SurfaceHolder | holder, |
int | format, | ||
int | width, | ||
int | height | ||
) |
void net.osmand.plus.views.OsmandMapTileView.surfaceCreated | ( | SurfaceHolder | holder | ) |
void net.osmand.plus.views.OsmandMapTileView.surfaceDestroyed | ( | SurfaceHolder | holder | ) |
void net.osmand.plus.views.OsmandMapTileView.tileDownloaded | ( | DownloadRequest | request | ) |
void net.osmand.plus.views.OsmandMapTileView.zoomToAnimate | ( | float | zoom, |
boolean | notify | ||
) | [protected] |
RectF net.osmand.plus.views.OsmandMapTileView.bitmapToDraw = new RectF() [protected] |
Rect net.osmand.plus.views.OsmandMapTileView.bitmapToZoom = new Rect() [protected] |
Rect net.osmand.plus.views.OsmandMapTileView.boundsRect = new Rect() [protected] |
final int net.osmand.plus.views.OsmandMapTileView.emptyTileDivisor = 16 [protected] |
Handler net.osmand.plus.views.OsmandMapTileView.handler = new Handler() [protected] |
RectF net.osmand.plus.views.OsmandMapTileView.latlonRect = new RectF() [protected] |
final Log net.osmand.plus.views.OsmandMapTileView.log = LogUtil.getLog(OsmandMapTileView.class) [static, protected] |
final int net.osmand.plus.views.OsmandMapTileView.LOWEST_ZOOM_TO_ROTATE = 10 [static, protected] |
Paint net.osmand.plus.views.OsmandMapTileView.paintBlackFill [package] |
Paint net.osmand.plus.views.OsmandMapTileView.paintCenter [package] |
Paint net.osmand.plus.views.OsmandMapTileView.paintGrayFill [package] |
Paint net.osmand.plus.views.OsmandMapTileView.paintWhiteFill [package] |
OsmandSettings net.osmand.plus.views.OsmandMapTileView.settings = null [protected] |
RectF net.osmand.plus.views.OsmandMapTileView.tilesRect = new RectF() [protected] |