Class GeoPackageOverlayFactory


  • public class GeoPackageOverlayFactory
    extends Object
    Get a tile provider for the Tile DAO
    • Constructor Detail

      • GeoPackageOverlayFactory

        public GeoPackageOverlayFactory()
    • 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 dao
        scaling - 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 dao
        density - 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 dao
        scaling - 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 dao
        density - display density: DisplayMetrics.density
        scaling - 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 dao
        overlay - 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 daos
        overlay - 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 overlay
        geoPackage - 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