RenderOptions

public struct RenderOptions : Equatable

Used to configure rendering-specific capabilities of the MapView

  • The preferred frame rate at which the map view is rendered.

    The default value for this property is .normal, which will adaptively set the preferred frame rate based on the capability of the user’s device to maintain a smooth experience.

    See Also CADisplayLink.preferredFramesPerSecond

    Declaration

    Swift

    public var preferredFramesPerSecond: PreferredFPS
  • When loading a map, if PrefetchZoomDelta is set to any number greater than 0, the map map at lower resolution as quick as possible. It will get clamped at the tile source minimum zoom. The default PrefetchZoomDelta is 4.

    Declaration

    Swift

    public var prefetchZoomDelta: UInt8
  • A Boolean value that indicates whether the underlying CAMetalLayer of the MapView presents its content using a CoreAnimation transaction

    By default, this is false resulting in the output of a rendering pass being displayed on the CAMetalLayer as quickly as possible (and asynchronously). This typically results in the fastest rendering performance.

    If, however, the MapView is overlaid with a UIKit element which must be pinned to a particular lat-long, then setting this to true will result in better synchronization and less jitter.

    Declaration

    Swift

    public var presentsWithTransaction: Bool
  • Undocumented

    Declaration

    Swift

    public init()