Package 

Class MapEventsOverlay

  • All Implemented Interfaces:
    org.osmdroid.views.util.constants.OverlayConstants

    
    public class MapEventsOverlay
    extends Overlay
                        

    Empty overlay than can be used to detect events on the map, and to throw them to a MapEventsReceiver.

    • Method Summary

      Modifier and Type Method Description
      boolean onSingleTapConfirmed(MotionEvent e, MapView mapView) By default does nothing ({@code return false}).
      boolean onLongPress(MotionEvent e, MapView mapView) By default does nothing ({@code return false}).
      • 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

      • MapEventsOverlay

        MapEventsOverlay(MapEventsReceiver receiver)
        Parameters:
        receiver - the object that will receive/handle the events.It must implement MapEventsReceiver interface.
    • Method Detail

      • onSingleTapConfirmed

         boolean onSingleTapConfirmed(MotionEvent e, 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.

      • onLongPress

         boolean onLongPress(MotionEvent e, 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.