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 Details

    • getZoomLevel

      int getZoomLevel()
      Returns the zoom level.
      Returns:
      the zoom level
    • getAddress

      TileAddress getAddress(GeoLocation loc)
      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

      Point getPixelAddress(GeoLocation loc)
      Returns the pixel address of the provided point on the global canvas.
      Parameters:
      loc - the GeoLocation
      Returns:
      a Point with the pixel coordinates
    • getGeoPosition

      GeoLocation getGeoPosition(int x, int y)
      Returns the latitude/longitude of a pixel on the global canvas.
      Parameters:
      x - the X coordinate
      y - the Y coordinate
      Returns:
      a GeoLocation object