Class CylindricalProjectionTileFactory

    • Constructor Detail

      • CylindricalProjectionTileFactory

        public CylindricalProjectionTileFactory​()
      • CylindricalProjectionTileFactory

        public CylindricalProjectionTileFactory​(SLMapServerInfo info)
    • Method Detail

      • getMapSize

        public java.awt.Dimension getMapSize​(int zoom)
        Description copied from class: TileFactory
        Returns a Dimension containing the width and height of the map, in tiles at the current zoom level. So a Dimension that returns 10x20 would be 10 tiles wide and 20 tiles tall. These values can be multipled by getTileSize() to determine the pixel width/height for the map at the given zoom level
        Overrides:
        getMapSize in class TileFactory
        Parameters:
        zoom - the current zoom level
        Returns:
        the size of the world bitmap in tiles
      • 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