Maria GDK 4.5.0.138
Documentation of managed code in release branch
|
Public Member Functions | |
IDictionary< String, TileCacheStats > | GetTileCacheStats () |
Returns a dictionary keyed on map signature containing statistics for the tile cache. | |
IDictionary< String, DataReaderStats > | GetDataReaderStats () |
Returns a dictionary keyed on map signature containing statistics for the data reader. | |
void | Cleanup () |
Run cache cleanup. This method will clean up old and unused tiles from all the tile caches. This is normally done automatically from the map layer and elevation data managers, but if you are running the tile cache manager standalone, this method should be called whenever CurrentCacheSize exceeds MaxCacheSize. | |
void | AddMapDataProvider (string providerId, IMapDataProvider mapDataProvider) |
Register a map data provider with a unique ID. | |
void | RemoveMapDataProvider (string providerId) |
Remove the registered map data provider with the given ID. | |
bool | HasMapDataProvider (string providerId) |
Check if a given provider exists in the manager. | |
void | AddMapDataProvider (MapContentType contentType, IMapDataProvider mMapDataProvider) |
Register a map data provider for the given map content type. You need to register map data providers for all map content types you intend to use. Note that the native MapInterfacer will add a provider for elevation normals automatically when you create an elevation data layer. | |
void | RemoveMapDataProvider (MapContentType contentType) |
Remove the registered map data provider for the given content type. | |
INativeTileCache | GetTileCache (IMapContentQuery key) |
Get the tile cache for the given map content query. This method requires that the wanted tile cahce has been created, typically through a map/elevation template. | |
INativeTileCache | CreateMapTileCache (IMapContentQuery query, IMapDataProvider provider=null) |
Create tile cache for map tiles with optional data provider. If no data provider is given, the default for the requested map content type is used. | |
void | RemoveTileCache (IMapContentQuery key) |
Erase the given tile cache from the manager. | |
void | ClearTileCaches () |
Clear all tile caches. This method will clear all tile data from all tile caches. Please note that tile data can be kept alive by other components of the system, such as the rendering layers and tile data readers, this method will simply remove the references from the tile caches. | |
void TPG.GeoFramework.NativeLayerBridge.Contracts.INativeTileCacheManager.AddMapDataProvider | ( | MapContentType | contentType, |
IMapDataProvider | mMapDataProvider | ||
) |
Register a map data provider for the given map content type. You need to register map data providers for all map content types you intend to use. Note that the native MapInterfacer will add a provider for elevation normals automatically when you create an elevation data layer.
contentType | |
mMapDataProvider |
void TPG.GeoFramework.NativeLayerBridge.Contracts.INativeTileCacheManager.AddMapDataProvider | ( | string | providerId, |
IMapDataProvider | mapDataProvider | ||
) |
Register a map data provider with a unique ID.
providerId | ID for this data provider |
mapDataProvider |
void TPG.GeoFramework.NativeLayerBridge.Contracts.INativeTileCacheManager.Cleanup | ( | ) |
Run cache cleanup. This method will clean up old and unused tiles from all the tile caches. This is normally done automatically from the map layer and elevation data managers, but if you are running the tile cache manager standalone, this method should be called whenever CurrentCacheSize exceeds MaxCacheSize.
Implemented in NativeMapLayerBridge::NativeTileCacheManager.
void TPG.GeoFramework.NativeLayerBridge.Contracts.INativeTileCacheManager.ClearTileCaches | ( | ) |
Clear all tile caches. This method will clear all tile data from all tile caches. Please note that tile data can be kept alive by other components of the system, such as the rendering layers and tile data readers, this method will simply remove the references from the tile caches.
Implemented in NativeMapLayerBridge::NativeTileCacheManager.
INativeTileCache TPG.GeoFramework.NativeLayerBridge.Contracts.INativeTileCacheManager.CreateMapTileCache | ( | IMapContentQuery | query, |
IMapDataProvider | provider = null |
||
) |
Create tile cache for map tiles with optional data provider. If no data provider is given, the default for the requested map content type is used.
query | Map content query used as key in the tile cache. |
provider | Optional data provider. |
IDictionary< String, DataReaderStats > TPG.GeoFramework.NativeLayerBridge.Contracts.INativeTileCacheManager.GetDataReaderStats | ( | ) |
Returns a dictionary keyed on map signature containing statistics for the data reader.
Implemented in NativeMapLayerBridge::NativeTileCacheManager.
INativeTileCache TPG.GeoFramework.NativeLayerBridge.Contracts.INativeTileCacheManager.GetTileCache | ( | IMapContentQuery | key | ) |
Get the tile cache for the given map content query. This method requires that the wanted tile cahce has been created, typically through a map/elevation template.
key | A map content query for the wanted tile cache |
IDictionary< String, TileCacheStats > TPG.GeoFramework.NativeLayerBridge.Contracts.INativeTileCacheManager.GetTileCacheStats | ( | ) |
Returns a dictionary keyed on map signature containing statistics for the tile cache.
Implemented in NativeMapLayerBridge::NativeTileCacheManager.
bool TPG.GeoFramework.NativeLayerBridge.Contracts.INativeTileCacheManager.HasMapDataProvider | ( | string | providerId | ) |
Check if a given provider exists in the manager.
providerId |
void TPG.GeoFramework.NativeLayerBridge.Contracts.INativeTileCacheManager.RemoveMapDataProvider | ( | MapContentType | contentType | ) |
Remove the registered map data provider for the given content type.
contentType |
Implemented in NativeMapLayerBridge::NativeTileCacheManager.
void TPG.GeoFramework.NativeLayerBridge.Contracts.INativeTileCacheManager.RemoveMapDataProvider | ( | string | providerId | ) |
Remove the registered map data provider with the given ID.
providerId |
void TPG.GeoFramework.NativeLayerBridge.Contracts.INativeTileCacheManager.RemoveTileCache | ( | IMapContentQuery | key | ) |
Erase the given tile cache from the manager.
key |