diff options
Diffstat (limited to 'main/src/cgeo/geocaching/maps/mapsforge/v024/MapsforgeCacheOverlayItem.java')
| -rw-r--r-- | main/src/cgeo/geocaching/maps/mapsforge/v024/MapsforgeCacheOverlayItem.java | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/main/src/cgeo/geocaching/maps/mapsforge/v024/MapsforgeCacheOverlayItem.java b/main/src/cgeo/geocaching/maps/mapsforge/v024/MapsforgeCacheOverlayItem.java new file mode 100644 index 0000000..3052e65 --- /dev/null +++ b/main/src/cgeo/geocaching/maps/mapsforge/v024/MapsforgeCacheOverlayItem.java @@ -0,0 +1,36 @@ +package cgeo.geocaching.maps.mapsforge.v024; + +import cgeo.geocaching.IWaypoint; +import cgeo.geocaching.enumerations.CacheType; +import cgeo.geocaching.maps.interfaces.CachesOverlayItemImpl; + +import org.mapsforge.android.mapsold.GeoPoint; +import org.mapsforge.android.mapsold.OverlayItem; + +import android.graphics.drawable.Drawable; + +public class MapsforgeCacheOverlayItem extends OverlayItem implements CachesOverlayItemImpl { + final private CacheType cacheType; + final private IWaypoint coord; + + public MapsforgeCacheOverlayItem(IWaypoint coordinate, final CacheType type) { + super(new GeoPoint(coordinate.getCoords().getLatitudeE6(), coordinate.getCoords().getLongitudeE6()), coordinate.getName(), ""); + + this.cacheType = type; + this.coord = coordinate; + } + + public IWaypoint getCoord() { + return coord; + } + + public CacheType getType() { + return cacheType; + } + + @Override + public Drawable getMarker(int index) { + return getMarker(); + } + +} |
