Class GeoPackageOverlay
java.lang.Object
mil.nga.geopackage.map.tiles.overlay.BoundedOverlay
mil.nga.geopackage.map.tiles.overlay.GeoPackageOverlay
- All Implemented Interfaces:
TileProvider
GeoPackage Map Overlay Tile Provider
-
Field Summary
Fields inherited from class mil.nga.geopackage.map.tiles.overlay.BoundedOverlay
webMercatorBoundingBox
Fields inherited from interface com.google.android.gms.maps.model.TileProvider
NO_TILE
-
Constructor Summary
ConstructorDescriptionGeoPackageOverlay
(TileDao tileDao) Constructor using GeoPackage tile sizesGeoPackageOverlay
(TileDao tileDao, float density) Constructor using the density to determine tile sizeGeoPackageOverlay
(TileDao tileDao, float density, TileScaling scaling) Constructor using the density to determine tile size and with tile scaling optionsGeoPackageOverlay
(TileDao tileDao, int width, int height) Constructor with specified tile sizeGeoPackageOverlay
(TileDao tileDao, int width, int height, TileScaling scaling) Constructor with specified tile size and tile scaling optionsGeoPackageOverlay
(TileDao tileDao, TileScaling scaling) Constructor with tile scaling options -
Method Summary
Modifier and TypeMethodDescriptionGet the tile retrieverboolean
hasTileToRetrieve
(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
-
GeoPackageOverlay
Constructor using GeoPackage tile sizes- Parameters:
tileDao
- tile dao
-
GeoPackageOverlay
Constructor using the density to determine tile size- Parameters:
tileDao
- tile daodensity
- display density:DisplayMetrics.density
- Since:
- 3.2.0
-
GeoPackageOverlay
Constructor with specified tile size- Parameters:
tileDao
- tile daowidth
- tile widthheight
- tile height
-
GeoPackageOverlay
Constructor with tile scaling options- Parameters:
tileDao
- tile daoscaling
- tile scaling options- Since:
- 2.0.2
-
GeoPackageOverlay
Constructor using the density to determine tile size and with tile scaling options- Parameters:
tileDao
- tile daodensity
- display density:DisplayMetrics.density
scaling
- tile scaling options- Since:
- 3.2.0
-
GeoPackageOverlay
Constructor with specified tile size and tile scaling options- Parameters:
tileDao
- tile daowidth
- tile widthheight
- tile heightscaling
- tile scaling options- Since:
- 2.0.2
-
-
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:
hasTileToRetrieve
in classBoundedOverlay
- Parameters:
x
- x coordinatey
- y coordinatezoom
- zoom value- Returns:
- true if there is a tile
-
retrieveTile
Retrieve the tile- Specified by:
retrieveTile
in classBoundedOverlay
- Parameters:
x
- x coordinatey
- y coordinatezoom
- zoom value- Returns:
- tile
-