Googlemap.OnMapLoadedCallback
ממשק התקשרות חזרה לאחר סיום עיבוד המפה. הפעולה הזו מתרחשת אחרי שכל המשבצות הדרושות
לעיבוד המפה אוחזרות, וכל התוויות הושלמו. האירוע הזה לא יופעל אם המפה אף פעם לא תיטען בגלל בעיות בקישוריות, או אם המפה משתנה כל הזמן
ולא מסתיימת אף פעם הטעינה כי המשתמש מבצע אינטראקציה כל הזמן עם המפה.
שיטות ציבוריות
Public מופשט
void
onMapLoaded
()
מתבצעת קריאה לאחר סיום עיבוד המפה. הוא יקבל קריאה פעם אחת בלבד. כדי לקבל שוב הודעה, עליך לבקש
שיחה חוזרת נוספת.
ההגדרה הזו נקראת ב-thread של ממשק המשתמש ב-Android.
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-16 (שעון UTC).
[null,null,["עדכון אחרון: 2025-07-16 (שעון UTC)."],[[["`GoogleMap.OnMapLoadedCallback` is an interface used to trigger actions after a Google Map has completely rendered within an Android application."],["The `onMapLoaded()` method is called once when the map has finished rendering, signifying all tiles and labels are loaded, and runs on the Android UI thread."],["This callback will not trigger if the map fails to load due to connection issues or if continuous user interaction prevents the map from fully loading."]]],["The `GoogleMap.OnMapLoadedCallback` interface provides a mechanism to be notified when a map has finished rendering. The `onMapLoaded()` method, the sole method within this interface, is invoked once the map has completed the rendering process, including fetching tiles and labeling. This method is called on the Android UI thread. If the user needs to be notified again, they must explicitly request another callback, as this only fires once. The callback won't be triggered if loading is interrupted.\n"]]