diff options
| author | mucek4 <tomaz@gorenc.org> | 2011-07-11 08:12:48 +0200 |
|---|---|---|
| committer | mucek4 <tomaz@gorenc.org> | 2011-07-11 08:12:48 +0200 |
| commit | 3a311f2a45a79a19ebc4e2b66f5e92a2f390c04d (patch) | |
| tree | 6109c451668d4517785e8225c06230b7f02d1414 /src/cgeo/geocaching/googlemaps/googleCacheOverlayItem.java | |
| download | cgeo-3a311f2a45a79a19ebc4e2b66f5e92a2f390c04d.zip cgeo-3a311f2a45a79a19ebc4e2b66f5e92a2f390c04d.tar.gz cgeo-3a311f2a45a79a19ebc4e2b66f5e92a2f390c04d.tar.bz2 | |
First commit
Diffstat (limited to 'src/cgeo/geocaching/googlemaps/googleCacheOverlayItem.java')
| -rw-r--r-- | src/cgeo/geocaching/googlemaps/googleCacheOverlayItem.java | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/cgeo/geocaching/googlemaps/googleCacheOverlayItem.java b/src/cgeo/geocaching/googlemaps/googleCacheOverlayItem.java new file mode 100644 index 0000000..5546077 --- /dev/null +++ b/src/cgeo/geocaching/googlemaps/googleCacheOverlayItem.java @@ -0,0 +1,28 @@ +package cgeo.geocaching.googlemaps; + +import com.google.android.maps.GeoPoint; +import com.google.android.maps.OverlayItem; + +import cgeo.geocaching.cgCoord; +import cgeo.geocaching.mapinterfaces.CacheOverlayItemImpl; + +public class googleCacheOverlayItem extends OverlayItem implements CacheOverlayItemImpl { + private String cacheType = null; + private cgCoord coord; + + public googleCacheOverlayItem(cgCoord coordinate, String type) { + super(new GeoPoint((int)(coordinate.latitude * 1e6), (int)(coordinate.longitude * 1e6)), coordinate.name, ""); + + this.cacheType = type; + this.coord = coordinate; + } + + public cgCoord getCoord() { + return coord; + } + + public String getType() { + return cacheType; + } + +} |
