MTTileRange

public struct MTTileRange : Equatable, Sendable

Represents a range of map tiles at a specific zoom level.

  • Undocumented

    Declaration

    Swift

    public let minX: Int
  • Undocumented

    Declaration

    Swift

    public let maxX: Int
  • Undocumented

    Declaration

    Swift

    public let minY: Int
  • Undocumented

    Declaration

    Swift

    public let maxY: Int
  • Undocumented

    Declaration

    Swift

    public let zoom: Int
  • Undocumented

    Declaration

    Swift

    public init(minX: Int, maxX: Int, minY: Int, maxY: Int, zoom: Int)
  • Returns a new MTTileRange with the boundaries pushed outwards by the given buffer. Clamps the resulting indices to the valid [0, 2^Z - 1] range for the current zoom level.

    Declaration

    Swift

    public func expanded(by buffer: Int) -> MTTileRange