Interface TileSource
-
- All Known Implementing Classes:
AbstractTileSource,OnlineTileSource,OpenStreetMapMapnik
public interface TileSource
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetAuthorization()longgetDefaultTimeToLive()Returns the default time-to-live (TTL) for cached tiles.intgetParallelRequestsLimit()java.lang.StringgetReferer()java.net.URLgetTileUrl(org.mapsforge.core.model.Tile tile)intgetTimeoutConnect()intgetTimeoutRead()java.lang.StringgetUserAgent()bytegetZoomLevelMax()bytegetZoomLevelMin()booleanhasAlpha()booleanisFollowRedirects()
-
-
-
Method Detail
-
getAuthorization
java.lang.String getAuthorization()
- Returns:
- the Authorization (may be null).
-
getDefaultTimeToLive
long getDefaultTimeToLive()
Returns the default time-to-live (TTL) for cached tiles.
-
getParallelRequestsLimit
int getParallelRequestsLimit()
- Returns:
- the maximum number of parallel requests which this
TileSourcesupports.
-
getReferer
java.lang.String getReferer()
- Returns:
- the HTTP referer (may be null).
-
getTileUrl
java.net.URL getTileUrl(org.mapsforge.core.model.Tile tile) throws java.net.MalformedURLException- Returns:
- the download URL for the given
Tile. - Throws:
java.net.MalformedURLException
-
getTimeoutConnect
int getTimeoutConnect()
- Returns:
- the connect timeout value in milliseconds.
-
getTimeoutRead
int getTimeoutRead()
- Returns:
- the read timeout value in milliseconds.
-
getUserAgent
java.lang.String getUserAgent()
- Returns:
- the HTTP user agent (may be null).
-
getZoomLevelMax
byte getZoomLevelMax()
- Returns:
- the maximum zoom level which this
TileSourcesupports.
-
getZoomLevelMin
byte getZoomLevelMin()
- Returns:
- the minimum zoom level which this
TileSourcesupports.
-
hasAlpha
boolean hasAlpha()
- Returns:
- the if the
TileSourcesupports transparent images.
-
isFollowRedirects
boolean isFollowRedirects()
- Returns:
- whether or not to follow HTTP redirects.
-
-