0

I want to add more than 200 markers on map receiving from API call and on the movement of map i m getting another markers. I am able to add markers but my map runs slowly. Can anyone help me to improve map?

Thanks in advance

Jatin
  • 1,650
  • 3
  • 17
  • 32
  • If there are more than 200 marker then show progress indicator while loading markers in google map. – Piyush Oct 17 '14 at 10:59
  • if i showing indicator that as user change map he only see indicators everywhere. it's not good – Jatin Oct 17 '14 at 11:00
  • It runs slowly while you're adding the markers or it runs slowly once the markers are added ? – Allan Mermod Oct 17 '14 at 11:04
  • i am explaining you what is going on. As i got to map screen it calls API i receive 200 markers and set to map. once user change the map position i again calland again set that markers. in this procedure i get stucked – Jatin Oct 17 '14 at 11:06
  • use map clustering for better experience – Biraj Zalavadia Oct 17 '14 at 11:06
  • thanks for replay but don't want to cluster. because i m removing all previous markers. – Jatin Oct 17 '14 at 11:09
  • 1
    Use an `AsyncTask` to add markers using a different thread. You can see [this post](http://stackoverflow.com/a/18451570/1411864) too. It can help you to find a simpler solution. – Allan Mermod Oct 17 '14 at 11:09
  • Thanks @AllanMermod, i have puted async task for calculation and reoving and adding marker done on main thread – Jatin Oct 17 '14 at 11:11
  • @AllanMermod Doesn't work – Nabin Nov 25 '14 at 17:48

0 Answers0