public abstract class OnlineTileSourceBase extends BitmapTileSourceBase
BitmapTileSourceBase.LowMemoryException
mImageFilenameEnding, mName, random
CACHE_MAPTILECOUNT_DEFAULT, DEBUG_TILE_PROVIDERS, DEBUGMODE, DEFAULT_MAXIMUM_CACHED_FILE_AGE, MAXIMUM_ZOOMLEVEL, MINIMUM_ZOOMLEVEL, NUMBER_OF_TILE_DOWNLOAD_THREADS, NUMBER_OF_TILE_FILESYSTEM_THREADS, ONE_DAY, ONE_HOUR, ONE_MINUTE, ONE_SECOND, ONE_WEEK, ONE_YEAR, OSMDROID_PATH, TILE_DOWNLOAD_MAXIMUM_QUEUE_SIZE, TILE_EXPIRY_TIME_MILLISECONDS, TILE_FILESYSTEM_MAXIMUM_QUEUE_SIZE, TILE_MAX_CACHE_SIZE_BYTES, TILE_PATH_BASE, TILE_PATH_EXTENSION, TILE_TRIM_CACHE_SIZE_BYTES
Constructor and Description |
---|
OnlineTileSourceBase(String aName,
ResourceProxy.string aResourceId,
int aZoomMinLevel,
int aZoomMaxLevel,
int aTileSizePixels,
String aImageFilenameEnding,
String[] aBaseUrl)
Constructor
|
Modifier and Type | Method and Description |
---|---|
protected String |
getBaseUrl()
Get the base url, which will be a random one if there are more than one.
|
abstract String |
getTileURLString(MapTile aTile) |
getDrawable, getDrawable, getMaximumZoomLevel, getMinimumZoomLevel, getTileRelativeFilenameString, getTileSizePixels, imageFilenameEnding, localizedName, name, ordinal, pathBase
public OnlineTileSourceBase(String aName, ResourceProxy.string aResourceId, int aZoomMinLevel, int aZoomMaxLevel, int aTileSizePixels, String aImageFilenameEnding, String[] aBaseUrl)
aName
- a human-friendly name for this tile sourceaResourceId
- resource id used to get the localized name of this tile sourceaZoomMinLevel
- the minimum zoom level this tile source can provideaZoomMaxLevel
- the maximum zoom level this tile source can provideaTileSizePixels
- the tile size in pixels this tile source providesaImageFilenameEnding
- the file name extension used when constructing the filenameaBaseUrl
- the base url(s) of the tile server used when constructing the url to download the tilesCopyright © 2014. All Rights Reserved.