Class GeoPackageOverlayFactory
java.lang.Object
mil.nga.geopackage.map.tiles.overlay.GeoPackageOverlayFactory
Get a tile provider for the Tile DAO
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic BoundedOverlay
getBoundedOverlay
(Context context, GeoPackage geoPackage, String table) Get a Bounded Overlay Tile Provider for a tile or feature tablestatic BoundedOverlay
getBoundedOverlay
(Context context, GeoPackage geoPackage, String table, float density) Get a Bounded Overlay Tile Provider for a tile or feature tablestatic BoundedOverlay
getBoundedOverlay
(Context context, GeoPackage geoPackage, UserDao<?, ?, ?, ?> userDao) Get a Bounded Overlay Tile Provider for a tile or feature DAOstatic BoundedOverlay
getBoundedOverlay
(Context context, GeoPackage geoPackage, UserDao<?, ?, ?, ?> userDao, float density) Get a Bounded Overlay Tile Provider for a tile or feature DAOstatic BoundedOverlay
getBoundedOverlay
(TileDao tileDao) Get a Bounded Overlay Tile Provider for the Tile DAOstatic BoundedOverlay
getBoundedOverlay
(TileDao tileDao, float density) Get a Bounded Overlay Tile Provider for the Tile DAO with the display densitystatic BoundedOverlay
getBoundedOverlay
(TileDao tileDao, float density, TileScaling scaling) Get a Bounded Overlay Tile Provider for the Tile DAO with the display density and tile creator optionsstatic BoundedOverlay
getBoundedOverlay
(TileDao tileDao, TileScaling scaling) Get a Bounded Overlay Tile Provider for the Tile DAO with the tile creator optionsstatic CompositeOverlay
getCompositeOverlay
(Collection<TileDao> tileDaos) Create a composite overlay by adding tile overlays for the tile DAOsstatic CompositeOverlay
getCompositeOverlay
(Collection<TileDao> tileDaos, BoundedOverlay overlay) Create a composite overlay by first adding tile overlays for the tile DAOs followed by the provided overlaystatic CompositeOverlay
getCompositeOverlay
(TileDao tileDao, BoundedOverlay overlay) Create a composite overlay by first adding a tile overlay for the tile DAO followed by the provided overlaystatic BoundedOverlay
getLinkedFeatureOverlay
(FeatureOverlay featureOverlay, GeoPackage geoPackage) Create a composite overlay linking the feature overly withstatic Tile
getTile
(GeoPackageTile geoPackageTile) Get a map tile from the GeoPackage tilestatic TileProvider
getTileProvider
(Context context, GeoPackage geoPackage, String table) Get a Tile Provider for a tile or feature tablestatic TileProvider
getTileProvider
(Context context, GeoPackage geoPackage, String table, float density) Get a Tile Provider for a tile or feature tablestatic TileProvider
getTileProvider
(Context context, GeoPackage geoPackage, UserDao<?, ?, ?, ?> userDao) Get a Tile Provider for a tile or feature DAOstatic TileProvider
getTileProvider
(Context context, GeoPackage geoPackage, UserDao<?, ?, ?, ?> userDao, float density) Get a Tile Provider for a tile or feature DAOstatic TileProvider
getTileProvider
(TileDao tileDao) Get a Tile Provider for the Tile DAOstatic TileProvider
getTileProvider
(TileDao tileDao, TileScaling scaling) Get a Tile Provider for the Tile DAO with the tile creator options
-
Constructor Details
-
GeoPackageOverlayFactory
public GeoPackageOverlayFactory()
-
-
Method Details
-
getTileProvider
Get a Tile Provider for the Tile DAO- Parameters:
tileDao
- tile dao- Returns:
- tile provider
-
getTileProvider
Get a Tile Provider for the Tile DAO with the tile creator options- Parameters:
tileDao
- tile daoscaling
- tile scaling options- Returns:
- tile provider
- Since:
- 2.0.2
-
getBoundedOverlay
Get a Bounded Overlay Tile Provider for the Tile DAO- Parameters:
tileDao
- tile dao- Returns:
- bounded overlay
- Since:
- 1.2.5
-
getBoundedOverlay
Get a Bounded Overlay Tile Provider for the Tile DAO with the display density- Parameters:
tileDao
- tile daodensity
- display density:DisplayMetrics.density
- Returns:
- bounded overlay
- Since:
- 3.2.0
-
getBoundedOverlay
Get a Bounded Overlay Tile Provider for the Tile DAO with the tile creator options- Parameters:
tileDao
- tile daoscaling
- tile scaling options- Returns:
- bounded overlay
- Since:
- 2.0.2
-
getBoundedOverlay
Get a Bounded Overlay Tile Provider for the Tile DAO with the display density and tile creator options- Parameters:
tileDao
- tile daodensity
- display density:DisplayMetrics.density
scaling
- tile scaling options- Returns:
- bounded overlay
- Since:
- 3.2.0
-
getCompositeOverlay
Create a composite overlay by first adding a tile overlay for the tile DAO followed by the provided overlay- Parameters:
tileDao
- tile daooverlay
- bounded overlay- Returns:
- composite overlay
-
getCompositeOverlay
public static CompositeOverlay getCompositeOverlay(Collection<TileDao> tileDaos, BoundedOverlay overlay) Create a composite overlay by first adding tile overlays for the tile DAOs followed by the provided overlay- Parameters:
tileDaos
- collection of tile daosoverlay
- bounded overlay- Returns:
- composite overlay
-
getCompositeOverlay
Create a composite overlay by adding tile overlays for the tile DAOs- Parameters:
tileDaos
- collection of tile daos- Returns:
- composite overlay
-
getLinkedFeatureOverlay
public static BoundedOverlay getLinkedFeatureOverlay(FeatureOverlay featureOverlay, GeoPackage geoPackage) Create a composite overlay linking the feature overly with- Parameters:
featureOverlay
- feature overlaygeoPackage
- GeoPackage- Returns:
- linked bounded overlay
-
getTile
Get a map tile from the GeoPackage tile- Parameters:
geoPackageTile
- GeoPackage tile- Returns:
- tile
-
getTileProvider
Get a Tile Provider for a tile or feature table- Parameters:
context
- contextgeoPackage
- GeoPackagetable
- tile or feature table- Returns:
- tile provider
- Since:
- 6.7.4
-
getBoundedOverlay
public static BoundedOverlay getBoundedOverlay(Context context, GeoPackage geoPackage, String table) Get a Bounded Overlay Tile Provider for a tile or feature table- Parameters:
context
- contextgeoPackage
- GeoPackagetable
- tile or feature table- Returns:
- bounded overlay
- Since:
- 6.7.4
-
getTileProvider
public static TileProvider getTileProvider(Context context, GeoPackage geoPackage, String table, float density) Get a Tile Provider for a tile or feature table- Parameters:
context
- contextgeoPackage
- GeoPackagetable
- tile or feature tabledensity
- display density:DisplayMetrics.density
- Returns:
- tile provider
- Since:
- 6.7.4
-
getBoundedOverlay
public static BoundedOverlay getBoundedOverlay(Context context, GeoPackage geoPackage, String table, float density) Get a Bounded Overlay Tile Provider for a tile or feature table- Parameters:
context
- contextgeoPackage
- GeoPackagetable
- tile or feature tabledensity
- display density:DisplayMetrics.density
- Returns:
- bounded overlay
- Since:
- 6.7.4
-
getTileProvider
public static TileProvider getTileProvider(Context context, GeoPackage geoPackage, UserDao<?, ?, ?, ?> userDao) Get a Tile Provider for a tile or feature DAO- Parameters:
context
- contextgeoPackage
- GeoPackageuserDao
- user DAO- Returns:
- tile provider
- Since:
- 6.7.4
-
getBoundedOverlay
public static BoundedOverlay getBoundedOverlay(Context context, GeoPackage geoPackage, UserDao<?, ?, ?, ?> userDao) Get a Bounded Overlay Tile Provider for a tile or feature DAO- Parameters:
context
- contextgeoPackage
- GeoPackageuserDao
- user DAO- Returns:
- bounded overlay
- Since:
- 6.7.4
-
getTileProvider
public static TileProvider getTileProvider(Context context, GeoPackage geoPackage, UserDao<?, ?, ?, ?> userDao, float density) Get a Tile Provider for a tile or feature DAO- Parameters:
context
- contextgeoPackage
- GeoPackageuserDao
- user DAOdensity
- display density:DisplayMetrics.density
- Returns:
- tile provider
- Since:
- 6.7.4
-
getBoundedOverlay
public static BoundedOverlay getBoundedOverlay(Context context, GeoPackage geoPackage, UserDao<?, ?, ?, ?> userDao, float density) Get a Bounded Overlay Tile Provider for a tile or feature DAO- Parameters:
context
- contextgeoPackage
- GeoPackageuserDao
- user DAOdensity
- display density:DisplayMetrics.density
- Returns:
- bounded overlay
- Since:
- 6.7.4
-