blob: 68d7123df34f0224aeade3d9665d394a94beb01a (
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;
import cgeo.geocaching.maps.interfaces.GeoPointImpl;
import cgeo.geocaching.maps.interfaces.MapProjectionImpl;
import org.mapsforge.android.maps.Projection;
import org.mapsforge.core.GeoPoint;
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;
}
}
|