OsmAnd
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Static Public Attributes | Protected Attributes | Package Attributes
net.osmand.plus.views.MapTileLayer Class Reference
Inheritance diagram for net.osmand.plus.views.MapTileLayer:
net.osmand.plus.views.BaseMapLayer net.osmand.plus.views.OsmandMapLayer

List of all members.

Public Member Functions

 MapTileLayer (boolean mainMap)
boolean drawInScreenPixels ()
void initLayer (OsmandMapTileView view)
void setAlpha (int alpha)
void setMapTileAdapter (MapTileAdapter mapTileAdapter)
void setMapForMapTileAdapter (ITileSource map, MapTileAdapter mapTileAdapter)
void setMap (ITileSource map)
MapTileAdapter getMapTileAdapter ()
void onDraw (Canvas canvas, RectF latlonRect, RectF tilesRect, DrawSettings drawSettings)
void drawTileMap (Canvas canvas, RectF tilesRect)
int getSourceTileSize ()
int getMaximumShownMapZoom ()
int getMinimumShownMapZoom ()
void destroyLayer ()
boolean isVisible ()
void setVisible (boolean visible)
ITileSource getMap ()

Static Public Attributes

static final int OVERZOOM_IN = 2

Protected Attributes

final int emptyTileDivisor = 16
ITileSource map = null
MapTileAdapter mapTileAdapter = null
RectF tilesRect = new RectF()
RectF latlonRect = new RectF()
RectF bitmapToDraw = new RectF()
Rect bitmapToZoom = new Rect()
OsmandMapTileView view
ResourceManager resourceManager

Package Attributes

Paint paintBitmap

Constructor & Destructor Documentation


Member Function Documentation

This method returns whether canvas should be rotated as map rotated before onDraw(Canvas). If the layer draws simply layer over screen (not over map) it should return true.

Implements net.osmand.plus.views.OsmandMapLayer.

void net.osmand.plus.views.MapTileLayer.drawTileMap ( Canvas  canvas,
RectF  tilesRect 
)
void net.osmand.plus.views.MapTileLayer.onDraw ( Canvas  canvas,
RectF  latlonRect,
RectF  tilesRect,
DrawSettings  drawSettings 
) [virtual]
void net.osmand.plus.views.MapTileLayer.setMap ( ITileSource  map)
void net.osmand.plus.views.MapTileLayer.setMapForMapTileAdapter ( ITileSource  map,
MapTileAdapter  mapTileAdapter 
)

Member Data Documentation

RectF net.osmand.plus.views.MapTileLayer.bitmapToDraw = new RectF() [protected]
Rect net.osmand.plus.views.MapTileLayer.bitmapToZoom = new Rect() [protected]
RectF net.osmand.plus.views.MapTileLayer.latlonRect = new RectF() [protected]
ITileSource net.osmand.plus.views.MapTileLayer.map = null [protected]
RectF net.osmand.plus.views.MapTileLayer.tilesRect = new RectF() [protected]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines