blob: 86e75a0b1cfdbb4e578ee5514dd75c5ecb07eca6 (
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
|
package cgeo.geocaching.googlemaps;
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.OverlayImpl;
import cgeo.geocaching.mapinterfaces.OverlayBase;
import cgeo.geocaching.mapinterfaces.UserOverlayItemImpl;
public class googleMapFactory implements MapFactory{
@Override
public Class getMapClass() {
return googleMapActivity.class;
}
@Override
public int getMapViewId() {
return R.id.map;
}
@Override
public int getMapLayoutId() {
return R.layout.googlemap;
}
@Override
public GeoPointImpl getGeoPointBase(int latE6, int lonE6) {
return new googleGeoPoint(latE6, lonE6);
}
@Override
public OverlayImpl getOverlayBaseWrapper(OverlayBase ovlIn) {
googleOverlay baseOvl = new googleOverlay(ovlIn);
return baseOvl;
}
@Override
public CacheOverlayItemImpl getCacheOverlayItem(cgCoord coordinate, String type) {
googleCacheOverlayItem baseItem = new googleCacheOverlayItem(coordinate, type);
return baseItem;
}
@Override
public UserOverlayItemImpl getUserOverlayItemBase(Context context, cgUser userOne) {
googleUsersOverlayItem baseItem = new googleUsersOverlayItem(context, userOne);
return baseItem;
}
}
|