Class CompositeOverlay
java.lang.Object
mil.nga.geopackage.map.tiles.overlay.BoundedOverlay
mil.nga.geopackage.map.tiles.overlay.CompositeOverlay
- All Implemented Interfaces:
TileProvider
Composite overlay comprised of multiple overlays, checking each in order for a tile
-
Field Summary
Fields inherited from class mil.nga.geopackage.map.tiles.overlay.BoundedOverlay
webMercatorBoundingBoxFields inherited from interface com.google.android.gms.maps.model.TileProvider
NO_TILE -
Constructor Summary
ConstructorsConstructorDescriptionConstructorCompositeOverlay(Collection<BoundedOverlay> overlays) ConstructorCompositeOverlay(BoundedOverlay overlay) Constructor -
Method Summary
Modifier and TypeMethodDescriptionvoidaddOverlay(BoundedOverlay overlay) Add an overlayvoidaddOverlays(Collection<BoundedOverlay> overlays) Add overlaysvoidClear the overlaysprotected booleanhasTileToRetrieve(int x, int y, int zoom) Check if there is a tile to retrieveprotected TileretrieveTile(int x, int y, int zoom) Retrieve the tileMethods inherited from class mil.nga.geopackage.map.tiles.overlay.BoundedOverlay
getBoundingBox, getMaxZoom, getMinZoom, getTile, getWebMercatorBoundingBox, getWebMercatorBoundingBox, hasTile, isWithinBoundingBox, isWithinBounds, isWithinZoom, setBoundingBox, setMaxZoom, setMinZoom
-
Constructor Details
-
CompositeOverlay
public CompositeOverlay()Constructor -
CompositeOverlay
Constructor- Parameters:
overlay- first overlay
-
CompositeOverlay
Constructor- Parameters:
overlays- ordered overlays
-
-
Method Details
-
addOverlay
Add an overlay- Parameters:
overlay- bounded overlay
-
addOverlays
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:
hasTileToRetrievein classBoundedOverlay- Parameters:
x- x coordinatey- y coordinatezoom- zoom value- Returns:
- true if there is a tile
-
retrieveTile
Retrieve the tile- Specified by:
retrieveTilein classBoundedOverlay- Parameters:
x- x coordinatey- y coordinatezoom- zoom value- Returns:
- tile
-