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
MTOfflineCoverageInputErrorif validation fails.Declaration
Swift
public init(scheme: String? = nil, minZoom: Int, maxZoom: Int, tileSize: Int = 512) throwsParameters
schemeThe scheme string from a source/TileJSON. Defaults to “xyz” if nil.
minZoomThe minimum zoom level requested.
maxZoomThe maximum zoom level requested.
tileSizeThe tile size in pixels (e.g., 256 or 512). Defaults to 512.