-
- All Implemented Interfaces:
-
org.osmdroid.tileprovider.tilesource.ITileSource
public class HEREWeGoTileSource extends OnlineTileSourceBase
HERE We Go
-
-
Field Summary
Fields Modifier and Type Field Description private StringherewegoMapIdprivate StringappIdprivate StringappCodeprivate StringdomainOverride
-
Constructor Summary
Constructors Constructor 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 herewegoMapId, String accesstoken, String appCode)creates a new mapbox tile source, using the specified access token and mapbox id 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.
-
Method Summary
Modifier and Type Method Description StringgetHerewegoMapId()StringgetAppId()voidsetAppId(String accessTokeninput)StringgetAppCode()voidsetAppCode(String appCode)voidsetDomainOverride(String hostname)final voidretrieveAppCode(Context aContext)final voidretrieveMapBoxMapId(Context aContext)Reads the mapbox map id from the manifest. final voidretrieveAppId(Context aContext)Reads the access token from the manifest. voidsetHereWeGoMapid(String key)StringgetTileURLString(long pMapTileIndex)-
Methods inherited from class org.osmdroid.tileprovider.tilesource.OnlineTileSourceBase
acquire, getBaseUrl, getTileSourcePolicy, release -
Methods inherited from class org.osmdroid.tileprovider.tilesource.BitmapTileSourceBase
getCopyrightNotice, getDrawable, getDrawable, getMaximumZoomLevel, getMinimumZoomLevel, getTileRelativeFilenameString, getTileSizePixels, imageFilenameEnding, name, ordinal, pathBase, toString -
Methods inherited from class org.osmdroid.tileprovider.tilesource.ITileSource
getDrawable, getDrawable -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
HEREWeGoTileSource
HEREWeGoTileSource()
Creates a MapBox TileSource.
-
HEREWeGoTileSource
HEREWeGoTileSource(Context ctx)
creates a new mapbox tile source, loading the access token and mapid from the manifest
-
HEREWeGoTileSource
HEREWeGoTileSource(String herewegoMapId, String accesstoken, String appCode)
creates a new mapbox tile source, using the specified access token and mapbox id
-
HEREWeGoTileSource
HEREWeGoTileSource(String name, int zoomMinLevel, int zoomMaxLevel, int tileSizePixels, String imageFilenameEnding)
TileSource allowing majority of options (sans url) to be user selected.- Parameters:
name- NamezoomMinLevel- Minimum Zoom LevelzoomMaxLevel- Maximum Zoom LeveltileSizePixels- Size of Tile PixelsimageFilenameEnding- Image File Extension
-
HEREWeGoTileSource
HEREWeGoTileSource(String name, int zoomMinLevel, int zoomMaxLevel, int tileSizePixels, String imageFilenameEnding, String mapBoxMapId, String mapBoxVersionBaseUrl)
TileSource allowing all options to be user selected.- Parameters:
name- NamezoomMinLevel- Minimum Zoom LevelzoomMaxLevel- Maximum Zoom LeveltileSizePixels- Size of Tile PixelsimageFilenameEnding- Image File ExtensionmapBoxVersionBaseUrl- MapBox Version Base Url @see https://www.mapbox.
-
-
Method Detail
-
getHerewegoMapId
String getHerewegoMapId()
-
getAppCode
String getAppCode()
-
setAppCode
void setAppCode(String appCode)
-
setDomainOverride
void setDomainOverride(String hostname)
-
retrieveAppCode
final void retrieveAppCode(Context aContext)
-
retrieveMapBoxMapId
final void retrieveMapBoxMapId(Context aContext)
Reads the mapbox map id from the manifest.
-
retrieveAppId
final void retrieveAppId(Context aContext)
Reads the access token from the manifest.
-
setHereWeGoMapid
void setHereWeGoMapid(String key)
-
getTileURLString
String getTileURLString(long pMapTileIndex)
-
-
-
-