diff options
| author | Bananeweizen <bananeweizen@gmx.de> | 2013-05-25 11:22:30 +0200 |
|---|---|---|
| committer | Bananeweizen <bananeweizen@gmx.de> | 2013-05-25 11:24:49 +0200 |
| commit | 9fed8d3446c0fd34df1b73e258c22bf97ecf684b (patch) | |
| tree | abef3a1f9cf8bfcb9c051873dc809075d002ea99 /main/src/cgeo/geocaching/maps/google/GoogleCacheOverlayItem.java | |
| parent | f97abf9389c3dfa292bfcff89e9a99ed7aab5a1f (diff) | |
| download | cgeo-9fed8d3446c0fd34df1b73e258c22bf97ecf684b.zip cgeo-9fed8d3446c0fd34df1b73e258c22bf97ecf684b.tar.gz cgeo-9fed8d3446c0fd34df1b73e258c22bf97ecf684b.tar.bz2 | |
fix #2725: Circles on the map only around physical stages
Diffstat (limited to 'main/src/cgeo/geocaching/maps/google/GoogleCacheOverlayItem.java')
| -rw-r--r-- | main/src/cgeo/geocaching/maps/google/GoogleCacheOverlayItem.java | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/main/src/cgeo/geocaching/maps/google/GoogleCacheOverlayItem.java b/main/src/cgeo/geocaching/maps/google/GoogleCacheOverlayItem.java index 2ac66af..b26654a 100644 --- a/main/src/cgeo/geocaching/maps/google/GoogleCacheOverlayItem.java +++ b/main/src/cgeo/geocaching/maps/google/GoogleCacheOverlayItem.java @@ -1,21 +1,20 @@ package cgeo.geocaching.maps.google; import cgeo.geocaching.IWaypoint; -import cgeo.geocaching.enumerations.CacheType; import cgeo.geocaching.maps.interfaces.CachesOverlayItemImpl; import com.google.android.maps.GeoPoint; import com.google.android.maps.OverlayItem; public class GoogleCacheOverlayItem extends OverlayItem implements CachesOverlayItemImpl { - final private CacheType cacheType; final private IWaypoint coord; + final private boolean applyDistanceRule; - public GoogleCacheOverlayItem(final IWaypoint coordinate, final CacheType type) { + public GoogleCacheOverlayItem(final IWaypoint coordinate, boolean applyDistanceRule) { super(new GeoPoint(coordinate.getCoords().getLatitudeE6(), coordinate.getCoords().getLongitudeE6()), coordinate.getName(), ""); - this.cacheType = type; this.coord = coordinate; + this.applyDistanceRule = applyDistanceRule; } @Override @@ -24,8 +23,8 @@ public class GoogleCacheOverlayItem extends OverlayItem implements CachesOverlay } @Override - public CacheType getType() { - return cacheType; + public boolean applyDistanceRule() { + return applyDistanceRule; } } |
