GoogleMap.OnMapLoadedCallback
Stay organized with collections
Save and categorize content based on your preferences.
Callback interface for when the map has finished rendering. This occurs after all tiles
required to render the map have been fetched, and all labeling is complete. This event will not
fire if the map never loads due to connectivity issues, or if the map is continuously changing
and never completes loading due to the user constantly interacting with the map.
When the camera is following my location because of GoogleMap.followMyLocation(int)
, this
callback will still be fired when the map has finished renerdering despite camera animating due
to following user's location.
Public Method Summary
abstract
void
|
onMapLoaded()
Called when the map has finished rendering.
|
Public Methods
public
abstract
void
onMapLoaded
()
Called when the map has finished rendering. This will only be called once. You must request
another callback if you want to be notified again.
This is called on the Android UI thread.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-28 UTC.
[null,null,["Last updated 2025-08-28 UTC."],[[["\u003cp\u003e\u003ccode\u003eGoogleMap.OnMapLoadedCallback\u003c/code\u003e is an interface used to get a callback when a map has completely rendered on screen.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eonMapLoaded()\u003c/code\u003e method is invoked when the map is fully rendered and ready to be used, but will only be called once.\u003c/p\u003e\n"],["\u003cp\u003eThis callback is triggered when all tiles and labels are loaded and the map is stable, even if the camera is actively following user location.\u003c/p\u003e\n"]]],[],null,["public static interface **GoogleMap.OnMapLoadedCallback** \nCallback interface for when the map has finished rendering. This occurs after all tiles\nrequired to render the map have been fetched, and all labeling is complete. This event will not\nfire if the map never loads due to connectivity issues, or if the map is continuously changing\nand never completes loading due to the user constantly interacting with the map.\n\nWhen the camera is following my location because of [GoogleMap.followMyLocation(int)](/maps/documentation/navigation/android-sdk/reference/com/google/android/gms/maps/GoogleMap#followMyLocation(int)), this\ncallback will still be fired when the map has finished renerdering despite camera animating due\nto following user's location. \n\nPublic Method Summary\n\n|---------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract void | [onMapLoaded](/maps/documentation/navigation/android-sdk/reference/com/google/android/gms/maps/GoogleMap.OnMapLoadedCallback#onMapLoaded())() Called when the map has finished rendering. |\n\nPublic Methods \n\npublic abstract void\n**onMapLoaded**\n() \nCalled when the map has finished rendering. This will only be called once. You must request\nanother callback if you want to be notified again.\n\nThis is called on the Android UI thread."]]