blob: a042eca7fe0c35ffcec1c8ce6c8869ea02f52f62 (
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 final Projection projection;
public MapsforgeMapProjection(final Projection projectionIn) {
projection = projectionIn;
}
@Override
public void toPixels(final GeoPointImpl leftGeo, final Point left) {
projection.toPixels((GeoPoint) leftGeo, left);
}
@Override
public Object getImpl() {
return projection;
}
}
|