public class OpenStreetMapTileProviderConstants extends Object
Modifier and Type | Field and Description |
---|---|
static int |
CACHE_MAPTILECOUNT_DEFAULT
Initial tile cache size.
|
static boolean |
DEBUG_TILE_PROVIDERS |
static boolean |
DEBUGMODE |
static long |
DEFAULT_MAXIMUM_CACHED_FILE_AGE |
static String |
HTTP_EXPIRES_HEADER |
static String |
HTTP_EXPIRES_HEADER_FORMAT |
static SimpleDateFormat |
HTTP_HEADER_SDF
used for HTTP expires headers
|
static int |
MINIMUM_ZOOMLEVEL
Minimum Zoom Level
|
static short |
NUMBER_OF_TILE_FILESYSTEM_THREADS |
static long |
ONE_DAY |
static long |
ONE_HOUR |
static long |
ONE_MINUTE |
static long |
ONE_SECOND |
static long |
ONE_WEEK |
static long |
ONE_YEAR |
static short |
TILE_DOWNLOAD_MAXIMUM_QUEUE_SIZE |
static long |
TILE_EXPIRY_TIME_MILLISECONDS
30 days
|
static short |
TILE_FILESYSTEM_MAXIMUM_QUEUE_SIZE |
static long |
TILE_MAX_CACHE_SIZE_BYTES
default is 600 Mb
|
static File |
TILE_PATH_BASE
Base path for tiles.
|
static String |
TILE_PATH_EXTENSION
add an extension to files on sdcard so that gallery doesn't index them
|
static long |
TILE_TRIM_CACHE_SIZE_BYTES
default is 500 Mb
|
static String |
USER_AGENT |
Constructor and Description |
---|
OpenStreetMapTileProviderConstants() |
Modifier and Type | Method and Description |
---|---|
static File |
getBasePath() |
static int |
getNumberOfTileDownloadThreads() |
static String |
getUserAgentValue()
Enables you to get the value for HTTP user agents.
|
static void |
setCachePath(String newFullPath)
Change the root path of the osmdroid cache.
|
static void |
setCacheSizes(long maxCacheSize,
long trimCacheSize)
Change the osmdroid tiles cache sizes.
|
void |
setNumberOfTileDownloadThreads(int threads)
Overrides the number of tile download threads.
|
static void |
setOfflineMapsPath(String path)
allows for altering the osmdroid_path variable, which controls the location
of where to search for offline tile sources
|
static void |
setUserAgentValue(String val)
Enables you to override the default "osmdroid" value for HTTP user agents.
|
public static File TILE_PATH_BASE
public static boolean DEBUGMODE
public static boolean DEBUG_TILE_PROVIDERS
public static String USER_AGENT
public static final int MINIMUM_ZOOMLEVEL
public static final String TILE_PATH_EXTENSION
public static final int CACHE_MAPTILECOUNT_DEFAULT
LRUMapTileCache.ensureCapacity(int)
The tile cache will always be at least 3x3.public static final short NUMBER_OF_TILE_FILESYSTEM_THREADS
public static final long ONE_SECOND
public static final long ONE_MINUTE
public static final long ONE_HOUR
public static final long ONE_DAY
public static final long ONE_WEEK
public static final long ONE_YEAR
public static final long DEFAULT_MAXIMUM_CACHED_FILE_AGE
public static final short TILE_DOWNLOAD_MAXIMUM_QUEUE_SIZE
public static final short TILE_FILESYSTEM_MAXIMUM_QUEUE_SIZE
public static final long TILE_EXPIRY_TIME_MILLISECONDS
public static long TILE_MAX_CACHE_SIZE_BYTES
public static long TILE_TRIM_CACHE_SIZE_BYTES
public static final String HTTP_EXPIRES_HEADER
public static final String HTTP_EXPIRES_HEADER_FORMAT
public static final SimpleDateFormat HTTP_HEADER_SDF
public static File getBasePath()
public static String getUserAgentValue()
public static void setUserAgentValue(String val)
val
- public static int getNumberOfTileDownloadThreads()
public void setNumberOfTileDownloadThreads(int threads)
threads
- public static void setCachePath(String newFullPath)
newFullPath
- public static void setCacheSizes(long maxCacheSize, long trimCacheSize)
maxCacheSize
- in Mb. Default is 600 Mb.trimCacheSize
- When the cache size exceeds maxCacheSize, tiles will be automatically removed to reach this target. In Mb. Default is 500 Mb.public static void setOfflineMapsPath(String path)
path
- Copyright © 2016. All Rights Reserved.