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
webMercatorBoundingBoxFields inherited from interface com.google.android.gms.maps.model.TileProvider
NO_TILE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidClear all ignored tile tablesGet the feature tilesprotected BoundingBoxgetWebMercatorBoundingBox(BoundingBox requestWebMercatorBoundingBox) Get the bounded overlay web mercator bounding box expanded as needed by the requested bounding box dimensionsbooleanhasTileToRetrieve(int x, int y, int zoom) Check if there is a tile to retrievevoidignoreTileDao(TileDao tileDao) Ignore drawing tiles if they exist in the tile table represented by the tile daovoidignoreTileDaos(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:
getWebMercatorBoundingBoxin 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:
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
-
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
-