aboutsummaryrefslogtreecommitdiffstats
path: root/src/cgeo/geocaching/mapsforge/mfMapFactory.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/cgeo/geocaching/mapsforge/mfMapFactory.java')
-rw-r--r--src/cgeo/geocaching/mapsforge/mfMapFactory.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/cgeo/geocaching/mapsforge/mfMapFactory.java b/src/cgeo/geocaching/mapsforge/mfMapFactory.java
index 00204dd..5266e99 100644
--- a/src/cgeo/geocaching/mapsforge/mfMapFactory.java
+++ b/src/cgeo/geocaching/mapsforge/mfMapFactory.java
@@ -5,6 +5,7 @@ import android.content.Context;
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;
@@ -28,8 +29,8 @@ public class mfMapFactory implements MapFactory{
}
@Override
- public GeoPointImpl getGeoPointBase(int latE6, int lonE6) {
- return new mfGeoPoint(latE6, lonE6);
+ public GeoPointImpl getGeoPointBase(final Geopoint coords) {
+ return new mfGeoPoint(coords.getLatitudeE6(), coords.getLongitudeE6());
}
@Override