diff options
Diffstat (limited to 'main/src/cgeo/geocaching/maps/google/v1/GoogleOverlay.java')
-rw-r--r-- | main/src/cgeo/geocaching/maps/google/v1/GoogleOverlay.java | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/main/src/cgeo/geocaching/maps/google/v1/GoogleOverlay.java b/main/src/cgeo/geocaching/maps/google/v1/GoogleOverlay.java deleted file mode 100644 index 415de1f..0000000 --- a/main/src/cgeo/geocaching/maps/google/v1/GoogleOverlay.java +++ /dev/null @@ -1,55 +0,0 @@ -package cgeo.geocaching.maps.google.v1; - -import cgeo.geocaching.location.Geopoint; -import cgeo.geocaching.maps.PositionAndScaleOverlay; -import cgeo.geocaching.maps.interfaces.GeneralOverlay; -import cgeo.geocaching.maps.interfaces.MapViewImpl; -import cgeo.geocaching.maps.interfaces.OverlayImpl; - -import com.google.android.maps.MapView; -import com.google.android.maps.Overlay; - -import android.graphics.Canvas; - -import java.util.concurrent.locks.Lock; -import java.util.concurrent.locks.ReentrantLock; - -public class GoogleOverlay extends Overlay implements OverlayImpl { - - private PositionAndScaleOverlay overlayBase = null; - private final Lock lock = new ReentrantLock(); - - public GoogleOverlay(final MapViewImpl mapView, final Geopoint coords, final String geocode) { - overlayBase = new PositionAndScaleOverlay(this, mapView, coords, geocode); - } - - @Override - public void draw(final Canvas canvas, final MapView mapView, final boolean shadow) { - super.draw(canvas, mapView, shadow); - - if (overlayBase != null) { - assert mapView instanceof MapViewImpl; - overlayBase.draw(canvas, (MapViewImpl) mapView, shadow); - } - } - - public GeneralOverlay getBase() { - return overlayBase; - } - - @Override - public void lock() { - lock.lock(); - } - - @Override - public void unlock() { - lock.unlock(); - } - - @Override - public MapViewImpl getMapViewImpl() { - throw new UnsupportedOperationException(); - } - -} |