public class MapEventsOverlay extends Overlay
MapEventsReceiver
Overlay.Snappable
mScale, SHADOW_X_SKEW, SHADOW_Y_SCALE
DEBUGMODE, DEFAULT_ZOOMLEVEL_MINIMAP_DIFFERENCE, NOT_SET
Constructor and Description |
---|
MapEventsOverlay(android.content.Context ctx,
MapEventsReceiver receiver) |
Modifier and Type | Method and Description |
---|---|
protected void |
draw(android.graphics.Canvas c,
MapView osmv,
boolean shadow)
Draw the overlay over the map.
|
boolean |
onLongPress(android.view.MotionEvent e,
MapView mapView)
By default does nothing (
return false ). |
boolean |
onSingleTapConfirmed(android.view.MotionEvent e,
MapView mapView)
By default does nothing (
return false ). |
drawAt, getSafeMenuId, getSafeMenuIdSequence, isEnabled, onDetach, onDoubleTap, onDoubleTapEvent, onDown, onFling, onKeyDown, onKeyUp, onScroll, onShowPress, onSingleTapUp, onTouchEvent, onTrackballEvent, setEnabled
public MapEventsOverlay(android.content.Context ctx, MapEventsReceiver receiver)
ctx
- the contextreceiver
- the object that will receive/handle the events.
It must implement MapEventsReceiver interface.protected void draw(android.graphics.Canvas c, MapView osmv, boolean shadow)
Overlay
public boolean onSingleTapConfirmed(android.view.MotionEvent e, MapView mapView)
Overlay
return false
). If you handled the Event, return true
, otherwise return false
. If you returned true
none of the following Overlays
or the underlying MapView
has the chance to handle this event.onSingleTapConfirmed
in class Overlay
public boolean onLongPress(android.view.MotionEvent e, MapView mapView)
Overlay
return false
). If you handled the Event, return true
, otherwise return false
. If you returned true
none of the following Overlays
or the underlying MapView
has the chance to handle this event.onLongPress
in class Overlay
Copyright © 2016. All Rights Reserved.