blob: 9d9580c92b21005e641511253a648a2002d5b8b0 (
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
|
package cgeo.geocaching.maps.google;
import cgeo.geocaching.go4cache.Go4CacheUser;
import cgeo.geocaching.maps.OtherCachersOverlayItem;
import cgeo.geocaching.maps.interfaces.OtherCachersOverlayItemImpl;
import com.google.android.maps.GeoPoint;
import com.google.android.maps.OverlayItem;
import android.content.Context;
import android.graphics.drawable.Drawable;
public class GoogleOtherCachersOverlayItem extends OverlayItem implements OtherCachersOverlayItemImpl {
final private OtherCachersOverlayItem item;
public GoogleOtherCachersOverlayItem(Context context, Go4CacheUser user) {
super(new GeoPoint(user.getCoords().getLatitudeE6(), user.getCoords().getLongitudeE6()), user.getUsername(), "");
item = new OtherCachersOverlayItem(context, user);
}
@Override
public Drawable getMarker(int state) {
final Drawable marker = item.getMarker(state);
setMarker(marker);
return marker;
}
public Go4CacheUser getUser() {
return item.getUser();
}
}
|