Class FeatureOverlay
java.lang.Object
mil.nga.geopackage.map.tiles.overlay.BoundedOverlay
mil.nga.geopackage.map.tiles.overlay.FeatureOverlay
- All Implemented Interfaces:
TileProvider
Feature overlay which draws tiles from a feature table
-
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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Clear all ignored tile tablesGet the feature tilesprotected BoundingBox
getWebMercatorBoundingBox
(BoundingBox requestWebMercatorBoundingBox) Get the bounded overlay web mercator bounding box expanded as needed by the requested bounding box dimensionsboolean
hasTileToRetrieve
(int x, int y, int zoom) Check if there is a tile to retrievevoid
ignoreTileDao
(TileDao tileDao) Ignore drawing tiles if they exist in the tile table represented by the tile daovoid
ignoreTileDaos
(List<TileDao> tileDaos) Ignore drawing tiles if they exist in the tile tables represented by the tile daosretrieveTile
(int x, int y, int zoom) Retrieve the tileMethods inherited from class mil.nga.geopackage.map.tiles.overlay.BoundedOverlay
getBoundingBox, getMaxZoom, getMinZoom, getTile, getWebMercatorBoundingBox, hasTile, isWithinBoundingBox, isWithinBounds, isWithinZoom, setBoundingBox, setMaxZoom, setMinZoom
-
Constructor Details
-
FeatureOverlay
Constructor- Parameters:
featureTiles
- feature tiles
-
-
Method Details
-
getFeatureTiles
Get the feature tiles- Returns:
- feature tiles
- Since:
- 1.1.0
-
getWebMercatorBoundingBox
Get the bounded overlay web mercator bounding box expanded as needed by the requested bounding box dimensions- Overrides:
getWebMercatorBoundingBox
in classBoundedOverlay
- Parameters:
requestWebMercatorBoundingBox
- requested web mercator bounding box- Returns:
- web mercator bounding box
-
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
-
ignoreTileDaos
Ignore drawing tiles if they exist in the tile tables represented by the tile daos- Parameters:
tileDaos
- tile data access objects- Since:
- 1.2.6
-
ignoreTileDao
Ignore drawing tiles if they exist in the tile table represented by the tile dao- Parameters:
tileDao
- tile data access object- Since:
- 1.2.6
-
clearIgnored
public void clearIgnored()Clear all ignored tile tables- Since:
- 1.2.6
-