====== ThinkGeo.MapSuite.WindowsPhoneCore.IsolatedStorageFileNativeImageTileCache ====== {{section>upgrade_map_suite_to_10.0}} This class is a concrete class inherits from NativeImageTileCache. In this class, the tiles will be saved in disk and can be viewed very conveniently. ===== Inheritance Hierarchy ===== *System.Object **[[ThinkGeo.MapSuite.WindowsPhoneCore.TileCache]] ***[[ThinkGeo.MapSuite.WindowsPhoneCore.NativeImageTileCache]] ****[[ThinkGeo.MapSuite.WindowsPhoneCore.IsolatedStorageFileNativeImageTileCache]] ===== Members Summary ===== ==== Public Constructors ==== ^ Name ^ Parameters ^ DeclaringType ^ Summary ^ | {{wiki:PublicMethod.gif|Public Method}}[[#IsolatedStorageFileNativeImageTileCache()|IsolatedStorageFileNativeImageTileCache]] | | | This is the default constructor. | | {{wiki:PublicMethod.gif|Public Method}}[[#IsolatedStorageFileNativeImageTileCache(String, String, TileMatrix)|IsolatedStorageFileNativeImageTileCache]] | String, String, [[ThinkGeo.MapSuite.WindowsPhoneCore.TileMatrix|TileMatrix]] | | This is the constructor with all the parameters needed passed in. | ==== Protected Constructors ==== ^ Name ^ Parameters ^ DeclaringType ^ Summary ^ ==== Public Methods ==== ^ Name ^ Parameters ^ DeclaringType ^ Summary ^ | {{wiki:PublicMethod.gif|Public Method}}[[#ClearCache()|ClearCache]] | | [[ThinkGeo.MapSuite.WindowsPhoneCore.TileCache|TileCache]] | This method will clear all the tiles in the tileCache. | | {{wiki:PublicMethod.gif|Public Method}}[[#DeleteTile(Tile)|DeleteTile]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.Tile|Tile]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.TileCache|TileCache]] | This method will delete the target tile passed in. | | {{wiki:PublicMethod.gif|Public Method}}[[#Equals(Object)|Equals]] | Object | Object | | | {{wiki:PublicMethod.gif|Public Method}}[[#GetHashCode()|GetHashCode]] | | Object | | | {{wiki:PublicMethod.gif|Public Method}}[[#GetTile(RectangleShape)|GetTile]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.RectangleShape|RectangleShape]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.NativeImageTileCache|NativeImageTileCache]] | This method returns the NativeImageTile corresponding to the tile bounding box passed in. | | {{wiki:PublicMethod.gif|Public Method}}[[#GetTile(Int64, Int64)|GetTile]] | Int64, Int64 | [[ThinkGeo.MapSuite.WindowsPhoneCore.NativeImageTileCache|NativeImageTileCache]] | This method returns the NativeImageTile corresponding to passed in row and column. | | {{wiki:PublicMethod.gif|Public Method}}[[#GetTiles(RectangleShape)|GetTiles]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.RectangleShape|RectangleShape]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.NativeImageTileCache|NativeImageTileCache]] | This method returns all the NativeImageTiles within the passed in world extent. | | {{wiki:PublicMethod.gif|Public Method}}[[#GetType()|GetType]] | | Object | | | {{wiki:PublicMethod.gif|Public Method}}[[#SaveTile(Tile)|SaveTile]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.Tile|Tile]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.TileCache|TileCache]] | This method will save the target tile passed in. | | {{wiki:PublicMethod.gif|Public Method}}[[#ToString()|ToString]] | | Object | | ==== Protected Methods ==== ^ Name ^ Parameters ^ DeclaringType ^ Summary ^ | {{wiki:ProtectedMethod.gif|Protected Method}}[[#ClearCacheCore()|ClearCacheCore]] | | [[ThinkGeo.MapSuite.WindowsPhoneCore.TileCache|TileCache]](overriden) | This method will clear all the tiles in the tileCache. | | {{wiki:ProtectedMethod.gif|Protected Method}}[[#DeleteTileCore(Tile)|DeleteTileCore]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.Tile|Tile]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.TileCache|TileCache]](overriden) | This method will delete the target tile passed in. | | {{wiki:ProtectedMethod.gif|Protected Method}}[[#Finalize()|Finalize]] | | Object | | | {{wiki:ProtectedMethod.gif|Protected Method}}[[#GetTileCore(Int64, Int64)|GetTileCore]] | Int64, Int64 | [[ThinkGeo.MapSuite.WindowsPhoneCore.NativeImageTileCache|NativeImageTileCache]](overriden) | This method returns the NativeImageTile corresponding to passed in row and column. | | {{wiki:ProtectedMethod.gif|Protected Method}}[[#MemberwiseClone()|MemberwiseClone]] | | Object | | | {{wiki:ProtectedMethod.gif|Protected Method}}[[#SaveTileCore(Tile)|SaveTileCore]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.Tile|Tile]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.TileCache|TileCache]](overriden) | This method will save the target tile passed in, you could override this API to create your own logic. | ==== Public Properties ==== ^ Name ^ Return ^ DeclaringType ^ Summary ^ | {{wiki:PublicProperty.gif|Public Property}}[[#CacheId|CacheId]] | String | [[ThinkGeo.MapSuite.WindowsPhoneCore.TileCache|TileCache]] | Gets or sets the id of the TileCache. | | {{wiki:PublicProperty.gif|Public Property}}[[#DirectoryName|DirectoryName]] | String | | Gets or sets the cache direcory. | | {{wiki:PublicProperty.gif|Public Property}}[[#MaxCacheSize|MaxCacheSize]] | Int64 | | | | {{wiki:PublicProperty.gif|Public Property}}[[#TileAccessMode|TileAccessMode]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.TileAccessMode|TileAccessMode]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.TileCache|TileCache]] | Gets or sets the Mode for the TileCache access the tiles. The Default value is ReadAddDelete | | {{wiki:PublicProperty.gif|Public Property}}[[#TileMatrix|TileMatrix]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.TileMatrix|TileMatrix]] | [[ThinkGeo.MapSuite.WindowsPhoneCore.TileCache|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 ===== ==== IsolatedStorageFileNativeImageTileCache() ==== This is the default constructor. === Remarks === If you use this constructor, you have to set the properties manually. === Parameters === ^ Name ^ Type ^ Description ^ [[#Public Constructors|Go Back]] ==== IsolatedStorageFileNativeImageTileCache(String, String, TileMatrix) ==== This is the constructor with all the parameters needed passed in. === Parameters === ^ Name ^ Type ^ Description ^ | directoryName | String | This parameter specifies the cache directory of the tile cache. | | cacheId | String | This parameter specifies the cache id of the tile cache. | | tileMatrix | [[ThinkGeo.MapSuite.WindowsPhoneCore.TileMatrix|TileMatrix]] | This parameter specifies the tile matrix of the tile cache. | [[#Public Constructors|Go Back]] ===== Protected Constructors ===== ===== 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 | | === Parameters === ^ Name ^ Type ^ Description ^ [[#Public Methods|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 | | === Parameters === ^ Name ^ Type ^ Description ^ | tile | [[ThinkGeo.MapSuite.WindowsPhoneCore.Tile|Tile]] | The target tile to be deleted. | [[#Public Methods|Go Back]] ==== Equals(Object) ==== === Return Value === ^ Return Type ^ Description ^ | Boolean | | === Parameters === ^ Name ^ Type ^ Description ^ | obj | Object | | [[#Public Methods|Go Back]] ==== GetHashCode() ==== === Return Value === ^ Return Type ^ Description ^ | Int32 | | === Parameters === ^ Name ^ Type ^ Description ^ [[#Public Methods|Go Back]] ==== GetTile(RectangleShape) ==== This method returns the NativeImageTile corresponding to the tile bounding box passed in. === Return Value === ^ Return Type ^ Description ^ | [[ThinkGeo.MapSuite.WindowsPhoneCore.NativeImageTile|NativeImageTile]] | Returns the NativeImageTile corresponding to the passed in boundingBox. | === Parameters === ^ Name ^ Type ^ Description ^ | tileBoundingBox | [[ThinkGeo.MapSuite.WindowsPhoneCore.RectangleShape|RectangleShape]] | The target boundingBox for the tile to fetch. | [[#Public Methods|Go Back]] ==== GetTile(Int64, Int64) ==== This method returns the NativeImageTile corresponding to passed in row and column. === Return Value === ^ Return Type ^ Description ^ | [[ThinkGeo.MapSuite.WindowsPhoneCore.NativeImageTile|NativeImageTile]] | Returns the NativeImageTile corresponding to the passed in row and column. | === Parameters === ^ Name ^ Type ^ Description ^ | row | Int64 | The target row for the tile to fetch. | | column | Int64 | The target column for the tile to fetch. | [[#Public Methods|Go Back]] ==== GetTiles(RectangleShape) ==== This method returns all the NativeImageTiles within the passed in world extent. === Return Value === ^ Return Type ^ Description ^ | Collection<[[ThinkGeo.MapSuite.WindowsPhoneCore.NativeImageTile|NativeImageTile]]> | Returns a collection of NativeImageTiles within the passed in worldExtent. | === Parameters === ^ Name ^ Type ^ Description ^ | extent | [[ThinkGeo.MapSuite.WindowsPhoneCore.RectangleShape|RectangleShape]] | The target worldExtent will be used to fetch all the NativeImageTiles from. | [[#Public Methods|Go Back]] ==== GetType() ==== === Return Value === ^ Return Type ^ Description ^ | Type | | === Parameters === ^ Name ^ Type ^ Description ^ [[#Public Methods|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 | | === Parameters === ^ Name ^ Type ^ Description ^ | tile | [[ThinkGeo.MapSuite.WindowsPhoneCore.Tile|Tile]] | The target tile to be saved. | [[#Public Methods|Go Back]] ==== ToString() ==== === Return Value === ^ Return Type ^ Description ^ | String | | === Parameters === ^ Name ^ Type ^ Description ^ [[#Public Methods|Go Back]] ===== Protected Methods ===== ==== ClearCacheCore() ==== 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 | | === Parameters === ^ Name ^ Type ^ Description ^ [[#Protected Methods|Go Back]] ==== DeleteTileCore(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 | | === Parameters === ^ Name ^ Type ^ Description ^ | tile | [[ThinkGeo.MapSuite.WindowsPhoneCore.Tile|Tile]] | The target tile to be deleted. | [[#Protected Methods|Go Back]] ==== Finalize() ==== === Return Value === ^ Return Type ^ Description ^ | Void | | === Parameters === ^ Name ^ Type ^ Description ^ [[#Protected Methods|Go Back]] ==== GetTileCore(Int64, Int64) ==== This method returns the NativeImageTile corresponding to passed in row and column. === Return Value === ^ Return Type ^ Description ^ | [[ThinkGeo.MapSuite.WindowsPhoneCore.NativeImageTile|NativeImageTile]] | Returns the NativeImageTile corresponding to the passed in row and column. | === Parameters === ^ Name ^ Type ^ Description ^ | row | Int64 | The target row for the tile to fetch. | | column | Int64 | The target column for the tile to fetch. | [[#Protected Methods|Go Back]] ==== MemberwiseClone() ==== === Return Value === ^ Return Type ^ Description ^ | Object | | === Parameters === ^ Name ^ Type ^ Description ^ [[#Protected Methods|Go Back]] ==== SaveTileCore(Tile) ==== This method will save the target tile passed in, you could override this API to create your own logic. === Return Value === ^ Return Type ^ Description ^ | Void | | === Parameters === ^ Name ^ Type ^ Description ^ | tile | [[ThinkGeo.MapSuite.WindowsPhoneCore.Tile|Tile]] | The target tile to be saved. | [[#Protected Methods|Go Back]] ===== Public Properties ===== ==== CacheId ==== Gets or sets the id of the TileCache. === Return Value === ^ Return Type ^ | String | [[#Public Properties|Go Back]] ==== DirectoryName ==== Gets or sets the cache direcory. === Return Value === ^ Return Type ^ | String | [[#Public Properties|Go Back]] ==== MaxCacheSize ==== === Return Value === ^ Return Type ^ | Int64 | [[#Public Properties|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 ^ | [[ThinkGeo.MapSuite.WindowsPhoneCore.TileAccessMode|TileAccessMode]] | [[#Public Properties|Go Back]] ==== TileMatrix ==== Gets or sets the TileMatrix which is used in caculation for tiles. === Return Value === ^ Return Type ^ | [[ThinkGeo.MapSuite.WindowsPhoneCore.TileMatrix|TileMatrix]] | [[#Public Properties|Go Back]] ===== Protected Properties ===== ===== Public Events ===== __NOTOC__ [[Category:WindowsPhoneMapSuiteCore]] [[Category:ThinkGeo.MapSuite.WindowsPhoneCore]] [[Category:UpdateDocumentation]]