MSFPMTilesTileDataSource

Objective-C


@interface MSFPMTilesTileDataSource : MSFTileDataSource

Swift

class MSFPMTilesTileDataSource : MSFTileDataSource

A tile data source that loads tiles from a PMTiles v3 archive file. PMTiles is a single-file archive format for pyramids of tiled data. The archive format supports efficient random access and metadata storage.

  • Constructs a PMTilesTileDataSource object. Min and max zoom levels are automatically detected from the PMTiles header.

    Declaration

    Objective-C

    - (id)initWithPath:(NSString *)path;

    Swift

    init!(path: String!)

    Parameters

    path

    The path to the PMTiles archive file. @throws NSException If the file could not be opened or is not a valid PMTiles archive.

  • Constructs a PMTilesTileDataSource object with specified zoom levels.

    Declaration

    Objective-C

    - (id)initWithMinZoom:(int)minZoom maxZoom:(int)maxZoom path:(NSString *)path;

    Swift

    init!(minZoom: Int32, maxZoom: Int32, path: String!)

    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 PMTiles archive file. @throws NSException If the file could not be opened or is not a valid PMTiles archive.

  • Get PMTiles archive metadata information as a JSON string. The metadata is stored in the PMTiles archive and may contain information such as name, description, attribution, vector layers, etc.

    Declaration

    Objective-C

    - (NSString *)getContainerMetaData;

    Swift

    func getContainerMetaData() -> String!

    Return Value

    JSON string containing metadata, or empty string if no metadata exists.

  • Get a specific metadata value by key from the parsed JSON metadata.

    Declaration

    Objective-C

    - (NSString *)getContainerMetaData:(NSString *)key;

    Swift

    func getContainerMetaData(_ key: String!) -> String!

    Parameters

    key

    The metadata key to retrieve (e.g., “name”, “description”, “attribution”).

    Return Value

    The metadata value as a string, or empty string if not found.

  • Get a specific metadata value by key from the parsed JSON metadata.

    Declaration

    Objective-C

    - (NSString *)getContainerMetaDataSwigExplicitMSFPMTilesTileDataSource:
        (NSString *)key;

    Swift

    func getContainerMetaDataSwigExplicitMSFPMTilesTileDataSource(_ key: String!) -> String!

    Parameters

    key

    The metadata key to retrieve (e.g., “name”, “description”, “attribution”).

    Return Value

    The metadata value as a string, or empty string if not found.

  • Undocumented

    Declaration

    Objective-C

    - (int)getMinZoom;

    Swift

    func getMinZoom() -> Int32
  • Undocumented

    Declaration

    Objective-C

    -(int)getMinZoomSwigExplicitMSFPMTilesTileDataSource;

    Swift

    func getMinZoomSwigExplicitMSFPMTilesTileDataSource() -> Int32
  • Undocumented

    Declaration

    Objective-C

    - (int)getMaxZoom;

    Swift

    func getMaxZoom() -> Int32
  • Undocumented

    Declaration

    Objective-C

    -(int)getMaxZoomSwigExplicitMSFPMTilesTileDataSource;

    Swift

    func getMaxZoomSwigExplicitMSFPMTilesTileDataSource() -> Int32
  • Undocumented

    Declaration

    Objective-C

    - (MSFMapBounds *)getDataExtent;

    Swift

    func getDataExtent() -> MSFMapBounds!
  • Undocumented

    Declaration

    Objective-C

    -(MSFMapBounds*)getDataExtentSwigExplicitMSFPMTilesTileDataSource;

    Swift

    func getDataExtentSwigExplicitMSFPMTilesTileDataSource() -> MSFMapBounds!
  • Undocumented

    Declaration

    Objective-C

    - (MSFTileData *)loadTile:(MSFMapTile *)mapTile;

    Swift

    func load(_ mapTile: MSFMapTile!) -> MSFTileData!
  • Undocumented

    Declaration

    Objective-C

    -(MSFTileData*)loadTileSwigExplicitMSFPMTilesTileDataSource: (MSFMapTile*)mapTile;

    Swift

    func loadTileSwigExplicitMSFPMTilesTileDataSource(_ mapTile: MSFMapTile!) -> MSFTileData!
  • Undocumented

    Declaration

    Objective-C

    -(void)dealloc;

    Swift

    func dealloc()