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
webMercatorBoundingBox
Fields inherited from interface com.google.android.gms.maps.model.TileProvider
NO_TILE
-
Constructor Summary
ConstructorDescriptionConstructorCompositeOverlay
(Collection<BoundedOverlay> overlays) ConstructorCompositeOverlay
(BoundedOverlay overlay) Constructor -
Method Summary
Modifier and TypeMethodDescriptionvoid
addOverlay
(BoundedOverlay overlay) Add an overlayvoid
addOverlays
(Collection<BoundedOverlay> overlays) Add overlaysvoid
Clear the overlaysprotected boolean
hasTileToRetrieve
(int x, int y, int zoom) Check if there is a tile to retrieveprotected Tile
retrieveTile
(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:
hasTileToRetrieve
in classBoundedOverlay
- Parameters:
x
- x coordinatey
- y coordinatezoom
- zoom value- Returns:
- true if there is a tile
-
retrieveTile
Retrieve the tile- Specified by:
retrieveTile
in classBoundedOverlay
- Parameters:
x
- x coordinatey
- y coordinatezoom
- zoom value- Returns:
- tile
-