This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
thinkgeo.mapsuite.portablecore.inmemorybitmaptilecache [2015/08/20 03:08] 127.0.0.1 external edit |
— (current) | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== ThinkGeo.MapSuite.PortableCore.InMemoryBitmapTileCache ====== | ||
- | |||
- | |||
- | |||
- | <!-- Class --> | ||
- | 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. | ||
- | ===== Inheritance Hierarchy ===== | ||
- | *System.Object | ||
- | **[[ThinkGeo.MapSuite.PortableCore.TileCache]] | ||
- | ***[[ThinkGeo.MapSuite.PortableCore.BitmapTileCache]] | ||
- | ****[[ThinkGeo.MapSuite.PortableCore.InMemoryBitmapTileCache]] | ||
- | ===== Members Summary ===== | ||
- | ==== Public Constructors ==== | ||
- | ^ Name ^ Parameters ^ DeclaringType ^ Summary ^ | ||
- | | {{wiki:PublicMethod.gif|Public Method}}[[#InMemoryBitmapTileCache()|InMemoryBitmapTileCache]] | | | This is the default constructor. | | ||
- | |||
- | ==== Protected Constructors ==== | ||
- | ^ Name ^ Parameters ^ DeclaringType ^ Summary ^ | ||
- | |||
- | ==== Public Methods ==== | ||
- | ^ Name ^ Parameters ^ DeclaringType ^ Summary ^ | ||
- | | {{wiki:PublicMethod.gif|Public Method}}[[#ClearCache()|ClearCache]] | | [[ThinkGeo.MapSuite.PortableCore.TileCache|TileCache]] | This method will clear all the tiles in the tileCache. | | ||
- | | {{wiki:PublicMethod.gif|Public Method}}[[#DeleteTile(Tile)|DeleteTile]] | [[ThinkGeo.MapSuite.PortableCore.Tile|Tile]] | [[ThinkGeo.MapSuite.PortableCore.TileCache|TileCache]] | This method will delete the target tile passed in. | | ||
- | | {{wiki:PublicMethod.gif|Public Method}}[[#DeleteTiles(RectangleShape)|DeleteTiles]] | [[ThinkGeo.MapSuite.PortableCore.RectangleShape|RectangleShape]] | [[ThinkGeo.MapSuite.PortableCore.TileCache|TileCache]] | This method will delete the tiles within the passed in worldExtent. | | ||
- | | {{wiki:PublicMethod.gif|Public Method}}[[#Equals(Object)|Equals]] | Object | Object | | | ||
- | | {{wiki:PublicMethod.gif|Public Method}}[[#GetHashCode()|GetHashCode]] | | Object | | | ||
- | | {{wiki:PublicMethod.gif|Public Method}}[[#GetHigherScaleTile(RectangleShape, Double)|GetHigherScaleTile]] | [[ThinkGeo.MapSuite.PortableCore.RectangleShape|RectangleShape]], Double | [[ThinkGeo.MapSuite.PortableCore.BitmapTileCache|BitmapTileCache]] | This method will return the HigherScale BitmapTile which is always used for preview effects when ZoomIn or ZoomOut. | | ||
- | | {{wiki:PublicMethod.gif|Public Method}}[[#GetTile(RectangleShape)|GetTile]] | [[ThinkGeo.MapSuite.PortableCore.RectangleShape|RectangleShape]] | [[ThinkGeo.MapSuite.PortableCore.BitmapTileCache|BitmapTileCache]] | This method returns the BitmapTile corresponding to the tile bounding box passed in. | | ||
- | | {{wiki:PublicMethod.gif|Public Method}}[[#GetTile(Int64, Int64)|GetTile]] | Int64, Int64 | [[ThinkGeo.MapSuite.PortableCore.BitmapTileCache|BitmapTileCache]] | This method returns the BitmapTile corresponding to passed in row and column. | | ||
- | | {{wiki:PublicMethod.gif|Public Method}}[[#GetTiles(RectangleShape)|GetTiles]] | [[ThinkGeo.MapSuite.PortableCore.RectangleShape|RectangleShape]] | [[ThinkGeo.MapSuite.PortableCore.BitmapTileCache|BitmapTileCache]] | This method returns all the BitmapTiles within the passed in world extent, some of which may not has bitmap. | | ||
- | | {{wiki:PublicMethod.gif|Public Method}}[[#GetType()|GetType]] | | Object | | | ||
- | | {{wiki:PublicMethod.gif|Public Method}}[[#SaveTile(Tile)|SaveTile]] | [[ThinkGeo.MapSuite.PortableCore.Tile|Tile]] | [[ThinkGeo.MapSuite.PortableCore.TileCache|TileCache]] | This method will save the target tile passed in. | | ||
- | | {{wiki:PublicMethod.gif|Public Method}}[[#SaveTiles(GeoImage, RectangleShape)|SaveTiles]] | [[ThinkGeo.MapSuite.PortableCore.GeoImage|GeoImage]], [[ThinkGeo.MapSuite.PortableCore.RectangleShape|RectangleShape]] | [[ThinkGeo.MapSuite.PortableCore.TileCache|TileCache]] | This method will save the bitmap with its extent attached into tiles. | | ||
- | | {{wiki:PublicMethod.gif|Public Method}}[[#ToString()|ToString]] | | Object | | | ||
- | |||
- | ==== Protected Methods ==== | ||
- | ^ Name ^ Parameters ^ DeclaringType ^ Summary ^ | ||
- | | {{wiki:ProtectedMethod.gif|Protected Method}}[[#ClearCacheCore()|ClearCacheCore]] | | [[ThinkGeo.MapSuite.PortableCore.TileCache|TileCache]](overriden) | This method will clear all the tiles in the tileCache. | | ||
- | | {{wiki:ProtectedMethod.gif|Protected Method}}[[#DeleteTileCore(Tile)|DeleteTileCore]] | [[ThinkGeo.MapSuite.PortableCore.Tile|Tile]] | [[ThinkGeo.MapSuite.PortableCore.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}}[[#GetHigherScaleTileCore(RectangleShape, Double)|GetHigherScaleTileCore]] | [[ThinkGeo.MapSuite.PortableCore.RectangleShape|RectangleShape]], Double | [[ThinkGeo.MapSuite.PortableCore.BitmapTileCache|BitmapTileCache]](overriden) | This method overrides the logic in its base class BitmapTileCache. This method will return the HigherScale BitmapTile which is always used for preview effects when ZoomIn or ZoomOut. | | ||
- | | {{wiki:ProtectedMethod.gif|Protected Method}}[[#GetTileCore(Int64, Int64)|GetTileCore]] | Int64, Int64 | [[ThinkGeo.MapSuite.PortableCore.BitmapTileCache|BitmapTileCache]](overriden) | This method returns the BitmapTile corresponding to passed in row and column. | | ||
- | | {{wiki:ProtectedMethod.gif|Protected Method}}[[#MemberwiseClone()|MemberwiseClone]] | | Object | | | ||
- | | {{wiki:ProtectedMethod.gif|Protected Method}}[[#MergeBitmaps(IEnumerable<BitmapTile>, Double)|MergeBitmaps]] | IEnumerable<[[ThinkGeo.MapSuite.PortableCore.BitmapTile|BitmapTile]]>, Double | [[ThinkGeo.MapSuite.PortableCore.BitmapTileCache|BitmapTileCache]] | This method will merege the passed in bitmap tiles into a larege bitmap tile. | | ||
- | | {{wiki:ProtectedMethod.gif|Protected Method}}[[#OnGettingCacheImage(GettingCacheImageBitmapTileCacheEventArgs)|OnGettingCacheImage]] | [[ThinkGeo.MapSuite.PortableCore.GettingCacheImageBitmapTileCacheEventArgs|GettingCacheImageBitmapTileCacheEventArgs]] | [[ThinkGeo.MapSuite.PortableCore.BitmapTileCache|BitmapTileCache]] | | | ||
- | | {{wiki:ProtectedMethod.gif|Protected Method}}[[#OnGottenCacheImage(GottenCacheImageBitmapTileCacheEventArgs)|OnGottenCacheImage]] | [[ThinkGeo.MapSuite.PortableCore.GottenCacheImageBitmapTileCacheEventArgs|GottenCacheImageBitmapTileCacheEventArgs]] | [[ThinkGeo.MapSuite.PortableCore.BitmapTileCache|BitmapTileCache]] | | | ||
- | | {{wiki:ProtectedMethod.gif|Protected Method}}[[#SaveTileCore(Tile)|SaveTileCore]] | [[ThinkGeo.MapSuite.PortableCore.Tile|Tile]] | [[ThinkGeo.MapSuite.PortableCore.TileCache|TileCache]](overriden) | This method will save the target tile passed in. | | ||
- | |||
- | ==== Public Properties ==== | ||
- | ^ Name ^ Return ^ DeclaringType ^ Summary ^ | ||
- | | {{wiki:PublicProperty.gif|Public Property}}[[#CacheId|CacheId]] | String | [[ThinkGeo.MapSuite.PortableCore.TileCache|TileCache]] | Gets or sets the id of the TileCache. | | ||
- | | {{wiki:PublicProperty.gif|Public Property}}[[#CachedTilesByScale|CachedTilesByScale]] | [[ThinkGeo.MapSuite.PortableCore.GeoCollection|GeoCollection]]<Dictionary<String,[[ThinkGeo.MapSuite.PortableCore.BitmapTile|BitmapTile]]>> | | This property gets the Cached tiles,each item is a Dictionary with scale as its key. | | ||
- | | {{wiki:PublicProperty.gif|Public Property}}[[#ImageFormat|ImageFormat]] | [[ThinkGeo.MapSuite.PortableCore.TileImageFormat|TileImageFormat]] | [[ThinkGeo.MapSuite.PortableCore.TileCache|TileCache]] | Gets or sets the tile image format. | | ||
- | | {{wiki:PublicProperty.gif|Public Property}}[[#JpegQuality|JpegQuality]] | Int16 | [[ThinkGeo.MapSuite.PortableCore.TileCache|TileCache]] | Gets or sets the Jpeg quality , this property only take effects when setting the ImageFormat to Jpeg. | | ||
- | | {{wiki:PublicProperty.gif|Public Property}}[[#LoadingTileImage|LoadingTileImage]] | [[ThinkGeo.MapSuite.PortableCore.GeoImage|GeoImage]] | [[ThinkGeo.MapSuite.PortableCore.TileCache|TileCache]] | This property returns back a preset image showing the Tile is loading. | | ||
- | | {{wiki:PublicProperty.gif|Public Property}}[[#MaximumTilesCount|MaximumTilesCount]] | Int32 | | This property gets or sets the maximum tiles count, if it exceed,it will delete the old first cached tiles. | | ||
- | | {{wiki:PublicProperty.gif|Public Property}}[[#NoDataTileImage|NoDataTileImage]] | [[ThinkGeo.MapSuite.PortableCore.GeoImage|GeoImage]] | [[ThinkGeo.MapSuite.PortableCore.TileCache|TileCache]] | This property returns back a preset image showing the tile data is missing. | | ||
- | | {{wiki:PublicProperty.gif|Public Property}}[[#TileAccessMode|TileAccessMode]] | [[ThinkGeo.MapSuite.PortableCore.TileAccessMode|TileAccessMode]] | [[ThinkGeo.MapSuite.PortableCore.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.PortableCore.TileMatrix|TileMatrix]] | [[ThinkGeo.MapSuite.PortableCore.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 ^ | ||
- | | {{wiki:PublicEvent.gif|Public Event}}[[#GettingCacheImage|GettingCacheImage]] | [[ThinkGeo.MapSuite.PortableCore.GettingCacheImageBitmapTileCacheEventArgs|GettingCacheImageBitmapTileCacheEventArgs]] | [[ThinkGeo.MapSuite.PortableCore.BitmapTileCache|BitmapTileCache]] | | | ||
- | | {{wiki:PublicEvent.gif|Public Event}}[[#GottenCacheImage|GottenCacheImage]] | [[ThinkGeo.MapSuite.PortableCore.GottenCacheImageBitmapTileCacheEventArgs|GottenCacheImageBitmapTileCacheEventArgs]] | [[ThinkGeo.MapSuite.PortableCore.BitmapTileCache|BitmapTileCache]] | | | ||
- | |||
- | ===== Public Constructors ===== | ||
- | ==== InMemoryBitmapTileCache() ==== | ||
- | 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]] | ||
- | ===== 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<!-- System.Void --> | | | ||
- | |||
- | === Parameters === | ||
- | ^ Name ^ Type ^ Description ^ | ||
- | |||
- | <!-- ThinkGeo.MapSuite.PortableCore.TileCache --> | ||
- | [[#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<!-- System.Void --> | | | ||
- | |||
- | === Parameters === | ||
- | ^ Name ^ Type ^ Description ^ | ||
- | | tile | [[ThinkGeo.MapSuite.PortableCore.Tile|Tile]]<!-- ThinkGeo.MapSuite.PortableCore.Tile --> | The target tile to be deleted. | | ||
- | |||
- | <!-- ThinkGeo.MapSuite.PortableCore.TileCache --> | ||
- | [[#Public Methods|Go Back]] | ||
- | ==== DeleteTiles(RectangleShape) ==== | ||
- | This method will delete the tiles within the passed in worldExtent. | ||
- | === Return Value === | ||
- | ^ Return Type ^ Description ^ | ||
- | | Void<!-- System.Void --> | | | ||
- | |||
- | === Parameters === | ||
- | ^ Name ^ Type ^ Description ^ | ||
- | | worldExtent | [[ThinkGeo.MapSuite.PortableCore.RectangleShape|RectangleShape]]<!-- ThinkGeo.MapSuite.PortableCore.RectangleShape --> | The target extent to delete all tiles within it. | | ||
- | |||
- | <!-- ThinkGeo.MapSuite.PortableCore.TileCache --> | ||
- | [[#Public Methods|Go Back]] | ||
- | ==== Equals(Object) ==== | ||
- | === Return Value === | ||
- | ^ Return Type ^ Description ^ | ||
- | | Boolean<!-- System.Boolean --> | | | ||
- | |||
- | === Parameters === | ||
- | ^ Name ^ Type ^ Description ^ | ||
- | | obj | Object<!-- System.Object --> | | | ||
- | |||
- | <!-- System.Object --> | ||
- | [[#Public Methods|Go Back]] | ||
- | ==== GetHashCode() ==== | ||
- | === Return Value === | ||
- | ^ Return Type ^ Description ^ | ||
- | | Int32<!-- System.Int32 --> | | | ||
- | |||
- | === Parameters === | ||
- | ^ Name ^ Type ^ Description ^ | ||
- | |||
- | <!-- System.Object --> | ||
- | [[#Public Methods|Go Back]] | ||
- | ==== GetHigherScaleTile(RectangleShape, Double) ==== | ||
- | This method will return the HigherScale BitmapTile which is always used for preview effects when ZoomIn or ZoomOut. | ||
- | === Return Value === | ||
- | ^ Return Type ^ Description ^ | ||
- | | [[ThinkGeo.MapSuite.PortableCore.BitmapTile|BitmapTile]]<!-- ThinkGeo.MapSuite.PortableCore.BitmapTile --> | Returns the higher scale(higher zoomLevel) bitmap tile. | | ||
- | |||
- | === Parameters === | ||
- | ^ Name ^ Type ^ Description ^ | ||
- | | tileBoundingBox | [[ThinkGeo.MapSuite.PortableCore.RectangleShape|RectangleShape]]<!-- ThinkGeo.MapSuite.PortableCore.RectangleShape --> | The parameter specifies the current tile bounding box. | | ||
- | | tileScale | Double<!-- System.Double --> | This parameter specifies the current tile scale. | | ||
- | |||
- | <!-- ThinkGeo.MapSuite.PortableCore.BitmapTileCache --> | ||
- | [[#Public Methods|Go Back]] | ||
- | ==== GetTile(RectangleShape) ==== | ||
- | This method returns the BitmapTile corresponding to the tile bounding box passed in. | ||
- | === Return Value === | ||
- | ^ Return Type ^ Description ^ | ||
- | | [[ThinkGeo.MapSuite.PortableCore.BitmapTile|BitmapTile]]<!-- ThinkGeo.MapSuite.PortableCore.BitmapTile --> | Returns the BitmapTile corresponding to the passed in boundingBox. | | ||
- | |||
- | === Parameters === | ||
- | ^ Name ^ Type ^ Description ^ | ||
- | | tileBoundingBox | [[ThinkGeo.MapSuite.PortableCore.RectangleShape|RectangleShape]]<!-- ThinkGeo.MapSuite.PortableCore.RectangleShape --> | The target boundingBox for the tile to fetch. | | ||
- | |||
- | <!-- ThinkGeo.MapSuite.PortableCore.BitmapTileCache --> | ||
- | [[#Public Methods|Go Back]] | ||
- | ==== GetTile(Int64, Int64) ==== | ||
- | This method returns the BitmapTile corresponding to passed in row and column. | ||
- | === Return Value === | ||
- | ^ Return Type ^ Description ^ | ||
- | | [[ThinkGeo.MapSuite.PortableCore.BitmapTile|BitmapTile]]<!-- ThinkGeo.MapSuite.PortableCore.BitmapTile --> | Returns the BitmapTile 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.PortableCore.BitmapTileCache --> | ||
- | [[#Public Methods|Go Back]] | ||
- | ==== GetTiles(RectangleShape) ==== | ||
- | This method returns all the BitmapTiles within the passed in world extent, some of which may not has bitmap. | ||
- | === Return Value === | ||
- | ^ Return Type ^ Description ^ | ||
- | | Collection<[[ThinkGeo.MapSuite.PortableCore.BitmapTile|BitmapTile]]><!-- System.Collections.ObjectModel.Collection{ThinkGeo.MapSuite.PortableCore.BitmapTile} --> | Returns a collection of BitmapTiles within the passed in worldExtent. | | ||
- | |||
- | === Parameters === | ||
- | ^ Name ^ Type ^ Description ^ | ||
- | | worldExtent | [[ThinkGeo.MapSuite.PortableCore.RectangleShape|RectangleShape]]<!-- ThinkGeo.MapSuite.PortableCore.RectangleShape --> | The target worldExtent will be used to fetch all the BitmapTiles from. | | ||
- | |||
- | <!-- ThinkGeo.MapSuite.PortableCore.BitmapTileCache --> | ||
- | [[#Public Methods|Go Back]] | ||
- | ==== GetType() ==== | ||
- | === Return Value === | ||
- | ^ Return Type ^ Description ^ | ||
- | | Type<!-- System.Type --> | | | ||
- | |||
- | === Parameters === | ||
- | ^ Name ^ Type ^ Description ^ | ||
- | |||
- | <!-- System.Object --> | ||
- | [[#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<!-- System.Void --> | | | ||
- | |||
- | === Parameters === | ||
- | ^ Name ^ Type ^ Description ^ | ||
- | | tile | [[ThinkGeo.MapSuite.PortableCore.Tile|Tile]]<!-- ThinkGeo.MapSuite.PortableCore.Tile --> | The target tile to be saved. | | ||
- | |||
- | <!-- ThinkGeo.MapSuite.PortableCore.TileCache --> | ||
- | [[#Public Methods|Go Back]] | ||
- | ==== SaveTiles(GeoImage, RectangleShape) ==== | ||
- | This method will save the bitmap with its extent attached into tiles. | ||
- | === Return Value === | ||
- | ^ Return Type ^ Description ^ | ||
- | | Void<!-- System.Void --> | | | ||
- | |||
- | === Parameters === | ||
- | ^ Name ^ Type ^ Description ^ | ||
- | | bitmap | [[ThinkGeo.MapSuite.PortableCore.GeoImage|GeoImage]]<!-- ThinkGeo.MapSuite.PortableCore.GeoImage --> | The target bitmap to be saved into tiles. | | ||
- | | bitmapExtent | [[ThinkGeo.MapSuite.PortableCore.RectangleShape|RectangleShape]]<!-- ThinkGeo.MapSuite.PortableCore.RectangleShape --> | The target extent for the bitmap. | | ||
- | |||
- | <!-- ThinkGeo.MapSuite.PortableCore.TileCache --> | ||
- | [[#Public Methods|Go Back]] | ||
- | ==== ToString() ==== | ||
- | === Return Value === | ||
- | ^ Return Type ^ Description ^ | ||
- | | String<!-- System.String --> | | | ||
- | |||
- | === Parameters === | ||
- | ^ Name ^ Type ^ Description ^ | ||
- | |||
- | <!-- System.Object --> | ||
- | [[#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<!-- System.Void --> | | | ||
- | |||
- | === Parameters === | ||
- | ^ Name ^ Type ^ Description ^ | ||
- | |||
- | <!-- ThinkGeo.MapSuite.PortableCore.TileCache(overriden) --> | ||
- | [[#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<!-- System.Void --> | | | ||
- | |||
- | === Parameters === | ||
- | ^ Name ^ Type ^ Description ^ | ||
- | | tile | [[ThinkGeo.MapSuite.PortableCore.Tile|Tile]]<!-- ThinkGeo.MapSuite.PortableCore.Tile --> | The target tile to be deleted. | | ||
- | |||
- | <!-- ThinkGeo.MapSuite.PortableCore.TileCache(overriden) --> | ||
- | [[#Protected Methods|Go Back]] | ||
- | ==== Finalize() ==== | ||
- | === Return Value === | ||
- | ^ Return Type ^ Description ^ | ||
- | | Void<!-- System.Void --> | | | ||
- | |||
- | === Parameters === | ||
- | ^ Name ^ Type ^ Description ^ | ||
- | |||
- | <!-- System.Object --> | ||
- | [[#Protected Methods|Go Back]] | ||
- | ==== GetHigherScaleTileCore(RectangleShape, Double) ==== | ||
- | This method overrides the logic in its base class BitmapTileCache. This method will return the HigherScale BitmapTile which is always used for preview effects when ZoomIn or ZoomOut. | ||
- | === Return Value === | ||
- | ^ Return Type ^ Description ^ | ||
- | | [[ThinkGeo.MapSuite.PortableCore.BitmapTile|BitmapTile]]<!-- ThinkGeo.MapSuite.PortableCore.BitmapTile --> | Returns the higher scale(higher zoomLevel) bitmap tile. | | ||
- | |||
- | === Parameters === | ||
- | ^ Name ^ Type ^ Description ^ | ||
- | | tileBoundingBox | [[ThinkGeo.MapSuite.PortableCore.RectangleShape|RectangleShape]]<!-- ThinkGeo.MapSuite.PortableCore.RectangleShape --> | The parameter specifies the current tile bounding box. | | ||
- | | tileScale | Double<!-- System.Double --> | This parameter specifies the current tile scale. | | ||
- | |||
- | <!-- ThinkGeo.MapSuite.PortableCore.BitmapTileCache(overriden) --> | ||
- | [[#Protected Methods|Go Back]] | ||
- | ==== GetTileCore(Int64, Int64) ==== | ||
- | This method returns the BitmapTile corresponding to passed in row and column. | ||
- | === Return Value === | ||
- | ^ Return Type ^ Description ^ | ||
- | | [[ThinkGeo.MapSuite.PortableCore.BitmapTile|BitmapTile]]<!-- ThinkGeo.MapSuite.PortableCore.BitmapTile --> | Returns the BitmapTile 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.PortableCore.BitmapTileCache(overriden) --> | ||
- | [[#Protected Methods|Go Back]] | ||
- | ==== MemberwiseClone() ==== | ||
- | === Return Value === | ||
- | ^ Return Type ^ Description ^ | ||
- | | Object<!-- System.Object --> | | | ||
- | |||
- | === Parameters === | ||
- | ^ Name ^ Type ^ Description ^ | ||
- | |||
- | <!-- System.Object --> | ||
- | [[#Protected Methods|Go Back]] | ||
- | ==== MergeBitmaps(IEnumerable<BitmapTile>, Double) ==== | ||
- | This method will merege the passed in bitmap tiles into a larege bitmap tile. | ||
- | === Return Value === | ||
- | ^ Return Type ^ Description ^ | ||
- | | [[ThinkGeo.MapSuite.PortableCore.BitmapTile|BitmapTile]]<!-- ThinkGeo.MapSuite.PortableCore.BitmapTile --> | Returns a merged bitmap tile. | | ||
- | |||
- | === Parameters === | ||
- | ^ Name ^ Type ^ Description ^ | ||
- | | tilesToMerge | IEnumerable<[[ThinkGeo.MapSuite.PortableCore.BitmapTile|BitmapTile]]><!-- System.Collections.Generic.IEnumerable{ThinkGeo.MapSuite.PortableCore.BitmapTile} --> | The collection of tiles to be mereged. | | ||
- | | scale | Double<!-- System.Double --> | The target scale for result mereged bitmap tile. | | ||
- | |||
- | <!-- ThinkGeo.MapSuite.PortableCore.BitmapTileCache --> | ||
- | [[#Protected Methods|Go Back]] | ||
- | ==== OnGettingCacheImage(GettingCacheImageBitmapTileCacheEventArgs) ==== | ||
- | === Return Value === | ||
- | ^ Return Type ^ Description ^ | ||
- | | Void<!-- System.Void --> | | | ||
- | |||
- | === Parameters === | ||
- | ^ Name ^ Type ^ Description ^ | ||
- | | e | [[ThinkGeo.MapSuite.PortableCore.GettingCacheImageBitmapTileCacheEventArgs|GettingCacheImageBitmapTileCacheEventArgs]]<!-- ThinkGeo.MapSuite.PortableCore.GettingCacheImageBitmapTileCacheEventArgs --> | | | ||
- | |||
- | <!-- ThinkGeo.MapSuite.PortableCore.BitmapTileCache --> | ||
- | [[#Protected Methods|Go Back]] | ||
- | ==== OnGottenCacheImage(GottenCacheImageBitmapTileCacheEventArgs) ==== | ||
- | === Return Value === | ||
- | ^ Return Type ^ Description ^ | ||
- | | Void<!-- System.Void --> | | | ||
- | |||
- | === Parameters === | ||
- | ^ Name ^ Type ^ Description ^ | ||
- | | e | [[ThinkGeo.MapSuite.PortableCore.GottenCacheImageBitmapTileCacheEventArgs|GottenCacheImageBitmapTileCacheEventArgs]]<!-- ThinkGeo.MapSuite.PortableCore.GottenCacheImageBitmapTileCacheEventArgs --> | | | ||
- | |||
- | <!-- ThinkGeo.MapSuite.PortableCore.BitmapTileCache --> | ||
- | [[#Protected Methods|Go Back]] | ||
- | ==== SaveTileCore(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 | [[ThinkGeo.MapSuite.PortableCore.Tile|Tile]]<!-- ThinkGeo.MapSuite.PortableCore.Tile --> | The target tile to be saved. | | ||
- | |||
- | <!-- ThinkGeo.MapSuite.PortableCore.TileCache(overriden) --> | ||
- | [[#Protected Methods|Go Back]] | ||
- | ===== Public Properties ===== | ||
- | ==== CacheId ==== | ||
- | Gets or sets the id of the TileCache. | ||
- | === Return Value === | ||
- | ^ Return Type ^ | ||
- | | String<!-- System.String --> | | ||
- | |||
- | <!-- ThinkGeo.MapSuite.PortableCore.TileCache --> | ||
- | [[#Public Properties|Go Back]] | ||
- | ==== CachedTilesByScale ==== | ||
- | This property gets the Cached tiles,each item is a Dictionary with scale as its key. | ||
- | === Return Value === | ||
- | ^ Return Type ^ | ||
- | | [[ThinkGeo.MapSuite.PortableCore.GeoCollection|GeoCollection]]<Dictionary<String,[[ThinkGeo.MapSuite.PortableCore.BitmapTile|BitmapTile]]>><!-- ThinkGeo.MapSuite.PortableCore.GeoCollection{System.Collections.Generic.Dictionary{System.String,ThinkGeo.MapSuite.PortableCore.BitmapTile}} --> | | ||
- | |||
- | <!-- ThinkGeo.MapSuite.PortableCore.InMemoryBitmapTileCache --> | ||
- | [[#Public Properties|Go Back]] | ||
- | ==== ImageFormat ==== | ||
- | Gets or sets the tile image format. | ||
- | === Return Value === | ||
- | ^ Return Type ^ | ||
- | | [[ThinkGeo.MapSuite.PortableCore.TileImageFormat|TileImageFormat]]<!-- ThinkGeo.MapSuite.PortableCore.TileImageFormat --> | | ||
- | |||
- | <!-- ThinkGeo.MapSuite.PortableCore.TileCache --> | ||
- | [[#Public Properties|Go Back]] | ||
- | ==== JpegQuality ==== | ||
- | Gets or sets the Jpeg quality , this property only take effects when setting the ImageFormat to Jpeg. | ||
- | === Return Value === | ||
- | ^ Return Type ^ | ||
- | | Int16<!-- System.Int16 --> | | ||
- | |||
- | <!-- ThinkGeo.MapSuite.PortableCore.TileCache --> | ||
- | [[#Public Properties|Go Back]] | ||
- | ==== LoadingTileImage ==== | ||
- | This property returns back a preset image showing the Tile is loading. | ||
- | === Return Value === | ||
- | ^ Return Type ^ | ||
- | | [[ThinkGeo.MapSuite.PortableCore.GeoImage|GeoImage]]<!-- ThinkGeo.MapSuite.PortableCore.GeoImage --> | | ||
- | |||
- | <!-- ThinkGeo.MapSuite.PortableCore.TileCache --> | ||
- | [[#Public Properties|Go Back]] | ||
- | ==== MaximumTilesCount ==== | ||
- | This property gets or sets the maximum tiles count, if it exceed,it will delete the old first cached tiles. | ||
- | === Return Value === | ||
- | ^ Return Type ^ | ||
- | | Int32<!-- System.Int32 --> | | ||
- | |||
- | <!-- ThinkGeo.MapSuite.PortableCore.InMemoryBitmapTileCache --> | ||
- | [[#Public Properties|Go Back]] | ||
- | ==== NoDataTileImage ==== | ||
- | This property returns back a preset image showing the tile data is missing. | ||
- | === Return Value === | ||
- | ^ Return Type ^ | ||
- | | [[ThinkGeo.MapSuite.PortableCore.GeoImage|GeoImage]]<!-- ThinkGeo.MapSuite.PortableCore.GeoImage --> | | ||
- | |||
- | <!-- ThinkGeo.MapSuite.PortableCore.TileCache --> | ||
- | [[#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.PortableCore.TileAccessMode|TileAccessMode]]<!-- ThinkGeo.MapSuite.PortableCore.TileAccessMode --> | | ||
- | |||
- | <!-- ThinkGeo.MapSuite.PortableCore.TileCache --> | ||
- | [[#Public Properties|Go Back]] | ||
- | ==== TileMatrix ==== | ||
- | Gets or sets the TileMatrix which is used in caculation for tiles. | ||
- | === Return Value === | ||
- | ^ Return Type ^ | ||
- | | [[ThinkGeo.MapSuite.PortableCore.TileMatrix|TileMatrix]]<!-- ThinkGeo.MapSuite.PortableCore.TileMatrix --> | | ||
- | |||
- | <!-- ThinkGeo.MapSuite.PortableCore.TileCache --> | ||
- | [[#Public Properties|Go Back]] | ||
- | ===== Protected Properties ===== | ||
- | ===== Public Events ===== | ||
- | ==== GettingCacheImage ==== | ||
- | === Event Arguments === | ||
- | ^ Event Arguments ^ | ||
- | | [[ThinkGeo.MapSuite.PortableCore.GettingCacheImageBitmapTileCacheEventArgs|GettingCacheImageBitmapTileCacheEventArgs]]<!-- ThinkGeo.MapSuite.PortableCore.GettingCacheImageBitmapTileCacheEventArgs --> | | ||
- | |||
- | <!-- ThinkGeo.MapSuite.PortableCore.BitmapTileCache --> | ||
- | [[#Public Events|Go Back]] | ||
- | ==== GottenCacheImage ==== | ||
- | === Event Arguments === | ||
- | ^ Event Arguments ^ | ||
- | | [[ThinkGeo.MapSuite.PortableCore.GottenCacheImageBitmapTileCacheEventArgs|GottenCacheImageBitmapTileCacheEventArgs]]<!-- ThinkGeo.MapSuite.PortableCore.GottenCacheImageBitmapTileCacheEventArgs --> | | ||
- | |||
- | <!-- ThinkGeo.MapSuite.PortableCore.BitmapTileCache --> | ||
- | [[#Public Events|Go Back]] | ||
- | |||
- | __NOTOC__ | ||
- | [[Category:MapSuitePortableCore]] | ||
- | [[Category:ThinkGeo.MapSuite.PortableCore]] | ||
- | [[Category:UpdateDocumentation]] | ||
8501 Wade Blvd Ste 550
Frisco, TX 75034
United States
sales@thinkgeo.com
1-785-727-4133
Online Store
- Desktop
WPF
WinForms
- Web
WebAPI HTML5/JavaScript
ASP.NET MVC
WebForms with AJAX
- Mobile
iOS
Android™
World Street
World Imagery
Routing
Geocoding
Reverse Geocoding
Elevation
Quick Start Guides
Documentation
Blogs
Discussion Forums
Customer Portal
About Us
News & Announcemets
Privacy Policy
Copyright 2003-2017 ThinkGeo LLC.
All rights reserved.