TileCoverOptions

@_spi(Experimental)
public struct TileCoverOptions

Various options needed for tile cover.

  • Tile size of the source. Defaults to 512.

    Declaration

    Swift

    public var tileSize: UInt16?
  • Min zoom defined in the source between range [0, 22]. if not provided or is out of range, defaults to 0.

    Declaration

    Swift

    public var minZoom: UInt8?
  • Max zoom defined in the source between range [0, 22]. Should be greater than or equal to minZoom. If not provided or is out of range, defaults to 22.

    Declaration

    Swift

    public var maxZoom: UInt8?
  • Whether to round zoom values when calculating tilecover. Set this to true for raster and raster-dem sources. If not specified, defaults to false.

    Declaration

    Swift

    public var roundZoom: Bool?
  • Creates the TileCoverOptions.

    Declaration

    Swift

    public init(
        tileSize: UInt16? = nil,
        minZoom: UInt8? = nil,
        maxZoom: UInt8? = nil,
        roundZoom: Bool? = nil
    )