类 CylindricalProjectionTileFactory

    • 构造器详细资料

      • CylindricalProjectionTileFactory

        public CylindricalProjectionTileFactory()
      • CylindricalProjectionTileFactory

        public CylindricalProjectionTileFactory​(SLMapServerInfo info)
    • 方法详细资料

      • getMapSize

        public java.awt.Dimension getMapSize​(int zoom)
        从类复制的说明: 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
        覆盖:
        getMapSize 在类中 TileFactory
        参数:
        zoom - the current zoom level
        返回:
        the size of the world bitmap in tiles
      • geoToPixel

        public java.awt.geom.Point2D geoToPixel​(GeoPosition c,
                                                int zoom)
        从类复制的说明: TileFactory
        Convert a GeoPosition to a pixel position in the world bitmap a the specified zoom level.
        覆盖:
        geoToPixel 在类中 TileFactory
        参数:
        c - a GeoPosition
        zoom - the zoom level to extract the pixel coordinate for
        返回:
        the pixel point
      • pixelToGeo

        public GeoPosition pixelToGeo​(java.awt.geom.Point2D pix,
                                      int zoom)
        从类复制的说明: TileFactory
        Convert a pixel in the world bitmap at the specified zoom level into a GeoPosition
        覆盖:
        pixelToGeo 在类中 TileFactory
        参数:
        pix - a Point2D representing a pixel in the world bitmap
        zoom - the zoom level of the world bitmap
        返回:
        the converted GeoPosition