public class MapBoxTileSource extends OnlineTileSourceBase
BitmapTileSourceBase.LowMemoryException
mCopyright, mImageFilenameEnding, mName, random
Constructor and Description |
---|
MapBoxTileSource()
Creates a MapBox TileSource.
|
MapBoxTileSource(Context ctx)
creates a new mapbox tile source, loading the access token and mapid from the manifest
|
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.
|
MapBoxTileSource(String mapboxid,
String accesstoken)
creates a new mapbox tile source, using the specified access token and mapbox id
|
Modifier and Type | Method and Description |
---|---|
String |
getAccessToken() |
String |
getMapBoxMapId() |
String |
getTileURLString(long pMapTileIndex) |
void |
retrieveAccessToken(Context aContext)
Reads the access token from the manifest.
|
void |
retrieveMapBoxMapId(Context aContext)
Reads the mapbox map id from the manifest.
|
void |
setAccessToken(String accessTokeninput) |
void |
setMapboxMapid(String key) |
acquire, getBaseUrl, getTileSourcePolicy, release
getCopyrightNotice, getDrawable, getDrawable, getMaximumZoomLevel, getMinimumZoomLevel, getTileRelativeFilenameString, getTileSizePixels, imageFilenameEnding, name, ordinal, pathBase, toString
public MapBoxTileSource()
public MapBoxTileSource(Context ctx)
ctx
- public MapBoxTileSource(String mapboxid, String accesstoken)
mapboxid
- accesstoken
- public 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 final void retrieveMapBoxMapId(Context aContext)
public final void retrieveAccessToken(Context aContext)
public void setMapboxMapid(String key)
public String getMapBoxMapId()
public String getTileURLString(long pMapTileIndex)
getTileURLString
in class OnlineTileSourceBase
public String getAccessToken()
public void setAccessToken(String accessTokeninput)