aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/maps/google/googleCacheOverlayItem.java
diff options
context:
space:
mode:
Diffstat (limited to 'main/src/cgeo/geocaching/maps/google/googleCacheOverlayItem.java')
-rw-r--r--main/src/cgeo/geocaching/maps/google/googleCacheOverlayItem.java28
1 files changed, 28 insertions, 0 deletions
diff --git a/main/src/cgeo/geocaching/maps/google/googleCacheOverlayItem.java b/main/src/cgeo/geocaching/maps/google/googleCacheOverlayItem.java
new file mode 100644
index 0000000..001dab9
--- /dev/null
+++ b/main/src/cgeo/geocaching/maps/google/googleCacheOverlayItem.java
@@ -0,0 +1,28 @@
+package cgeo.geocaching.maps.google;
+
+import cgeo.geocaching.cgCoord;
+import cgeo.geocaching.maps.interfaces.CachesOverlayItemImpl;
+
+import com.google.android.maps.GeoPoint;
+import com.google.android.maps.OverlayItem;
+
+public class googleCacheOverlayItem extends OverlayItem implements CachesOverlayItemImpl {
+ private String cacheType = null;
+ private cgCoord coord;
+
+ public googleCacheOverlayItem(cgCoord coordinate, String type) {
+ super(new GeoPoint(coordinate.coords.getLatitudeE6(), coordinate.coords.getLongitudeE6()), coordinate.name, "");
+
+ this.cacheType = type;
+ this.coord = coordinate;
+ }
+
+ public cgCoord getCoord() {
+ return coord;
+ }
+
+ public String getType() {
+ return cacheType;
+ }
+
+}