aboutsummaryrefslogtreecommitdiffstats
path: root/src/cgeo/geocaching/googlemaps/googleCacheOverlayItem.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/cgeo/geocaching/googlemaps/googleCacheOverlayItem.java')
-rw-r--r--src/cgeo/geocaching/googlemaps/googleCacheOverlayItem.java28
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;
+ }
+
+}