-
- All Implemented Interfaces:
-
org.osmdroid.tileprovider.tilesource.ITileSource
public abstract class OnlineTileSourceBase extends BitmapTileSourceBase
-
-
Constructor Summary
Constructors Constructor Description OnlineTileSourceBase(String aName, int aZoomMinLevel, int aZoomMaxLevel, int aTileSizePixels, String aImageFilenameEnding, Array<String> aBaseUrl)OnlineTileSourceBase(String aName, int aZoomMinLevel, int aZoomMaxLevel, int aTileSizePixels, String aImageFilenameEnding, Array<String> aBaseUrl, String copyyright)OnlineTileSourceBase(String pName, int pZoomMinLevel, int pZoomMaxLevel, int pTileSizePixels, String pImageFilenameEnding, Array<String> pBaseUrl, String pCopyright, TileSourcePolicy pTileSourcePolicy)
-
Method Summary
Modifier and Type Method Description abstract StringgetTileURLString(long pMapTileIndex)StringgetBaseUrl()Get the base url, which will be a random one if there are more than one. voidacquire()voidrelease()TileSourcePolicygetTileSourcePolicy()-
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
-
OnlineTileSourceBase
OnlineTileSourceBase(String aName, int aZoomMinLevel, int aZoomMaxLevel, int aTileSizePixels, String aImageFilenameEnding, Array<String> aBaseUrl)
-
OnlineTileSourceBase
OnlineTileSourceBase(String aName, int aZoomMinLevel, int aZoomMaxLevel, int aTileSizePixels, String aImageFilenameEnding, Array<String> aBaseUrl, String copyyright)
-
OnlineTileSourceBase
OnlineTileSourceBase(String pName, int pZoomMinLevel, int pZoomMaxLevel, int pTileSizePixels, String pImageFilenameEnding, Array<String> pBaseUrl, String pCopyright, TileSourcePolicy pTileSourcePolicy)
- Parameters:
pName- a human-friendly name for this tile sourcepZoomMinLevel- the minimum zoom level this tile source can providepZoomMaxLevel- the maximum zoom level this tile source can providepTileSizePixels- the tile size in pixels this tile source providespImageFilenameEnding- the file name extension used when constructing the filenamepBaseUrl- the base url(s) of the tile server used when constructing the url to download the tilespCopyright- the source copyrightpTileSourcePolicy- tile source policy
-
-
Method Detail
-
getTileURLString
abstract String getTileURLString(long pMapTileIndex)
-
getBaseUrl
String getBaseUrl()
Get the base url, which will be a random one if there are more than one.Updated around 6.1.1, if base url list is null or empty, empty string is returned
-
acquire
void acquire()
-
release
void release()
-
getTileSourcePolicy
TileSourcePolicy getTileSourcePolicy()
-
-
-
-