|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Projection
A Projection serves to translate between the coordinate system of
x/y on-screen pixel coordinates and that of latitude/longitude
points on the surface of the earth.
You obtain a Projection from MapView.getProjection()
.
Method Summary | |
---|---|
GeoPoint |
fromPixels(int x,
int y)
Create a new GeoPoint from pixel coordinates relative to
the top-left of the MapView that provided this PixelConverter. |
float |
metersToEquatorPixels(float meters)
Converts a distance in meters (along the equator) to one in (horizontal) pixels at the current zoomlevel. |
android.graphics.Point |
toPixels(GeoPoint in,
android.graphics.Point out)
Converts the given GeoPoint to onscreen pixel coordinates,
relative to the top-left of the MapView that provided
this Projection. |
Method Detail |
---|
android.graphics.Point toPixels(GeoPoint in, android.graphics.Point out)
GeoPoint
to onscreen pixel coordinates,
relative to the top-left of the MapView
that provided
this Projection.
in
- The latitude/longitude pair to convert.out
- A pre-existing object to use for the output; if
null, a new Point will be allocated and returned.GeoPoint fromPixels(int x, int y)
GeoPoint
from pixel coordinates relative to
the top-left of the MapView
that provided this PixelConverter.
float metersToEquatorPixels(float meters)
meters
- the distance in meters
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |