public class HEREWeGoTileSource extends OnlineTileSourceBase
BitmapTileSourceBase.LowMemoryException
mCopyright, mImageFilenameEnding, mName, random
Constructor and Description |
---|
HEREWeGoTileSource()
Creates a MapBox TileSource.
|
HEREWeGoTileSource(Context ctx)
creates a new mapbox tile source, loading the access token and mapid from the manifest
|
HEREWeGoTileSource(String name,
int zoomMinLevel,
int zoomMaxLevel,
int tileSizePixels,
String imageFilenameEnding)
TileSource allowing majority of options (sans url) to be user selected.
|
HEREWeGoTileSource(String name,
int zoomMinLevel,
int zoomMaxLevel,
int tileSizePixels,
String imageFilenameEnding,
String mapBoxMapId,
String mapBoxVersionBaseUrl)
TileSource allowing all options to be user selected.
|
HEREWeGoTileSource(String herewegoMapId,
String accesstoken,
String appCode)
creates a new mapbox tile source, using the specified access token and mapbox id
|
Modifier and Type | Method and Description |
---|---|
String |
getAppCode() |
String |
getAppId() |
String |
getHerewegoMapId() |
String |
getTileURLString(MapTile aMapTile) |
void |
retrieveAppCode(Context aContext) |
void |
retrieveAppId(Context aContext)
Reads the access token from the manifest.
|
void |
retrieveMapBoxMapId(Context aContext)
Reads the mapbox map id from the manifest.
|
void |
setAppCode(String appCode) |
void |
setAppId(String accessTokeninput) |
void |
setDomainOverride(String hostname) |
void |
setHereWeGoMapid(String key) |
getBaseUrl
getCopyrightNotice, getDrawable, getDrawable, getMaximumZoomLevel, getMinimumZoomLevel, getTileRelativeFilenameString, getTileSizePixels, imageFilenameEnding, name, ordinal, pathBase
public HEREWeGoTileSource()
public HEREWeGoTileSource(Context ctx)
ctx
- public HEREWeGoTileSource(String herewegoMapId, String accesstoken, String appCode)
mapboxid
- accesstoken
- public HEREWeGoTileSource(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 HEREWeGoTileSource(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 void setDomainOverride(String hostname)
public final void retrieveAppCode(Context aContext)
public final void retrieveMapBoxMapId(Context aContext)
public final void retrieveAppId(Context aContext)
public void setHereWeGoMapid(String key)
public String getHerewegoMapId()
public String getTileURLString(MapTile aMapTile)
getTileURLString
in class OnlineTileSourceBase
public String getAppId()
public void setAppId(String accessTokeninput)
public String getAppCode()
public void setAppCode(String appCode)