NTMemoryCacheTileDataSource
@interface NTMemoryCacheTileDataSource : NTCacheTileDataSource
A tile data source that loads tiles from another tile data source and caches them in memory. This cache is not persistent, tiles will be cleared once the application closes. Default cache capacity is 6MB.
-
Constructs a MemoryCacheTileDataSource object from tile data source.
Declaration
Objective-C
- (id)initWithDataSource:(NTTileDataSource *)dataSource;
Parameters
dataSource
The datasource to be cached.
-
Undocumented
Declaration
Objective-C
- (NTTileData *)loadTile:(NTMapTile *)mapTile;
-
Undocumented
Declaration
Objective-C
-(NTTileData*)loadTileSwigExplicitNTMemoryCacheTileDataSource: (NTMapTile*)mapTile;
-
Undocumented
Declaration
Objective-C
- (void)clear;
-
Undocumented
Declaration
Objective-C
-(void)clearSwigExplicitNTMemoryCacheTileDataSource;
-
Undocumented
Declaration
Objective-C
- (unsigned long)getCapacity;
-
Undocumented
Declaration
Objective-C
-(unsigned long)getCapacitySwigExplicitNTMemoryCacheTileDataSource;
-
Undocumented
Declaration
Objective-C
- (void)setCapacity:(unsigned long)capacityInBytes;
-
Undocumented
Declaration
Objective-C
-(void)setCapacitySwigExplicitNTMemoryCacheTileDataSource: (unsigned long)capacityInBytes;
-
Undocumented
Declaration
Objective-C
-(void)dealloc;