MTRendering

@MainActor
public protocol MTRendering

Defines methods for adjusting rendering parameters.

  • getPixelRatio() Asynchronous

    Returns the pixel ratio currently used by the map.

    Declaration

    Swift

    @MainActor
    func getPixelRatio() async -> Double
  • setPixelRatio(_:) Asynchronous

    Sets the pixel ratio to use when rendering the map.

    Declaration

    Swift

    @MainActor
    func setPixelRatio(_ pixelRatio: Double) async

    Parameters

    pixelRatio

    Pixel ratio value to apply.