Back to project page geocamMemoAndroid.
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 geocamMemoAndroid listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
// __BEGIN_LICENSE__ // Copyright (C) 2008-2010 United States Government as represented by // the Administrator of the National Aeronautics and Space Administration. // All Rights Reserved. // __END_LICENSE__ /*from w w w . j av a 2 s . c om*/ package gov.nasa.arc.geocam.memo.service; 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(); } }