Android maps: difference between OnMapReady () and OnMapLoaded ()

Can anyone explain the difference between

OnMapReadyCallback.OnMapReady (GoogleMap googleMap)

and

GoogleMap.OnMapLoadedCallback.OnMapLoaded ()

This is not very clear to me.

+4
source share
1 answer

It basically depends on what you want to do with the map.

You can safely use OnMapReadyCallback to set up your contacts, etc. It is called as soon as the card is ready for use.

OnMapLoadedCallback, like state docs, called

When the map finished rendering. This happens after all the tiles necessary to display the map, and all markings are complete. eg. the contents of the map are fully loaded and visible.

, OnMapReady. googleMap.setOnMapLoadedCallback , OnMapReady (googleMap!= Null).

+4

Source: https://habr.com/ru/post/1653028/


All Articles