User Tools

Site Tools


thinkgeo.mapsuite.windowsphonecore.nativeimagetilecache

ThinkGeo.MapSuite.WindowsPhoneCore.NativeImageTileCache

Note: The page was created before Map Suite 10. Map Suite 10.0 organized many classes into new namespaces and assemblies as well as had a few minor breaks in compatibility. The majority of previously built code should work without modification assuming the new namespaces are added. For guidance on upgrading your existing code, please check out MapSuite 10 Upgrade Guide.

<!– Class –> This is the base class for NativeTileCache system which inherits from TileCache class.

Remarks

TileCahce system is very efficient in improving the performance of application, especially when large data or remote server images are included.

Inheritance Hierarchy

Members Summary

Public Constructors

Name Parameters DeclaringType Summary

Protected Constructors

Name Parameters DeclaringType Summary
Protected MethodNativeImageTileCache String, TileMatrix This is the constructor of the class.

Public Methods

Name Parameters DeclaringType Summary
Public MethodClearCache TileCache This method will clear all the tiles in the tileCache.
Public MethodDeleteTile Tile TileCache This method will delete the target tile passed in.
Public MethodEquals Object Object
Public MethodGetHashCode Object
Public MethodGetTile RectangleShape This method returns the NativeImageTile corresponding to the tile bounding box passed in.
Public MethodGetTile Int64, Int64 This method returns the NativeImageTile corresponding to passed in row and column.
Public MethodGetTiles RectangleShape This method returns all the NativeImageTiles within the passed in world extent.
Public MethodGetType Object
Public MethodSaveTile Tile TileCache This method will save the target tile passed in.
Public MethodToString Object

Protected Methods

Name Parameters DeclaringType Summary
Protected MethodClearCacheCore TileCache This abstract method will clear all the tiles in the tileCache, for each sub TileCache class must implement this method.
Protected MethodDeleteTileCore Tile TileCache This abstract method will delete the target tile passed in, for each sub TileCache class must implement this method.
Protected MethodFinalize Object
Protected MethodGetTileCore Int64, Int64 This abstract method returns the NativeImageTile corresponding to passed in row and column. Each concrete TileCache need to implement this logic to get tile from a row and column.
Protected MethodMemberwiseClone Object
Protected MethodSaveTileCore Tile TileCache This abstract method will save the target tile passed in, for each sub TileCache class must implement this method.

Public Properties

Name Return DeclaringType Summary
Public PropertyCacheId String TileCache Gets or sets the id of the TileCache.
Public PropertyTileAccessMode TileAccessMode TileCache Gets or sets the Mode for the TileCache access the tiles. The Default value is ReadAddDelete
Public PropertyTileMatrix TileMatrix TileCache Gets or sets the TileMatrix which is used in caculation for tiles.

Protected Properties

Name Return DeclaringType Summary

Public Events

Name Event Arguments DeclaringType Summary

Public Constructors

Protected Constructors

NativeImageTileCache(String, TileMatrix)

This is the constructor of the class.

Parameters

Name Type Description
cacheId String<!– System.String –> This is the cache identifier which marks its difference with other TileCache.
tileMatrix TileMatrix<!– ThinkGeo.MapSuite.WindowsPhoneCore.TileMatrix –> This is the tile matrix system which is used for caculating tiles.

Go Back

Public Methods

ClearCache()

This method will clear all the tiles in the tileCache.

Remarks

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

Return Value

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description

<!– ThinkGeo.MapSuite.WindowsPhoneCore.TileCache –> Go Back

DeleteTile(Tile)

This method will delete the target tile passed in.

Remarks

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

Return Value

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description
tile Tile<!– ThinkGeo.MapSuite.WindowsPhoneCore.Tile –> The target tile to be deleted.

<!– ThinkGeo.MapSuite.WindowsPhoneCore.TileCache –> Go Back

Equals(Object)

Return Value

Return Type Description
Boolean<!– System.Boolean –>

Parameters

Name Type Description
obj Object<!– System.Object –>

<!– System.Object –> Go Back

GetHashCode()

Return Value

Return Type Description
Int32<!– System.Int32 –>

Parameters

Name Type Description

<!– System.Object –> Go Back

GetTile(RectangleShape)

This method returns the NativeImageTile corresponding to the tile bounding box passed in.

Return Value

Return Type Description
NativeImageTile<!– ThinkGeo.MapSuite.WindowsPhoneCore.NativeImageTile –> Returns the NativeImageTile corresponding to the passed in boundingBox.

Parameters

Name Type Description
tileBoundingBox RectangleShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.RectangleShape –> The target boundingBox for the tile to fetch.

<!– ThinkGeo.MapSuite.WindowsPhoneCore.NativeImageTileCache –> Go Back

GetTile(Int64, Int64)

This method returns the NativeImageTile corresponding to passed in row and column.

Return Value

Return Type Description
NativeImageTile<!– ThinkGeo.MapSuite.WindowsPhoneCore.NativeImageTile –> Returns the NativeImageTile corresponding to the passed in row and column.

Parameters

Name Type Description
row Int64<!– System.Int64 –> The target row for the tile to fetch.
column Int64<!– System.Int64 –> The target column for the tile to fetch.

<!– ThinkGeo.MapSuite.WindowsPhoneCore.NativeImageTileCache –> Go Back

GetTiles(RectangleShape)

This method returns all the NativeImageTiles within the passed in world extent.

Return Value

Return Type Description
Collection<NativeImageTile><!– System.Collections.ObjectModel.Collection{ThinkGeo.MapSuite.WindowsPhoneCore.NativeImageTile} –> Returns a collection of NativeImageTiles within the passed in worldExtent.

Parameters

Name Type Description
extent RectangleShape<!– ThinkGeo.MapSuite.WindowsPhoneCore.RectangleShape –> The target worldExtent will be used to fetch all the NativeImageTiles from.

<!– ThinkGeo.MapSuite.WindowsPhoneCore.NativeImageTileCache –> Go Back

GetType()

Return Value

Return Type Description
Type<!– System.Type –>

Parameters

Name Type Description

<!– System.Object –> Go Back

SaveTile(Tile)

This method will save the target tile passed in.

Remarks

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

Return Value

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description
tile Tile<!– ThinkGeo.MapSuite.WindowsPhoneCore.Tile –> The target tile to be saved.

<!– ThinkGeo.MapSuite.WindowsPhoneCore.TileCache –> Go Back

ToString()

Return Value

Return Type Description
String<!– System.String –>

Parameters

Name Type Description

<!– System.Object –> Go Back

Protected Methods

ClearCacheCore()

This abstract method will clear all the tiles in the tileCache, for each sub TileCache class must implement this method.

Remarks

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

Return Value

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description

<!– ThinkGeo.MapSuite.WindowsPhoneCore.TileCache –> Go Back

DeleteTileCore(Tile)

This abstract method will delete the target tile passed in, for each sub TileCache class must implement this method.

Remarks

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

Return Value

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description
tile Tile<!– ThinkGeo.MapSuite.WindowsPhoneCore.Tile –> The target tile to be deleted.

<!– ThinkGeo.MapSuite.WindowsPhoneCore.TileCache –> Go Back

Finalize()

Return Value

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description

<!– System.Object –> Go Back

GetTileCore(Int64, Int64)

This abstract method returns the NativeImageTile corresponding to passed in row and column. Each concrete TileCache need to implement this logic to get tile from a row and column.

Return Value

Return Type Description
NativeImageTile<!– ThinkGeo.MapSuite.WindowsPhoneCore.NativeImageTile –> Returns the NativeImageTile corresponding to the passed in row and column.

Parameters

Name Type Description
row Int64<!– System.Int64 –> The target row for the tile to fetch.
column Int64<!– System.Int64 –> The target column for the tile to fetch.

<!– ThinkGeo.MapSuite.WindowsPhoneCore.NativeImageTileCache –> Go Back

MemberwiseClone()

Return Value

Return Type Description
Object<!– System.Object –>

Parameters

Name Type Description

<!– System.Object –> Go Back

SaveTileCore(Tile)

This abstract method will save the target tile passed in, for each sub TileCache class must implement this method.

Remarks

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

Return Value

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description
tile Tile<!– ThinkGeo.MapSuite.WindowsPhoneCore.Tile –> The target tile to be saved.

<!– ThinkGeo.MapSuite.WindowsPhoneCore.TileCache –> Go Back

Public Properties

CacheId

Gets or sets the id of the TileCache.

Return Value

Return Type
String<!– System.String –>

<!– ThinkGeo.MapSuite.WindowsPhoneCore.TileCache –> Go Back

TileAccessMode

Gets or sets the Mode for the TileCache access the tiles. The Default value is ReadAddDelete

Remarks

If you want it to take effect, you need set the ReadOnly property false.

Return Value

Return Type
TileAccessMode<!– ThinkGeo.MapSuite.WindowsPhoneCore.TileAccessMode –>

<!– ThinkGeo.MapSuite.WindowsPhoneCore.TileCache –> Go Back

TileMatrix

Gets or sets the TileMatrix which is used in caculation for tiles.

Return Value

Return Type
TileMatrix<!– ThinkGeo.MapSuite.WindowsPhoneCore.TileMatrix –>

<!– ThinkGeo.MapSuite.WindowsPhoneCore.TileCache –> Go Back

Protected Properties

Public Events

thinkgeo.mapsuite.windowsphonecore.nativeimagetilecache.txt · Last modified: 2017/03/16 21:59 (external edit)