Example #1
0
  /**
   * Add an item overlay
   *
   * @param overlay
   */
  public void addOverlay(OverlayItem overlay) {
    Drawable d = overlay.getMarker(0);

    if (d != null) {
      overlay.setMarker(boundCenterBottom(d));
    }

    mOverlays.add(overlay);
    populate(); // Called to prepare each item to be drawn
  }