Is there are function in GoogleMaps Android API which can give me the count of Markers drawn on the Map (not only the on-screen visible markers)?
Asked
Active
Viewed 2,152 times
2
-
2If you are drawing marker yourself, you did probably have them stored in some array or list. You can get the count from there – Vivek Mishra Dec 27 '18 at 07:24
-
If you have been display marker on map it means you should have array of that all position so you can get total size of all array which is use for display marker – Ketan Patel Dec 27 '18 at 07:25
-
Check this https://stackoverflow.com/a/16375757/5783098 – Chirag Nahar Dec 27 '18 at 07:40
1 Answers
1
No function for this in the GoogleMaps API. Add Map Extension to your android project then you can simply call the function getMarkers() to get the count of markers on the map.

M. Usman Khan
- 3,689
- 1
- 59
- 69

Sajith
- 713
- 6
- 21