Android Google Maps api v2 stops loading tiles

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-04 16:02:18

I've seen this before in another question can't find that question today :( Solution You have to let the map breathe so to speak. Meaning you can't do continuous moves of the map. Because the map interaction is done on the UI thread what happens is the UI thread gets clogged and actually everything UI will stop working in your app.

The code below sends updates every N seconds and moves the map with an animation. It's nice has a non jerk move to it. Simply copy the class to your project and start moving the map.

https://github.com/danny117/MapMover

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!