Android Map Performance poor because of many Overlays?

后端 未结 3 2063
臣服心动
臣服心动 2021-02-10 03:33

I have a map in my android application that shows many markers (~20-50). But the app performs very poor when i try to scroll/zoom (in Google Android Maps i did a sample search f

3条回答
  •  灰色年华
    2021-02-10 03:52

    I ran into the same problem last night, and my solution was the same as yours. I felt weird about how I called the populate method.

    I had the same code as you but I called

    speedyPopulate() { 
      populate(); 
    }
    

    in the MyOverlay class

提交回复
热议问题