Class WebMercatorTileFactory

  • Direct Known Subclasses:
    OSMTileFactory

    public abstract class WebMercatorTileFactory
    extends TileFactory
    The WebMercatorTileFactory is an abstract class that holds some of the tile calculation logic for Mercator-based tile services.

    OpenStreetMap Wiki http://wiki.openstreetmap.org/wiki/Slippy_map_tilenames#Java

    Since:
    12
    Author:
    Ugo Taddei
    • Constructor Detail

      • WebMercatorTileFactory

        public WebMercatorTileFactory()
    • Method Detail

      • getZoomLevel

        public ZoomLevel getZoomLevel​(int zoomLevel,
                                      TileService wmtSource)
        Description copied from class: TileFactory
        Gets the ZoomLevel (object) for a given zoom level integer.
        Specified by:
        getZoomLevel in class TileFactory
        Parameters:
        zoomLevel - the zoom level
        wmtSource - the service
        Returns:
        a zoom level
      • tile2lon

        public static final double tile2lon​(double x,
                                            int z)
      • tile2lat

        public static final double tile2lat​(double y,
                                            int z)