blob: 9d36b7d6de4f9eea2507a09e3483a35f4871956a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
package cgeo.geocaching.maps.mapsforge.v024;
import cgeo.geocaching.maps.interfaces.GeoPointImpl;
import cgeo.geocaching.maps.interfaces.MapProjectionImpl;
import org.mapsforge.android.mapsold.GeoPoint;
import org.mapsforge.android.mapsold.Projection;
import android.graphics.Point;
public class MapsforgeMapProjection implements MapProjectionImpl {
private Projection projection;
public MapsforgeMapProjection(Projection projectionIn) {
projection = projectionIn;
}
@Override
public void toPixels(GeoPointImpl leftGeo, Point left) {
projection.toPixels((GeoPoint) leftGeo, left);
}
@Override
public Object getImpl() {
return projection;
}
}
|