diff options
| author | Samuel Tardieu <sam@rfc1149.net> | 2011-09-16 14:36:28 +0200 |
|---|---|---|
| committer | Samuel Tardieu <sam@rfc1149.net> | 2011-09-16 14:36:28 +0200 |
| commit | 579ef7a535489d4aa632db11667a3b01deb6cafd (patch) | |
| tree | 55810021c02ac7d80d3a9702ef0b59e4af154b9c /src/cgeo/geocaching/googlemaps/googleMapFactory.java | |
| parent | 96ea21fd50334479c262da692038965d0e4d596a (diff) | |
| download | cgeo-579ef7a535489d4aa632db11667a3b01deb6cafd.zip cgeo-579ef7a535489d4aa632db11667a3b01deb6cafd.tar.gz cgeo-579ef7a535489d4aa632db11667a3b01deb6cafd.tar.bz2 | |
Move sources into the main directory
This prepares the inclusion of tests into the same repository.
Diffstat (limited to 'src/cgeo/geocaching/googlemaps/googleMapFactory.java')
| -rw-r--r-- | src/cgeo/geocaching/googlemaps/googleMapFactory.java | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/src/cgeo/geocaching/googlemaps/googleMapFactory.java b/src/cgeo/geocaching/googlemaps/googleMapFactory.java deleted file mode 100644 index 890f638..0000000 --- a/src/cgeo/geocaching/googlemaps/googleMapFactory.java +++ /dev/null @@ -1,50 +0,0 @@ -package cgeo.geocaching.googlemaps; - -import cgeo.geocaching.R; -import cgeo.geocaching.cgCoord; -import cgeo.geocaching.cgUser; -import cgeo.geocaching.geopoint.Geopoint; -import cgeo.geocaching.mapinterfaces.CacheOverlayItemImpl; -import cgeo.geocaching.mapinterfaces.GeoPointImpl; -import cgeo.geocaching.mapinterfaces.MapFactory; -import cgeo.geocaching.mapinterfaces.UserOverlayItemImpl; - -import com.google.android.maps.MapActivity; - -import android.content.Context; - -public class googleMapFactory implements MapFactory { - - @Override - public Class<? extends MapActivity> getMapClass() { - return googleMapActivity.class; - } - - @Override - public int getMapViewId() { - return R.id.map; - } - - @Override - public int getMapLayoutId() { - return R.layout.googlemap; - } - - @Override - public GeoPointImpl getGeoPointBase(final Geopoint coords) { - return new googleGeoPoint(coords.getLatitudeE6(), coords.getLongitudeE6()); - } - - @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; - } - -} |
