Table of Contents

Class InMemoryRasterTileCache

Namespace
ThinkGeo.Core
Assembly
ThinkGeo.Core.dll

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

int

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 Tile

The 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 int
column long

The target column for the tileView to fetch.

row long

The 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 Tile

The target tileView to be saved.

Remarks

This method will not take effect when the Read is set to true.