public class SimpleLocationOverlay extends Overlay
Overlay.Snappable
Modifier and Type | Field and Description |
---|---|
protected GeoPoint |
mLocation |
protected Paint |
mPaint |
protected Point |
PERSON_HOTSPOT
Coordinates the feet of the person are located.
|
protected Bitmap |
PERSON_ICON |
mBounds, SHADOW_X_SKEW, SHADOW_Y_SCALE
DEFAULT_ZOOMLEVEL_MINIMAP_DIFFERENCE, NOT_SET
Constructor and Description |
---|
SimpleLocationOverlay(Bitmap theIcon) |
SimpleLocationOverlay(Context ctx)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
draw(Canvas c,
Projection pj) |
GeoPoint |
getMyLocation() |
void |
onDetach(MapView mapView)
Override to perform clean up of resources before shutdown.
|
void |
setLocation(GeoPoint mp) |
void |
setPersonIcon(Bitmap bmp,
Point hotspot)
Coordinates the feet of the person are located.
|
draw, drawAt, getBounds, getSafeMenuId, getSafeMenuIdSequence, isEnabled, onDoubleTap, onDoubleTapEvent, onDown, onFling, onKeyDown, onKeyUp, onLongPress, onPause, onResume, onScroll, onShowPress, onSingleTapConfirmed, onSingleTapUp, onTouchEvent, onTrackballEvent, setEnabled
protected final Paint mPaint
protected Bitmap PERSON_ICON
protected Point PERSON_HOTSPOT
protected GeoPoint mLocation
@Deprecated public SimpleLocationOverlay(Context ctx)
SimpleLocationOverlay
(((BitmapDrawable)ctx.getResources().getDrawable(R.drawable.person)).getBitmap()) instead.public SimpleLocationOverlay(Bitmap theIcon)
public void setLocation(GeoPoint mp)
public GeoPoint getMyLocation()
public void onDetach(MapView mapView)
Overlay
public void draw(Canvas c, Projection pj)