Android Open Source - geocamMemoForAndroid Memo Map Overlay






From Project

Back to project page geocamMemoForAndroid.

License

The source code is released under:

NASA OPEN SOURCE AGREEMENT VERSION 1.3 THIS OPEN SOURCE AGREEMENT ("AGREEMENT") DEFINES THE RIGHTS OF USE, REPRODUCTION, DISTRIBUTION, MODIFICATION AND REDISTRIBUTION OF CERTAIN COMPUTER SOFTWARE ORI...

If you think the Android project geocamMemoForAndroid listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package gov.nasa.arc.geocam.memo.service;
//  w  w w .  j av  a2  s.c  om
import java.util.ArrayList;

import android.graphics.drawable.Drawable;

import com.google.android.maps.ItemizedOverlay;
import com.google.android.maps.OverlayItem;

/**
 * The Class MemoMapOverlay.
 */
public class MemoMapOverlay extends ItemizedOverlay<OverlayItem> {

  /**
   * Instantiates a new memo map overlay.
   *
   * @param defaultMarker the default marker
   */
  public MemoMapOverlay(Drawable defaultMarker) {
    super(boundCenterBottom(defaultMarker));
  }

  /** The m overlays. */
  private ArrayList<OverlayItem> mOverlays = new ArrayList<OverlayItem>();
  
  /**
   * Adds the overlay.
   *
   * @param overlay the overlay
   */
  public void addOverlay(OverlayItem overlay) {
      mOverlays.add(overlay);
      populate();
  }
  
  /* (non-Javadoc)
   * @see com.google.android.maps.ItemizedOverlay#createItem(int)
   */
  @Override
  protected OverlayItem createItem(int i) {
    return mOverlays.get(i);
  }

  /* (non-Javadoc)
   * @see com.google.android.maps.ItemizedOverlay#size()
   */
  @Override
  public int size() {
    // TODO Auto-generated method stub
    return mOverlays.size();
  }

}




Java Source Code List

gov.nasa.arc.geocam.memo.GeoCamMemoModule.java
gov.nasa.arc.geocam.memo.GeoCamMemoRoboApplication.java
gov.nasa.arc.geocam.memo.UIUtils.java
gov.nasa.arc.geocam.memo.activity.GeoCamMemoCreateActivity.java
gov.nasa.arc.geocam.memo.activity.GeoCamMemoHomeActivity.java
gov.nasa.arc.geocam.memo.activity.GeoCamMemoMapActivity.java
gov.nasa.arc.geocam.memo.activity.GeoCamMemoMessageArrayAdapter.java
gov.nasa.arc.geocam.memo.activity.GeoCamMemoSettings.java
gov.nasa.arc.geocam.memo.bean.GeoCamMemoMessage.java
gov.nasa.arc.geocam.memo.exception.AuthenticationFailedException.java
gov.nasa.arc.geocam.memo.service.DjangoMemoImplementation.java
gov.nasa.arc.geocam.memo.service.DjangoMemoInterface.java
gov.nasa.arc.geocam.memo.service.DjangoMemoJsonConverterImplementation.java
gov.nasa.arc.geocam.memo.service.DjangoMemoJsonConverterInterface.java
gov.nasa.arc.geocam.memo.service.GeoLocationListener.java
gov.nasa.arc.geocam.memo.service.MemoMapOverlay.java
gov.nasa.arc.geocam.memo.service.SiteAuthCookieImplementation.java
gov.nasa.arc.geocam.memo.service.SiteAuthInterface.java