Class CompositeOverlay

java.lang.Object
mil.nga.geopackage.map.tiles.overlay.BoundedOverlay
mil.nga.geopackage.map.tiles.overlay.CompositeOverlay
All Implemented Interfaces:
TileProvider

public class CompositeOverlay extends BoundedOverlay
Composite overlay comprised of multiple overlays, checking each in order for a tile
  • Constructor Details

    • CompositeOverlay

      public CompositeOverlay()
      Constructor
    • CompositeOverlay

      public CompositeOverlay(BoundedOverlay overlay)
      Constructor
      Parameters:
      overlay - first overlay
    • CompositeOverlay

      public CompositeOverlay(Collection<BoundedOverlay> overlays)
      Constructor
      Parameters:
      overlays - ordered overlays
  • Method Details

    • addOverlay

      public void addOverlay(BoundedOverlay overlay)
      Add an overlay
      Parameters:
      overlay - bounded overlay
    • addOverlays

      public void addOverlays(Collection<BoundedOverlay> overlays)
      Add overlays
      Parameters:
      overlays - ordered overlays
    • clearOverlays

      public void clearOverlays()
      Clear the overlays
    • hasTileToRetrieve

      protected 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

      protected 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