MTRendering
@MainActor
public protocol MTRendering
Defines methods for adjusting rendering parameters.
-
getPixelRatio()AsynchronousReturns 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) asyncParameters
pixelRatioPixel ratio value to apply.