aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/maps/google/GoogleOverlay.java
diff options
context:
space:
mode:
Diffstat (limited to 'main/src/cgeo/geocaching/maps/google/GoogleOverlay.java')
-rw-r--r--main/src/cgeo/geocaching/maps/google/GoogleOverlay.java18
1 files changed, 4 insertions, 14 deletions
diff --git a/main/src/cgeo/geocaching/maps/google/GoogleOverlay.java b/main/src/cgeo/geocaching/maps/google/GoogleOverlay.java
index bf4f606..e937773 100644
--- a/main/src/cgeo/geocaching/maps/google/GoogleOverlay.java
+++ b/main/src/cgeo/geocaching/maps/google/GoogleOverlay.java
@@ -1,7 +1,6 @@
package cgeo.geocaching.maps.google;
-import cgeo.geocaching.maps.PositionOverlay;
-import cgeo.geocaching.maps.ScaleOverlay;
+import cgeo.geocaching.maps.PositionAndScaleOverlay;
import cgeo.geocaching.maps.interfaces.GeneralOverlay;
import cgeo.geocaching.maps.interfaces.MapViewImpl;
import cgeo.geocaching.maps.interfaces.OverlayImpl;
@@ -17,20 +16,11 @@ import java.util.concurrent.locks.ReentrantLock;
public class GoogleOverlay extends Overlay implements OverlayImpl {
- private GeneralOverlay overlayBase = null;
+ private PositionAndScaleOverlay overlayBase = null;
private Lock lock = new ReentrantLock();
- public GoogleOverlay(Activity activityIn, OverlayType ovlType) {
- switch (ovlType) {
- case PositionOverlay:
- overlayBase = new PositionOverlay(activityIn, this);
- break;
- case ScaleOverlay:
- overlayBase = new ScaleOverlay(activityIn, this);
- break;
- default:
- throw new IllegalArgumentException();
- }
+ public GoogleOverlay(Activity activityIn) {
+ overlayBase = new PositionAndScaleOverlay(activityIn, this);
}
@Override