blob: b56a2c46a6e92abf26d44cdbddfc8555fd5c6379 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
package cgeo.geocaching.maps.mapsforge;
import cgeo.geocaching.IWaypoint;
import cgeo.geocaching.enumerations.CacheType;
import cgeo.geocaching.maps.interfaces.CachesOverlayItemImpl;
import org.mapsforge.android.maps.overlay.OverlayItem;
import org.mapsforge.core.GeoPoint;
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();
}
}
|