GoogleMap.OnMapClickListener
ממשק התקשרות חזרה למקרים שבהם המשתמש מקיש על המפה.
מאזינים יופעלו בשרשור של ממשק המשתמש של Android.
סיכום אמצעי תשלום ציבורי
מופשט
וריק
|
onMapClick(נקודת LatLng)
ההתראה הזו מוצגת כשהמשתמש מבצע תנועת הקשה על המפה, אבל רק אם אף אחת משכבות-העל של המפה לא טיפלה בתנועה.
|
שיטות ציבוריות
Public
מופשט
void
onMapClick
(LatLng)
ההתראה הזו מוצגת כשהמשתמש מבצע תנועת הקשה על המפה, אבל רק אם אף אחת משכבות-העל של המפה לא טיפלה בתנועה. הטמעות של השיטה הזו תמיד מופעלות בשרשור של ממשק המשתמש של Android.
פרמטרים
נקודה |
הנקודה שעליה מקישים על הקרקע (המוקרנת מנקודת המסך).
|
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-16 (שעון UTC).
[null,null,["עדכון אחרון: 2025-07-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"]]