diff options
Diffstat (limited to 'src/cgeo/geocaching/googlemaps/googleCacheOverlayItem.java')
| -rw-r--r-- | src/cgeo/geocaching/googlemaps/googleCacheOverlayItem.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cgeo/geocaching/googlemaps/googleCacheOverlayItem.java b/src/cgeo/geocaching/googlemaps/googleCacheOverlayItem.java index 5546077..5f20dd4 100644 --- a/src/cgeo/geocaching/googlemaps/googleCacheOverlayItem.java +++ b/src/cgeo/geocaching/googlemaps/googleCacheOverlayItem.java @@ -1,17 +1,17 @@ package cgeo.geocaching.googlemaps; -import com.google.android.maps.GeoPoint; -import com.google.android.maps.OverlayItem; - import cgeo.geocaching.cgCoord; import cgeo.geocaching.mapinterfaces.CacheOverlayItemImpl; +import com.google.android.maps.GeoPoint; +import com.google.android.maps.OverlayItem; + public class googleCacheOverlayItem extends OverlayItem implements CacheOverlayItemImpl { private String cacheType = null; private cgCoord coord; public googleCacheOverlayItem(cgCoord coordinate, String type) { - super(new GeoPoint((int)(coordinate.latitude * 1e6), (int)(coordinate.longitude * 1e6)), coordinate.name, ""); + super(new GeoPoint(coordinate.coords.getLatitudeE6(), coordinate.coords.getLongitudeE6()), coordinate.name, ""); this.cacheType = type; this.coord = coordinate; |
