DEV Community

Bayazid Sustami
Bayazid Sustami

Posted on

how to load gmaps easily in android?

I am developing an application that uses google maps, but after the application runs and has several users, my application feels heavier than before. is there a way to make my application run effectively?

Top comments (1)

asynctaskcoffee profile image

Be carefull using maps means you will have -frozen frames- and -performance- problems. To avoid them, use cluster for markers and if youre using bitmaps for markers create bitmaps on different threads and draw them on ui thread. And also dont draw all markers in same time. In summary you should seperate ui and main threads. In addition load map asynchronously in background and load in main thread when it is ready.