Search code examples
androidgoogle-mapsmarker

Android Maps with Custom Marker (text on the marker)


I have never worked on maps api before. I want to implement maps like the below picture. I am getting the data from a web service using which i can get the event count to be displayed on markers. The basic functionality is that once user zoom in then the map markers will expand and so the marker counts.

enter image description here

My questions are:

  1. Is there a way to customize the markers like this.
  2. How can I handle the marker count on zoom in, zoom out event.

Please help. Thanks in advance.


Solution

  • You don't need to do anything to count markers and display the way it is in picture. Google has a library called Google Maps Android API utility library

    The one you need is called

    Marker clustering — handles the display of a large number of points. video