Interface MapTapListener


public interface MapTapListener
Receives tap and long-press notifications from a MapSurface. Register with MapSurface.addTapListener(MapTapListener) or MapSurface.addLongPressListener(MapTapListener).
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    mapTapped(MapSurface map, LatLng location, int x, int y)
    Invoked on the EDT when the user taps (or long-presses) the map.
  • Method Details

    • mapTapped

      void mapTapped(MapSurface map, LatLng location, int x, int y)

      Invoked on the EDT when the user taps (or long-presses) the map.

      Parameters
      • map: the surface that was tapped

      • location: the geographic coordinate under the touch point

      • x: the x pixel relative to the map component

      • y: the y pixel relative to the map component