MBMTileOptions


@interface MBMTileOptions : NSObject

Options for custom geometry tiles.

  • Undocumented

    Declaration

    Objective-C

    - (nonnull instancetype)init;

    Swift

    init()
  • Undocumented

    Declaration

    Objective-C

    - (nonnull instancetype)initWithTolerance:(double)tolerance
                                     tileSize:(uint16_t)tileSize
                                       buffer:(uint16_t)buffer
                                         clip:(BOOL)clip
                                         wrap:(BOOL)wrap;

    Swift

    init(tolerance: Double, tileSize: UInt16, buffer: UInt16, clip: Bool, wrap: Bool)
  • Douglas-Peucker simplification tolerance (higher means simpler geometries and faster performance). Default is 0.375.

    Declaration

    Objective-C

    @property (nonatomic, readonly) double tolerance;

    Swift

    var tolerance: Double { get }
  • Size of the tiles. Tile size must be a power of 2. Default is 512.

    Declaration

    Objective-C

    @property (nonatomic, readonly) uint16_t tileSize;

    Swift

    var tileSize: UInt16 { get }
  • Tile buffer size on each side (measured in 1/512ths of a tile; higher means fewer rendering artifacts near tile edges but slower performance). Default is 128.

    Declaration

    Objective-C

    @property (nonatomic, readonly) uint16_t buffer;

    Swift

    var buffer: UInt16 { get }
  • If the data includes geometry outside the tile boundaries, setting this to true clips the geometry to the tile boundaries. Default is false;

    Declaration

    Objective-C

    @property (nonatomic, readonly, getter=isClip) BOOL clip;

    Swift

    var isClip: Bool { get }
  • If the data includes wrapped coordinates, setting this to true unwraps the coordinates. Default is false;

    Declaration

    Objective-C

    @property (nonatomic, readonly, getter=isWrap) BOOL wrap;

    Swift

    var isWrap: Bool { get }