diff options
Diffstat (limited to 'src/cgeo/geocaching/googlemaps/googleMapFactory.java')
| -rw-r--r-- | src/cgeo/geocaching/googlemaps/googleMapFactory.java | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/src/cgeo/geocaching/googlemaps/googleMapFactory.java b/src/cgeo/geocaching/googlemaps/googleMapFactory.java new file mode 100644 index 0000000..86e75a0 --- /dev/null +++ b/src/cgeo/geocaching/googlemaps/googleMapFactory.java @@ -0,0 +1,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; + } + +} |
