-
- All Implemented Interfaces:
-
org.osmdroid.views.util.constants.OverlayConstants
public class IconOverlay extends Overlay
org.osmdroid.views.overlay.IconOverlay is an icon placed at a particular org.osmdroid.api.IGeoPoint on the org.osmdroid.views.MapView's surface.
Inspired by Marker but without the Datafields and the pop-window support.
Created by k3b on 16.07.2015.
-
-
Field Summary
Fields Modifier and Type Field Description public final static floatANCHOR_CENTERpublic final static floatANCHOR_LEFTpublic final static floatANCHOR_TOPpublic final static floatANCHOR_RIGHTpublic final static floatANCHOR_BOTTOM
-
Constructor Summary
Constructors Constructor Description IconOverlay()save to be called in non-gui-thread IconOverlay(IGeoPoint position, Drawable icon)save to be called in non-gui-thread
-
Method Summary
Modifier and Type Method Description voiddraw(Canvas canvas, Projection pj)Draw the icon. IGeoPointgetPosition()IconOverlayset(IGeoPoint position, Drawable icon)IconOverlaymoveTo(MotionEvent event, MapView mapView)IconOverlaymoveTo(IGeoPoint position, MapView mapView)-
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
-
-
Method Detail
-
draw
void draw(Canvas canvas, Projection pj)
Draw the icon.
-
getPosition
IGeoPoint getPosition()
-
set
IconOverlay set(IGeoPoint position, Drawable icon)
-
moveTo
IconOverlay moveTo(MotionEvent event, MapView mapView)
-
moveTo
IconOverlay moveTo(IGeoPoint position, MapView mapView)
-
-
-
-