-
- 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 float
ANCHOR_CENTER
public final static float
ANCHOR_LEFT
public final static float
ANCHOR_TOP
public final static float
ANCHOR_RIGHT
public final static float
ANCHOR_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 void
draw(Canvas canvas, Projection pj)
Draw the icon. IGeoPoint
getPosition()
IconOverlay
set(IGeoPoint position, Drawable icon)
IconOverlay
moveTo(MotionEvent event, MapView mapView)
IconOverlay
moveTo(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)
-
-
-
-