Class InMemoryRasterTileCache
This class is a concrete class inherits from BitmapTileCache. In this class, the tiles will be saved in memory and it provides some properties to control it very easily.
public class InMemoryRasterTileCache : RasterTileCache
- Inheritance
-
InMemoryRasterTileCache
- Inherited Members
Constructors
InMemoryRasterTileCache()
This is the default constructor.
public InMemoryRasterTileCache()
Remarks
If you use this constructor, you have to set the properties manually.
Properties
MaximumTilesCount
This property gets or sets the maximum tiles count, if it exceed,it will delete the old first cached tiles.
public int MaximumTilesCount { get; set; }
Property Value
Methods
ClearCacheCore()
This method will clear all the tiles in the tileCache.
protected override void ClearCacheCore()
Remarks
This method will not take effect when the Read is set to true.
DeleteTileCore(Tile)
This method will delete the target tileView passed in.
protected override void DeleteTileCore(Tile tile)
Parameters
tile
TileThe target tileView to be deleted.
Remarks
This method will not take effect when the Read is set to true.
GetTileCore(int, long, long)
This method returns the BitmapTile corresponding to passed in row and column.
protected override Tile GetTileCore(int zoom, long column, long row)
Parameters
zoom
intcolumn
longThe target column for the tileView to fetch.
row
longThe target row for the tileView to fetch.
Returns
- Tile
Returns the BitmapTile corresponding to the passed in row and column.
SaveTileCore(Tile)
This method will save the target tileView passed in.
protected override void SaveTileCore(Tile tile)
Parameters
tile
TileThe target tileView to be saved.
Remarks
This method will not take effect when the Read is set to true.