public class MapBoxTileSource extends OnlineTileSourceBase
BitmapTileSourceBase.LowMemoryException
mImageFilenameEnding, mName, random
Constructor and Description |
---|
MapBoxTileSource()
TileSource with configuration defaults set.
|
MapBoxTileSource(String name,
int zoomMinLevel,
int zoomMaxLevel,
int tileSizePixels,
String imageFilenameEnding)
TileSource allowing majority of options (sans url) to be user selected.
|
MapBoxTileSource(String name,
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 |
---|---|
String |
getAccessToken() |
static String |
getMapBoxMapId() |
String |
getTileURLString(MapTile aMapTile) |
static void |
retrieveAccessToken(android.content.Context aContext)
Read the API key from the manifest.
This method should be invoked before class instantiation. |
static void |
retrieveMapBoxMapId(android.content.Context aContext)
Read the API key from the manifest.
This method should be invoked before class instantiation. |
void |
setAccessToken(String accessTokeninput) |
static void |
setMapboxMapid(String key) |
getBaseUrl
getDrawable, getDrawable, getMaximumZoomLevel, getMinimumZoomLevel, getTileRelativeFilenameString, getTileSizePixels, imageFilenameEnding, name, ordinal, pathBase
public MapBoxTileSource()
retrieveMapBoxMapId(android.content.Context)
should have been invoked once before constructor invocationpublic MapBoxTileSource(String name, int zoomMinLevel, int zoomMaxLevel, int tileSizePixels, String imageFilenameEnding)
retrieveMapBoxMapId(android.content.Context)
should have been invoked once before constructor invocationname
- NamezoomMinLevel
- Minimum Zoom LevelzoomMaxLevel
- Maximum Zoom LeveltileSizePixels
- Size of Tile PixelsimageFilenameEnding
- Image File Extensionpublic MapBoxTileSource(String name, int zoomMinLevel, int zoomMaxLevel, int tileSizePixels, String imageFilenameEnding, String mapBoxMapId, String mapBoxVersionBaseUrl)
retrieveMapBoxMapId(android.content.Context)
should have been invoked once before constructor invocationname
- NamezoomMinLevel
- 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 void retrieveAccessToken(android.content.Context aContext)
public static void setMapboxMapid(String key)
public static String getMapBoxMapId()
public String getTileURLString(MapTile aMapTile)
getTileURLString
in class OnlineTileSourceBase
public String getAccessToken()
public void setAccessToken(String accessTokeninput)
Copyright © 2015. All Rights Reserved.