Se llama cuando el usuario hace un gesto de toque en el mapa, pero solo si ninguna de las superposiciones del mapa controló el gesto.
Métodos públicos
público abstracto abstracto
onMapClick(punto de LatLng)
Se llama cuando el usuario hace un gesto de toque en el mapa, pero solo si ninguna de las superposiciones del mapa controló el gesto. Las implementaciones de este método siempre se invocan en el subproceso de IU de Android.
Parámetros
point
El punto en el suelo (proyectado desde el punto de la pantalla) que se presionó.
[[["Fácil de comprender","easyToUnderstand","thumb-up"],["Resolvió mi problema","solvedMyProblem","thumb-up"],["Otro","otherUp","thumb-up"]],[["Falta la información que necesito","missingTheInformationINeed","thumb-down"],["Muy complicado o demasiados pasos","tooComplicatedTooManySteps","thumb-down"],["Desactualizado","outOfDate","thumb-down"],["Problema de traducción","translationIssue","thumb-down"],["Problema con las muestras o los códigos","samplesCodeIssue","thumb-down"],["Otro","otherDown","thumb-down"]],["Última actualización: 2025-06-16 (UTC)"],[[["`GoogleMap.OnMapClickListener` is an interface used to handle user tap interactions on a Google Map."],["The `onMapClick` method 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."]]],["The `GoogleMap.OnMapClickListener` interface provides a callback for map tap events. The `onMapClick` method is triggered when a user taps the map, provided no map overlays handled the tap. This method, always executed on the Android UI thread, receives a `LatLng` object (`point`) representing the geographical coordinates of the tap. This allows the user to get the point tapped by the user on the map.\n"]]