FileVectorTileCache¶
Namespace: ThinkGeo.Core
public class FileVectorTileCache : TileCache
Inheritance Object → TileCache → FileVectorTileCache
Properties¶
CacheDirectory¶
public string CacheDirectory { get; set; }
Property Value¶
FileExtension¶
public string FileExtension { get; set; }
Property Value¶
TileAccessMode¶
Gets or sets the Mode for the TileCache access the tiles. The Default value is ReadAddDelete
public TileAccessMode TileAccessMode { get; set; }
Property Value¶
Remarks:
If you want it to take effect, you need set the Read property false.
CacheId¶
Gets or sets the id of the TileCache.
public string CacheId { get; set; }
Property Value¶
ExpirationTime¶
public TimeSpan ExpirationTime { get; set; }
Property Value¶
Constructors¶
FileVectorTileCache()¶
public FileVectorTileCache()
FileVectorTileCache(String)¶
public FileVectorTileCache(string cacheDirectory)
Parameters¶
cacheDirectory
String
FileVectorTileCache(String, String)¶
public FileVectorTileCache(string cacheDirectory, string cacheId)
Parameters¶
cacheDirectory
String
cacheId
String
FileVectorTileCache(String, String, String)¶
public FileVectorTileCache(string cacheDirectory, string cacheId, string fileExtension)
Parameters¶
cacheDirectory
String
cacheId
String
fileExtension
String
Methods¶
ClearCacheCore()¶
protected void ClearCacheCore()
DeleteTileCore(Tile)¶
protected void DeleteTileCore(Tile tile)
Parameters¶
tile
Tile
GetTileCore(Int32, Int64, Int64)¶
protected Tile GetTileCore(int zoom, long column, long row)
Parameters¶
zoom
Int32
column
Int64
row
Int64
Returns¶
GetTileAsyncCore(Int32, Int64, Int64, CancellationToken)¶
protected Task<Tile> GetTileAsyncCore(int zoom, long column, long row, CancellationToken cancellationToken)
Parameters¶
zoom
Int32
column
Int64
row
Int64
cancellationToken
CancellationToken
Returns¶
SaveTileCore(Tile)¶
protected void SaveTileCore(Tile tile)
Parameters¶
tile
Tile
SaveTileAsyncCore(Tile, CancellationToken)¶
protected Task SaveTileAsyncCore(Tile tile, CancellationToken cancellationToken)
Parameters¶
tile
Tile
cancellationToken
CancellationToken
Returns¶
Events¶
GottenCacheTile¶
public event EventHandler<GottenCacheImageBitmapTileCacheEventArgs> GottenCacheTile;
GettingCacheTile¶
public event EventHandler<GettingCacheImageBitmapTileCacheEventArgs> GettingCacheTile;