aboutsummaryrefslogtreecommitdiffstats
path: root/src/cgeo/geocaching/googlemaps/googleMapFactory.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/cgeo/geocaching/googlemaps/googleMapFactory.java')
-rw-r--r--src/cgeo/geocaching/googlemaps/googleMapFactory.java69
1 files changed, 35 insertions, 34 deletions
diff --git a/src/cgeo/geocaching/googlemaps/googleMapFactory.java b/src/cgeo/geocaching/googlemaps/googleMapFactory.java
index 96f90f8..890f638 100644
--- a/src/cgeo/geocaching/googlemaps/googleMapFactory.java
+++ b/src/cgeo/geocaching/googlemaps/googleMapFactory.java
@@ -1,6 +1,5 @@
package cgeo.geocaching.googlemaps;
-import android.content.Context;
import cgeo.geocaching.R;
import cgeo.geocaching.cgCoord;
import cgeo.geocaching.cgUser;
@@ -12,38 +11,40 @@ import cgeo.geocaching.mapinterfaces.UserOverlayItemImpl;
import com.google.android.maps.MapActivity;
-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;
- }
+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;
+ }
}