-
public class MapTileDownloader extends MapTileModuleProviderBase
The MapTileDownloader loads tiles from an HTTP server. It saves downloaded tiles to an IFilesystemCache if available.
-
-
Constructor Summary
Constructors Constructor Description MapTileDownloader(ITileSource pTileSource)MapTileDownloader(ITileSource pTileSource, IFilesystemCache pFilesystemCache)MapTileDownloader(ITileSource pTileSource, IFilesystemCache pFilesystemCache, INetworkAvailablityCheck pNetworkAvailablityCheck)MapTileDownloader(ITileSource pTileSource, IFilesystemCache pFilesystemCache, INetworkAvailablityCheck pNetworkAvailablityCheck, int pThreadPoolSize, int pPendingQueueSize)
-
Method Summary
Modifier and Type Method Description ITileSourcegetTileSource()booleangetUsesDataConnection()Returns true if implementation uses a data connection, false otherwise. MapTileDownloader.TileLoadergetTileLoader()It is expected that the implementation will construct an internal member which internallyimplements a TileLoader. voiddetach()Detach, we're shutting down - Stops all workers. intgetMinimumZoomLevel()Gets the minimum zoom level this tile provider can provide intgetMaximumZoomLevel()Gets the maximum zoom level this tile provider can provide voidsetTileSource(ITileSource tileSource)Sets the tile source for this tile provider. voidsetTileDownloader(TileDownloader pTileDownloader)-
-
Constructor Detail
-
MapTileDownloader
MapTileDownloader(ITileSource pTileSource)
-
MapTileDownloader
MapTileDownloader(ITileSource pTileSource, IFilesystemCache pFilesystemCache)
-
MapTileDownloader
MapTileDownloader(ITileSource pTileSource, IFilesystemCache pFilesystemCache, INetworkAvailablityCheck pNetworkAvailablityCheck)
-
MapTileDownloader
MapTileDownloader(ITileSource pTileSource, IFilesystemCache pFilesystemCache, INetworkAvailablityCheck pNetworkAvailablityCheck, int pThreadPoolSize, int pPendingQueueSize)
-
-
Method Detail
-
getTileSource
ITileSource getTileSource()
-
getUsesDataConnection
boolean getUsesDataConnection()
Returns true if implementation uses a data connection, false otherwise. This value is used todetermine if this provider should be skipped if there is no data connection.
-
getTileLoader
MapTileDownloader.TileLoader getTileLoader()
It is expected that the implementation will construct an internal member which internallyimplements a TileLoader. This method is expected to return a that internal member tomethods of the parent methods.
-
detach
void detach()
Detach, we're shutting down - Stops all workers.
-
getMinimumZoomLevel
int getMinimumZoomLevel()
Gets the minimum zoom level this tile provider can provide
-
getMaximumZoomLevel
int getMaximumZoomLevel()
Gets the maximum zoom level this tile provider can provide
-
setTileSource
void setTileSource(ITileSource tileSource)
Sets the tile source for this tile provider.
- Parameters:
tileSource- the tile source
-
setTileDownloader
void setTileDownloader(TileDownloader pTileDownloader)
-
-
-
-