title: Android Google Map: How to Draw pin which have text like (1,2,3,4,5..etc)?
body: <p><img src="https://i.stack.imgur.com/KOICW.png" alt="enter image description here"></p>
  
  <p>I need to show the text inside pins which I draw on map how can I implement this in android any idea please provide me any suggestion for this. For drawing the pin I am using MyItemized overlay class. below is the code for my class..</p>
  
  <pre><code>public class MyItemizedOverlay extends ItemizedOverlay&lt;OverlayItem&gt; {
  
      private ArrayList&lt;OverlayItem&gt; mOverlays = new ArrayList&lt;OverlayItem&gt;();
  
      public MyItemizedOverlay(Drawable defaultMarker, Context ctx) {
          super(boundCenterBottom(defaultMarker));
  
      }
  
      public void addOverlay(OverlayItem overlay) {
          mOverlays.add(overlay);
          populate();
      }
  
      public void clear() {
  
          mOverlays.clear();
          populate();
      }
  
      @Override
      protected OverlayItem createItem(int i) {
          return mOverlays.get(i);
      }
  
      @Override
      public int size() {
          return mOverlays.size();
      }
  
      @Override
      protected boolean onTap(int index) {
          return true;
      }
  
      @Override
      public boolean onTouchEvent(MotionEvent event, MapView mapView) {
  
          return false;
      }
  
      @Override
      public void draw(Canvas canvas, MapView mapView, boolean shadow) {
          if (!shadow) {
              super.draw(canvas, mapView, false);
          }
      }
  
  }
  </code></pre>
  
  <p>Thanks..</p>