MTOfflineCoverageInputs

public struct MTOfflineCoverageInputs : Equatable

Holds normalized and validated coverage input parameters required for calculating tile coverage.

  • The tile scheme (xyz or tms).

    Declaration

    Swift

    public let scheme: MTOfflineTileScheme
  • The validated zoom range for the download.

    Declaration

    Swift

    public let zoomRange: MTOfflineZoomRange
  • The standardized tile size (e.g., 256 or 512).

    Declaration

    Swift

    public let tileSize: MTOfflineTileSize
  • Initializes and normalizes raw inputs into coverage inputs.

    Throws

    MTOfflineCoverageInputError if validation fails.

    Declaration

    Swift

    public init(scheme: String? = nil, minZoom: Int, maxZoom: Int, tileSize: Int = 512) throws

    Parameters

    scheme

    The scheme string from a source/TileJSON. Defaults to “xyz” if nil.

    minZoom

    The minimum zoom level requested.

    maxZoom

    The maximum zoom level requested.

    tileSize

    The tile size in pixels (e.g., 256 or 512). Defaults to 512.