NTMBTilesTileDataSource
@interface NTMBTilesTileDataSource : NTTileDataSource
A tile data source that loads tiles from a local Sqlite database. The database must contain table “tiles” with the following fields: “zoom_level” (tile zoom level), “tile_column” (tile x coordinate), “tile_row” (tile y coordinate), “tile_data” (compressed tile image).
-
Constructs a MBTilesTileDataSource object. TMS tile scheme is used, Min and max zoom levels are automatically detected.
Warning
Throws NSException If the the file could not be opened.Declaration
Objective-C
- (id)initWithPath:(NSString *)path;Parameters
pathThe path to the local Sqlite database file.
-
Constructs a MBTilesTileDataSource object. TMS tile scheme is used.
Warning
Throws NSException If the the file could not be opened.Declaration
Objective-C
- (id)initWithMinZoom:(int)minZoom maxZoom:(int)maxZoom path:(NSString *)path;Parameters
minZoomThe minimum zoom level supported by this data source.
maxZoomThe maximum zoom level supported by this data source.
pathThe path to the local Sqlite database file.
-
Constructs a MBTilesTileDataSource object with specified tile scheme.
Warning
Throws NSException If the the file could not be opened.Declaration
Objective-C
- (id)initWithMinZoom:(int)minZoom maxZoom:(int)maxZoom path:(NSString *)path scheme:(enum NTMBTilesScheme)scheme;Parameters
minZoomThe minimum zoom level supported by this data source.
maxZoomThe maximum zoom level supported by this data source.
pathThe path to the local Sqlite database file.
schemeTile scheme to use.
-
Get data source metadata information. Possible parameters can be found in MBTiles specification.
Declaration
Objective-C
- (NTStringMap *)getMetaData;Return Value
Map containing meta data information (parameter names mapped to parameter values).
-
Undocumented
Declaration
Objective-C
- (NTMapBounds *)getDataExtent; -
Undocumented
Declaration
Objective-C
-(NTMapBounds*)getDataExtentSwigExplicitNTMBTilesTileDataSource; -
Undocumented
Declaration
Objective-C
- (NTTileData *)loadTile:(NTMapTile *)mapTile; -
Undocumented
Declaration
Objective-C
-(NTTileData*)loadTileSwigExplicitNTMBTilesTileDataSource: (NTMapTile*)mapTile; -
Undocumented
Declaration
Objective-C
-(void)dealloc;
View on GitHub
NTMBTilesTileDataSource Class Reference