public abstract class BoundedOverlay extends Object
| Constructor and Description |
|---|
BoundedOverlay()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
BoundingBox |
getBoundingBox(Projection projection)
Get the bounding box as the provided projection
|
Integer |
getMaxZoom()
Get the max zoom
|
Integer |
getMinZoom()
Get the min zoom
|
Tile |
getTile(int x,
int y,
int zoom) |
BoundingBox |
getWebMercatorBoundingBox()
Get the web mercator bounding box
|
boolean |
hasTile(int x,
int y,
int zoom)
Determine if there is a tile for the x, y, and zoom
|
protected abstract boolean |
hasTileToRetrieve(int x,
int y,
int zoom)
Check if there is a tile to retrieve
|
boolean |
isWithinBoundingBox(int x,
int y,
int zoom)
Check if the tile request is within the desired tile bounds
|
boolean |
isWithinBounds(int x,
int y,
int zoom)
Is the tile within the zoom and bounding box bounds
|
boolean |
isWithinZoom(float zoom)
Check if the zoom is within the overlay zoom range
|
protected abstract Tile |
retrieveTile(int x,
int y,
int zoom)
Retrieve the tile
|
void |
setBoundingBox(BoundingBox boundingBox,
Projection projection)
Set the bounding box, provided as the indicated projection
|
void |
setMaxZoom(Integer maxZoom)
Set the max zoom
|
void |
setMinZoom(Integer minZoom)
Set the min zoom
|
public Integer getMinZoom()
public void setMinZoom(Integer minZoom)
minZoom - public Integer getMaxZoom()
public void setMaxZoom(Integer maxZoom)
maxZoom - public void setBoundingBox(BoundingBox boundingBox, Projection projection)
boundingBox - projection - public BoundingBox getWebMercatorBoundingBox()
public BoundingBox getBoundingBox(Projection projection)
projection - public Tile getTile(int x,
int y,
int zoom)
public boolean hasTile(int x,
int y,
int zoom)
x - x coordinatey - y coordinatezoom - zoom valueprotected abstract boolean hasTileToRetrieve(int x,
int y,
int zoom)
x - x coordinatey - y coordinatezoom - zoom valueprotected abstract Tile retrieveTile(int x,
int y,
int zoom)
x - y - zoom - public boolean isWithinBounds(int x,
int y,
int zoom)
x - y - zoom - public boolean isWithinZoom(float zoom)
zoom - public boolean isWithinBoundingBox(int x,
int y,
int zoom)
x - y - zoom -