-
- All Implemented Interfaces:
-
org.osmdroid.views.util.constants.OverlayConstants
public abstract class ClickableIconOverlay<DataType> extends IconOverlay
org.osmdroid.views.overlay.ClickableIconOverlay is a clickable icon item on the org.osmdroid.views.MapView containing org.osmdroid.api.IGeoPoint, unique id and data.
Inspired by Marker but without the dependency to certain content and a popup-window
Created by k3b on 17.07.2015.
-
-
Method Summary
Modifier and Type Method Description ClickableIconOverlayset(int id, IGeoPoint position, Drawable icon, DataType data)used to recycle this booleanonSingleTapConfirmed(MotionEvent event, MapView mapView)booleanonLongPress(MotionEvent event, MapView mapView)By default does nothing ( {@code return false}).static ClickableIconOverlayfind(List<ClickableIconOverlay> list, int id)intgetID()DataTypegetData()-
Methods inherited from class org.osmdroid.views.overlay.IconOverlay
draw, getPosition, moveTo, moveTo, set -
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
-
set
ClickableIconOverlay set(int id, IGeoPoint position, Drawable icon, DataType data)
used to recycle this
-
onSingleTapConfirmed
boolean onSingleTapConfirmed(MotionEvent event, MapView mapView)
-
onLongPress
boolean onLongPress(MotionEvent event, MapView mapView)
By default does nothing (
{@code return false}). If you handled the Event, return{@code true}, otherwise return{@code false}. If you returned{@code true}none of the following Overlaysor the underlying MapView has the chance to handle this event.
-
find
static ClickableIconOverlay find(List<ClickableIconOverlay> list, int id)
-
getID
int getID()
-
-
-
-