public class MapQuestTileSource extends OnlineTileSourceBase
BitmapTileSourceBase.LowMemoryException
mCopyright, mImageFilenameEnding, mName, random
Constructor and Description |
---|
MapQuestTileSource(Context ctx)
creates a new mapbox tile source, loading the access token and mapid from the manifest
|
MapQuestTileSource(String name,
int zoomMinLevel,
int zoomMaxLevel,
int tileSizePixels,
String imageFilenameEnding)
TileSource allowing majority of options (sans url) to be user selected.
|
MapQuestTileSource(String name,
int zoomMinLevel,
int zoomMaxLevel,
int tileSizePixels,
String imageFilenameEnding,
String mapBoxMapId,
String mapBoxVersionBaseUrl)
TileSource allowing all options to be user selected.
|
MapQuestTileSource(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.
It will use the default value of mapquest if not defined |
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 MapQuestTileSource(Context ctx)
ctx
- public MapQuestTileSource(String mapboxid, String accesstoken)
mapboxid
- accesstoken
- public MapQuestTileSource(String name, int zoomMinLevel, int zoomMaxLevel, int tileSizePixels, String imageFilenameEnding)
retrieveMapBoxMapId(Context)
should have been invoked once before constructor invocationname
- NamezoomMinLevel
- Minimum Zoom LevelzoomMaxLevel
- Maximum Zoom LeveltileSizePixels
- Size of Tile PixelsimageFilenameEnding
- Image File Extensionpublic MapQuestTileSource(String name, int zoomMinLevel, int zoomMaxLevel, int tileSizePixels, String imageFilenameEnding, String mapBoxMapId, String mapBoxVersionBaseUrl)
retrieveMapBoxMapId(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)