Interface Projection
- All Known Implementing Classes:
MercatorProjection
public interface Projection
An interface to convert latitude/longitude pairs to X/Y coordinates.
- Since:
- 5.0
- Version:
- 7.0
- Author:
- Luke
-
Method Summary
Modifier and TypeMethodDescriptiongetAddress
(GeoLocation loc) Returns the address of a Tile containing the provided point.getGeoPosition
(int x, int y) Returns the latitude/longitude of a pixel on the global canvas.Returns the pixel address of the provided point on the global canvas.int
Returns the zoom level.
-
Method Details
-
getZoomLevel
int getZoomLevel()Returns the zoom level.- Returns:
- the zoom level
-
getAddress
Returns the address of a Tile containing the provided point.- Parameters:
loc
- the GeoLocation- Returns:
- the TileAddress of the Tile containing this point at the current zoom level
-
getPixelAddress
Returns the pixel address of the provided point on the global canvas.- Parameters:
loc
- the GeoLocation- Returns:
- a Point with the pixel coordinates
-
getGeoPosition
Returns the latitude/longitude of a pixel on the global canvas.- Parameters:
x
- the X coordinatey
- the Y coordinate- Returns:
- a GeoLocation object
-