SqliteBitmapTileCache¶
Namespace: ThinkGeo.UI.Android
This class represents the base sqlite bitmap tile cache.
public class SqliteBitmapTileCache : ThinkGeo.Core.RasterTileCache
Inheritance Object → TileCache → RasterTileCache → SqliteBitmapTileCache
Properties¶
DatabasePathFilename¶
Gets or sets the database path filename.
public string DatabasePathFilename { get; set; }
Property Value¶
The database path filename.
CacheId¶
Gets or sets the id of the TileCache.
public string CacheId { get; set; }
Property Value¶
NoDataTileImage¶
public GeoImage NoDataTileImage { get; }
Property Value¶
GeoImage
LoadingTileImage¶
public GeoImage LoadingTileImage { get; }
Property Value¶
GeoImage
ImageFormat¶
public RasterTileFormat ImageFormat { get; set; }
Property Value¶
RasterTileFormat
JpegQuality¶
public short JpegQuality { get; set; }
Property Value¶
TileAccessMode¶
public TileAccessMode TileAccessMode { get; set; }
Property Value¶
TileAccessMode
ExpirationTime¶
public TimeSpan ExpirationTime { get; set; }
Property Value¶
Constructors¶
SqliteBitmapTileCache()¶
Initializes a new instance of the SqliteBitmapTileCache class.
public SqliteBitmapTileCache()
SqliteBitmapTileCache(String, String)¶
Initializes a new instance of the SqliteBitmapTileCache class.
public SqliteBitmapTileCache(string databasePathFilename, string cacheId)
Parameters¶
databasePathFilename
String
The database path filename.
cacheId
String
The cache identifier.
Methods¶
GetTileCore(Int32, Int64, Int64)¶
This abstract method returns the BitmapTile corresponding to passed in row and column. Each concrete TileCache need to implement this logic to get tile from a row and column.
protected Tile GetTileCore(int zoom, long row, long column)
Parameters¶
zoom
Int32
row
Int64
The target row for the tile to fetch.
column
Int64
The target column for the tile to fetch.
Returns¶
Tile
Returns the BitmapTile corresponding to the passed in row and column.
ClearCacheCore()¶
This abstract method will clear all the tiles in the tileCache, for each sub TileCache class must implement this method.
protected void ClearCacheCore()
Remarks:
This method will not take effect when the ReadOnly is set to true.
SaveTileCore(Tile)¶
This abstract method will save the target tile passed in, for each sub TileCache class must implement this method.
protected void SaveTileCore(Tile tile)
Parameters¶
tile
Tile
The target tile to be saved.
Remarks:
This method will not take effect when the ReadOnly is set to true.
DeleteTileCore(Tile)¶
This abstract method will delete the target tile passed in, for each sub TileCache class must implement this method.
protected void DeleteTileCore(Tile tile)
Parameters¶
tile
Tile
The target tile to be deleted.
Remarks:
This method will not take effect when the ReadOnly is set to true.
Events¶
GottenCacheTile¶
public event EventHandler<GottenCacheImageBitmapTileCacheEventArgs> GottenCacheTile;
GettingCacheTile¶
public event EventHandler<GettingCacheImageBitmapTileCacheEventArgs> GettingCacheTile;