aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/maps/google/GoogleMapFactory.java
diff options
context:
space:
mode:
authorrsudev <rasch@munin-soft.de>2011-09-20 07:40:41 +0200
committerrsudev <rasch@munin-soft.de>2011-09-20 07:56:41 +0200
commita2f2c5db407dd27d9c24cccb42dd45450f8c20af (patch)
treee18186c3f2a48708b58abddc8894a63c9735bb6f /main/src/cgeo/geocaching/maps/google/GoogleMapFactory.java
parent617d43896cc074a8233e6fdb7f96568afd4f331a (diff)
downloadcgeo-a2f2c5db407dd27d9c24cccb42dd45450f8c20af.zip
cgeo-a2f2c5db407dd27d9c24cccb42dd45450f8c20af.tar.gz
cgeo-a2f2c5db407dd27d9c24cccb42dd45450f8c20af.tar.bz2
Renamed map classes to uppercase
Diffstat (limited to 'main/src/cgeo/geocaching/maps/google/GoogleMapFactory.java')
-rw-r--r--main/src/cgeo/geocaching/maps/google/GoogleMapFactory.java50
1 files changed, 50 insertions, 0 deletions
diff --git a/main/src/cgeo/geocaching/maps/google/GoogleMapFactory.java b/main/src/cgeo/geocaching/maps/google/GoogleMapFactory.java
new file mode 100644
index 0000000..6ba8e33
--- /dev/null
+++ b/main/src/cgeo/geocaching/maps/google/GoogleMapFactory.java
@@ -0,0 +1,50 @@
+package cgeo.geocaching.maps.google;
+
+import cgeo.geocaching.R;
+import cgeo.geocaching.cgCoord;
+import cgeo.geocaching.cgUser;
+import cgeo.geocaching.geopoint.Geopoint;
+import cgeo.geocaching.maps.interfaces.CachesOverlayItemImpl;
+import cgeo.geocaching.maps.interfaces.GeoPointImpl;
+import cgeo.geocaching.maps.interfaces.MapFactory;
+import cgeo.geocaching.maps.interfaces.OtherCachersOverlayItemImpl;
+
+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.map_google;
+ }
+
+ @Override
+ public GeoPointImpl getGeoPointBase(final Geopoint coords) {
+ return new GoogleGeoPoint(coords.getLatitudeE6(), coords.getLongitudeE6());
+ }
+
+ @Override
+ public CachesOverlayItemImpl getCachesOverlayItem(cgCoord coordinate, String type) {
+ GoogleCacheOverlayItem baseItem = new GoogleCacheOverlayItem(coordinate, type);
+ return baseItem;
+ }
+
+ @Override
+ public OtherCachersOverlayItemImpl getOtherCachersOverlayItemBase(Context context, cgUser userOne) {
+ GoogleOtherCachersOverlayItem baseItem = new GoogleOtherCachersOverlayItem(context, userOne);
+ return baseItem;
+ }
+
+}