OsmAnd
|
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 |
net.osmand.plus.views.MapTileLayer.MapTileLayer | ( | boolean | mainMap | ) |
void net.osmand.plus.views.MapTileLayer.destroyLayer | ( | ) | [virtual] |
Implements net.osmand.plus.views.OsmandMapLayer.
boolean net.osmand.plus.views.MapTileLayer.drawInScreenPixels | ( | ) | [virtual] |
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 | ||
) |
ITileSource net.osmand.plus.views.MapTileLayer.getMap | ( | ) |
Reimplemented from net.osmand.plus.views.BaseMapLayer.
Reimplemented from net.osmand.plus.views.BaseMapLayer.
void net.osmand.plus.views.MapTileLayer.initLayer | ( | OsmandMapTileView | view | ) | [virtual] |
Implements net.osmand.plus.views.OsmandMapLayer.
boolean net.osmand.plus.views.MapTileLayer.isVisible | ( | ) |
void net.osmand.plus.views.MapTileLayer.onDraw | ( | Canvas | canvas, |
RectF | latlonRect, | ||
RectF | tilesRect, | ||
DrawSettings | drawSettings | ||
) | [virtual] |
Implements net.osmand.plus.views.OsmandMapLayer.
void net.osmand.plus.views.MapTileLayer.setAlpha | ( | int | alpha | ) |
Reimplemented from net.osmand.plus.views.BaseMapLayer.
void net.osmand.plus.views.MapTileLayer.setMap | ( | ITileSource | map | ) |
void net.osmand.plus.views.MapTileLayer.setMapForMapTileAdapter | ( | ITileSource | map, |
MapTileAdapter | mapTileAdapter | ||
) |
void net.osmand.plus.views.MapTileLayer.setMapTileAdapter | ( | MapTileAdapter | mapTileAdapter | ) |
void net.osmand.plus.views.MapTileLayer.setVisible | ( | boolean | visible | ) |
RectF net.osmand.plus.views.MapTileLayer.bitmapToDraw = new RectF() [protected] |
Rect net.osmand.plus.views.MapTileLayer.bitmapToZoom = new Rect() [protected] |
final int net.osmand.plus.views.MapTileLayer.emptyTileDivisor = 16 [protected] |
RectF net.osmand.plus.views.MapTileLayer.latlonRect = new RectF() [protected] |
ITileSource net.osmand.plus.views.MapTileLayer.map = null [protected] |
MapTileAdapter net.osmand.plus.views.MapTileLayer.mapTileAdapter = null [protected] |
final int net.osmand.plus.views.MapTileLayer.OVERZOOM_IN = 2 [static] |
Paint net.osmand.plus.views.MapTileLayer.paintBitmap [package] |
RectF net.osmand.plus.views.MapTileLayer.tilesRect = new RectF() [protected] |