diff options
Diffstat (limited to 'src/cgeo/geocaching/googlemaps/googleMapProjection.java')
| -rw-r--r-- | src/cgeo/geocaching/googlemaps/googleMapProjection.java | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/cgeo/geocaching/googlemaps/googleMapProjection.java b/src/cgeo/geocaching/googlemaps/googleMapProjection.java new file mode 100644 index 0000000..476d78d --- /dev/null +++ b/src/cgeo/geocaching/googlemaps/googleMapProjection.java @@ -0,0 +1,28 @@ +package cgeo.geocaching.googlemaps; + +import com.google.android.maps.GeoPoint; +import com.google.android.maps.Projection; + +import android.graphics.Point; +import cgeo.geocaching.mapinterfaces.GeoPointImpl; +import cgeo.geocaching.mapinterfaces.MapProjectionImpl; + +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; + } + +} |
