public class DirectedLocationOverlay extends Overlay
Overlay.Snappable
Modifier and Type | Field and Description |
---|---|
protected Bitmap |
DIRECTION_ARROW |
protected Paint |
mAccuracyPaint |
protected float |
mBearing |
protected GeoPoint |
mLocation |
protected Paint |
mPaint |
mBounds, SHADOW_X_SKEW, SHADOW_Y_SCALE
DEFAULT_ZOOMLEVEL_MINIMAP_DIFFERENCE, NOT_SET
Constructor and Description |
---|
DirectedLocationOverlay(Context ctx) |
Modifier and Type | Method and Description |
---|---|
void |
draw(Canvas c,
Projection pj) |
GeoPoint |
getLocation() |
void |
onDetach(MapView view)
Override to perform clean up of resources before shutdown.
|
void |
setAccuracy(int pAccuracy) |
void |
setBearing(float aHeading) |
void |
setDirectionArrow(Bitmap image)
fix for https://github.com/osmdroid/osmdroid/issues/249
|
void |
setLocation(GeoPoint mp) |
void |
setShowAccuracy(boolean pShowIt) |
draw, drawAt, getBounds, getSafeMenuId, getSafeMenuIdSequence, isEnabled, onDoubleTap, onDoubleTapEvent, onDown, onFling, onKeyDown, onKeyUp, onLongPress, onPause, onResume, onScroll, onShowPress, onSingleTapConfirmed, onSingleTapUp, onTouchEvent, onTrackballEvent, setEnabled
protected Paint mPaint
protected Paint mAccuracyPaint
protected Bitmap DIRECTION_ARROW
protected GeoPoint mLocation
protected float mBearing
public DirectedLocationOverlay(Context ctx)
public void setDirectionArrow(Bitmap image)
image
- public void setShowAccuracy(boolean pShowIt)
public void setLocation(GeoPoint mp)
public GeoPoint getLocation()
public void setAccuracy(int pAccuracy)
pAccuracy
- in Meterspublic void setBearing(float aHeading)
public void onDetach(MapView view)
Overlay
public void draw(Canvas c, Projection pj)