Class GeoPackageOverlay

java.lang.Object
mil.nga.geopackage.map.tiles.overlay.BoundedOverlay
mil.nga.geopackage.map.tiles.overlay.GeoPackageOverlay
All Implemented Interfaces:
TileProvider

public class GeoPackageOverlay extends BoundedOverlay
GeoPackage Map Overlay Tile Provider
  • Constructor Details

    • GeoPackageOverlay

      public GeoPackageOverlay(TileDao tileDao)
      Constructor using GeoPackage tile sizes
      Parameters:
      tileDao - tile dao
    • GeoPackageOverlay

      public GeoPackageOverlay(TileDao tileDao, float density)
      Constructor using the density to determine tile size
      Parameters:
      tileDao - tile dao
      density - display density: DisplayMetrics.density
      Since:
      3.2.0
    • GeoPackageOverlay

      public GeoPackageOverlay(TileDao tileDao, int width, int height)
      Constructor with specified tile size
      Parameters:
      tileDao - tile dao
      width - tile width
      height - tile height
    • GeoPackageOverlay

      public GeoPackageOverlay(TileDao tileDao, TileScaling scaling)
      Constructor with tile scaling options
      Parameters:
      tileDao - tile dao
      scaling - tile scaling options
      Since:
      2.0.2
    • GeoPackageOverlay

      public GeoPackageOverlay(TileDao tileDao, float density, TileScaling scaling)
      Constructor using the density to determine tile size and with tile scaling options
      Parameters:
      tileDao - tile dao
      density - display density: DisplayMetrics.density
      scaling - tile scaling options
      Since:
      3.2.0
    • GeoPackageOverlay

      public GeoPackageOverlay(TileDao tileDao, int width, int height, TileScaling scaling)
      Constructor with specified tile size and tile scaling options
      Parameters:
      tileDao - tile dao
      width - tile width
      height - tile height
      scaling - tile scaling options
      Since:
      2.0.2
  • Method Details

    • getRetriever

      public TileRetriever getRetriever()
      Get the tile retriever
      Returns:
      retriever
      Since:
      6.7.4
    • hasTileToRetrieve

      public boolean hasTileToRetrieve(int x, int y, int zoom)
      Check if there is a tile to retrieve
      Specified by:
      hasTileToRetrieve in class BoundedOverlay
      Parameters:
      x - x coordinate
      y - y coordinate
      zoom - zoom value
      Returns:
      true if there is a tile
    • retrieveTile

      public Tile retrieveTile(int x, int y, int zoom)
      Retrieve the tile
      Specified by:
      retrieveTile in class BoundedOverlay
      Parameters:
      x - x coordinate
      y - y coordinate
      zoom - zoom value
      Returns:
      tile