org.openstreetmap.fma.jtiledownloader.datatypes
Interface TileProviderIf

All Known Implementing Classes:
GenericTileProvider, MapnikTileProvider, MapSurferProfileTileProvider, MapSurferTileProvider, OsmarenderTileProvider, RotatingTileProvider

public interface TileProviderIf

TileProvider interface


Method Summary
 int getMaxZoom()
          Specifies the maximum zoom value.
 int getMinZoom()
          Specifies the minimum zoom value.
 java.lang.String getName()
          A tile layer name has to be unique and has to consist only of characters valid for filenames.
 java.lang.String getTileFilename(Tile tile)
          Constructs the relative tile-image filename
 java.lang.String getTileServerUrl()
          Returns the tile server url
 java.lang.String getTileType()
          Specifies the tile image type.
 java.lang.String getTileUrl(Tile tile)
          Constructs the tile url.
 

Method Detail

getMaxZoom

int getMaxZoom()
Specifies the maximum zoom value. The number of zoom levels is [0.. getMaxZoom()].

Returns:
maximum zoom value

getMinZoom

int getMinZoom()
Specifies the minimum zoom value. This value is usually 0. Only for maps that cover a certain region up to a limited zoom level this method should return a value different than 0.

Returns:
minimum zoom value - usually 0

getName

java.lang.String getName()
A tile layer name has to be unique and has to consist only of characters valid for filenames.

Returns:
Name of the tile layer

getTileServerUrl

java.lang.String getTileServerUrl()
Returns the tile server url

Returns:
the tile server url

getTileUrl

java.lang.String getTileUrl(Tile tile)
Constructs the tile url.

Parameters:
tile - the tile
Returns:
fully qualified url for downloading the specified tile image

getTileFilename

java.lang.String getTileFilename(Tile tile)
Constructs the relative tile-image filename

Parameters:
tile -
Returns:
the relative path and filename of the image file

getTileType

java.lang.String getTileType()
Specifies the tile image type. For tiles rendered by Mapnik or Osmarenderer this is usually "png".

Returns:
file extension of the tile image type