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

    path

    The 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

    minZoom

    The minimum zoom level supported by this data source.

    maxZoom

    The maximum zoom level supported by this data source.

    path

    The 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

    minZoom

    The minimum zoom level supported by this data source.

    maxZoom

    The maximum zoom level supported by this data source.

    path

    The path to the local Sqlite database file.

    scheme

    Tile 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;