Android Question How to refresh google map view when using AnimateCamera?

Daica

Active Member
Licensed User
I'm using the code by Erel here: https://www.b4x.com/android/forum/threads/googlemaps.138825/#post-878928

It works great, the North of the map is whatever direction I am driving towards.
The issue however is that the map does not update as the camera is changing. It only updates when I stop the camera animation
1658268681906.png


See how the map is blurry?

Did anyone manage to "refresh" the map view while animating the camera?
 

Daica

Active Member
Licensed User
Well, after Googling, I found that it takes 1 seconds for the map to update.
Change the code Sleep(100) to Sleep(1100) and the map should update now as the camera is moving.

I don't think its the best solution, but at least it works.

If anyone else has a better solution please share
 
Upvote 0
Top