public class DirectedLocationOverlay extends Overlay
Overlay.Snappable
Modifier and Type | Field and Description |
---|---|
protected android.graphics.Bitmap |
DIRECTION_ARROW |
protected android.graphics.Paint |
mAccuracyPaint |
protected float |
mBearing |
protected GeoPoint |
mLocation |
protected android.graphics.Paint |
mPaint |
mResourceProxy, mScale, SHADOW_X_SKEW, SHADOW_Y_SCALE
DEBUGMODE, DEFAULT_ZOOMLEVEL_MINIMAP_DIFFERENCE, NOT_SET
Constructor and Description |
---|
DirectedLocationOverlay(android.content.Context ctx) |
DirectedLocationOverlay(android.content.Context ctx,
ResourceProxy pResourceProxy) |
Modifier and Type | Method and Description |
---|---|
void |
draw(android.graphics.Canvas c,
MapView osmv,
boolean shadow)
Draw the overlay over the map.
|
GeoPoint |
getLocation() |
void |
setAccuracy(int pAccuracy) |
void |
setBearing(float aHeading) |
void |
setLocation(GeoPoint mp) |
void |
setShowAccuracy(boolean pShowIt) |
drawAt, getSafeMenuId, getSafeMenuIdSequence, isEnabled, onDetach, onDoubleTap, onDoubleTapEvent, onDown, onFling, onKeyDown, onKeyUp, onLongPress, onScroll, onShowPress, onSingleTapConfirmed, onSingleTapUp, onTouchEvent, onTrackballEvent, setEnabled
protected final android.graphics.Paint mPaint
protected final android.graphics.Paint mAccuracyPaint
protected final android.graphics.Bitmap DIRECTION_ARROW
protected GeoPoint mLocation
protected float mBearing
public DirectedLocationOverlay(android.content.Context ctx)
public DirectedLocationOverlay(android.content.Context ctx, ResourceProxy pResourceProxy)
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 draw(android.graphics.Canvas c, MapView osmv, boolean shadow)
Overlay
Copyright © 2014. All Rights Reserved.