Class FeatureOverlay

  • All Implemented Interfaces:
    TileProvider

    public class FeatureOverlay
    extends BoundedOverlay
    Feature overlay which draws tiles from a feature table
    • 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:
        getWebMercatorBoundingBox in class BoundedOverlay
        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:
        hasTileToRetrieve in class BoundedOverlay
        Parameters:
        x - x coordinate
        y - y coordinate
        zoom - zoom value
        Returns:
        true if there is a tile
      • retrieveTile

        public Tile retrieveTile​(int x,
                                 int y,
                                 int zoom)
        Retrieve the tile
        Specified by:
        retrieveTile in class BoundedOverlay
        Parameters:
        x - x coordinate
        y - y coordinate
        zoom - 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