Page Summary
-
GoogleMap.OnMapClickListeneris an interface used to handle user tap interactions on a Google Map. -
The
onMapClickmethod within this interface is triggered when a user taps on the map, providing the geographical coordinates of the tapped location, but only if no other map overlays have captured the event. -
This interaction is processed on the main Android UI thread, ensuring smooth handling of the event within the application's lifecycle.
Callback interface for when the user taps on the map.
Listeners will be invoked on the Android UI thread.
Public Method Summary
| abstract void |
onMapClick(LatLng point)
Called when the user makes a tap gesture on the map, but only if none of the overlays of the
map handled the gesture.
|
Public Methods
public abstract void onMapClick (LatLng point)
Called when the user makes a tap gesture on the map, but only if none of the overlays of the map handled the gesture. Implementations of this method are always invoked on the Android UI thread.
Parameters
| point | The point on the ground (projected from the screen point) that was tapped. |
|---|