Apps with a scaling map typically run into two problems. The first is an excessive amount of icons appearing on the screen and cluttering it when zooming out, and the second is the app freezing when zooming in and out or scrolling the map. We solved both problems. While icon clutter was quite easy to reduce by merging icons into clusters when zooming out, the second problem required a little bit more effort and some math work.
To prevent the app from caching more than 5000 map points at once, we tried out the Google Maps Utils
library. The library's features turned out to insufficient, but we managed to improve the app's performance by coding an additional component that decreases the frequency at which the map had to refresh.