-
- All Implemented Interfaces:
-
org.osmdroid.views.util.constants.OverlayConstants
public class SimpleLocationOverlay extends Overlay
-
-
Constructor Summary
Constructors Constructor Description SimpleLocationOverlay(Context ctx)Use SimpleLocationOverlay(((BitmapDrawable)ctx.getResources().getDrawable(R.drawable.person)).getBitmap()) instead. SimpleLocationOverlay(Bitmap theIcon)
-
Method Summary
Modifier and Type Method Description voidsetLocation(GeoPoint mp)GeoPointgetMyLocation()voidonDetach(MapView mapView)Override to perform clean up of resources before shutdown. voiddraw(Canvas c, Projection pj)voidsetPersonIcon(Bitmap bmp, Point hotspot)Coordinates the feet of the person are located. -
Methods inherited from class org.osmdroid.views.overlay.Overlay
draw, draw, getBounds, isEnabled, onDetach, onDoubleTap, onDoubleTapEvent, onDown, onFling, onKeyDown, onKeyUp, onLongPress, onPause, onResume, onScroll, onShowPress, onSingleTapConfirmed, onSingleTapUp, onTouchEvent, onTrackballEvent, setEnabled -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
SimpleLocationOverlay
SimpleLocationOverlay(Context ctx)
Use SimpleLocationOverlay(((BitmapDrawable)ctx.getResources().getDrawable(R.drawable.person)).getBitmap()) instead.
-
SimpleLocationOverlay
SimpleLocationOverlay(Bitmap theIcon)
-
-
Method Detail
-
setLocation
void setLocation(GeoPoint mp)
-
getMyLocation
GeoPoint getMyLocation()
-
onDetach
void onDetach(MapView mapView)
Override to perform clean up of resources before shutdown. By default does nothing.
-
draw
void draw(Canvas c, Projection pj)
-
setPersonIcon
void setPersonIcon(Bitmap bmp, Point hotspot)
Coordinates the feet of the person are located.
-
-
-
-