blob: fa665ec30bc1de511c646763e04985ba62699c19 (
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
package cgeo.geocaching.mapsforge;
import android.app.Activity;
import android.content.Context;
import cgeo.geocaching.R;
import cgeo.geocaching.cgCoord;
import cgeo.geocaching.cgUser;
import cgeo.geocaching.mapinterfaces.CacheOverlayItemImpl;
import cgeo.geocaching.mapinterfaces.GeoPointImpl;
import cgeo.geocaching.mapinterfaces.MapFactory;
import cgeo.geocaching.mapinterfaces.OverlayBase;
import cgeo.geocaching.mapinterfaces.OverlayImpl;
import cgeo.geocaching.mapinterfaces.UserOverlayItemImpl;
public class mfMapFactory implements MapFactory{
@Override
public Class<?extends Activity> getMapClass() {
return mfMapActivity.class;
}
@Override
public int getMapViewId() {
return R.id.mfmap;
}
@Override
public int getMapLayoutId() {
return R.layout.mfmap;
}
@Override
public GeoPointImpl getGeoPointBase(int latE6, int lonE6) {
return new mfGeoPoint(latE6, lonE6);
}
@Override
public OverlayImpl getOverlayBaseWrapper(OverlayBase ovlIn) {
mfOverlay baseOvl = new mfOverlay(ovlIn);
return baseOvl;
}
@Override
public CacheOverlayItemImpl getCacheOverlayItem(cgCoord coordinate, String type) {
mfCacheOverlayItem baseItem = new mfCacheOverlayItem(coordinate, type);
return baseItem;
}
@Override
public UserOverlayItemImpl getUserOverlayItemBase(Context context, cgUser userOne) {
mfUsersOverlayItem baseItem = new mfUsersOverlayItem(context, userOne);
return baseItem;
}
}
|