-
- All Implemented Interfaces:
-
org.osmdroid.tileprovider.tilesource.ITileSource
public class ThunderforestTileSource extends OnlineTileSourceBase
Thunderforest Maps including OpenCycleMap
-
-
Field Summary
Fields Modifier and Type Field Description public final static intCYCLEpublic final static intTRANSPORTpublic final static intLANDSCAPEpublic final static intOUTDOORSpublic final static intTRANSPORT_DARKpublic final static intSPINAL_MAPpublic final static intPIONEERpublic final static intMOBILE_ATLASpublic final static intNEIGHBOURHOOD
-
Constructor Summary
Constructors Constructor Description ThunderforestTileSource(Context ctx, int aMap)creates a new Thunderforest tile source, loading the access token and mapid from the manifest
-
Method Summary
Modifier and Type Method Description final static StringmapName(int m)return the name asociated with a map. final StringretrieveMapId(Context aContext)Reads the map id from the manifest. StringgetTileURLString(long pMapTileIndex)static booleanhaveMapId(Context aContext)check if we have a key in the manifest for this provider. -
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
-
ThunderforestTileSource
ThunderforestTileSource(Context ctx, int aMap)
creates a new Thunderforest tile source, loading the access token and mapid from the manifest
-
-
Method Detail
-
retrieveMapId
final String retrieveMapId(Context aContext)
Reads the map id from the manifest.
-
getTileURLString
String getTileURLString(long pMapTileIndex)
-
-
-
-