MBMTilesetDescriptorOptionsForTilesets


@interface MBMTilesetDescriptorOptionsForTilesets : NSObject

Describes the style package load option values for a list of tilesets.

  • Unavailable

    Undocumented

    Declaration

    Objective-C

    - (nonnull instancetype)init NS_UNAVAILABLE;
  • Unavailable

    Undocumented

    Declaration

    Objective-C

    + (nonnull instancetype)new NS_UNAVAILABLE;
  • The tilesets associated with the tileset descriptor.

    Contains an array, each element of which must be either a URI to a TileJSON resource or a JSON string representing the inline tileset.

    The provided URIs must have “mapbox://” scheme, e.g. “mapbox://mapbox.mapbox-streets-v8”.

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly, nonnull) NSArray<NSString *> *tilesets;

    Swift

    var tilesets: [String] { get }
  • Minimum zoom level for the tile package.

    Note: the implementation loads and stores the loaded tiles in batches, each batch has a pre-defined zoom range and it contains all child tiles within the range. The zoom leveling scheme for the tile batches can be defined in Tile JSON, otherwise the default scheme is used:

    • Global coverage: 0 - 5
    • Regional information: 6 - 10
    • Local information: 11 - 14
    • Streets detail: 15 - 16

    Internally, the implementation maps the given tile pack zoom range and geometry to a set of pre-defined batches to load, therefore it is highly recommended to choose the minZoom and maxZoom values in accordance with the tile batches zoom ranges (see the list above).

    Declaration

    Objective-C

    @property (nonatomic, readonly) uint8_t minZoom;

    Swift

    var minZoom: UInt8 { get }
  • Maximum zoom level for the tile package.

    maxZoom value cannot exceed the maximum allowed tile batch zoom value,

    See

    minZoom

    Declaration

    Objective-C

    @property (nonatomic, readonly) uint8_t maxZoom;

    Swift

    var maxZoom: UInt8 { get }
  • Pixel ratio to be accounted for when downloading raster tiles.

    The pixelRatio must be ≥ 0 and should typically be 1.0 or 2.0.

    Declaration

    Objective-C

    @property (nonatomic, readonly) float pixelRatio;

    Swift

    var pixelRatio: Float { get }
  • Undocumented

    Declaration

    Objective-C

    - (nonnull instancetype)initWithTilesets:(nonnull NSArray<NSString *> *)tilesets
                                     minZoom:(uint8_t)minZoom
                                     maxZoom:(uint8_t)maxZoom
                                  pixelRatio:(float)pixelRatio
                                extraOptions:(nullable id)extraOptions;

    Swift

    init(tilesets: [String], minZoom: UInt8, maxZoom: UInt8, pixelRatio: Float, extraOptions: Any?)
  • Undocumented

    Declaration

    Objective-C

    - (nonnull instancetype)initWithTilesets:(nonnull NSArray<NSString *> *)tilesets
                                     minZoom:(uint8_t)minZoom
                                     maxZoom:(uint8_t)maxZoom
                                extraOptions:(nullable id)extraOptions;

    Swift

    init(tilesets: [String], minZoom: UInt8, maxZoom: UInt8, extraOptions: Any?)
  • Undocumented

    See more

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable, copy) id extraOptions

    Swift

    var extraOptions: Any? { get }