-
- All Implemented Interfaces:
-
org.osmdroid.tileprovider.tilesource.ITileSource
public abstract class BitmapTileSourceBase implements ITileSource
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBitmapTileSourceBase.LowMemoryException
-
Constructor Summary
Constructors Constructor Description BitmapTileSourceBase(String aName, int aZoomMinLevel, int aZoomMaxLevel, int aTileSizePixels, String aImageFilenameEnding)Constructor BitmapTileSourceBase(String aName, int aZoomMinLevel, int aZoomMaxLevel, int aTileSizePixels, String aImageFilenameEnding, String aCopyrightNotice)Constructor
-
Method Summary
Modifier and Type Method Description intordinal()An ordinal identifier for this tile source Stringname()A human-friendly name for this tile source StringpathBase()StringimageFilenameEnding()intgetMinimumZoomLevel()Get the minimum zoom level this tile source can provide. intgetMaximumZoomLevel()Get the maximum zoom level this tile source can provide. intgetTileSizePixels()Get the tile size in pixels this tile source provides. StringtoString()DrawablegetDrawable(String aFilePath)Get a rendered Drawable from the specified file path. StringgetTileRelativeFilenameString(long pMapTileIndex)Get a unique file path for the tile. DrawablegetDrawable(InputStream aFileInputStream)Get a rendered Drawable from the specified InputStream. StringgetCopyrightNotice()Returns an I18N sensitive string representing the copy right notice (if any) of the tile source -
-
Constructor Detail
-
BitmapTileSourceBase
BitmapTileSourceBase(String aName, int aZoomMinLevel, int aZoomMaxLevel, int aTileSizePixels, String aImageFilenameEnding)
Constructor- Parameters:
aName- a human-friendly name for this tile source.aZoomMinLevel- the minimum zoom level this tile source can provideaZoomMaxLevel- the maximum zoom level this tile source can provideaTileSizePixels- the tile size in pixels this tile source providesaImageFilenameEnding- the file name extension used when constructing the filename
-
BitmapTileSourceBase
BitmapTileSourceBase(String aName, int aZoomMinLevel, int aZoomMaxLevel, int aTileSizePixels, String aImageFilenameEnding, String aCopyrightNotice)
Constructor- Parameters:
aName- a human-friendly name for this tile source.aZoomMinLevel- the minimum zoom level this tile source can provideaZoomMaxLevel- the maximum zoom level this tile source can provideaTileSizePixels- the tile size in pixels this tile source providesaImageFilenameEnding- the file name extension used when constructing the filename
-
-
Method Detail
-
ordinal
int ordinal()
An ordinal identifier for this tile source
-
imageFilenameEnding
String imageFilenameEnding()
-
getMinimumZoomLevel
int getMinimumZoomLevel()
Get the minimum zoom level this tile source can provide.
-
getMaximumZoomLevel
int getMaximumZoomLevel()
Get the maximum zoom level this tile source can provide.
-
getTileSizePixels
int getTileSizePixels()
Get the tile size in pixels this tile source provides.
-
getDrawable
Drawable getDrawable(String aFilePath)
Get a rendered Drawable from the specified file path.
- Parameters:
aFilePath- a file path
-
getTileRelativeFilenameString
String getTileRelativeFilenameString(long pMapTileIndex)
Get a unique file path for the tile. This file path may be used to store the tile on a filesystem and performance considerations should be taken into consideration. It can includemultiple paths. It should not begin with a leading path separator.
- Parameters:
pMapTileIndex- the tile
-
getDrawable
Drawable getDrawable(InputStream aFileInputStream)
Get a rendered Drawable from the specified InputStream.
-
getCopyrightNotice
String getCopyrightNotice()
Returns an I18N sensitive string representing the copy right notice (if any) of the tile source
-
-
-
-