MSFMBTilesTileDataSource
Objective-C
@interface MSFMBTilesTileDataSource : MSFTileDataSource
Swift
class MSFMBTilesTileDataSource : MSFTileDataSource
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.
Declaration
Objective-C
- (id)initWithPath:(NSString *)path;Swift
init!(path: String!)Parameters
pathThe path to the local Sqlite database file. @throws NSException If the the file could not be opened.
-
Constructs a MBTilesTileDataSource object. TMS tile scheme is used.
Declaration
Objective-C
- (id)initWithMinZoom:(int)minZoom maxZoom:(int)maxZoom path:(NSString *)path;Swift
init!(minZoom: Int32, maxZoom: Int32, path: String!)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. @throws NSException If the the file could not be opened.
-
Constructs a MBTilesTileDataSource object with specified tile scheme.
Declaration
Objective-C
- (id)initWithMinZoom:(int)minZoom maxZoom:(int)maxZoom path:(NSString *)path scheme:(enum MSFMBTilesScheme)scheme;Swift
init!(minZoom: Int32, maxZoom: Int32, path: String!, scheme: MSFMBTilesScheme)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. @throws NSException If the the file could not be opened.
-
Get data source metadata information. Possible parameters can be found in MBTiles specification.
Declaration
Objective-C
- (MSFStringMap *)getContainerMetaData;Swift
func getContainerMetaData() -> MSFStringMap!Return Value
Map containing meta data information (parameter names mapped to parameter values).
-
Undocumented
Declaration
Objective-C
- (NSString *)getContainerMetaData:(NSString *)key;Swift
func getContainerMetaData(_ key: String!) -> String! -
Undocumented
Declaration
Objective-C
-(NSString*)getContainerMetaDataSwigExplicitMSFMBTilesTileDataSource: (NSString*)key;Swift
func getContainerMetaDataSwigExplicitMSFMBTilesTileDataSource(_ key: String!) -> String! -
Undocumented
Declaration
Objective-C
- (int)getMinZoom;Swift
func getMinZoom() -> Int32 -
Undocumented
Declaration
Objective-C
-(int)getMinZoomSwigExplicitMSFMBTilesTileDataSource;Swift
func getMinZoomSwigExplicitMSFMBTilesTileDataSource() -> Int32 -
Undocumented
Declaration
Objective-C
- (int)getMaxZoom;Swift
func getMaxZoom() -> Int32 -
Undocumented
Declaration
Objective-C
-(int)getMaxZoomSwigExplicitMSFMBTilesTileDataSource;Swift
func getMaxZoomSwigExplicitMSFMBTilesTileDataSource() -> Int32 -
Undocumented
Declaration
Objective-C
- (MSFMapBounds *)getDataExtent;Swift
func getDataExtent() -> MSFMapBounds! -
Undocumented
Declaration
Objective-C
-(MSFMapBounds*)getDataExtentSwigExplicitMSFMBTilesTileDataSource;Swift
func getDataExtentSwigExplicitMSFMBTilesTileDataSource() -> MSFMapBounds! -
Undocumented
Declaration
Objective-C
-(NSString*)getTileMask;Swift
func getTileMask() -> String! -
Undocumented
Declaration
Objective-C
-(NSString*)getTileMaskSwigExplicitMSFMBTilesTileDataSource;Swift
func getTileMaskSwigExplicitMSFMBTilesTileDataSource() -> String! -
Undocumented
Declaration
Objective-C
- (MSFTileData *)loadTile:(MSFMapTile *)mapTile;Swift
func load(_ mapTile: MSFMapTile!) -> MSFTileData! -
Undocumented
Declaration
Objective-C
-(MSFTileData*)loadTileSwigExplicitMSFMBTilesTileDataSource: (MSFMapTile*)mapTile;Swift
func loadTileSwigExplicitMSFMBTilesTileDataSource(_ mapTile: MSFMapTile!) -> MSFTileData! -
Undocumented
Declaration
Objective-C
-(void)dealloc;Swift
func dealloc()