Class GeoPackageOverlayFactory
- java.lang.Object
-
- mil.nga.geopackage.map.tiles.overlay.GeoPackageOverlayFactory
-
public class GeoPackageOverlayFactory extends Object
Get a tile provider for the Tile DAO
-
-
Constructor Summary
Constructors Constructor Description GeoPackageOverlayFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BoundedOverlaygetBoundedOverlay(TileDao tileDao)Get a Bounded Overlay Tile Provider for the Tile DAOstatic BoundedOverlaygetBoundedOverlay(TileDao tileDao, float density)Get a Bounded Overlay Tile Provider for the Tile DAO with the display densitystatic BoundedOverlaygetBoundedOverlay(TileDao tileDao, float density, TileScaling scaling)Get a Bounded Overlay Tile Provider for the Tile DAO with the display density and tile creator optionsstatic BoundedOverlaygetBoundedOverlay(TileDao tileDao, TileScaling scaling)Get a Bounded Overlay Tile Provider for the Tile DAO with the tile creator optionsstatic CompositeOverlaygetCompositeOverlay(Collection<TileDao> tileDaos)Create a composite overlay by adding tile overlays for the tile DAOsstatic CompositeOverlaygetCompositeOverlay(Collection<TileDao> tileDaos, BoundedOverlay overlay)Create a composite overlay by first adding tile overlays for the tile DAOs followed by the provided overlaystatic CompositeOverlaygetCompositeOverlay(TileDao tileDao, BoundedOverlay overlay)Create a composite overlay by first adding a tile overlay for the tile DAO followed by the provided overlaystatic BoundedOverlaygetLinkedFeatureOverlay(FeatureOverlay featureOverlay, GeoPackage geoPackage)Create a composite overlay linking the feature overly withstatic TilegetTile(GeoPackageTile geoPackageTile)Get a map tile from the GeoPackage tilestatic TileProvidergetTileProvider(TileDao tileDao)Get a Tile Provider for the Tile DAOstatic TileProvidergetTileProvider(TileDao tileDao, TileScaling scaling)Get a Tile Provider for the Tile DAO with the tile creator options
-
-
-
Method Detail
-
getTileProvider
public static TileProvider getTileProvider(TileDao tileDao)
Get a Tile Provider for the Tile DAO- Parameters:
tileDao- tile dao- Returns:
- tile provider
-
getTileProvider
public static TileProvider getTileProvider(TileDao tileDao, TileScaling scaling)
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
public static BoundedOverlay getBoundedOverlay(TileDao tileDao)
Get a Bounded Overlay Tile Provider for the Tile DAO- Parameters:
tileDao- tile dao- Returns:
- bounded overlay
- Since:
- 1.2.5
-
getBoundedOverlay
public static BoundedOverlay getBoundedOverlay(TileDao tileDao, float density)
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
public static BoundedOverlay getBoundedOverlay(TileDao tileDao, TileScaling scaling)
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
public static 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 options- Parameters:
tileDao- tile daodensity- display density:DisplayMetrics.densityscaling- tile scaling options- Returns:
- bounded overlay
- Since:
- 3.2.0
-
getCompositeOverlay
public static CompositeOverlay getCompositeOverlay(TileDao tileDao, BoundedOverlay overlay)
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
public static CompositeOverlay getCompositeOverlay(Collection<TileDao> tileDaos)
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
public static Tile getTile(GeoPackageTile geoPackageTile)
Get a map tile from the GeoPackage tile- Parameters:
geoPackageTile- GeoPackage tile- Returns:
- tile
-
-