Android Question Gmap Render Finished

Ivan Leal

Member
Licensed User
Longtime User
Hello everybody.

I use GoogleMapsExtras.AnimateToBounds to fit a map view inside a mapfragment.

How can I know exactly when map rendering has finished?

Regards.
 

TILogistic

Expert
Licensed User
Longtime User
?
 
Upvote 0

Ivan Leal

Member
Licensed User
Longtime User
You should use GoogleMapsExtra.AnimateCamera3 with a CameraUpdate object. This will allow you to set the animation duration.
B4X:
GoogleMapsExtra.AnimateCamera3(...)
Sleep(duration)
'continue here
Thanks a lot, Erel.

My project monitors the geo positioning of users. In many situations, depending on the zoom level, these users can be clustered together.

My difficulty was exactly in knowing if the calculated map scale was based on the correct zoom level. Using the proposed solution, I can now calculate the map scale more accurately, before defining which users are actually grouped.
 
Upvote 0
Top