OsmAnd
|
Public Member Functions | |
void | initLayer (OsmandMapTileView view) |
void | onDraw (Canvas canvas, RectF latLonBounds, RectF tilesRect, DrawSettings nightMode) |
boolean | isLocationVisible (Location l) |
Location | getLastKnownLocation () |
void | setHeading (Float heading) |
Float | getHeading () |
void | setLastKnownLocation (Location lastKnownLocation) |
void | destroyLayer () |
void | checkAppMode (ApplicationMode appMode) |
boolean | drawInScreenPixels () |
Protected Attributes | |
Location | lastKnownLocation = null |
Static Protected Attributes | |
static final int | RADIUS = 7 |
static final float | HEADING_ANGLE = 60 |
void net.osmand.plus.views.PointLocationLayer.checkAppMode | ( | ApplicationMode | appMode | ) |
void net.osmand.plus.views.PointLocationLayer.destroyLayer | ( | ) | [virtual] |
Implements net.osmand.plus.views.OsmandMapLayer.
boolean net.osmand.plus.views.PointLocationLayer.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.PointLocationLayer.initLayer | ( | OsmandMapTileView | view | ) | [virtual] |
Implements net.osmand.plus.views.OsmandMapLayer.
boolean net.osmand.plus.views.PointLocationLayer.isLocationVisible | ( | Location | l | ) |
void net.osmand.plus.views.PointLocationLayer.onDraw | ( | Canvas | canvas, |
RectF | latLonBounds, | ||
RectF | tilesRect, | ||
DrawSettings | nightMode | ||
) | [virtual] |
Implements net.osmand.plus.views.OsmandMapLayer.
void net.osmand.plus.views.PointLocationLayer.setHeading | ( | Float | heading | ) |
void net.osmand.plus.views.PointLocationLayer.setLastKnownLocation | ( | Location | lastKnownLocation | ) |
final float net.osmand.plus.views.PointLocationLayer.HEADING_ANGLE = 60 [static, protected] |
Location net.osmand.plus.views.PointLocationLayer.lastKnownLocation = null [protected] |
final int net.osmand.plus.views.PointLocationLayer.RADIUS = 7 [static, protected] |