public class MapViewProjection
extends java.lang.Object
Constructor and Description |
---|
MapViewProjection(MapView mapView) |
Modifier and Type | Method and Description |
---|---|
org.mapsforge.core.model.LatLong |
fromPixels(double x,
double y)
Computes the geographic coordinates of a screen point.
|
double |
getLatitudeSpan()
Computes vertical extend of the map view.
|
double |
getLongitudeSpan()
Computes horizontal extend of the map view.
|
org.mapsforge.core.model.Point |
toPixels(org.mapsforge.core.model.LatLong in)
Converts geographic coordinates to view x/y coordinates in the map view.
|
public MapViewProjection(MapView mapView)
public org.mapsforge.core.model.LatLong fromPixels(double x, double y)
public double getLatitudeSpan()
public double getLongitudeSpan()
public org.mapsforge.core.model.Point toPixels(org.mapsforge.core.model.LatLong in)
in
- the geographic coordinates