diff options
Diffstat (limited to 'main/src/cgeo/geocaching/maps/google/v1/GoogleMapProjection.java')
| -rw-r--r-- | main/src/cgeo/geocaching/maps/google/v1/GoogleMapProjection.java | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/main/src/cgeo/geocaching/maps/google/v1/GoogleMapProjection.java b/main/src/cgeo/geocaching/maps/google/v1/GoogleMapProjection.java new file mode 100644 index 0000000..901a369 --- /dev/null +++ b/main/src/cgeo/geocaching/maps/google/v1/GoogleMapProjection.java @@ -0,0 +1,29 @@ +package cgeo.geocaching.maps.google.v1; + +import cgeo.geocaching.maps.interfaces.GeoPointImpl; +import cgeo.geocaching.maps.interfaces.MapProjectionImpl; + +import com.google.android.maps.GeoPoint; +import com.google.android.maps.Projection; + +import android.graphics.Point; + +public class GoogleMapProjection implements MapProjectionImpl { + + private Projection projection; + + public GoogleMapProjection(Projection projectionIn) { + projection = projectionIn; + } + + @Override + public void toPixels(GeoPointImpl leftGeo, Point left) { + projection.toPixels((GeoPoint) leftGeo, left); + } + + @Override + public Object getImpl() { + return projection; + } + +} |
