Class FeatureOverlay
- java.lang.Object
-
- mil.nga.geopackage.map.tiles.overlay.BoundedOverlay
-
- mil.nga.geopackage.map.tiles.overlay.FeatureOverlay
-
- All Implemented Interfaces:
TileProvider
public class FeatureOverlay extends BoundedOverlay
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
Constructors Constructor Description FeatureOverlay(FeatureTiles featureTiles)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclearIgnored()Clear all ignored tile tablesFeatureTilesgetFeatureTiles()Get 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 daosTileretrieveTile(int x, int y, int zoom)Retrieve the tile-
Methods inherited from class mil.nga.geopackage.map.tiles.overlay.BoundedOverlay
getBoundingBox, getMaxZoom, getMinZoom, getTile, getWebMercatorBoundingBox, hasTile, isWithinBoundingBox, isWithinBounds, isWithinZoom, setBoundingBox, setMaxZoom, setMinZoom
-
-
-
-
Constructor Detail
-
FeatureOverlay
public FeatureOverlay(FeatureTiles featureTiles)
Constructor- Parameters:
featureTiles- feature tiles
-
-
Method Detail
-
getFeatureTiles
public FeatureTiles getFeatureTiles()
Get the feature tiles- Returns:
- feature tiles
- Since:
- 1.1.0
-
getWebMercatorBoundingBox
protected BoundingBox getWebMercatorBoundingBox(BoundingBox requestWebMercatorBoundingBox)
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
public Tile retrieveTile(int x, int y, int zoom)
Retrieve the tile- Specified by:
retrieveTilein classBoundedOverlay- Parameters:
x- x coordinatey- y coordinatezoom- zoom value- Returns:
- tile
-
ignoreTileDaos
public void ignoreTileDaos(List<TileDao> tileDaos)
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
public void ignoreTileDao(TileDao tileDao)
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
-
-