public abstract class TiledProvider extends MapProvider
| Modifier and Type | Field and Description |
|---|---|
protected String |
_url |
protected int |
_zoomLevel |
| Constructor and Description |
|---|
TiledProvider(String url,
Projection projection,
Dimension tileSize)
Creates a new Tiled provider
|
| Modifier and Type | Method and Description |
|---|---|
BoundingBox |
bboxFor(Coord position,
int zoomLevel)
Returns the bounding box of a position ina given zoom level
|
Coord |
scale(int zoomLevel)
Scale to the zoom level
|
Tile |
tileFor(BoundingBox bbox)
Gets a tile for the given bounding box
|
protected String |
url(int zoomLevel,
int xTile,
int yTile)
build a url request for a tile
|
attribution, maxZoomFor, maxZoomLevel, minZoomLevel, projection, tileSize, tileSize, translateprotected final String _url
protected int _zoomLevel
public TiledProvider(String url, Projection projection, Dimension tileSize)
url - the url of the providerprojection - the Projection system of the ProvidertileSize - the tiles size(usually 256x256)protected String url(int zoomLevel, int xTile, int yTile)
zoomLevel - the zoom levelxTile - x position of the tileyTile - y position of the tilepublic Coord scale(int zoomLevel)
scale in class MapProviderzoomLevel - to scale topublic BoundingBox bboxFor(Coord position, int zoomLevel)
bboxFor in class MapProviderposition - on the mapzoomLevel - the zoom levelpublic Tile tileFor(BoundingBox bbox)
tileFor in class MapProviderbbox - a bounding box