public class MapBoxTileSource extends OnlineTileSourceBase
BitmapTileSourceBase.LowMemoryException
mImageFilenameEnding, mName, random
CACHE_MAPTILECOUNT_DEFAULT, DEBUG_TILE_PROVIDERS, DEBUGMODE, DEFAULT_MAXIMUM_CACHED_FILE_AGE, 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 |
---|
MapBoxTileSource()
TileSource with configuration defaults set.
|
MapBoxTileSource(String name,
ResourceProxy.string resourceId,
int zoomMinLevel,
int zoomMaxLevel,
int tileSizePixels,
String imageFilenameEnding)
TileSource allowing majority of options (sans url) to be user selected.
|
MapBoxTileSource(String name,
ResourceProxy.string resourceId,
int zoomMinLevel,
int zoomMaxLevel,
int tileSizePixels,
String imageFilenameEnding,
String mapBoxMapId,
String mapBoxVersionBaseUrl)
TileSource allowing all options to be user selected.
|
Modifier and Type | Method and Description |
---|---|
static String |
getMapBoxMapId() |
String |
getTileURLString(MapTile aMapTile) |
static void |
retrieveMapBoxMapId(android.content.Context aContext)
Read the API key from the manifest.
This method should be invoked before class instantiation. |
getBaseUrl
getDrawable, getDrawable, getMaximumZoomLevel, getMinimumZoomLevel, getTileRelativeFilenameString, getTileSizePixels, imageFilenameEnding, localizedName, name, ordinal, pathBase
public MapBoxTileSource()
retrieveMapBoxMapId(android.content.Context)
should have been invoked once before constructor invocationpublic MapBoxTileSource(String name, ResourceProxy.string resourceId, int zoomMinLevel, int zoomMaxLevel, int tileSizePixels, String imageFilenameEnding)
retrieveMapBoxMapId(android.content.Context)
should have been invoked once before constructor invocationname
- NameresourceId
- Resource IdzoomMinLevel
- Minimum Zoom LevelzoomMaxLevel
- Maximum Zoom LeveltileSizePixels
- Size of Tile PixelsimageFilenameEnding
- Image File Extensionpublic MapBoxTileSource(String name, ResourceProxy.string resourceId, int zoomMinLevel, int zoomMaxLevel, int tileSizePixels, String imageFilenameEnding, String mapBoxMapId, String mapBoxVersionBaseUrl)
retrieveMapBoxMapId(android.content.Context)
should have been invoked once before constructor invocationname
- NameresourceId
- Resource IdzoomMinLevel
- Minimum Zoom LevelzoomMaxLevel
- Maximum Zoom LeveltileSizePixels
- Size of Tile PixelsimageFilenameEnding
- Image File ExtensionmapBoxVersionBaseUrl
- MapBox Version Base Url @see https://www.mapbox.com/developers/api/#Versionspublic static void retrieveMapBoxMapId(android.content.Context aContext)
public static String getMapBoxMapId()
public String getTileURLString(MapTile aMapTile)
getTileURLString
in class OnlineTileSourceBase
Copyright © 2015. All Rights Reserved.