Interface MapView.MapClickEventListener

All Known Implementing Classes:
MapFragment, MapSheetFragment
Enclosing class:
MapView

public static interface MapView.MapClickEventListener
A listener for receiving map click events from the MapView
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Called when the user clicks the Location button.
    boolean
    onLongPress(float x, float y)
    Called when the user long presses on the map.
    boolean
    Called when the user clicks on the map, but not on a control or Marker.
    boolean
    Called when the user clicks the Overview button.
  • Method Details

    • onLocationButtonClick

      boolean onLocationButtonClick()
      Called when the user clicks the Location button.
      Returns:
      true if the event has been handled, false if we still want the default behavior to occur.
    • onOverviewButtonClick

      boolean onOverviewButtonClick()
      Called when the user clicks the Overview button.

      Note that the overview button is in the upper left corner of the map and only appears if there is a map without a building that is the default map. This is not associated with the overview button in directions.

      Returns:
      true if the event has been handled, false if we still want the default behavior to occur.
    • onMapClick

      boolean onMapClick()
      Called when the user clicks on the map, but not on a control or Marker.

      In most cases this should be an indicator that the user is trying to dismiss the active UI.

      Returns:
      true if the event has been handled, false if we still want the default behavior to occur.
    • onLongPress

      boolean onLongPress(float x, float y)
      Called when the user long presses on the map.
      Returns:
      true if the event has been handled, false if we still want the default behavior to occur.