Class XYZGeoPackageOverlay
java.lang.Object
mil.nga.geopackage.map.tiles.overlay.BoundedOverlay
mil.nga.geopackage.map.tiles.overlay.XYZGeoPackageOverlay
- All Implemented Interfaces:
TileProvider
XYZ GeoPackage Map Overlay Tile Provider, assumes XYZ tiles
-
Field Summary
Fields inherited from class mil.nga.geopackage.map.tiles.overlay.BoundedOverlay
webMercatorBoundingBoxFields inherited from interface com.google.android.gms.maps.model.TileProvider
NO_TILE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the tile retrieverbooleanhasTileToRetrieve(int x, int y, int zoom) Check if there is a tile to retrieveretrieveTile(int x, int y, int zoom) Retrieve the tileMethods inherited from class mil.nga.geopackage.map.tiles.overlay.BoundedOverlay
getBoundingBox, getMaxZoom, getMinZoom, getTile, getWebMercatorBoundingBox, getWebMercatorBoundingBox, hasTile, isWithinBoundingBox, isWithinBounds, isWithinZoom, setBoundingBox, setMaxZoom, setMinZoom
-
Constructor Details
-
XYZGeoPackageOverlay
Constructor- Parameters:
tileDao- tile dao
-
-
Method Details
-
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:
hasTileToRetrievein classBoundedOverlay- Parameters:
x- x coordinatey- y coordinatezoom- zoom value- Returns:
- true if there is a tile
-
retrieveTile
Retrieve the tile- Specified by:
retrieveTilein classBoundedOverlay- Parameters:
x- x coordinatey- y coordinatezoom- zoom value- Returns:
- tile
-