Class CylindricalProjectionTileFactory

java.lang.Object

public class CylindricalProjectionTileFactory
extends DefaultTileFactory
  • Constructor Details

  • Method Details

    • geoToPixel

      public java.awt.geom.Point2D geoToPixel​(GeoPosition c, int zoom)
      Description copied from class: TileFactory
      Convert a GeoPosition to a pixel position in the world bitmap a the specified zoom level.
      Overrides:
      geoToPixel in class TileFactory
      Parameters:
      c - a GeoPosition
      zoom - the zoom level to extract the pixel coordinate for
      Returns:
      the pixel point
    • pixelToGeo

      public GeoPosition pixelToGeo​(java.awt.geom.Point2D pix, int zoom)
      Description copied from class: TileFactory
      Convert a pixel in the world bitmap at the specified zoom level into a GeoPosition
      Overrides:
      pixelToGeo in class TileFactory
      Parameters:
      pix - a Point2D representing a pixel in the world bitmap
      zoom - the zoom level of the world bitmap
      Returns:
      the converted GeoPosition