How to know how many markers I have on my map ?
On iOS it's simple : myMap.annotations.count.
How to do this on Android ? thanks
There's no way to do this with the stock Maps. There are two options:
Keep track of the marker count yourself as they are added in and simply use that count when it is required; or
Introduce a dependency to Android Maps Extensions, which adds a getMarkers()
function to the Map
object.