MBMOfflineRegionGeometryDefinition

Deprecated


@interface MBMOfflineRegionGeometryDefinition : NSObject

An offline region definition is a geographic region defined by a style URL, a geometry, zoom range, and device pixel ratio. Both minZoom and maxZoom must be ≥ 0, and maxZoom must be ≥ minZoom. The maxZoom may be ∞, in which case for each tile source, the region will include tiles from minZoom up to the maximum zoom level provided by that source. The pixelRatio must be ≥ 0 and should typically be 1.0 or 2.0.

  • Unavailable

    Undocumented

    Declaration

    Objective-C

    - (nonnull instancetype)init NS_UNAVAILABLE;
  • Unavailable

    Undocumented

    Declaration

    Objective-C

    + (nonnull instancetype)new NS_UNAVAILABLE;
  • Undocumented

    Declaration

    Objective-C

    - (nonnull instancetype)initWithStyleURL:(nonnull NSString *)styleURL
                                    geometry:(nonnull MBXGeometry *)geometry
                                     minZoom:(double)minZoom
                                     maxZoom:(double)maxZoom
                                  pixelRatio:(float)pixelRatio
                     glyphsRasterizationMode:(MBMGlyphsRasterizationMode)glyphsRasterizationMode NS_REFINED_FOR_SWIFT;
  • The style associated with the offline region

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly, nonnull) NSString *styleURL;

    Swift

    var styleURL: String { get }
  • The geometry that defines the boundary of the offline region

    Declaration

    Objective-C

    @property (nonatomic, readonly, nonnull) MBXGeometry *geometry;
  • Minimum zoom level for the offline region

    Declaration

    Objective-C

    @property (nonatomic, readonly) double minZoom;

    Swift

    var minZoom: Double { get }
  • Maximum zoom level for the offline region

    Declaration

    Objective-C

    @property (nonatomic, readonly) double maxZoom;

    Swift

    var maxZoom: Double { get }
  • Pixel ratio to be accounted for when downloading assets

    Declaration

    Objective-C

    @property (nonatomic, readonly) float pixelRatio;

    Swift

    var pixelRatio: Float { get }
  • Specifies glyphs rasterization mode. It defines which glyphs will be loaded from the server

    Declaration

    Objective-C

    @property (nonatomic, readonly) MBMGlyphsRasterizationMode glyphsRasterizationMode;

    Swift

    var glyphsRasterizationMode: GlyphsRasterizationMode { get }