public class SimpleLocationOverlay extends Overlay
Overlay.Snappable
Modifier and Type | Field and Description |
---|---|
protected GeoPoint |
mLocation |
protected Paint |
mPaint |
protected android.graphics.Point |
PERSON_HOTSPOT
Coordinates the feet of the person are located.
|
protected Bitmap |
PERSON_ICON |
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,
MapView osmv,
boolean shadow)
Draw the overlay over the map.
|
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.
|
drawAt, getSafeMenuId, getSafeMenuIdSequence, isEnabled, onDoubleTap, onDoubleTapEvent, onDown, onFling, onKeyDown, onKeyUp, onLongPress, onScroll, onShowPress, onSingleTapConfirmed, onSingleTapUp, onTouchEvent, onTrackballEvent, setEnabled
protected final Paint mPaint
protected Bitmap PERSON_ICON
protected android.graphics.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, MapView osmv, boolean shadow)
Overlay
public void setPersonIcon(Bitmap bmp, Point hotspot)